Why more context can make AI worse
A full text version follows below.
sidc.ai // Napkin 01
Why more context can make AI worse.
Giving AI more text is not free. In Chroma's report on 18 models, results got worse as inputs grew. An older test found the middle did worst; a preprint says the biggest new models dip far less. Send less, and put the question last.
The doodle, in words
- 1
Hand over the whole list. Not everything comes back.
You hand the Dog a very long shopping list. It comes back proud, but the basket is only about half full. You handed over everything; not everything came back.
PictureYou stand on the left, puzzled, holding up the top of a very long blank list that hangs down and curls across the floor. An arrow labeled the whole list runs down it to the curl. On the right the Dog faces You and hops proudly in place, carrying a basket that is only about half full: an apple and a carton.
- 2
Long lists lose more; short ones mostly come back whole.
Side by side: a long list comes back thin, and a short one mostly comes back. The gaps drawn here cluster in the middle, which tests have often found to be the weakest spot. That is a tendency, not a rule, and a short list is not perfect either.
PictureLeft: a long column of 20 boxes. Ticks land on most of the boxes near the top and the bottom; most of the empty boxes sit in the middle. Beside it the Dog tilts its head over a basket that is only about half full. A green bracket marks the middle, labeled often weakest. Right: a small card of three boxes, all ticked.
- 3
A 2025 report on 18 models: results got worse as inputs grew.
Do longer inputs still hurt? A July 2025 report from Chroma tested 18 models, from GPT-3.5 Turbo to GPT-4.1, Claude 4, Gemini 2.5 and Qwen3, and saw results get worse as inputs grew across its experiments. Some models sat out some experiments. In one of its needle tests, where the answer sat made no notable difference.
PictureA row of boxes grows to the right in three steps. A hand-drawn arrow slopes gently down under the whole row, labeled results slip; it is a sketch, not data. The Dog sits watching, then sinks and flops over, happy and tired.
SourceS2
- 4
2023: the middle did worst. 2026: the biggest models dip far less.
The chart comes from a 2023 test. A model answered a question from 20 passages, about 3k tokens of text (2,946.2 tokens on average). One passage held the answer, and the researchers moved it from first to last. When it came first, gpt-3.5-turbo-0613 got 75.8% right; at the 10th spot, 53.8%; last, 63.2%. The paper calls this a U-shaped curve, like the way people best remember the first and last items of a list. With no passages at all, the model got 56.1% from memory alone, so at its worst spot the extra text did slightly worse than nothing. With only the passage that held the answer it got 88.3%. In an October 2026 preprint, Li et al. ran a similar test on models up to GPT-5.2 and DeepSeek-V4. The study generally found better results with the answer at the start or end, but the biggest models dipped far less: within 5 points across most languages other than Arabic. Smaller models still showed a clear dip.
PictureYou stand on the left, puzzled, then point at a hand-drawn chart of answers right, from one 2023 test. Its axis starts at 40%. One key passage sat somewhere among 20, about 3k tokens of text. Five dots show how often gpt-3.5-turbo-0613 answered correctly when that passage sat at spot 1, 5, 10, 15 or 20 in the list: 75.8%, 57.2%, 53.8%, 55.4% and 63.2%. A sketched U line joins them. Labels mark the first and last spots. The caption adds that in a 2026 study the biggest models dipped far less.
- 5
Cut what the task does not need. Long input? Put the question last.
So send a shorter list. Cut what the task does not need, lookalike passages included: in the 2025 report, even one passage on the same topic that did not quite answer the question lowered results, and focused prompts of about 300 tokens beat full prompts of about 113k tokens. Where you can, put the key item first or last. For long inputs, put the question at the end; Anthropic's and Google's guides both advise it.
PictureYou hold a small blank card, then lean forward and hand it over, and three short lines appear on it: a short list. The first line is in green, and an arrow from the label first or last points to it. On the right the Dog tilts its head over a half-full basket, then has a full basket in its mouth and hops once toward You.
What to do
- Send less: cut what the task does not need.
- Cut lookalike passages too. In the Chroma report, even one passage on the same topic that did not quite answer the question lowered results.
- Put the key item first or last. The older test found the biggest dip in the middle; a newer preprint found the biggest models dip far less, and smaller ones still dip.
- For long inputs (Anthropic's guide means 20k tokens and up), put the long material first and the question last (S3, S5).
Sources
5 sources, with the exact excerpts
- S1 Nelson F. Liu et al. "Lost in the Middle: How Language Models Use Long Contexts." Transactions of the ACL 12 (2024), pp. 157 to 173. Per-position results: arXiv v3 only (20 Nov 2023), linked here. https://arxiv.org/abs/2307.03172v3, accessed 2026-12-02.
Model performance is highest when relevant information occurs at the beginning or end of its input context.
In particular, we see a distinctive U-shaped performance curve
GPT-3.5-Turbo 75.8% 57.2% 53.8% 55.4% 63.2%
Table 6: Model performance when evaluated on the multi-document QA task with 20 total retrieved documents.
“Index n” indicates performance when the document with the answer occurs at position n + 1
Table 3: Token count statistics for each of the evaluated models on each of the document question answering settings.
GPT-3.5-Turbo 1475.6 ± 86.5 1960 2946.2 ± 155.1 3920 4419.2 ± 226.5 6101
GPT-3.5-Turbo 56.1% 88.3%
in the oracle setting, language models are given the single document that contains the answer and must use it to answer the question.
Table 1: Closed-book and oracle accuracy of language models on the multi-document question answering task.
in the worst case, performance in 20- and 30-document settings is lower than performance without any input documents (i.e., closed-book performance; 56.1%)
We use the 0613 OpenAI model versions.
providing the language model with more information may help it perform the downstream task, but it also increases the amount of content that the model must reason over, potentially decreasing accuracy.
effective reranking of retrieved documents (pushing relevant information closer to the start of the input context) or ranked list truncation (retrieving fewer documents when appropriate; Arampatzis et al., 2009) may be promising directions
The U-shaped curve we observe in this work has a connection in psychology known as the serial-position effect (Ebbinghaus, 1913; Murdock Jr, 1962), that states that in free-association recall of elements from a list, humans tend to best remember the first and last elements of the list.
Observing a serial-position-like effect in language models is perhaps surprising, since the self-attention mechanisms underlying Transformer language models is technically equally capable of retrieving any token from their contexts.
- S2 Kelly Hong, Anton Troynikov, Jeff Huber. "Context Rot: How Increasing Input Tokens Impacts LLM Performance." Chroma, July 14, 2025. https://www.trychroma.com/research/context-rot, accessed 2026-12-02.
In this report, we evaluate 18 LLMs, including the state-of-the-art GPT-4.1, Claude 4, Gemini 2.5, and Qwen3 models.
o3, GPT-4.1, GPT-4.1 mini, GPT-4.1 nano, GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo
Across all experiments, model performance consistently degrades with increasing input length.
Our results reveal that models do not use their context uniformly; instead, their performance grows increasingly unreliable as input length grows.
Not all 18 models are included in each experiement due to context window or thinking_budget constraints.
Testing across 11 needle positions, we find no notable variation in performance for this specific NIAH task.
Across all models, we see significantly higher performance on focused prompts compared to full prompts.
These prompts average out to ~113k tokens.
Focused prompts average to ~300 tokens, which are derived from the originally labeled dataset and manual adjustments.
Even a single distractor reduces performance relative to the baseline (needle only), and adding four distractors compounds this degradation further.
Distractors are topically related to the needle, but do not quite answer the question
- S3 Anthropic. "Prompting best practices", section "Long context prompting". Claude documentation. https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#long-context-prompting, accessed 2026-12-02.
When working with large documents or data-rich inputs (20k+ tokens), structure your prompt carefully to get the best results
Put long-form data at the top: Place your long documents and inputs near the top of your prompt, above your query, instructions, and examples. This improves performance across all models.
Queries at the end can improve response quality by up to 30 percent in tests, especially with complex, multidocument inputs.
- S4 Yining Li et al. "On the Position Bias of Large Language Models: A Comprehensive Study." arXiv preprint, October 16, 2026. https://arxiv.org/abs/2610.22807v1, accessed 2026-12-04.
placing the golden document at the beginning or the end of the context generally yields better performance than placing it in the middle.
increasing model size substantially alleviates this issue, with frontier models such as GPT-5.2 and DeepSeek-V4 exhibiting markedly greater robustness.
the performance differences for large-scale models, such as Qwen3-235B-MoE, DeepSeek V3.2 and V4, and GPT-5.2, are maintained within 5 points across most languages other than Arabic.
we confirm that position bias is pronounced in small-scale models
- S5 Google. "Long context", Gemini API documentation. https://ai.google.dev/gemini-api/docs/long-context, accessed 2026-12-04.
In most cases, especially if the total context is long, the model's performance will be better if you put your query / question at the end of the prompt (after all the other context).
Corrections
- None yet. Checked 2026-12-04.
Drawings: Codex. Words: Vibe and Sid. Design and motion: Claude.
Spotted an error? Tell me on LinkedIn. Corrections are logged here with a date.