mlsanityData to 14 Oct 2026

Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval

arXiv 2503.09819 ↗First posted 12 Mar 2025cs.CLcited by 5

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Large Language Models (LLMs) often exhibit substantially shorter effective context lengths than their claimed capacities, especially when handling complex reasoning tasks that require integrating information from multiple parts of a long context and performing multi-step reasoning. Although Chain-of-Thought (CoT) prompting has shown promise in reducing task complexity, our empirical analysis reveals that it does not fully resolve this limitation. Through controlled experiments, we identify poor recall of implicit facts as the primary cause of failure, which significantly hampers reasoning performance. Interestingly, we observe that the internal attention weights from the generated CoT tokens can effectively ground implicit facts, even when these facts are not explicitly recalled. Building on this insight, we propose a novel training-free algorithm, Attrieval, which leverages attention weights to retrieve relevant facts from the long context and incorporates them into the reasoning process. Additionally, we find that selecting context tokens from CoT tokens further improves performance. Our results demonstrate that Attrieval enhances long-context reasoning capability notably on both synthetic and real-world QA datasets with various models.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 29 of its 37 references that are in the map. First posted on arXiv 12 Mar 2025.

Builds on

29 of 37 references.

References · 29

  1. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  3. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  4. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  5. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  6. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
  7. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  8. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  9. 2023Active Retrieval Augmented Generationcited by 516
  10. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
  11. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  12. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
17 more
  1. 2022Memorizing Transformerscited by 226
  2. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  3. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 206
  4. 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Modelscited by 184
  5. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
  6. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
  7. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
  8. 2024Make Your LLM Fully Utilize the Contextcited by 119
  9. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 76
  10. 2024Sparser is Faster and Less is More: Efficient Sparse Attention for Long-Range Transformerscited by 52
  11. 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
  12. 2022Retrieval as Attention: End-to-end Learning of Retrieval and Reading within a Single Transformercited by 45
  13. 2024Large Language Models Can Self-Improve in Long-context Reasoningcited by 29
  14. 2024Making Long-Context Language Models Better Multi-Hop Reasonerscited by 26
  15. 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answeringcited by 26
  16. 2024Model Tells Itself Where to Attend: Faithfulness Meets Automatic Attention Steeringcited by 17
  17. 2024Long Context is Not Long at All: A Prospector of Long-Dependency Data for Large Language Modelscited by 16

Built on by

Cited by year (2026 to 14 Oct)

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

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models
  2. 2024Extending Token Computation for LLM Reasoning
  3. 2025Chain-of-Thought Matters: Improving Long-Context Language Models with Reasoning Path Supervision
  4. 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding
  5. 2025Longer Context, Deeper Thinking: Uncovering the Role of Long-Context Ability in Reasoning
  6. 2026Attention-guided Fine-tuning of Multimodal Large Language Models Improves Chain-of-Thought Reasoning
  7. 2025Unveiling Reasoning Thresholds in Language Models: Scaling, Fine-Tuning, and Interpretability through Attention Maps
  8. 2026A State-Transition Framework for Efficient LLM Reasoning