Context Rot Across Models
Long-context benchmarks test different skills. Compare model-specific evidence from NoLiMa, RULER, MRCR, and conversational memory evaluations before choosing a context budget.
The Problem This Solves
A model can retrieve a quoted sentence from a long document and still fail to connect that sentence to your question. A single “effective context length” hides that distinction. The Context Rot pattern describes performance loss as context grows; this guide examines what the measurements actually establish. I’d choose a model on evidence matching the application’s task.
Benchmarks Measure Different Work
The familiar needle-in-a-haystack test inserts a fact into unrelated text and asks the model to retrieve it. Repeated keywords can make the relevant passage easy to find, even in an enormous document; removing those cues asks more of the model.
| Evaluation | What the model must do | What to examine |
|---|---|---|
| NoLiMa | Find a fact through an association with minimal word overlap | Short-context baseline, associative reasoning, distractors |
| RULER | Retrieve information, trace variables, aggregate words, answer questions | Task breakdown and the chosen effective-length threshold |
| OpenAI MRCR | Recover a specified occurrence among repeated requests in a conversation | Needle count, length bin, response-matching score |
| Chroma’s LongMemEval experiment | Answer questions about conversation history | Focused versus full history, wrong answers versus abstentions |
NoLiMa tests retrieval with little word overlap. One published example asks, “Which character has been to Dresden?” The fact says that Yuki lives beside the Semper Opera House, so the model needs world knowledge to link the question to the answer. A failure can involve missing that link as well as finding the passage; the short-context baseline helps tell these problems apart.
The original RULER suite uses 13 task configurations across four categories, with reported effective lengths measured against the Llama 2 7B chat model’s 4K score of 85.6%. NoLiMa instead uses 85% of each model’s own short-context base score, so the same label describes different thresholds.
A Comparison With a Shared Test
NoLiMa’s Table 3 gives a comparison where models share a task set and test procedure; the base score averages each question-needle pair’s best result across 250, 500, and 1K tokens, after averaging over haystacks. These are historical measurements. Appendix B lists the tested versions and deployment details, which matter when comparing them with other published scores.
| Model label in NoLiMa | Base score | Accuracy at 32K | NoLiMa effective length |
|---|---|---|---|
| GPT-4o | 99.3% | 69.7% | 8K |
| Claude 3.5 Sonnet | 87.5% | 29.8% | 4K |
| Gemini 1.5 Pro | 92.6% | 48.2% | 2K |
| Llama 3.1 8B | 76.7% | 14.2% | 1K |
| Llama 3.1 70B | 94.5% | 43.2% | 2K |
| Llama 3.1 405B | 94.7% | 38.0% | 2K |
| Mistral Large 2 | 87.9% | 18.8% | 2K |
Accuracy counts answers containing the correct character name. Effective length is the largest tested length above the model-specific threshold, so GPT-4o’s 8K result describes how well it retains its baseline performance on this benchmark rather than a hard operating limit.
The size comparison also resists a simple rule: Llama 3.1 405B scores below 70B at 32K in this table, despite its slightly higher base score. Both effective lengths are 2K.
The benchmark difference is substantial even for the same model family. NVIDIA’s RULER results report 94.4 at 128K for Gemini 1.5 Pro, while NoLiMa reports 48.2% at 32K. Different tasks, scoring, and tested deployments prevent reading those numbers as a single curve; a strong RULER result cannot certify associative retrieval.
Newer Models Need Their Own Evidence
In its Opus 4.6 announcement, Anthropic reports a score of 76% for Opus 4.6 and 18.5% for Sonnet 4.5 on the 8-needle, 1M variant of MRCR v2. Those are vendor-reported scores for one retrieval task; they do not establish which model is best for document analysis or coding.
OpenAI’s MRCR dataset asks models to recover a particular response among repeated requests, such as the second poem on a topic, and scores the result by checking a required prefix before measuring how closely the response matches the expected text. The score reflects response matching, so compare the same dataset revision, needle count, and length bin before attributing a difference to the model.
Failure Behavior Changes the Choice
In Chroma’s context-rot study, Claude Sonnet 4 and Opus 4 tended to abstain when uncertain in distractor experiments, whereas the tested GPT models more often produced confident wrong answers; a missed answer and an invented answer can produce similar task scores while creating different product risks.
Chroma also compared focused evidence with full conversation histories on a cleaned subset of LongMemEval. Every tested model did better with focused input. Claude’s gap was particularly affected by abstentions, and thinking modes improved performance without closing the gap. These results describe the study’s selected questions and evaluation setup; test the same comparison on your own workload before choosing how much history to include.
Compare Models at Your Operating Conditions
For a document assistant, separate finding a passage from combining evidence across passages and check whether answers cite the right source, including cases where the answer is absent and a model that always responds would have to invent one. Vary evidence position and include plausible distractors while keeping the underlying question unchanged.
Record the exact model identifier and settings alongside the prompt construction and scoring rule, then compare focused evidence with the full context your application would actually send. This helps separate retrieval failures from reasoning failures. Set acceptable error and abstention rates for that workflow before choosing a context budget.
Select, Don’t Dump gives you a concrete alternative to switching models: remove irrelevant material and measure whether answers improve. For accumulated conversations, evaluate Compress & Restart against retained history, checking that compression preserves the facts needed for later questions. A larger window is useful when the task needs the information inside it; the benchmark score alone cannot decide what belongs there.