mlsanityData to 7 Oct 2026

Effectively Compress KV Heads for LLM

arXiv 2406.07056 ↗First posted 11 Jun 2024cs.CLcited by 30

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

The advent of pre-trained large language models (LLMs) has revolutionized various natural language processing tasks. These models predominantly employ an auto-regressive decoding mechanism that utilizes Key-Value (KV) caches to eliminate redundant calculations for previous tokens. Nevertheless, as context lengths and batch sizes increase, the linear expansion in memory footprint of KV caches becomes a key bottleneck of LLM deployment, which decreases generation speeds significantly. To mitigate this issue, previous techniques like multi-query attention (MQA) and grouped-query attention (GQA) have been developed, in order to reduce KV heads to accelerate inference with comparable accuracy to multi-head attention (MHA). Despite their effectiveness, existing strategies for compressing MHA often overlook the intrinsic properties of the KV caches. In this work, we explore the low-rank characteristics of the KV caches and propose a novel approach for compressing KV heads. In particular, we carefully optimize the MHA-to-GQA transformation to minimize compression error, and to remain compatible with rotary position embeddings (RoPE), we also introduce specialized strategies for key caches with RoPE. We demonstrate that our method can compress half or even three-quarters of KV heads while maintaining performance comparable to the original LLMs, which presents a promising direction for more efficient LLM deployment in resource-constrained environments.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 31 of its 38 references that are in the map. First posted on arXiv 11 Jun 2024.

Builds on

31 of 38 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLM8 Mar
  2. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  4. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  11. 2016Pointer Sentinel Mixture Modelscited by 2,992
  12. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
15 more
  1. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  2. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  3. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  4. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  5. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  6. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  7. 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
  8. 2019Are Sixteen Heads Really Better than One?cited by 803
  9. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
  10. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  11. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
  12. 2020XCOPA: A Multilingual Dataset for Causal Commonsense Reasoningcited by 330
  13. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  14. 2021Few-shot Learning with Multilingual Language Modelscited by 278
  15. 2021It's All in the Heads: Using Attention Heads as a Baseline for Cross-Lingual Transfer in Commonsense Reasoningcited by 69

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 12; 2025: 13; 2026: 5.

30 papers.

Sort:

By area:

  1. 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
  2. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
  3. 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
  4. 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Taskscited by 94
  5. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
  6. 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
  7. 2024VL-Cache: Sparsity and Modality-Aware KV Cache Compression for Vision-Language Model Inference Accelerationcited by 41
  8. 2025Cognitive Memory in Large Language Modelscited by 28
  9. 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
  10. 2025Accurate KV Cache Quantization with Outlier Tokens Tracingcited by 15
  11. 2025QSVD: Efficient Low-rank Approximation for Unified Query-Key-Value Weight Compression in Low-Precision Vision-Language Modelscited by 15
  12. 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspectivecited by 14
18 more
  1. 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
  2. 2025Hardware-Efficient Attention for Fast Decodingcited by 10
  3. 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Modelscited by 9
  4. 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
  5. 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelitycited by 9
  6. 2024Lossless KV Cache Compression to 2%cited by 7
  7. 2025SQuat: Subspace-orthogonal KV Cache Quantizationcited by 7
  8. 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQAcited by 6
  9. 2024CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuningcited by 3
  10. 2025TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centeringcited by 3
  11. 2026Don't be so Stief! Learning KV Cache low-rank approximation over the Stiefel manifoldcited by 3
  12. 2026WSVD: Weighted Low-Rank Approximation for Fast and Efficient Execution of Low-Precision Vision-Language Modelscited by 3
  13. 2025CaliDrop: KV Cache Compression with Calibrationcited by 1
  14. 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inferencecited by 1
  15. 2025Mockingbird: How does LLM perform in general machine learning tasks?cited by 0
  16. 2026LASER: Loss-Aware Singular-value Decomposition and Rank Allocation for Efficient Low-Precision Vision-Language Modelscited by 0
  17. 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Cachingcited by 0
  18. 2026MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compressioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
  2. 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
  3. 2024SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget
  4. 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
  5. 2024KV-Compress: Paged KV-Cache Compression with Variable Compression Rates per Attention Head
  6. 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
  7. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models
  8. 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference