Context Rot and Its Limits: Why Input Length Doesn't Explain Ignored Goals
Updated
Knowledge on this page was mainly distilled from Do LLMs Understand Context? Context Rot Doesn't Explain Why Your Goals Get Ignored.
Context rot is the measured drop in an LLM's performance as its input gets longer. The information is still in the context window, but the model uses it less reliably the more text surrounds it, even on simple tasks and long before the window is full. The effect is real and well documented. But volume alone cannot explain why a goal sitting in the context window gets ignored, and that is the part that matters for product work.
What the research shows
Chroma tested 18 models, and performance fell with longer input in every experiment they ran. In one, models answered questions about a long chat history far better when given only the roughly 300 tokens that mattered than when given the full history of about 113,000 tokens with the same information inside it. Earlier, a team led by Stanford researchers described being "lost in the middle": models use what sits at the start or end of a long input well and neglect what sits in the middle. Anthropic's engineers describe models as having an "attention budget" they draw on as context grows. So the usual fixes target volume: shorter sessions, summaries, fresh starts.
The counterexample: a reminder that added length
Mvrckhckr asked a model to help reduce overwhelm for an app's users. The app's purpose was written in an intent file loaded into every session, so nothing was missing. The suggestions were sensible, yet some cut the very things the app exists to do. When he reminded the model of the part of the goal being cut, the next answer respected it.
That reminder made the input longer and told the model nothing new. If volume were the whole story, it should have changed nothing or made the answer slightly worse. It made the answer right. Something other than length decided whether the goal counted. Where the reminder sat, at the end beside the request, is part of it. And Chroma's authors state plainly that their report does not explain the mechanism even behind the drop they measured.
Relevance matching, not just length
Two findings point to what else is at work. Chroma observed that the less a question resembled the passage holding its answer, the faster performance fell as input grew. And Boolean ran coding tasks after loading hundreds of thousands of tokens of extra material into models. Material from an unrelated project barely moved Claude Opus 5, but material about the task's own tools and code dropped its pass rate from 50% to about 40%. GPT-5.6 Sol fell too, though it lost about as much to the unrelated material. More text about the right subject made results worse.
This fits how attention weighs earlier tokens: by how well they match the current position, which is shaped by the request. A request about screens, steps and clutter matches other material about clutter and barely matches a statement of purpose. The goal is present, but it loses the match.
Why bigger windows won't close the gap
A bigger window holds more text, and the goal would still be one passage among many, with nothing ranking it above the rest for the task at hand. Volume fixes can ease context rot, but they do not supply what decided the outcome in the reminder case: which part of the goal matters for this particular request.
Q&A
Does context rot only appear when the context window is nearly full?
No. Context rot shows up long before the window is full and even on simple tasks. Chroma found performance fell with longer input in every experiment across 18 models, including a case where the full input was about 113,000 tokens, well within modern window sizes.
Are shorter sessions, summaries, and fresh starts still worth using?
They address the volume side of context rot, which is real. But they do not tell the model which part of your goal outranks the rest for a given request. A short session can still let a goal lose to material that matches the request more closely.
Why would related material hurt more than unrelated material?
Because attention follows similarity to the current request. Related material, like a task's own tools and code, competes directly with the passage that matters, while unrelated material matches less. In Boolean's test, related material dropped Claude Opus 5 from a 50% pass rate to about 40%, while unrelated material barely moved it.
What does 'lost in the middle' mean?
It is a pattern found by a team led by Stanford researchers: models use information at the start or end of a long input well and neglect information in the middle. It helps explain why where a goal sits in the input affects whether it shapes the answer.
Does the context rot research explain why performance drops?
Not fully. Chroma's authors state plainly that their report does not explain the mechanism behind the drop they measured. Their observation that performance falls faster when a question resembles its answer passage less is a clue that relevance matching, not just length, is involved.