Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
yliusci 
posted an update about 1 month ago
Post
94
New paper: Length Is Cheap, Competition Is Not 📄

Why do LLMs fail on long inputs? For retrieval, our answer is: not because of length.

• 32K tokens of neutral text: Qwen2.5-1.5B keeps 0.97–1.00 accuracy
• Same positions, statements in the evidence format: 0.11–0.21
• One rival value for the queried key: loss ×9 to ×110

The attention mass left on the evidence predicts the loss (up to 58% of variance, 126K trials). Log length: at most 8%.

Paper: Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval (2611.04169)

Data (all 126K trials): yliusci/length-is-cheap

Feedback very welcome, especially on larger models.

Your attention result survives the obvious confound. And the data says something sharper than the pooled R².

I pulled c2_nconf_sample (20,193 trials, rival count rebuilt from seed) to check whether log(1/a*) is just a readout of "a rival is in context".
It isn't. Rival-count dummies alone explain 0.10 to 0.24 of loss variance per model. Add a* and it rises to 0.35 to 0.66, close to a*'s solo R².

But almost all of that variance lives in rival trials.
77% of the sample has at least one rival, and those trials carry 85 to 93% of the loss sum of squares.
With no rival, mean loss is 0.02 to 0.34 nats and a* explains 2 to 10%.

On the full c2_attention I got your numbers back (attention 0.35 to 0.58, log length 0.02 to 0.08).
Fixing (n_distractors, L) cells barely moves it: within-cell 0.34 to 0.57. The explicit distractor count explains under 1%.

So in your data, "attention predicts context rot" reads as "attention predicts which rival wins". That's a cleaner claim, not a weaker one.

When a* drops, does the missing mass land on the rival sentence itself, or spread across the other near_distractors?