Training-Free Exponential Context Extension via Cascading KV Cache
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
The transformer's context window is vital for tasks such as few-shot learning and conditional generation as it preserves previous tokens for active memory. However, as the context lengths increase, the computational costs grow quadratically, hindering the deployment of large language models (LLMs) in real-world, long sequence scenarios. Although some recent key-value caching (KV Cache) methods offer linear inference complexity, they naively manage the stored context, prematurely evicting tokens and losing valuable information. Moreover, they lack an optimized prefill/prompt stage strategy, resulting in higher latency than even quadratic attention for realistic context sizes. In response, we introduce a novel mechanism that leverages cascading sub-cache buffers to selectively retain the most relevant tokens, enabling the model to maintain longer context histories without increasing the cache size. Our approach outperforms linear caching baselines across key benchmarks, including streaming perplexity, question answering, book summarization, and passkey retrieval, where it retains better retrieval accuracy at 1M tokens after four doublings of the cache size of 65K. Additionally, our method reduces prefill stage latency by a factor of 6.8 when compared to flash attention on 1M tokens. These innovations not only enhance the computational efficiency of LLMs but also pave the way for their effective deployment in resource-constrained environments, enabling large-scale, real-time applications with significantly reduced latency.
Key facts. Cited by 4 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 20 of its 24 references that are in the map. First posted on arXiv 24 Jun 2024.
Builds on
20 of 24 references.
Closest ancestors · 3
Same direction, newest first
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
Other references · 17
- 2017Attention Is All You Needcited by 60,361
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Qwen Technical Reportcited by 3,344
- 2023Mistral 7Bcited by 3,164
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 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
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
5 more
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2023Compressed Context Memory For Online Language Model Interactioncited by 43
- 2023SEA: Sparse Linear Attention with Estimated Attention Maskcited by 10
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generationcited by 90
- 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compressioncited by 7
- 2026Towards Infinite Length Extrapolation: A Unified Approachcited by 0
- 2026Non-Monotonic Latency in Apple MPS Decoding: KV Cache Interactions and Execution Regimescited by 0
- 2026Non-Monotonic Latency in Apple MPS Decoding: KV Cache Interactions and Execution Regimes9 May 2026
- 2026Towards Infinite Length Extrapolation: A Unified Approach3 Jan 2026
- 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generation11 Jun 2025
- 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compression6 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
- 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
- 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inference
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2025A3: Attention-Aware Accurate KV Cache Fusion for Fast Large Language Model Serving
- 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reuse