Research map / Architectures and efficiency / Attention and transformers
ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition
Lu Ye, Ze Tao, Yong Huang, Yang Li
Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Larger batch size
increase batch size 16 to 96 with ChunkAttn · token rate, n_s=2048 · throughput: 155K -> 224K toks/s Improved
What 943 accepted papers report for this change
- 539 improved
- 126 no clear effect
- 61 mixed
- 217 hurt
- Predicting the Emergence of Induction Heads in Language Model Pretraining ICML 2026 · increase batch size (fixed context 1024) · Natural data (CC100) · induction head emergence point (updates): rho=-1.0, p<0.001Improved
- When RL Meets Adaptive Speculative Training: A Unified Training-Serving System ICML 2026 · Increase batch size from 1 to 32 · MiniMax M2.1 FP8 · speedup: 1.57x -> 1.25xHurt
- Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking ICML 2026 · increase per-device batch size to 10 using freed memory · Llama 3-8B, 128K · throughput (TPS): 2464.10 (Ulysses) -> 2526.77 (UPipe)Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| share prefix KV cache physically (PagedAttn* vs PagedAttn) | PagedAttn kernel · self-attention kernel, n_s=4096 | latency: reduces latency by up to 52% | Improved |
| add two-phase partition on top of shared KV (ChunkAttn vs PagedAttn*) (ablation) | PagedAttn* · self-attention kernel, n_s 1024-4096 | latency: 2.8-3.2x faster | Improved |
| use ChunkAttn when no tokens are shared | PagedAttn* · self-attention kernel, n_p=4096, n_s=0 | latency: 1400.17 -> 1301.78 us | No clear effect |
| use ChunkAttn with growing completion length | PagedAttn · token rate, n_s=2048 | throughput: 3.6x at n_c=512; 2.3x at n_c=2048 | Mixed |
| use ChunkAttn instead of PagedAttn* at longer completions | PagedAttn* · token rate, n_s=2048 | throughput: 145K vs 73K (n_c=512); 70K vs 46K (n_c=2048) | Improved |
| increase batch size 16 to 96 with ChunkAttn | ChunkAttn · token rate, n_s=2048 | throughput: 155K -> 224K toks/s | Improved |
| increase batch size beyond 16 | Naive, xformers, FlashAttn, PagedAttn · token rate | throughput | No clear effect |
| use ChunkLlama instead of vLLM, 1024 shared tokens | vLLM · serving throughput under 40 ms/token latency | throughput (RPS): 1.8 -> 2.9 | Improved |
| use ChunkLlama instead of vLLM, 2048 shared tokens | vLLM · serving throughput under 40 ms/token latency | throughput (RPS): 1.0 -> 2.3 | Improved |
| use ChunkLlama with 1024 shared tokens | vLLM · end-to-end n_p=1024 | peak KV cache (GB): 14.79 -> 3.28 | Improved |
| use ChunkLlama without shared prefix | vLLM · end-to-end n_s=0 | normalized latency: 26.23 -> 26.88 ms/tok (n_p=4096) | No clear effect |
| use ChunkLlama with shared prefixes | vLLM · end-to-end | peak batch size: 23 -> 14 (n_p=1024); 19 -> 12; 16 -> 11 | Improved |
Open problems in KV cache eviction and compression
Does KV cache compression keep accuracy at tight budgets, larger scale and long context in real serving?
- Tested on models of about 8B parameters or fewer. · 26 papers state it
- Budgets and thresholds are set by hand or tuned per task or model. · 21 papers state it
- Implementations are unoptimized, so end-to-end speedups are unproven. · 18 papers state it
Closest papers by meaning
- SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget (ICLR 2025 · similarity 0.89)
- CompactAttention: Accelerating Chunked Prefill with Block-Union KV Selection (NeurIPS 2026 · similarity 0.89)
- CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences (ICLR 2025 · similarity 0.89)
- RazorAttention: Efficient KV Cache Compression Through Retrieval Heads (ICLR 2025 · similarity 0.88)
- QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference (ICML 2024 · similarity 0.88)
- DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference (ICLR 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.