scimeatlas

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

ACL 2024Architectures and efficiency › Attention and transformersapproach: KV cache eviction and compressionopen problems in this approach151 citations (OpenAlex)

Microsoft

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
8improved
3no clear effect
1mixed

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

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 changedWhereMeasuredEffect
share prefix KV cache physically (PagedAttn* vs PagedAttn)PagedAttn kernel · self-attention kernel, n_s=4096latency: 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-4096latency: 2.8-3.2x fasterImproved
use ChunkAttn when no tokens are sharedPagedAttn* · self-attention kernel, n_p=4096, n_s=0latency: 1400.17 -> 1301.78 usNo clear effect
use ChunkAttn with growing completion lengthPagedAttn · token rate, n_s=2048throughput: 3.6x at n_c=512; 2.3x at n_c=2048Mixed
use ChunkAttn instead of PagedAttn* at longer completionsPagedAttn* · token rate, n_s=2048throughput: 145K vs 73K (n_c=512); 70K vs 46K (n_c=2048)Improved
increase batch size 16 to 96 with ChunkAttnChunkAttn · token rate, n_s=2048throughput: 155K -> 224K toks/sImproved
increase batch size beyond 16Naive, xformers, FlashAttn, PagedAttn · token ratethroughputNo clear effect
use ChunkLlama instead of vLLM, 1024 shared tokensvLLM · serving throughput under 40 ms/token latencythroughput (RPS): 1.8 -> 2.9Improved
use ChunkLlama instead of vLLM, 2048 shared tokensvLLM · serving throughput under 40 ms/token latencythroughput (RPS): 1.0 -> 2.3Improved
use ChunkLlama with 1024 shared tokensvLLM · end-to-end n_p=1024peak KV cache (GB): 14.79 -> 3.28Improved
use ChunkLlama without shared prefixvLLM · end-to-end n_s=0normalized latency: 26.23 -> 26.88 ms/tok (n_p=4096)No clear effect
use ChunkLlama with shared prefixesvLLM · end-to-endpeak batch size: 23 -> 14 (n_p=1024); 19 -> 12; 16 -> 11Improved

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy