ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inference
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Efficient long-context inference faces two coupled bottlenecks: KV-cache memory grows linearly with context length, while attention computation grows quadratically. Existing approaches typically address one at the expense of irreversible token eviction, full-cache retention, or full-history reconstruction, limiting their effectiveness for multi-turn interaction and long-form reasoning. Motivated by two empirical properties, Long-Range Inter-Token Similarity and Smooth Residual Distribution, we propose ResidualKV, which factorizes the KV cache into a sparse set of globally retrieved references and compact, quantized residual codes for the remaining tokens. This representation preserves token-specific information without permanent eviction and, when combined with sparse attention, reconstructs only the selected states on demand. Dynamic-stride scheduling further reduces reference growth from linear to approximately logarithmic at ultra-long contexts. Across Llama, Qwen, LLaVA-OV, and Qwen3-VL backbones, ResidualKV maintains near-full-cache performance using only 13%-16% KV storage and 30% attention computation on LongBench, and 8%-10% storage and 10% computation in matched-budget multimodal evaluation. It also accelerates decoding by up to 1.5× with KV-cache quantization and 3.4× without it. These results show that global cross-token redundancy supports accurate, memory-efficient, and computation-efficient long-context inference. The source code is available at https://github.com/CURRENTF/ResidualKV.
Key facts. Cited by 8 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 67 of its 77 references that are in the map. First posted on arXiv 8 Feb 2026.
Builds on
67 of 77 references.
Closest ancestors · 18
Same direction, newest first
- 2025CentroidKV: Efficient Long-Context LLM Inference via KV Cache Clustering13 Jun
- 2025Homogeneous Keys, Heterogeneous Values: Exploiting Local KV Cache Asymmetry for Long-Context LLMs4 Jun
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
- 2025WeightedKV: Attention Scores Weighted Key-Value Cache Merging for Large Language Models3 Mar
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries12 Dec
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression4 Dec
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategy4 Oct
- 2024Eigen Attention: Attention in Low-Rank Space for KV Cache Compression10 Aug
- 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
6 more
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving11 Oct
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 49
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,669
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023MMBench: Is Your Multi-modal Model an All-around Player?cited by 2,105
- 2024Qwen2 Technical Reportcited by 2,076
- 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,044
- 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,881
37 more
- 2023Evaluating Object Hallucination in Large Vision-Language Modelscited by 1,696
- 2023MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Modelscited by 1,624
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysiscited by 1,375
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2023MVBench: A Comprehensive Multi-modal Video Understanding Benchmarkcited by 1,086
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
- 2024LongVideoBench: A Benchmark for Long-context Interleaved Video-Language Understandingcited by 644
- 2024An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Modelscited by 629
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024DriveVLM: The Convergence of Autonomous Driving and Large Vision-Language Modelscited by 482
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2025DivPrune: Diversity-based Visual Token Pruning for Large Multimodal Modelscited by 177
- 2025Qwen2.5-1M Technical Reportcited by 158
- 2024Transformers are Multi-State RNNscited by 120
- 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 116
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 86
- 2025InftyThink: Breaking the Length Limits of Long-Context Reasoning in Large Language Modelscited by 53
- 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
- 2025PACT: Pruning and Clustering-Based Token Reduction for Faster Visual Language Modelscited by 49
- 2025FastVID: Dynamic Density Pruning for Fast Video Large Language Modelscited by 47
- 2025Let LRMs Break Free from Overthinking via Self-Braking Tuningcited by 27
- 2025Deep Research: A Systematic Surveycited by 23
- 2025Quantization Meets dLLMs: A Systematic Study of Post-training Quantization for Diffusion LLMscited by 21
- 2025Uni-X: Mitigating Modality Conflict with a Two-End-Separated Architecture for Unified Multimodal Modelscited by 18
- 2025A Token is Worth over 1,000 Tokens: Efficient Knowledge Distillation through Low-Rank Clonecited by 15
- 2025Enhancing RAG Efficiency with Adaptive Context Compressioncited by 7
- 2026InftyThink+: Effective and Efficient Infinite-Horizon Reasoning via Reinforcement Learningcited by 5
- 2025DeltaLLM: A Training-Free Framework Exploiting Temporal Sparsity for Efficient Edge LLM Inferencecited by 4
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026A Simple Plug-in for Improving Eviction-Based KV Cache Compressioncited by 3
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 2
- 2026Does Accuracy Equal Evidence? Reasoning Faithfulness under KV Cache Compressioncited by 2
- 2026ShallowStream: Index Shallow then Answer Deep for Streaming Video Understandingcited by 2
- 2026Very Efficient Listwise Multimodal Reranking for Long Documentscited by 1
- 2026VarRate: Training-Free Variable-Rate KV Cache Compression for Long-Context LLMscited by 0
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAGcited by 0
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routingcited by 0
- 2026Block-Sparse Attention with Semantic-Geometric Decoupled Routing19 Sep 2026
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG4 Sep 2026
- 2026ShallowStream: Index Shallow then Answer Deep for Streaming Video Understanding2 Sep 2026
- 2026Does Accuracy Equal Evidence? Reasoning Faithfulness under KV Cache Compression3 Aug 2026
- 2026VarRate: Training-Free Variable-Rate KV Cache Compression for Long-Context LLMs16 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026A Simple Plug-in for Improving Eviction-Based KV Cache Compression22 May 2026
- 2026Very Efficient Listwise Multimodal Reranking for Long Documents12 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026ResKV: Reconstructing Omitted Attention Contributions for Fixed-Budget KV Cache Compression
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compression
- 2026FreqDepthKV: Frequency-Guided Depth Sharing for Robust KV Cache Compression in Long-Context LLM Inference
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
- 2026Distance-KV: Exploiting Relative Distance for Efficient Long-Context Inference
- 2026AnchorKV: Anchor-Residual KV Cache Compression
- 2026Behavior-Preserving KV Cache Compression
- 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens