CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspective
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models have revolutionized natural language processing but face significant challenges of high storage and runtime costs, due to the transformer architecture's reliance on self-attention, particularly the large KV cache for long-sequence inference. Recent efforts to reduce KV cache size by pruning less critical entries based on attention weights remain empirical and lack formal grounding. This paper presents a formal study on identifying critical KV cache entries by analyzing attention output perturbation. Our analysis reveals that, beyond attention weights, the value states within KV entries and pretrained parameter matrices are also crucial. Based on this, we propose a perturbation-constrained selection algorithm that optimizes the worst-case output perturbation to identify critical entries. We demonstrate that our algorithm is a universal, plug-and-play enhancement that incurs negligible computational overhead. When integrated with three state-of-the-art cache eviction methods on three distinct LLMs, our algorithm significantly reduces the compression loss by more than textithalf on average across 29 datasets from the Ruler and LongBench benchmarks. Further perturbation analysis, at both the head and layer levels, confirms the principles underlying our effectiveness. This work offers a new, formally grounded perspective to cache eviction , opening promising avenues for future research. The code is publicly available at https://github.com/FFY0/DefensiveKV.
Key facts. Cited by 28 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 41 of its 56 references that are in the map. First posted on arXiv 6 Feb 2025.
Builds on
41 of 56 references.
Closest ancestors · 15
Same direction, newest first
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct
- 2024KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharing24 Oct
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models23 May
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar
3 more
Other references · 26
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Mistral 7Bcited by 3,065
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
14 more
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 363
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
- 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decodingcited by 98
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2024CritiPrefill: A Segment-wise Criticality-based Approach for Prefilling Acceleration in LLMscited by 7
Built on by
Citing papers per year: 2025: 6; 2026: 22.
28 papers.
Sort:
By area:
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2025SpecVLM: Enhancing Speculative Decoding of Video LLMs via Verifier-Guided Token Pruningcited by 19
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
- 2025Taming the Fragility of KV Cache Eviction in LLM Inferencecited by 14
- 2025MixKVQ: Query-Aware Mixed-Precision KV Cache Quantization for Long-Context Reasoningcited by 8
- 2026LCGuard: Latent Communication Guard for Safe KV Sharing in Multi-Agent Systemscited by 6
- 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generationcited by 5
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoningcited by 4
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objectivecited by 4
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Evictioncited by 4
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
- 2026RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cachecited by 4
16 more
- 2026ManifoldKV: Training-Free KV Cache Compression via Euclidean Outlier Detectioncited by 2
- 2025Neural Attention Searchcited by 1
- 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inferencecited by 1
- 2026KV Cache Compression Through the Lens of Transform Codingcited by 1
- 2026Trust the Mass: Forced Weights in KV-Cache Evictioncited by 1
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routingcited by 1
- 2026Monte Carlo Estimation for KV Cache Evictioncited by 1
- 2026Head-Aware Key-Value Compression for Efficient Autoregressive Image Generationcited by 0
- 2026AnchorKV: Anchor-Residual KV Cache Compressioncited by 0
- 2026Parser States Already Know: Structure-Conditioned KV Persistence for Structured Generationcited by 0
- 2026From Token Importance to Conditional Removability: Rethinking Visual Token Pruning in Multimodal Large Language Modelscited by 0
- 2026When to Evict, Not What to Keep: Draft-Guided Eviction for Training-Free KV-Cache Compressioncited by 0
- 2026ReSS: Residual-Restoring Sparse Attention for 3D Vision Transformerscited by 0
- 2026OVAL: Output-Aware Local Page Bases for KV Cache Retrievalcited by 0
- 2026VisionWeave: Weaving Elastic Visual Representations as a Native Capability of MLLMscited by 0
- 2026VisionWeave: Weaving Elastic Visual Representations as a Native Capability of MLLMs6 Oct 2026
- 2026Monte Carlo Estimation for KV Cache Eviction6 Oct 2026
- 2026OVAL: Output-Aware Local Page Bases for KV Cache Retrieval5 Oct 2026
- 2026ReSS: Residual-Restoring Sparse Attention for 3D Vision Transformers28 Sep 2026
- 2026When to Evict, Not What to Keep: Draft-Guided Eviction for Training-Free KV-Cache Compression27 Sep 2026
- 2026From Token Importance to Conditional Removability: Rethinking Visual Token Pruning in Multimodal Large Language Models22 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026Parser States Already Know: Structure-Conditioned KV Persistence for Structured Generation28 Aug 2026
- 2026Trust the Mass: Forced Weights in KV-Cache Eviction25 Aug 2026
- 2026KV Cache Compression Through the Lens of Transform Coding14 Aug 2026
- 2026AnchorKV: Anchor-Residual KV Cache Compression3 Aug 2026
- 2026LCGuard: Latent Communication Guard for Safe KV Sharing in Multi-Agent Systems21 May 2026
16 more
- 2026Head-Aware Key-Value Compression for Efficient Autoregressive Image Generation20 May 2026
- 2026RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cache8 May 2026
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference8 May 2026
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression7 May 2026
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objective28 Apr 2026
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction22 Apr 2026
- 2026ManifoldKV: Training-Free KV Cache Compression via Euclidean Outlier Detection9 Feb 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generation19 Jan 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025MixKVQ: Query-Aware Mixed-Precision KV Cache Quantization for Long-Context Reasoning22 Dec 2025
- 2025Taming the Fragility of KV Cache Eviction in LLM Inference15 Oct 2025
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocation11 Sep 2025
- 2025SpecVLM: Enhancing Speculative Decoding of Video LLMs via Verifier-Guided Token Pruning22 Aug 2025
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoning6 Mar 2025
- 2025Neural Attention Search18 Feb 2025
- 2025SpecVLM: Enhancing Speculative Decoding of Video LLMs via Verifier-Guided Token Pruningcited by 19
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
- 2025Taming the Fragility of KV Cache Eviction in LLM Inferencecited by 14
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Evictioncited by 4
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 4
- 2026RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cachecited by 4
- 2026ManifoldKV: Training-Free KV Cache Compression via Euclidean Outlier Detectioncited by 2
- 2025Neural Attention Searchcited by 1
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inferencecited by 1
- 2026KV Cache Compression Through the Lens of Transform Codingcited by 1
- 2026Trust the Mass: Forced Weights in KV-Cache Evictioncited by 1
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routingcited by 1
12 most cited of 16 All 16 (JSON)
- 2026Monte Carlo Estimation for KV Cache Eviction6 Oct 2026
- 2026OVAL: Output-Aware Local Page Bases for KV Cache Retrieval5 Oct 2026
- 2026When to Evict, Not What to Keep: Draft-Guided Eviction for Training-Free KV-Cache Compression27 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026Trust the Mass: Forced Weights in KV-Cache Eviction25 Aug 2026
- 2026KV Cache Compression Through the Lens of Transform Coding14 Aug 2026
- 2026AnchorKV: Anchor-Residual KV Cache Compression3 Aug 2026
- 2026RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cache8 May 2026
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference8 May 2026
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression7 May 2026
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction22 Apr 2026
- 2026ManifoldKV: Training-Free KV Cache Compression via Euclidean Outlier Detection9 Feb 2026
12 newest of 16 All 16 (JSON)
- 2025MixKVQ: Query-Aware Mixed-Precision KV Cache Quantization for Long-Context Reasoningcited by 8
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoningcited by 4
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objectivecited by 4
- 2026From Token Importance to Conditional Removability: Rethinking Visual Token Pruning in Multimodal Large Language Modelscited by 0
- 2026From Token Importance to Conditional Removability: Rethinking Visual Token Pruning in Multimodal Large Language Models22 Sep 2026
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objective28 Apr 2026
- 2025MixKVQ: Query-Aware Mixed-Precision KV Cache Quantization for Long-Context Reasoning22 Dec 2025
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoning6 Mar 2025
- 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
- 2026Head-Aware Key-Value Compression for Efficient Autoregressive Image Generationcited by 0
- 2026Parser States Already Know: Structure-Conditioned KV Persistence for Structured Generationcited by 0
- 2026ReSS: Residual-Restoring Sparse Attention for 3D Vision Transformerscited by 0
- 2026ReSS: Residual-Restoring Sparse Attention for 3D Vision Transformers28 Sep 2026
- 2026Parser States Already Know: Structure-Conditioned KV Persistence for Structured Generation28 Aug 2026
- 2026Head-Aware Key-Value Compression for Efficient Autoregressive Image Generation20 May 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026DeferKV: Rethinking Eviction Timing for One-Shot KV Cache Compression
- 2024CORM: Cache Optimization with Recent Message for Large Language Model Inference
- 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
- 2025KVSink: Understanding and Enhancing the Preservation of Attention Sinks in KV Cache Quantization for LLMs
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
- 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences
- 2026ReST-KV: Robust KV Cache Eviction with Layer-wise Output Reconstruction and Spatial-Temporal Smoothing
- 2025PackKV: Reducing KV Cache Memory Footprint through LLM-Aware Lossy Compression