Long Context Is Not the Main Problem—Attention Competition Is
Long-context failure is often described as a simple consequence of token count: as an input grows, the model supposedly loses track of information buried inside it. The paper “Length Is Cheap, Competition Is Not” offers a more specific account for retrieval tasks. Its central claim is that the decisive factor is not length alone, but competition among evidence-like statements for the model’s attention.
Introduction: 32K tokens are not automatically toxic
The researchers built a key-value retrieval benchmark and tested five open models spanning four model families, with sizes from 0.5B to 3B parameters. They compared several kinds of filler while keeping the target evidence in comparable positions. On Qwen2.5-1.5B, adding neutral, task-irrelevant text up to 32K tokens left accuracy between 0.97 and 1.00. In other words, a longer input was not by itself enough to trigger a major failure.
Main findings
- Evidence-shaped filler is much more damaging. When the same positions were filled with statements written in the format of the evidence, accuracy fell to roughly 0.16–0.33. An additional description of the experiment reports a 0.11–0.21 range under another setting. The absolute values vary by configuration, but the pattern is consistent: semantically and structurally similar distractors are more harmful than neutral text.
- Conflicting values intensify the problem. A single statement assigning the queried key a rival value multiplied the loss by 9 to 110. Adding more rivals increased the damage further, suggesting that retrieval becomes harder as the number of plausible candidates grows.
- Attention is a stronger diagnostic than length. Across 126,473 trials, the attention mass left on the target evidence explained up to 58% of the variance in loss. By comparison, log context length explained at most 8%. This is a correlation, not proof that attention is the sole causal mechanism, but it offers a more informative signal for analyzing failures.
- Masked-filler results can be misleading. The authors reproduce a masked-filler protocol on MMLU, where performance drops by about 11 to 18 points at 30K tokens. In their retrieval control, however, masking the filler at 32K tokens costs roughly 45 accuracy points, while leaving the same filler visible costs essentially nothing. Masking therefore changes what the model can process; it should not automatically be interpreted as a pure test of length.
Why it matters—and what remains uncertain
For retrieval-augmented generation and long-document question answering, the practical lesson is to manage competition, not just expand the context window. Deduplicating passages, separating contradictory claims, preserving provenance, and reducing repeated evidence formats may be as important as increasing the token budget. Internal attention measurements could also help identify whether a model actually retained the relevant passage before generation.
The claim should still be interpreted within its boundaries. The experiments center on one synthetic retrieval task and models up to 3B parameters. The attention analysis is correlational and does not establish that directly manipulating attention would restore accuracy. “Competition matters more than length” is therefore a useful hypothesis and diagnostic framework, not yet a universal law of long-context behavior.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...