Models advertise million-token windows but accuracy degrades well before the limit. Three recent studies, the mechanisms behind the rot, and a practitioner playbook for what to do Monday.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Your model says it can handle a million tokens. It can't. On Gemini family models, basic random word retention starts breaking between 500 and 750 words. That's not a million tokens. That's barely 2 pages of text. You feed the thing a long transcript, Ask a specific question, and what comes back is a confident hallucination or a refusal, or just the wrong passage. The window your provider's
selling you and the window you can actually rely on are two very different numbers, and almost nobody on your team is measuring the gap between them. Here's the claim upfront. Context rot is the silent decay of a model's reasoning as you fill the window long before you hit the advertise limit. The marketing department sells you a vault. What you actually get is a leaky bucket. And if you're building production systems, agents, long running work flows, anything where prompts accumulate over
time, you are almost certainly operating in the rotted zone without knowing it. Context length is a vanity metric. 100,000 tokens is not as reliable as 500 tokens, and pretending it is will break your system in ways your dashboards won't catch. I've been running infrastructure for over a decade and I can tell you this is the most common unreported failure mode in production LLM systems right now. It hides in plain sight because
the symptoms look like model quality issues, not context issues. Let me walk through what the research actually shows. Three sources, all recent, all practitioner relevant. The No Lima paper dropped in July. The acronym stands for No Literal Matching, which is the whole .13 models, all claiming at least 128,000 tokens. The test removes literal lexical overlap between the question and the answer, meaning the model
can't just grab for the right words, it has to actually understand what's in context. At 32,000 tokens, 11 of 13 models dropped below 50% of their short context baseline. Read that again, 11 out of 13. This isn't a rare failure, this is the common case. GPT for All goes from 99.3% accuracy on short context down to 69.7 at 32,000 tokens. That's a 30 point tax on intelligence for using 1/4 of
the advertised window. And the standard needle in a haystack test misses all of this because needle in a haystack is basically grep. You hide A sentence about a magic grass sandwich in 100,000 tokens of fluff, ask the model to find it, and it does. The labs publish the chart, check the box, ship the feature, but finding an exact string is not reasoning. The moment you force the model to use its internal representation instead of string
matching, the whole thing falls apart. Then there's the Chroma study. Their team ran 18 models through long memeval. The setup is sharper than most evils. They compare focused inputs of about 300 tokens against a full chat history of about 113,000 tokens. Same task, same difficulty. The only variable is input length.
This is the honest version of what we actually do in production. Long rambling context with a specific question at the end. Every model degrades linear decay of reliability across the board, Not one exception. And the Gemini family specifically fails on random word repetition. Between 500 and 750 words, which is the number I opened with, GPT 4.1 develops a 2 1/2% refusal rate. Around 2500 words, the model
just stops trying. Not because the question got harder, because the room got louder. And here's the part that really got me. Because the Chroma team held test difficulty constant and only varied input length, they can isolate length itself as the direct 'cause this isn't confounded with question complexity. It's not that longer context happened to have harder questions in them. It's that the same question, same difficulty, gets less reliable as the context around it grows.
The third source is Dan Cleary at Promptub August. He looks at distractors specifically runs the same task with 01 and four distractors. Every added distractor compounds the accuracy loss. A distractor isn't random noise, it's irrelevant, but similar content like another company's earnings report. When you're asking about Apple, the model has to load both sets of facts, compare them, reject the wrong one. That rejection task eats attention at 4 distractors. Claude Force Sonnets reasoning
capability degrades even with a million token window. The degradation isn't uniform across model families either, which matters if you're picking a provider for a gentic workflows. Some models survive 1 distractor and collapse at four. Others are more graceful. You won't know which one you have until you test, and to make sure the results weren't biased by an unreliable judge, they used the GPT 4.1 aligned grader that had over 99% agreement with
human graders. So these numbers aren't soft. The common thread across all three is blunt. You can fit the data, you can't use the data. Physical capacity and functional capacity are not the same thing, and the industry has been pretending they are. Now the part that really matters if you're running agents. An agent isn't reading one prompt once. It's looping accumulating state appending tool outputs, dragging a growing tail of its own reasoning steps behind it.
Every turn eats into the safe zone. If GPT 4 O is already taking a 30 point accuracy hit at 32,000 tokens, what happens at the 10th iteration of a React loop? The 15th, The 20th. By then, the agent's own history is the distractor. You're not fighting the external data anymore, you're fighting the weight of the agent's own previous thoughts. The system is operating in the high failure regime for most of its lifespan, and nobody's
measuring it because the only thing the logs say is response returned. Of course the response returned. Whether the response is any good is a completely separate question. I've seen agent systems in production where the PD9 prompt length was five times the P50 and nobody on the team could tell you what the accuracy looked like at PD9 versus P50. That gap between it ran and it worked is where context route lives. Let me tell you why this happens mechanically, because if you just take my word for it, you'll forget it in a week. 3 reasons
they all stack. Attention dilution. Every token attends to every other token. That's a dense quadratic matrix. The softmax function that determines attention weights distributes a fixed amount of probability mass across the whole sequence. When you have a million tokens, the slice of attention landing on the right one is microscopic. The signal gets buried under the noise floor of everything else. Imagine trying to hear one specific voice in a stadium. Doesn't matter how loud that
voice is, at some point the crowd drowns it out. That's what's happening inside the model. There are attempts to fix this. Sparse attention, local attention, sliding windows, things like the long former or Big Bird style patterns. They help at the edges. They don't change the underlying math. Dense global attention still pays the dilution tax whenever the model needs to route information between distant tokens, and that's exactly the case where long context is
supposed to shine. The next thing that hit me when I was digging into this is positional encoding. Most modern models use some flavor of Rotary position embedding row P. These worked by rotating the token embeddings based on position. The model learns those rotations during training. Problem is, training happens at specific context lengths. When you push past what the model saw in training, it has to extrapolate. An extrapolation in positional
space is lossy. The resolution gets fuzzy at the edges. The model loses its ability to distinguish between token 5000 and token 50,000 with the precision it had during training. Labs use interpolation tricks to extend these embeddings. YARN, dynamic NTK, position interpolation, there's a whole zoo of them. They help. They don't fully restore the clarity, and every time the window grows another order of magnitude, the high frequency
components of the positional signal start to alias. The encoding literally runs out of expressiveness. At that point, the model is guessing about where things are in the sequence. Another failure mode, the dashboards won't catch. And then there's training distribution mismatch. This one's almost too obvious once you see it. Instruction tuning usually happens on sequences of 1 or 2000 tokens. The model learns the answer is usually nearby.
Then you ship it with 100,000 token window and expected to maintain focus across the whole thing. It was never trained on that. The lost in the middle phenomenon falls out of this directly. Most long documents in the pre training data have the important information at the beginning or the end. News articles, papers, even code files. The middle is connective tissue. The model learns attention patterns that favor the extremes. So when you bury the answer at position 50,000 of 100,000, the
attention pattern trained for short sequences doesn't trigger the way you need it to, and the fine tuning data is even worse. Chat data sets are typically a few 100 tokens. If 95% of the instruction following data the model ever saw was under 2000 tokens, you're asking a lot. When the production input is 50 times that, those 3 mechanisms stack. They're not alternatives. Attention, dilution, positional encoding, breakdown, and training distribution mismatch all compound, which is why the
degradation isn't linear and isn't predictable. Without testing, a model might look fine at 10,000 tokens, mediocre at 30,000, and completely unreliable at 100,000 in a way you can't extrapolate from any single data point. So what do you actually do Monday? Here's the playbook. Build a per workload context length, evolve. You can't trust the spec sheet and you can't trust generic benchmarks.
You need to run your specific task at 10 different input lengths. Hold difficulty constant and plot accuracy versus length. The curve will tell you your rot threshold for that model on that task. Below the threshold, safe zone above, you're in the casino. Without this eval you are flying blind. I've seen team ship agents where the token count in production was three times what they tested at and nobody noticed until support tickets started piling up.
The fix is simple in principle. Run a sweep, pick the longest length where accuracy stays above your bar, and make that your hard ceiling. Anything above the ceiling either gets retrieved down, summarized down, or rejected. After that, default to retrieval first pipelines. Even when the data fits, the temptation to just dump everything in the window is real. It feels efficient. It isn't. A rag pipeline that sends the five most relevant chunks will
outperform A brute force long context prompt almost every time. Every token in your prompt that isn't actively helping answer the question is a potential distractor and distractors compound. Dense context beats long context, always. And if you're worried about RAG being too complex, just remember what the alternative is costing you. Every hallucination from a rotted context is a debugging session. Every silent refusal is a customer complaint. The operational cost of an
unreliable long context pipeline is much higher than the operational cost of a well tuned RAG pipeline, even when the RAG pipeline has more moving parts. Here's the one I think most teams skip. Get ruthless about chat history. Stop letting it grow until it hits the limit. Summarize older terms. Use a sliding window. Separate long term memory which lives in a vector database from working context, which is what the model is thinking about
right now. If the user said something 3 weeks ago that isn't relevant to the current question, it doesn't go in the prompt. Period. The cost of leaving it in is silent accuracy loss. The cost of taking it out is A5 line summarization step. That's not a hard trade, and if you want to get fancy, use a hierarchical memory. Recent turns go in verbatim, mid range turns get summarized into paragraphs. Old turns get condensed to facts in a structured store that you
retrieve from on demand. That's three layers, each with a different compression ratio, and each one protects the model from the worst of the rot, something people miss constantly. Summarization and reasoning are different tasks. Long context windows are actually fine at summarizing a single coherent document because global attention can see the whole structure. They are a trap for multi document reasoning where you need to synthesize facts across
sources. If the 2 facts you need to connect are 10,000 tokens apart, the model is much more likely to miss the connection than if you'd retrieve them and put them side by side. Know which task you're doing. If it's summarization, long context is fine. If it's multi hop reasoning over separate documents, retrieve and pair don't make the model work harder than it has to. And the last piece, Observability log input token length and every request as a first class metadata field, not
optional. When a user reports a hallucination, the first thing you should be able to check is the prompt length, Build length, stratified metrics instead of 1 aggregate accuracy number, show me accuracy at 1010 thousand, 50,000 and 100,000 tokens. Insert Canary fax at random depths in production prompts and check if the model can recall them alongside its main task. If the Canary fails, the rot
started and run eval on replay. Take production logs, strip them down to just the retrieved chunks using a smaller context and see if the answer changes. If smaller context beats bigger, you found a failure point. Track it over time. I'd put all of this on one dashboard and treat it the way you treat P-95 latency. It's just another production signal that tells you whether the system is actually working.
Let me make the Canary idea concrete, because it's the most useful and the least adopted. Take a short factual statement that the model couldn't plausibly know without being told something like the internal project code name for the Q3 migration was Blueberry. Insert that string at a random position inside your production context, a different position on each request. At inference time. Run 2 calls in parallel, one with the Canary and one without,
and the one with the Canary. Also ask the model at the end to quote back the Canary string. If it can't, the context is rotted for that request. You now have a live signal per request of whether the model is reliably using the context you're giving it. You don't need to wait for a user to complain, you don't need a label evil set. You have a cheap continuous integrity check that scales with your traffic, and the cost is one extra field in your prompt
and one extra output token to check. The teams that adopt this end up with a dashboard that looks like uptime monitoring, green when the Canary recalls, red when it doesn't, and a historical view of when the rot started creeping in for different models and workloads. That's the kind of visibility you need, and the kind nobody's shipping by default. None of this is exotic. It's the same observability discipline we apply everywhere else in infrastructure. Latency percentiles, error rates
by input class, synthetic monitoring. LLM outputs just happened to be one more signal that needs the same treatment. The industry's been weirdly allergic to treating model calls like the infrastructure they are. Probably because everyone's excited about the magic. The magic gets less magical when you measure it, and once you measure it, you realize how little of the advertised capability is actually available to you in production. Here's my take. The million token window is a benchmark win, not an
engineering primitive. The labs are racing for the biggest number because that's what looks good on the landing page. Bigger number moves API credits, bigger number moves stock prices. More reliable is harder to market, So what gets shipped is what can be measured in marketing copy. And your production agents silently rot because the incentive structure that produced these models wasn't optimizing for the thing you actually need. The most sophisticated move you can make in your AI stack right
now isn't finding a model with a bigger window, it's figuring out how to use less of the one you already have. Efficiency is the new reliability. Everyone chasing bigger is chasing the wrong number. One last thing. Two years ago every rag vendor was getting panic calls from their customers asking if infinite context was going to kill them. The pitch was the models are getting so big, retrieval is obsolete. It was wrong then and it's wrong
now. If anything, these massive unreliable windows make the job of an infrastructure engineer harder because they're introducing non deterministic failures that are length dependent. A model that fails consistently at a specific input is debuggable. A model that works until it doesn't based on a token count you don't track is a much worse kind of broken. This is the tax of vanity metrics. We built the tools to sell the
spec sheet. Now we have to build the tools to work around the spec sheet. RAG isn't obsolete, it's back. It's more important than ever, and the teams that figured this out early are running circles around the one still chasing the million token dream. So context rot. GPT 4 O at 69.7% accuracy on 1/4 of its advertised window is the only number you need to start rethinking your architecture retrieval first. Dense context length, Stratified
evils? Canary prompts aggressive history pruning. Trust your own numbers over the claims on a provider's homepage. The goal isn't how much you can fit, it's how little you need to get the right answer. If you're doing it right, you should be using less context as your system matures, not more. That's the one for this episode. I'm MO. This is the practical AI digest. If you got something out of this, send it to one person who would actually use it. No subscribe campaign, no rating
An accurate prediction can still pick the wrong action. Uplift, double ML, causal forests, new causal foundation models, and experiments as ground truth.
Pretrained models now predict on your spreadsheet with no training. Where they beat tuned XGBoost, where they still lose, and what the licenses let you ship.
AI systems can reason through anything but cannot remember the solutions. Why catastrophic forgetting is now a production problem, not just a research one.