mlsanityData to 14 Oct 2026

Retrospective Sparse Attention for Efficient Long-Context Generation

arXiv 2508.09001 ↗First posted 12 Aug 2025cs.CL cs.AI cs.LGcited by 4

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Large Language Models (LLMs) are increasingly deployed in long-context tasks such as reasoning, code generation, and multi-turn dialogue. However, inference over extended contexts is bottlenecked by the Key-Value (KV) cache, whose memory footprint grows linearly with sequence length and dominates latency at each decoding step. While recent KV cache compression methods identify and load important few tokens, they focus predominantly on input contexts and fail to address the cumulative attention errors that arise during long decoding. In this paper, we introduce RetroAttention, a novel KV cache update technique that retrospectively revises past attention outputs using newly arrived KV entries from subsequent decoding steps. By maintaining a lightweight output cache, RetroAttention enables past queries to be efficiently supplemented with more contexts, while incurring minimal latency overhead. This breaks the fixed-attention-output paradigm and allows continual correction of prior approximations. Extensive experiments on long-generation benchmarks show that RetroAttention consistently outperforms state-of-the-art (SOTA) KV compression methods, increasing effective KV exposure by up to 1.6× and accuracy by up to 21.9%.

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 41 of its 45 references that are in the map. First posted on arXiv 12 Aug 2025.

Builds on

41 of 45 references.

Closest ancestors · 16

Same direction, newest first

  1. 2025Rectified Sparse Attention4 Jun
  2. 2025Hardware-Efficient Attention for Fast Decoding27 May
  3. 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention20 Feb
  4. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving2 Jan
  5. 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression4 Dec
  6. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection5 Nov
  7. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
  8. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  9. 2024CORM: Cache Optimization with Recent Message for Large Language Model Inference24 Apr
  10. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  11. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar
  12. 2023SparQ Attention: Bandwidth-Efficient LLM Inference8 Dec
4 more
  1. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  3. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  4. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 25

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  9. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  10. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  11. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  12. 2024A Survey on Large Language Models for Code Generationcited by 658
13 more
  1. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
  2. 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
  3. 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 152
  4. 2024Transformers are Multi-State RNNscited by 120
  5. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 116
  6. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 111
  7. 2024NanoFlow: Towards Optimal Large Language Model Serving Throughputcited by 90
  8. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 89
  9. 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 57
  10. 2024Post-Training Sparse Attention with Double Sparsitycited by 45
  11. 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
  12. 2024LongGenBench: Long-context Generation Benchmarkcited by 28
  13. 2025Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoningcited by 17

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. 2026Moment-KV: Momentum-Based Decode-Time KV Cache Compression for Long Generation
  2. 2026Sliding-window beats linear attention
  3. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads
  4. 2025A3: Attention-Aware Accurate KV Cache Fusion for Fast Large Language Model Serving
  5. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  6. 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
  7. 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference
  8. 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling