Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval
Not on the map. Why?
Abstract (arXiv)
Why do language models fail on long inputs? The common answer is length. We show that, for retrieval, length is cheap and competition is not. On five open models (0.5B to 3B parameters, four families), neutral filler costs nothing: accuracy stays at 0.97 to 1.00, up to 32K tokens on Qwen2.5-1.5B. Statements in the format of the evidence, placed at the same positions, drop it to 0.16 to 0.33. A single statement that gives the queried key a rival value multiplies the loss by 9 to 110, and every additional rival adds to it. Inside the model, one quantity tracks the failure: the attention mass left on the evidence. Across 126,473 trials it explains up to 58% of the variance in loss; log length explains at most 8%. The masked-filler protocol behind the claim that length alone hurts reproduces on MMLU (11 to 18 points lost at 30K tokens), but fails a visible control in retrieval: masking costs 45 accuracy points at 32K tokens, while the same filler left visible costs none. In retrieval, context rot is a competition for attention. We release the probe and all 126K trial-level measurements.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 100 of its 104 references that are in the map. Submitted 3 Nov 2026.
Builds on
100 of 104 references.
References · 100
- 2017Attention Is All You Needcited by 62,125
- 2024The Llama 3 Herd of Modelscited by 16,114
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2024Qwen2.5 Technical Reportcited by 5,527
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,166
- 2022In-context Learning and Induction Headscited by 1,085
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 909
38 more
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 590
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 415
- 20242 OLMo 2 Furiouscited by 413
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 410
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 404
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 393
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 392
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 348
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 346
- 2024Massive Activations in Large Language Modelscited by 343
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 323
- 2024Knowledge Conflicts for LLMs: A Surveycited by 320
- 2024The Power of Noise: Redefining Retrieval for RAG Systemscited by 300
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 299
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 272
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 251
- 2022Memorizing Transformerscited by 247
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 247
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 236
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 230
- 2024Many-Shot In-Context Learningcited by 223
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 187
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 171
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 154
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 150
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 145
- 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 142
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 139
- 2025Why do LLMs attend to the first token?cited by 139
- 2024ClashEval: Quantifying the tug-of-war between an LLM's internal prior and external evidencecited by 133
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 122
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 116
- 2024Michelangelo: Long Context Evaluations Beyond Haystacks via Latent Structure Queriescited by 109
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 100
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 80
50 most cited of 100 All 100 (JSON)
Built on by
Not cited yet.