scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Layer-Condensed KV Cache for Efficient Inference of Large Language Models

Haoyi Wu, Kewei Tu

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

ShanghaiTech University

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

14measured effects
7improved
1no clear effect
6hurt

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.

On benchmark leaderboards

This paper tried a common change: Pretrained initialization

Initialize with pre-trained TinyLlama 2.5T checkpoint · SlimPajama dev · perplexity: 9.746 -> 8.514 Improved

What 132 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
Attend only to top-layer KVs (w=10) instead of standard attentionLlama · Generation throughput, A100 7B, 2048+2048tokens/s: 141.10 -> 315.09Improved
Attend only to top-layer KVs (w=2)Llama 30B · Generation throughput, RTX 3090 CPU-offloadtokens/s: 0.23 -> 5.99Improved
Use w=2 warmup layers instead of w=10 (ablation)Ours · Commonsense reasoning zero-shot avgaccuracy: 46.84 -> 45.45Hurt
Use w=10 warmup layersOurs vs TinyLlama · SlimPajama devperplexity: 9.219 vs 9.265No clear effect
Place warmup layers in sandwich (top and bottom) configuration (ablation)Ours (w=2) · SlimPajama dev, 1.1Bperplexity: 9.098 (all-top) / 7.668 (all-bottom) -> 7.381Improved
Place all warmup layers at the top (ablation)Ours (w=2) · Dev, 50Mperplexity: 14.069 -> 221.850Hurt
Add warmup layers (more than 0) (ablation)Ours · Dev ppl., 1.1BperplexityImproved
Increase backprop iterations b from 2 to 4 (ablation)Ours · Dev ppl., 1.1Bperplexity: 10.390 -> 10.885Hurt
Add MSE KV loss (ablation)Ours (w=2) · SlimPajama dev, 1.1Bperplexity: 9.746 -> 10.073Hurt
Add MSE KV loss (ablation)Ours (w=0) · Dev, 50M WikiText-103perplexity: 15.965 -> 15.610Improved
Initialize with pre-trained TinyLlama 2.5T checkpoint (ablation)Ours (w=2) · SlimPajama devperplexity: 9.746 -> 8.514Improved
Integrate with StreamingLLMStreamingLLM · PG19 latency and memorylatency, memoryImproved

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