Effectively Compress KV Heads for LLM
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
- 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLM8 Mar
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
15 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2020XCOPA: A Multilingual Dataset for Causal Commonsense Reasoningcited by 330
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
- 2021Few-shot Learning with Multilingual Language Modelscited by 278
- 2021It's All in the Heads: Using Attention Heads as a Baseline for Cross-Lingual Transfer in Commonsense Reasoningcited by 69
Built on by
Citing papers per year: 2024: 12; 2025: 13; 2026: 5.
30 papers.
Sort:
By area:
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Taskscited by 94
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
- 2024VL-Cache: Sparsity and Modality-Aware KV Cache Compression for Vision-Language Model Inference Accelerationcited by 41
- 2025Cognitive Memory in Large Language Modelscited by 28
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracingcited by 15
- 2025QSVD: Efficient Low-rank Approximation for Unified Query-Key-Value Weight Compression in Low-Precision Vision-Language Modelscited by 15
- 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspectivecited by 14
18 more
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Modelscited by 9
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelitycited by 9
- 2024Lossless KV Cache Compression to 2%cited by 7
- 2025SQuat: Subspace-orthogonal KV Cache Quantizationcited by 7
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQAcited by 6
- 2024CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuningcited by 3
- 2025TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centeringcited by 3
- 2026Don't be so Stief! Learning KV Cache low-rank approximation over the Stiefel manifoldcited by 3
- 2026WSVD: Weighted Low-Rank Approximation for Fast and Efficient Execution of Low-Precision Vision-Language Modelscited by 3
- 2025CaliDrop: KV Cache Compression with Calibrationcited by 1
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inferencecited by 1
- 2025Mockingbird: How does LLM perform in general machine learning tasks?cited by 0
- 2026LASER: Loss-Aware Singular-value Decomposition and Rank Allocation for Efficient Low-Precision Vision-Language Modelscited by 0
- 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Cachingcited by 0
- 2026MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compressioncited by 0
- 2026MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression24 Sep 2026
- 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Caching1 Aug 2026
- 2026LASER: Loss-Aware Singular-value Decomposition and Rank Allocation for Efficient Low-Precision Vision-Language Models30 May 2026
- 2026WSVD: Weighted Low-Rank Approximation for Fast and Efficient Execution of Low-Precision Vision-Language Models2 Apr 2026
- 2026Don't be so Stief! Learning KV Cache low-rank approximation over the Stiefel manifold29 Jan 2026
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity5 Dec 2025
- 2025QSVD: Efficient Low-rank Approximation for Unified Query-Key-Value Weight Compression in Low-Precision Vision-Language Models18 Oct 2025
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modeling8 Oct 2025
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inference21 Aug 2025
- 2025Mockingbird: How does LLM perform in general machine learning tasks?6 Aug 2025
- 2025CaliDrop: KV Cache Compression with Calibration26 Jul 2025
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models14 Jul 2025
18 more
- 2025Cartridges: Lightweight and general-purpose long context representations via self-study6 Jun 2025
- 2025TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centering5 Jun 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracing16 May 2025
- 2025Cognitive Memory in Large Language Models3 Apr 2025
- 2025SQuat: Subspace-orthogonal KV Cache Quantization31 Mar 2025
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQA30 Dec 2024
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries12 Dec 2024
- 2024CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuning26 Nov 2024
- 2024VL-Cache: Sparsity and Modality-Aware KV Cache Compression for Vision-Language Model Inference Acceleration29 Oct 2024
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct 2024
- 2024Lossless KV Cache Compression to 2%20 Oct 2024
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation17 Oct 2024
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategy4 Oct 2024
- 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspective4 Oct 2024
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumption25 Jul 2024
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul 2024
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Taskscited by 94
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracingcited by 15
- 2024UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspectivecited by 14
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Modelscited by 9
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelitycited by 9
- 2024Lossless KV Cache Compression to 2%cited by 7
12 most cited of 18 All 18 (JSON)
- 2026MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression24 Sep 2026
- 2026Don't be so Stief! Learning KV Cache low-rank approximation over the Stiefel manifold29 Jan 2026
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity5 Dec 2025
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inference21 Aug 2025
- 2025CaliDrop: KV Cache Compression with Calibration26 Jul 2025
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models14 Jul 2025
- 2025Cartridges: Lightweight and general-purpose long context representations via self-study6 Jun 2025
- 2025TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centering5 Jun 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracing16 May 2025
- 2025SQuat: Subspace-orthogonal KV Cache Quantization31 Mar 2025
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries12 Dec 2024
12 newest of 18 All 18 (JSON)
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2026LASER: Loss-Aware Singular-value Decomposition and Rank Allocation for Efficient Low-Precision Vision-Language Modelscited by 0
- 2026LASER: Loss-Aware Singular-value Decomposition and Rank Allocation for Efficient Low-Precision Vision-Language Models30 May 2026
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation17 Oct 2024
- 2024VL-Cache: Sparsity and Modality-Aware KV Cache Compression for Vision-Language Model Inference Accelerationcited by 41
- 2025QSVD: Efficient Low-rank Approximation for Unified Query-Key-Value Weight Compression in Low-Precision Vision-Language Modelscited by 15
- 2026WSVD: Weighted Low-Rank Approximation for Fast and Efficient Execution of Low-Precision Vision-Language Modelscited by 3
- 2026WSVD: Weighted Low-Rank Approximation for Fast and Efficient Execution of Low-Precision Vision-Language Models2 Apr 2026
- 2025QSVD: Efficient Low-rank Approximation for Unified Query-Key-Value Weight Compression in Low-Precision Vision-Language Models18 Oct 2025
- 2024VL-Cache: Sparsity and Modality-Aware KV Cache Compression for Vision-Language Model Inference Acceleration29 Oct 2024
- 2025Cognitive Memory in Large Language Modelscited by 28
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQAcited by 6
- 2024CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuningcited by 3
- 2025Mockingbird: How does LLM perform in general machine learning tasks?cited by 0
- 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Cachingcited by 0
- 2026S4R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Caching1 Aug 2026
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modeling8 Oct 2025
- 2025Mockingbird: How does LLM perform in general machine learning tasks?6 Aug 2025
- 2025Cognitive Memory in Large Language Models3 Apr 2025
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQA30 Dec 2024
- 2024CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuning26 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
- 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
- 2024SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
- 2024KV-Compress: Paged KV-Cache Compression with Variable Compression Rates per Attention Head
- 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference