A model that accepts a million tokens does not use a million tokens equally well. Here is what the term means, what the studies measured, and what to do about it.
The short version: context rot is the drop in an LLM's accuracy as its input gets longer, even when the task stays just as easy and the answer is still in the prompt. The term was popularized in mid-2025 by a Chroma technical report that tested 18 models on length-controlled tasks and found performance "grows increasingly unreliable as input length grows." Proposed causes include attention spread across more token pairs, training data that skews short, weak recall in the middle of long inputs, and distractors that look like the answer. The practical fix is to send the model less: retrieve, compact, or decompose the input so each call sees a short, focused context.
It names a gap between two numbers on a model card: how many tokens a model accepts, and how many it can use reliably. A model with a 1M-token window will take a 900K-token prompt without error. Context rot is the observation that its answers on that prompt are worse than its answers on the same question with a short prompt.
The phrase spread through practitioner talk about long chat sessions and bloated coding-agent histories before it had a formal definition. Chroma's July 2025 report, "Context Rot: How Increasing Input Tokens Impacts LLM Performance" by Kelly Hong, Anton Troynikov, and Jeff Huber, gave it a measured one. Anthropic's context engineering guide uses a short version: "as the number of tokens in the context window increases, the model's ability to accurately recall information from that context decreases," and adds that the effect "emerges across all models," some more gently than others.
Alex Zhang, first author of the RLM paper, argues in his blog post that the recall definition "doesn't fully hit the mark," because frontier models score well on retrieval benchmarks like RULER and still feel worse as a conversation grows. A working definition that covers both: context rot is any loss of accuracy that comes from input length itself, separate from task difficulty.
Four lines of work, each controlling for a different confound.
The RLM paper (Zhang, Kraska, and Khattab) uses this as its starting point. It says frontier reasoning models "tend to exhibit context rot," citing Chroma, and its Figure 1 scales inputs from 2^13 to 2^20 tokens (about 8K to 1M). GPT-5 "degrades significantly as a function of both input length and task complexity."
Nobody has one confirmed cause. These are the mechanisms the sources propose, and the evidence behind each.
One Chroma result does not fit a simple story. Models did better when the haystack sentences were shuffled than when they kept their logical flow, across all 18 models. Context rot depends on what fills the window, not only how much. For the deeper case that dense tasks break attention, see why context windows are the wrong abstraction.
Chroma's LongMemEval experiment is the closest thing to a production chat assistant. It used 306 questions about a user's chat history. Each question had two versions:
Same question, same facts, same model. Across all models, the report found "significantly higher performance on focused prompts." Thinking modes helped on both versions but did not close the gap. Claude models showed the widest gap, mostly from abstaining: Claude Sonnet 4 answered a date-difference question by saying the dates "are not provided in the chat history," when they were.
The lesson for anyone building on long histories: the full prompt makes the model do two jobs at once, find the relevant turns and then reason over them. The focused prompt only asks for the second.
Every working fix shrinks what one model call has to read. They differ in who decides what to keep, and when.
A short checklist before you send a long prompt:
Context rot is the measured fact that a model's accuracy depends on how long its input is, not just on whether the answer is in it. Four independent studies from 2023 to 2025 show the drop, from position bias to plain length effects on trivial tasks. The causes are still debated. The fix is not. Keep each model call short and focused, and let retrieval, compaction, or recursion decide what goes in.
No source we found shows who first used the phrase. Chroma's July 2025 technical report by Hong, Troynikov, and Huber gave it a measured definition across 18 models. Anthropic and the RLM authors both cite that framing.
No. RULER found that only half of models claiming 32K or more tokens kept satisfactory performance at 32K. A larger window raises the hard limit but does not stop accuracy from falling well before it.
They reduce it but do not remove it. Chroma found thinking modes improved both short and long versions of LongMemEval questions, yet the gap between them stayed. NoLiMa reported that reasoning models and chain-of-thought prompting still struggled at long lengths.
Lost in the middle is one part of it. It describes recall that depends on where a fact sits in the prompt. Context rot is broader and includes drops from length alone, distractors, and weak semantic matching.
Run the same questions twice: once with the full input and once with only the relevant passages. Hold the model and prompt template fixed. A large accuracy gap between the two runs is context rot in your workload.