mlsanityData to 14 Oct 2026

Training-Free Exponential Context Extension via Cascading KV Cache

arXiv 2406.17808 ↗First posted 24 Jun 2024cs.CL cs.AI cs.LGcited by 4

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

  1. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  2. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun

Other references · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2023Qwen Technical Reportcited by 3,344
  4. 2023Mistral 7Bcited by 3,164
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  7. 2020Reformer: The Efficient Transformercited by 1,668
  8. 2020Rethinking Attention with Performerscited by 1,601
  9. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  10. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  11. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  12. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
5 more
  1. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
  2. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
  3. 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
  4. 2023Compressed Context Memory For Online Language Model Interactioncited by 43
  5. 2023SEA: Sparse Linear Attention with Estimated Attention Maskcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
  2. 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
  3. 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inference
  4. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
  5. 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference
  6. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  7. 2025A3: Attention-Aware Accurate KV Cache Fusion for Fast Large Language Model Serving
  8. 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reuse