Breaking Down Context Rot in LLMs
Long conversations are said to wear language models down, but standard evalu-ations confound accumulation (more context) with dilution (the answer-bearingtokens becoming a smaller, more distant, more contested fraction of it). We separatethem in streams of localized tasks, each answerable from its own question, whereaccumulation grows the context without diluting anything the current answer needsand a span-attention clamp sets any span’s attention share directly. All experimentsrun on OLMo-2-7B-Instruct. Accumulation alone costs nothing: accuracy and instruction adherence stay flat to90% fill, with declines larger than 2.9 and 5.5 points excluded at 95%. That nullis the paper’s starting point: three other things in a growing context do cost, andlength is only the usual way of causing them at once. Displacement, moving atask’s evidence back into the context, costs accuracy, and removing the evidence’sattention mass with nothing else moved reproduces the full penalty, smoothlyand without a threshold. Competition, near-duplicate context, costs a further 8.5points while the evidence’s attention barely moves; closing every context mentionof the answer options recovers 56% against a random-closure control at zero,placing the cost on the competitors rather than the evidence. Precedent, fillerthat demonstrates an applicable answer shape, erodes an instructed output formatcompletely (0.875 → 0.000 within three filler turns, accuracy unharmed) while theinstruction’s attention holds and its content stays linearly decodable. The same closure that rescues competition restores nothing for precedent—competition is generation-time reading, while the precedent mode is set at prefill,its carrier localized to the chat template’s delimiter tokens in the lower half of thestack. All of it replicates on Qwen2.5-7B-Instruct except competition (penaltygone, attention signature inverted) and the erosion (staged, not total). Context rotin localized streams is displacement, competition, and precedent, and only the firstis attention dilution proper.
Authors
- Justin C. Shenk (ORCID: https://orcid.org/0000-0002-0664-7337)
- Ronen Raj Roy
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24687544
- Primary Topic
- Topic Modeling
- Type
- preprint