Topic 1 of 5 · 4 min read
Why more context can hurt answers
Goal: Explain with an example why adding more material made an answer worse, and name the effect at work.
A bigger context window lets you put more in, but it does not make the model use all of it equally well, so extra material can make answers worse.
Check yourself · 1 of 3
A model accepts a very long input. What is the safest way to think about that limit?
Why it matters
Many people assume the safe move is to paste everything: the whole thread, every file, all the notes. The model then "has it all". Research says the result is often the opposite. Chroma tested many models and found that accuracy drops as the input grows, even on simple tasks, and they call this context rot (see the references). The window is a limit on what fits, not a promise of how well it is read.
Three effects to name
- Context rot. The longer the input, the less reliably the model retrieves and uses any single fact in it. The drop is gradual, not a cliff.
- Distraction. Irrelevant material competes with the relevant material. An old, rejected plan sitting in the thread can pull the answer back toward that plan.
- Lost in the middle. Researchers found that models use facts at the start and end of a long input better than facts buried in the middle.
A related finding from the NoLiMa paper: when the question does not share words with the answer, long inputs hurt more. The model has to infer the link, and that is harder in a crowd.
How to use this
- Treat every item you add as having a cost, not just a size. Ask: does this change the answer? If not, leave it out.
- When an answer ignores something you gave, suspect position and noise before you suspect the model "refusing".
- Test it. Run the same question with the full paste and with only the relevant part. Compare.
Before and after
Weak: a user pastes a 40-message thread about a billing bug, including two discarded theories and a joke thread, then asks "What did we decide about refunds?" The model answers with the discarded theory, because it was discussed longest.
Better: the user pastes only the six messages where the refund decision was made and asks the same question. The answer is correct and short.
What goes wrong
- Paste everything "to be safe". The relevant fact gets diluted and the model answers from the loudest material, not the right one.
- Blaming the model. A wrong answer from a bloated input is often an input problem. Trim first, then judge the model.
- Trusting a big number. A model that accepts a very large input has been shown to fit it, not to reason over it well. Check on your own task.
Examples
A thread that argued itself into a wrong answer
A team lead pastes a long Slack export and asks, "What is the refund policy we agreed?" The assistant quotes a rule that was proposed on day one and rejected on day three. The thread mentions it eleven times and the final decision once, in the middle.
Fix: paste only the decision message and the two messages around it. The assistant now quotes the agreed rule. The effect at work was distraction, helped by the lost-in-the-middle position of the real decision.
Same question, two inputs
Ask an assistant to find the notice period in a contract. First give it the full 60-page contract plus three unrelated appendices, then give it only the termination section.
Expect the short input to answer faster and more reliably. If both answers agree, the long input was fine for this task. If they differ, you have seen context rot on your own data.
Key points
- A larger context window raises what fits, not how reliably each part is used.
- Context rot is the gradual drop in accuracy as the input grows, even on simple tasks.
- Irrelevant or outdated material can distract the model and pull the answer toward it.
- Facts in the middle of a long input are used less reliably than facts at the start or end.
- When an answer ignores something you supplied, test a shorter input before blaming the model.
Common mistakes
- Pasting every file, message and note "just in case" instead of choosing what the task needs.
- Assuming that a model that accepts a huge input also reads all of it equally well.
- Leaving old, rejected or contradictory material in the thread and expecting the model to know which part is current.
- Blaming the model for ignoring a fact without first testing a shorter input.
Check yourself · 2 of 3
An assistant keeps answering from a plan the team rejected last week. The rejected plan is still in the pasted thread. Which effect is mainly at work?
Check yourself · 3 of 3
You gave an assistant a 30-page report and the one number you need sits on page 15. The answer misses it. What is the best first test?
Practice items, not counted towards your mastery.
Start here
- Context Rot (Chroma research) (opens in a new tab)ArticleFree
Tests many models as input grows and shows accuracy dropping even on simple tasks.
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
The study showing models use facts at the start and end of a long input better than facts in the middle.
- NoLiMa: Long-Context Evaluation Beyond Literal Matching (opens in a new tab)PaperFree
Shows long-context accuracy falls when the question does not share words with the answer.