CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models (LLMs) excel at processing long sequences, boosting demand for key-value (KV) caching. While recent efforts to evict KV cache have alleviated the inference burden, they often fail to allocate resources rationally across layers with different attention patterns. In this paper, we introduce Cascading and Adaptive KV cache Eviction (CAKE), a novel approach that frames KV cache eviction as a "cake-slicing problem." CAKE assesses layer-specific preferences by considering attention dynamics in both spatial and temporal dimensions, allocates rational cache size for layers accordingly, and manages memory constraints in a cascading manner. This approach enables a global view of cache allocation, adaptively distributing resources across diverse attention mechanisms while maintaining memory budgets. CAKE also employs a new eviction indicator that considers the shifting importance of tokens over time, addressing limitations in existing methods that overlook temporal dynamics. Comprehensive experiments on LongBench and NeedleBench show that CAKE maintains model performance with only 3.2% of the KV cache and consistently outperforms current baselines across various models and memory constraints, particularly in low-memory settings. Additionally, CAKE achieves over 10x speedup in decoding latency compared to full cache when processing contexts of 128K tokens with FlashAttention-2. Our code is available at https://github.com/antgroup/cakekv.
Key facts. Cited by 58 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 41 of its 52 references that are in the map. First posted on arXiv 16 Mar 2025.
Builds on
41 of 52 references.
Closest ancestors · 11
Same direction, newest first
- 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLM8 Mar
- 2024No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantization28 Feb
- 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference14 Feb
- 2024On the Efficacy of Eviction Policy for Key-Value Constrained Generative Language Model Inference9 Feb
- 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 · 30
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Mistral 7Bcited by 3,164
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023A Survey of Large Language Modelscited by 2,576
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
18 more
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2023Benchmarking Large Language Models for News Summarizationcited by 445
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
- 2024Transformers are Multi-State RNNscited by 120
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 116
- 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 111
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
- 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains Morecited by 69
- 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
- 2023Sumformer: Universal Approximation for Efficient Transformerscited by 30
Built on by
Citing papers per year: 2025: 21; 2026: 37.
58 papers.
Sort:
By area:
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 126
- 2026Efficient Autoregressive Video Diffusion with Dummy Headcited by 20
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 19
- 2025ThinkLess: A Training-Free Inference-Efficient Method for Reducing Reasoning Redundancycited by 17
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
- 2026Past- and Future-Informed KV Cache Policy with Salience Estimation in Autoregressive Video Diffusioncited by 16
- 2025Head-Aware KV Cache Compression for Efficient Visual Autoregressive Modelingcited by 15
- 2025Taming the Fragility of KV Cache Eviction in LLM Inferencecited by 14
- 2025CAOTE: KV Cache Selection for LLMs via Attention Output Error-Based Token Evictioncited by 13
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Evictioncited by 11
- 2025OBCache: Optimal Brain KV Cache Pruning for Efficient Long-Context LLM Inferencecited by 10
- 2025Which Heads Matter for Reasoning? RL-Guided KV Cache Compressioncited by 10
38 more
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 10
- 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generationcited by 9
- 2026ReST-KV: Robust KV Cache Eviction with Layer-wise Output Reconstruction and Spatial-Temporal Smoothingcited by 9
- 2025NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cachecited by 7
- 2025LightVLM: Acceleraing Large Multimodal Models with Pyramid Token Merging and KV Cache Compressioncited by 7
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attentioncited by 7
- 2026Predicting Future Utility: Global Combinatorial Optimization for Task-Agnostic KV Cache Evictioncited by 6
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation frameworkcited by 5
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysiscited by 5
- 2026When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compressioncited by 5
- 2025Efficient Low Rank Attention for Long-Context Inference in Large Language Modelscited by 4
- 2026Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharingcited by 4
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Evictioncited by 4
- 2026RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cachecited by 4
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 4
- 2025Adaptive KV-Cache Compression without Manually Setting Budgetcited by 3
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026Adaptive Layer Selection for Layer-Wise Token Pruning in LLM Inferencecited by 3
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Modelscited by 3
- 2025Autoregressive Image Generation Needs Only a Few Lines of Cached Tokenscited by 2
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilationcited by 2
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inferencecited by 2
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compressioncited by 2
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routingcited by 2
- 2025CaliDrop: KV Cache Compression with Calibrationcited by 1
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modelingcited by 1
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Modelscited by 1
- 2026Hybrid Associative Memoriescited by 1
- 2026KV Cache Offloading for Context-Intensive Taskscited by 1
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inferencecited by 1
- 2026HACK++: Towards More Effective Head-Aware Key-Value Compression for Efficient Visual Autoregressive Modelingcited by 1
- 2026Exploring a Layer-Wise Design Space for KV Cache Evictioncited by 1
- 2026Adaptive Filtering of the KV Cache: Diagnosing and Correcting Structural-Role Bias in LLM Inferencecited by 1
- 2026RippleKV: Cross-Layer KV Cache Allocation via Perturbation Propagationcited by 1
- 2026KV-Kaizen: Learning Context-Adaptive Cache Compression Choicescited by 1
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
- 2026TGV-KV: Text-Grounded KV Eviction for Vision-Language Modelscited by 0
- 2026PReM: Learning What to Preserve and When to Refresh for Context Compressioncited by 0
50 most cited of 58 All 58 (JSON)
- 2026WakeKV: Reactive, Reversible KV Residency for Heads That Change Their Minds2 Oct 2026
- 2026KV-Kaizen: Learning Context-Adaptive Cache Compression Choices29 Sep 2026
- 2026Divergence Timing and Cumulative Disagreement under KV-Cache Eviction15 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026HeadWiseKV: Budgeted Per-Head Cache Residency for Hybrid Long-Context Language Models2 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Squeezing the Cache, Preserving the Truth: Monotonic Equipotential Allocation with Geodesia-KV19 Aug 2026
- 2026DistillCache: KL-Guided Adaptive KV-Cache Eviction for Memory-Efficient LLM Inference9 Aug 2026
- 2026RippleKV: Cross-Layer KV Cache Allocation via Perturbation Propagation9 Aug 2026
- 2026Training-Free Hashing-Based Attention via Binary Principal Components5 Aug 2026
- 2026DynaCalKV: Key-Value Cache Compression via Head Grouping and Adaptive Rank Allocation27 Jul 2026
- 2026PReM: Learning What to Preserve and When to Refresh for Context Compression15 Jul 2026
38 more
- 2026Adaptive Filtering of the KV Cache: Diagnosing and Correcting Structural-Role Bias in LLM Inference14 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference23 Jun 2026
- 2026Exploring a Layer-Wise Design Space for KV Cache Eviction13 Jun 2026
- 2026HACK++: Towards More Effective Head-Aware Key-Value Compression for Efficient Visual Autoregressive Modeling6 Jun 2026
- 2026TGV-KV: Text-Grounded KV Eviction for Vision-Language Models2 Jun 2026
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction10 May 2026
- 2026ReST-KV: Robust KV Cache Eviction with Layer-wise Output Reconstruction and Spatial-Temporal Smoothing9 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
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compression1 May 2026
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction22 Apr 2026
- 2026KV Cache Offloading for Context-Intensive Tasks9 Apr 2026
- 2026Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharing3 Apr 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Models4 Mar 2026
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilation9 Feb 2026
- 2026Predicting Future Utility: Global Combinatorial Optimization for Task-Agnostic KV Cache Eviction9 Feb 2026
- 2026Past- and Future-Informed KV Cache Policy with Salience Estimation in Autoregressive Video Diffusion29 Jan 2026
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysis29 Jan 2026
- 2026Efficient Autoregressive Video Diffusion with Dummy Head28 Jan 2026
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Models26 Jan 2026
- 2026Adaptive Layer Selection for Layer-Wise Token Pruning in LLM Inference12 Jan 2026
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving16 Dec 2025
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling10 Dec 2025
- 2025Autoregressive Image Generation Needs Only a Few Lines of Cached Tokens4 Dec 2025
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs3 Dec 2025
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attention29 Nov 2025
- 2025Efficient Low Rank Attention for Long-Context Inference in Large Language Models25 Oct 2025
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2025Taming the Fragility of KV Cache Eviction in LLM Inference15 Oct 2025
- 2025Which Heads Matter for Reasoning? RL-Guided KV Cache Compression9 Oct 2025
- 2025OBCache: Optimal Brain KV Cache Pruning for Efficient Long-Context LLM Inference9 Oct 2025
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference8 Oct 2025
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocation11 Sep 2025
- 2025Adaptive KV-Cache Compression without Manually Setting Budget3 Sep 2025
50 newest of 58 All 58 (JSON)
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 126
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 19
- 2025LAVa: Layer-wise KV Cache Eviction with Dynamic Budget Allocationcited by 16
- 2025Head-Aware KV Cache Compression for Efficient Visual Autoregressive Modelingcited by 15
- 2025Taming the Fragility of KV Cache Eviction in LLM Inferencecited by 14
- 2025CAOTE: KV Cache Selection for LLMs via Attention Output Error-Based Token Evictioncited by 13
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Evictioncited by 11
- 2025OBCache: Optimal Brain KV Cache Pruning for Efficient Long-Context LLM Inferencecited by 10
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 10
- 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generationcited by 9
- 2026ReST-KV: Robust KV Cache Eviction with Layer-wise Output Reconstruction and Spatial-Temporal Smoothingcited by 9
- 2025NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cachecited by 7
12 most cited of 38 All 38 (JSON)
- 2026WakeKV: Reactive, Reversible KV Residency for Heads That Change Their Minds2 Oct 2026
- 2026KV-Kaizen: Learning Context-Adaptive Cache Compression Choices29 Sep 2026
- 2026Divergence Timing and Cumulative Disagreement under KV-Cache Eviction15 Sep 2026
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing14 Sep 2026
- 2026Squeezing the Cache, Preserving the Truth: Monotonic Equipotential Allocation with Geodesia-KV19 Aug 2026
- 2026DistillCache: KL-Guided Adaptive KV-Cache Eviction for Memory-Efficient LLM Inference9 Aug 2026
- 2026RippleKV: Cross-Layer KV Cache Allocation via Perturbation Propagation9 Aug 2026
- 2026DynaCalKV: Key-Value Cache Compression via Head Grouping and Adaptive Rank Allocation27 Jul 2026
- 2026PReM: Learning What to Preserve and When to Refresh for Context Compression15 Jul 2026
- 2026Adaptive Filtering of the KV Cache: Diagnosing and Correcting Structural-Role Bias in LLM Inference14 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference23 Jun 2026
12 newest of 38 All 38 (JSON)
- 2025ThinkLess: A Training-Free Inference-Efficient Method for Reducing Reasoning Redundancycited by 17
- 2025Which Heads Matter for Reasoning? RL-Guided KV Cache Compressioncited by 10
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attentioncited by 7
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compressioncited by 2
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Modelscited by 1
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategiescited by 0
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compression1 May 2026
- 2026Towards Efficient Large Vision-Language Models: A Comprehensive Survey on Inference Strategies30 Mar 2026
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Models26 Jan 2026
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attention29 Nov 2025
- 2025Which Heads Matter for Reasoning? RL-Guided KV Cache Compression9 Oct 2025
- 2025ThinkLess: A Training-Free Inference-Efficient Method for Reducing Reasoning Redundancy21 May 2025
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation frameworkcited by 5
- 2025Efficient Low Rank Attention for Long-Context Inference in Large Language Modelscited by 4
- 2026Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharingcited by 4
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Modelscited by 3
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilationcited by 2
- 2026Hybrid Associative Memoriescited by 1
- 2026HACK++: Towards More Effective Head-Aware Key-Value Compression for Efficient Visual Autoregressive Modelingcited by 1
- 2026Training-Free Hashing-Based Attention via Binary Principal Componentscited by 0
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
- 2026HeadWiseKV: Budgeted Per-Head Cache Residency for Hybrid Long-Context Language Modelscited by 0
- 2026HeadWiseKV: Budgeted Per-Head Cache Residency for Hybrid Long-Context Language Models2 Sep 2026
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention20 Aug 2026
- 2026Training-Free Hashing-Based Attention via Binary Principal Components5 Aug 2026
- 2026HACK++: Towards More Effective Head-Aware Key-Value Compression for Efficient Visual Autoregressive Modeling6 Jun 2026
- 2026Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharing3 Apr 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026From Static Inference to Dynamic Interaction: A Survey of Streaming Large Language Models4 Mar 2026
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilation9 Feb 2026
- 2025Efficient Low Rank Attention for Long-Context Inference in Large Language Models25 Oct 2025
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation framework7 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objective
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2026Back from the Future: Key-Value Cache Management by Counter-Causal Surprise
- 2026IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMs
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference
- 2026TTKV: Temporal-Tiered KV Cache for Long-Context LLM Inference