Skip to content

Low length cost, high competition cost: attention predicts context rot in retrievalLength Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval

Hugging Face Daily Papers· arXiv:2611.04169· Yinuo LiuDepartment of Computer Science and Engineering, University of California San DiegoIndexed by this site · 19 days ago· Originally publishedAlignment

Translation in progress — untranslated text is omitted.

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

AI summaryFailures in long-context retrieval stem mainly from evidence competition rather than text length, and the quality of attention that the model internally keeps on the evidence predicts the size of the loss. In a key-value retrieval task, 32K tokens of neutral text barely affected the accuracy of Qwen2.5-1.5B (0.97 to 1.00); filling the same positions with evidence-format statements lowered accuracy to 0.11 to 0.21, and a single statement providing a competing value for the queried key amplified the loss by 9 to 110 times. Attention quality explained up to 58% of the variance in loss (126,473 trials), while log length explained up to 8%. The authors also reproduced the masked-filling protocol of Du et al. (2025) on MMLU, showing that in the retrieval task the same masking lost 46 accuracy points at 32K tokens, whereas visible filler caused no loss.

Questions
Long-context retrieval accuracy declines as input grows longer (context rot), and the mainstream explanation attributes this to length itself. The authors argue that length never grows alone, and the real problem may be that content competes with the evidence for attention.
Methods
On the key-value retrieval task, fix the length and evidence position, change only the content surrounding the evidence (no filler, neutral text, same-format competing statements, masked filler), record per trial both the log probability of the correct value and the attention mass a* on the evidence, and reproduce the masked-filler protocol of Du et al.
Experiments and results
Neutral filler causes almost no loss (accuracy 0.97–1.00), competing statements push accuracy down to 0.11–0.21; log(1/a*) explains 35–58% of the loss variance, while log length explains only 2–8%; masked filler loses 46 accuracy points on retrieval while visible filler causes no loss.
Limitations and future work
The authors point out that the evidence is predictive rather than causal (no intervention was performed on a*); the results come from a single synthetic task and models of at most 3B (the MMLU reproduction includes one 7B model); above 2K tokens, only the effect of same-format competitors was not tested; MMLU has no visible-filler control above 4K.
Read originalhuggingface.co