Residual vector quantization for KV cache compression in large language model
On the map: Efficient LLM inference and serving → KV cache quantization
Abstract (arXiv)
KV cache compression methods have mainly relied on scalar quantization techniques to reduce the memory requirements during decoding. In this work, we apply residual vector quantization, which has been widely used for high fidelity audio compression, to compress KV cache in large language models (LLM). We adapt the standard recipe with minimal changes to compress the output of any key or value projection matrix in a pretrained LLM: we scale the vector by its standard deviation, divide channels into groups and then quantize each group with the same residual vector quantizer. We learn the codebook using exponential moving average and there are no other learnable parameters including the input and output projections normally used in a vector quantization set up. We find that a residual depth of 8 recovers most of the performance of the unquantized model. We also find that grouping non-contiguous channels together works better than grouping contiguous channels for compressing key matrix and the method further benefits from a light weight finetuning of LLM together with the quantization. Overall, the proposed technique is competitive with existing quantization methods while being much simpler and results in 5.5x compression compared to half precision.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in KV cache quantization, one of 12 directions in Efficient LLM inference and serving. Builds on 25 of its 30 references that are in the map. First posted on arXiv 21 Oct 2024.
Builds on
25 of 30 references.
Closest ancestors · 4
Same direction, newest first
- 2024KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantization7 May
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache5 Feb
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization31 Jan
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Serving29 Oct
Other references · 21
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2017Neural Discrete Representation Learningcited by 4,650
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2023Mistral 7Bcited by 3,065
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2021SoundStream: An End-to-End Neural Audio Codeccited by 756
9 more
- 2022High Fidelity Neural Audio Compressioncited by 673
- 2023High-Fidelity Audio Compression with Improved RVQGANcited by 423
- 2023Emu: Enhancing Image Generation Models Using Photogenic Needles in a Haystackcited by 278
- 2024Extreme Compression of Large Language Models via Additive Quantizationcited by 223
- 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 171
- 2024GPTVQ: The Blessing of Dimensionality for LLM Quantizationcited by 78
- 2023Codebook Features: Sparse and Discrete Interpretability for Neural Networkscited by 45
- 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025CommVQ: Commutative Vector Quantization for KV Cache Compressioncited by 25
- 2026Sub-Token Routing for KV Cache Compressioncited by 3
- 2026Online Vector Quantized Attentioncited by 1
- 2025PatternKV: Flattening KV Representation Expands Quantization Headroomcited by 0
- 2026GSRQ: Gain-Shape Residual Quantization for Sub-1-bit KV Cachecited by 0
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compressioncited by 0
- 2026Vortex: Bridging Extreme Compression and Efficient LLM Inferencecited by 0
- 2026Vortex: Bridging Extreme Compression and Efficient LLM Inference10 Sep 2026
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compression7 Jul 2026
- 2026GSRQ: Gain-Shape Residual Quantization for Sub-1-bit KV Cache1 Jul 2026
- 2026Sub-Token Routing for KV Cache Compression23 Apr 2026
- 2026Online Vector Quantized Attention3 Feb 2026
- 2025PatternKV: Flattening KV Representation Expands Quantization Headroom5 Oct 2025
- 2025CommVQ: Commutative Vector Quantization for KV Cache Compression23 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2026VQKV: High-Fidelity and High-Ratio Cache Compression via Vector-Quantization
- 2025SVDq: 1.25-bit and 410x Key Cache Compression for LLM Attention
- 2025NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cache
- 2024Unlocking Data-free Low-bit Quantization with Matrix Decomposition for KV Cache Compression
- 2025Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models
- 2026Spend Bits Where Queries Look: KV Cache Vector Quantization with Attention-Preserving Transforms
- 2026OmniKVQuant: KV Cache Quantization for Omni-LLMs
- 2026Tailoring the Quantization Space for 1-Bit KV Cache Compression