Article
Log inSign upArticle
Log inSign upConversation
Yash@dewyashtwtsHow Increasing Input Tokens Impacts LLM Performance
5 min readWhy Long Prompts Quietly Break Your LLM
We’ve been sold the "1M token context window" dream.
The implicit promise???
that the model will treat the 10,000th token as reliably as the 100th. Just dump everything into the prompt and let the LLM "figure it out".The Chroma's Context Rot report nukes that story.

Even on simple tasks—no tools, no agents, no complicated chains—models like GPT‑4.1, Claude 4, Gemini 2.5, and Qwen3 get less reliable as context grows. And the failure modes are weird, non‑linear, and model‑specific.'s
This isn’t about “weak models struggle with long context”. It’s about all current models having brittle behavior once you start abusing their token budget.
The Illusion of “Long Context Is Solved”
Why Needle‑in‑a‑Haystack is misleading
Most of the time the "we support 1M tokens" claims lean on Needle in a Haystack (NIAH):
- Take a big haystack of text.
- Insert a known needle sentence.
- Ask the model to retrieve it.
Modern LLMs mostly ace this because it’s just lexical lookup.
The problem: almost no real workload looks like this. Real tasks are:
- Ambiguous (“what’s the best option here?”)
- Semantic (“which thing implies X?”)
- Distractor‑heavy (several almost right answers)
- Structured (essays, docs, multi‑session chats)
Chroma keeps the tasks simple but tweaks these axes while only scaling input length. That’s where things start breaking.

Needle–Question Similarity: Ambiguity × Length = Pain
How they measure similarity????
They embed the question and the needle across multiple embedding models, and compute cosine similarity. That gives:
- High similarity: question ≈ answer phrasing.
- Low similarity: the model has to lean more on “understanding” and world knowledge.
All pairs are designed to be solveable at short context.
What actually happens
At small context sizes:
- Strong models get both high‑ and low‑similarity pairs mostly right.
As you increase irrelevant context:
- High‑similarity pairs degrade slowly.
- Low‑similarity pairs degrade much faster.
Nothing about the core task changed. You just wrapped the same Q/A in more junk text. Ambiguity that was fine at 2k tokens becomes unreliable at 100k.
Ambiguous questions + long prompts = silent accuracy tax.
Distractors: Confident Hallucinations at Scale
Setting up the trap
They fix one easy, high‑similarity needle and hand‑craft 4 distractors:

- Same topic.
- Slightly tweaked details (different person, time, wording).
- All plausible answers.
Then they test:
- Needle only (baseline).
- Needle + 1 distractor.
- Needle + 4 distractors.
How models fail
Even a single distractor dents performance.
With four distractors and large context, degradation is obvious. But it’s not uniform: some distractors are disproportionately “attractive” and pull models into wrong answers more often.
Model families behave differently:
- Claude leans conservative → more “I can’t find the answer here” when it’s unsure.
- GPT leans assertive → more confident wrong answers.
As your context grows, you’re not just adding neutral background. You’re increasing the probability that the model latches onto a very convincing lie.
Needle–Haystack Similarity & Structure: Content Isn’t Neutral
When the needle looks like everything else
They mix and match:
- Paul Graham needles in PG essays.
- arXiv needles in arXiv papers.
- Cross domain: PG in arXiv, arXiv in PG.
In some setups, the out‑of‑domain needle (e.g. arXiv needle in PG essays) is actually easier for the model than the in‑domain one.
If the needle looks like everything else, the model struggles more to pull it out. Intuitively obvious for humans, but this breaks the “irrelevant context is just filler” assumption.
Coherent vs shuffled haystacks
The wild part: models often do better when the haystack is shuffled.
- Original: coherent essays with logical flow, arguments, narrative.
- Shuffled: same sentences, totally scrambled order, no local coherence.
You’d think preserving structure helps. Instead:
- Structured haystack → worse performance.
- Shuffled haystack → better performance.
This suggests attention isn’t just “uniform over tokens”. It’s heavily influenced by local structure and discourse. Breaking the flow might make the needle stand out more.
LongMemEval: Full Chat History ≠ Free Memory
Two setups: focused vs full
LongMemEval benchmarks conversational QA over long histories. Chroma compares:
- Focused prompt (~300 tokens): only the parts needed to answer.
- Full prompt (~113k tokens): entire chat history, including irrelevant context and distractors.
The model’s job with full context:
- Retrieve the relevant bits.
- Reason over them and answer.
With focused context, it only does step 2.
Results across model families

Across Claude, GPT, Gemini, Qwen:
- Focused prompts consistently win.
- Full prompts show a clear drop in accuracy.
Claude is especially interesting:
- On focused prompts → strong performance.
- On full prompts → more abstentions like “I can’t determine the answer from this chat.”
Thinking modes (reasoning / tool‑augmented variants) help, but don’t erase the gap. Forcing the model to do retrieval and reasoning in one shot over huge histories is a reliability trap.
Pasting full chat history into every call is not “smart memory”, it’s context rot.
Repeated Words: Trivial Programs Still Break
The “just copy this” experiment
They construct an ultra‑simple task:
- Long sequence of a repeated word (e.g. apple apple apple …)
- Single unique token in the middle (e.g. apples)
- Instruction: “Replicate the following text exactly.”
This is the simplest possible “program”. Any 10‑line script would get 100% accuracy at any length.
How LLMs behave instead

As both input and output length increase:
- Accuracy steadily drops for every model.
- The further the unique word is from the start, the less reliably it’s reproduced.
- Models under‑generate, over‑generate, or inject random tokens that never appeared in the input.
- Some models outright refuse to answer (content filters, copyright paranoia, etc.).
You also get model‑specific weirdness:
- Lowercased variants that never appeared in the input.
- Duplicate words (“Golden Golden”) that weren’t there.
- Long, unrelated rambling text instead of a copy.
All this while the instruction is literally “copy‑paste”.
If models struggle with “copy this 10k‑word string exactly”, treating them like deterministic long‑context programs is wishful thinking.
What This Means if You’re Building with LLMs
Context isn’t a buffer; it’s a design surface
The big takeaway:
The set of tokens inside the context window is not enough; their arrangement changes model behavior a lot.
If you’re building agents, tools, or chat systems:
- Stop dumping full histories “just in case”.
- Prefer focused retrieval (RAG) → smaller, cleaner prompts.
- Treat ambiguity as toxic in long context. Either clarify the question or structure it more.
- Design for distractors: your own UX, logs, and boilerplate can become adversarial context.
- Be intentional about structure: chunking, headings, ordering, and grouping matter.
Context engineering is now a core skill
Prompt engineering was about what you ask.
Context engineering is about what you show and where you place it.Practical levers:
- Selection: retrieve only what’s needed, summarize the rest.
- Ordering: put the most relevant + most recent info close to the instruction.
- Structure: clear sections, strong separators, minimal noise.
- Testing: measure accuracy vs context size and content, not just “does it fit?”.
Context windows will keep getting bigger. But if you treat them like infinite trash cans, you’ll keep running into context rot.
The question isn’t “How many tokens does my model support?” anymore.
It’s: “How do I use those tokens so the model doesn’t silently fall apart?”
Yashbuilding: Nova @supercodeai : an ai engineer(5.2k users)-
nova.supercodeai.tech
ai code review- supercodeai.tech/review
harness guy- git.new/supercodeaiMore ArticlesJoin 1,605 followers4:51 PM · Feb 7, 2026·233Views