All papersLLMs & Language ModelsUniversity of California San Diego

Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval

/ Paper arXiv 2611.04169

Key numbers

58%Across 126,473 trials it explains up to 58% of the variance in loss
8%log length explains at most 8%
3B0.5B to 3B parameters

From the paperCopied from the abstract, not written by AI.

Abstract

From the paperThe authors' own words.

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.

From the full paper

From the paperCopied from the paper itself by our code.

Reading the paper on arXiv…

Where it fits

The most cited papers it builds on, and the papers that build on it.

/ Builds on 3 most cited

  1. 2017201.4k citedAttention is All you Need ↗
  2. 202420.7k citedThe Llama 3 Herd of Models ↗
  3. 202020.6k citedRetrieval-Augmented Generation for Knowledge-Intensive NLP Tasks ↗

/ Built on by None yet

No papers cite it yet. We check again every week.

From Semantic Scholar, updated weekly.

Try it

Code, models and demos that use this paper.

Datasets:
yliusci/length-is-cheap ↗1 dataset on Hugging Face

Ask this paper

/ Ask a questionAnswers come from the full paper and name the section

    / Your notes

    Select text in the abstract to highlight it or add a note. They stay in this browser.

      Read the PDF