Retrospective Sparse Attention for Efficient Long-Context Generation
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
- 2025Rectified Sparse Attention4 Jun
- 2025Hardware-Efficient Attention for Fast Decoding27 May
- 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention20 Feb
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving2 Jan
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression4 Dec
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection5 Nov
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024CORM: Cache Optimization with Recent Message for Large Language Model Inference24 Apr
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference14 Mar
- 2023SparQ Attention: Bandwidth-Efficient LLM Inference8 Dec
4 more
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
- 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 · 25
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2024A Survey on Large Language Models for Code Generationcited by 658
13 more
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
- 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 152
- 2024Transformers are Multi-State RNNscited by 120
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 116
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 111
- 2024NanoFlow: Towards Optimal Large Language Model Serving Throughputcited by 90
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 89
- 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 57
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
- 2024LongGenBench: Long-context Generation Benchmarkcited by 28
- 2025Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoningcited by 17
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025PDTrim: Targeted Pruning for Prefill-Decode Disaggregation in Inferencecited by 14
- 2025HyperAdaLoRA: Accelerating LoRA Rank Allocation During Training via Hypernetworks without Sacrificing Performancecited by 10
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocationcited by 3
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generationcited by 0
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026Attention Needs to Focus: A Unified Perspective on Attention Allocation1 Jan 2026
- 2025HyperAdaLoRA: Accelerating LoRA Rank Allocation During Training via Hypernetworks without Sacrificing Performance3 Oct 2025
- 2025PDTrim: Targeted Pruning for Prefill-Decode Disaggregation in Inference29 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026Moment-KV: Momentum-Based Decode-Time KV Cache Compression for Long Generation
- 2026Sliding-window beats linear attention
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads
- 2025A3: Attention-Aware Accurate KV Cache Fusion for Fast Large Language Model Serving
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling