What is context rot, and why does AI get worse the more you give it?
Context rot is the measured drop in accuracy that language models suffer as their input grows, and it begins long before the context window is full. On the NoLiMa benchmark, 11 of 13 models scored below half their short-context baseline at just 32,000 tokens, and GPT-4o fell from 99.3% to 69.7%. The fix is not a bigger window. It is putting less in the window: retrieve the passages that actually bear on the question, and cite each claim back to the document it came from, so the answer stays checkable no matter how much material sits behind it.
Updated

What is context rot?
Context rot is the tendency of a language model to become less reliable as the amount of text you give it grows. Ask a short question about a short document and you get a careful answer. Ask the same question with sixty pages of background attached and the answer gets vaguer, misses things that are plainly in the text, or confidently states something the documents contradict.
The term came out of a Hacker News discussion in June 2025 and was formalised a month later by Chroma, whose technical report evaluated 18 models including GPT-4.1, Claude 4, Gemini 2.5 and Qwen3. Their finding was blunt: models do not use their context uniformly, and reliability falls as input length rises even on tasks as simple as retrieving or copying a sentence.
The most important thing to understand is what context rot is not. It is not running out of room. A model with a 200,000-token window can degrade badly at 50,000 tokens, with three quarters of the window still empty. Nothing overflows, nothing is truncated, no error appears. The answer just quietly gets worse.
How much accuracy do you actually lose?
Enough that it changes how you should work. The NoLiMa benchmark from Adobe Research, published at ICML 2025, tested 13 models that all advertise support for 128,000 tokens or more. At 32,000 tokens, a quarter of the smallest window they claim, 11 of the 13 scored below half of their own short-context baseline. GPT-4o went from 99.3% to 69.7%.
What NoLiMa isolated is why. Standard needle-in-a-haystack tests hide a sentence that shares obvious wording with the question, so a model can succeed by literal matching. Remove that overlap, and force the model to make the connection itself, and long-context performance falls apart. Real work is almost entirely the second kind: the contract does not use the same word as your question, and the answer usually requires joining two facts from different pages.
That is the part worth internalising. Degradation is not uniform across tasks. Simple lookups hold up longest; reasoning that has to travel between distant parts of the input degrades fastest. The harder your question, the earlier context rot arrives.
Why doesn't a bigger context window fix it?
Because the window is a resource to manage, not a number to maximise. Every token you add competes for the model's attention with every other token, and that attention is not spread evenly.
The pattern was documented before the term existed. The Lost in the Middle study found that models use information best when it sits at the very start or the very end of a long input, and measurably worse when it is buried in the middle. Chroma's report extended this: the position of relevant information, the presence of plausible-looking distractors, and even how coherently the surrounding text reads all change the result. More context is not neutral. Irrelevant material actively costs you accuracy on the material that matters.
So the intuitive response to a disappointing answer, which is to paste in more background, is often the thing making it worse.
What actually works: put less in the window
The 2026 default is hybrid, and it inverts the instinct. Instead of loading everything and hoping the model finds the relevant part, you find the relevant part first and load only that, then let the model reason over a much smaller, denser input.
In practice that means three habits. Scope the question to the documents that can actually answer it rather than the whole archive. Prefer retrieving passages over pasting files, so a hundred-page contract contributes the two clauses that matter rather than a hundred pages of noise. And keep a working session focused on one line of enquiry, because a long conversation is itself a long context and rots the same way.
This is what retrieval-augmented generation is for, and it is why the choice between long context and retrieval turned out not to be a choice: you want the retrieval step precisely so the reasoning step gets a short, dense input.
Why citations are what survive context rot
Here is the honest part that most write-ups skip. Retrieval reduces the error rate. It does not take it to zero. Stanford's RegLab benchmarked purpose-built, retrieval-grounded legal research tools and still measured hallucination in 17% to 34% of queries. Better context is necessary and it is not sufficient.
Which is exactly why the citation matters more than the confidence. A cited answer gives you something that does not depend on the model having been right: a link to the passage it drew from, which you can open and read in ten seconds. If the passage says what the answer says, you are done. If it does not, you caught it. Either way you did not have to trust anything.
That is the practical defence against context rot, and it is also the difference between a tool that makes you faster and a tool that makes you dependent. You keep the judgment. The machine does the gathering, at whatever scale, and shows its work so you can check it.
FAQ
- Is context rot the same as running out of context window?
- No, and confusing the two is the most common mistake. Running out of window is a hard limit: content beyond it is truncated and the model never sees it. Context rot happens well inside the limit, with the window nowhere near full. Nothing is dropped and no error is raised. The model simply uses long input less reliably than short input.
- At what length does context rot start?
- There is no clean threshold, and that is part of the problem. Measurable degradation appears in the low tens of thousands of tokens on hard tasks: NoLiMa found 11 of 13 models below half their baseline at 32,000 tokens. Simple lookups hold up considerably longer. Assume the effect starts earlier than you would like, and scales with how much reasoning the question needs.
- Does a one-million-token context window solve context rot?
- It raises the ceiling, not the reliability. A larger window lets you fit more in, but the same non-uniform attention applies to whatever you put there, so filling a million tokens can produce a worse answer than a well-chosen twenty thousand. Treat window size as capacity, not as quality.
- How do I reduce context rot in my own work?
- Give the model less and make it more relevant. Scope each question to the documents that can answer it, retrieve specific passages instead of pasting whole files, and start a fresh session when the topic changes rather than letting one conversation run for hours. Then check the citations, because a shorter context improves the odds without guaranteeing the result.
- Does retrieval-augmented generation eliminate context rot?
- It mitigates it substantially by keeping the input small and relevant, but it does not eliminate error. Stanford's RegLab measured 17% to 34% hallucination rates in retrieval-grounded legal AI tools. Retrieval improves the input; citations let you verify the output. You want both.
Sources
- Hong, Troynikov & Huber, "Context Rot: How Increasing Input Tokens Impacts LLM Performance", Chroma Research (2025)
- Modarressi et al., "NoLiMa: Long-Context Evaluation Beyond Literal Matching", Adobe Research (ICML 2025)
- Liu et al., "Lost in the Middle: How Language Models Use Long Contexts" (TACL 2024)
- Stanford HAI / RegLab: Assessing the Reliability of Leading AI Legal Research Tools (2024)
Related guides

AI context window
An AI context window is the maximum amount of text, measured in tokens, a model can consider at once. Here is what it means for working with long documents.
Read the article
Give AI the right context
AI forgets because each chat starts blank and only sees what fits its context window. The fix: give it persistent, retrievable, cited context from your own documents.
Read the article
Chat with your documents
Chatting with your documents means uploading your files and asking questions in plain language. Tatsulok answers with citations to the exact source, privately.
Read the article