Features

Paste a long conversation into a chatbot and ask about something from the middle, and it may miss what it read perfectly well. Where a fact sits matters as much as whether it’s there at all.

Features — 170

Why AI remembers the start of a long chat better than the middle

Filed UnderAI, Everyday Science
Read Time~3 minutes
PublishedNovember 13, 2026 at 10:13 PM
A man reading a handwritten letter closely through a magnifying glass
Photo: KoolShooters / Pexels

          A long chat with a chatbot feels like a conversation with a perfect memory. Everything you said is still in the window, so the model should be able to use all of it equally. It can't. What sits at the beginning of a long input, and what sits at the very end, gets used reliably. What sits in the middle gets used noticeably worse — even when it's the exact answer to the question being asked.
          This isn't a guess about how models behave. Researchers measured it directly, and the shape of the result is what gave the effect its name: plot accuracy against where the answer sits, and you get a U. High at both edges, sagging in the middle.

The experiment that found it
          In 2023, researchers at Stanford and Berkeley (Liu and colleagues) set up a clean test. They gave a model a question and a stack of 20 documents, exactly one of which contained the answer. The other 19 were real documents on similar topics — plausible distractors. Then they moved the answer-bearing document from the first position to the last, changing nothing else. Same question, same documents, same model. Only the position changed.
          If the model used its input evenly, accuracy would stay flat no matter where the answer sat. It didn't. When the answer was at the start, the model found it reliably. When the same document sat in the middle, accuracy fell by more than 20 percentage points in the hardest cases. The pattern showed up across every model they tested, and it got worse as the input got longer. The paper, "Lost in the Middle," appeared as a preprint in 2023 and was later published in the Transactions of the Association for Computational Linguistics.

“ A model doesn’t read a long chat the way you do. It remembers the edges and loses the middle.”

Why position matters
          The cause sits in how the model reads. A language model weighs every part of its input against every other part, deciding what deserves attention. That weighing has a built-in tilt: the beginning of the input gets extra weight, and the end gets extra weight too, because the end is where the question usually sits and where the answer starts. The middle gets what's left. As the input grows, the attention available to any single piece gets spread thinner, and the middle thins out first.
          There is a second, quieter cause in the training. Most of the text models learn from front-loads its important information: articles put the point in the opening paragraph, documents put the summary up top. Models absorb that habit. They learn, in effect, that the beginning is where the signal lives, and they carry that expectation into every long input they read.

What it means for a long chat
          The effect has shrunk in newer models — bigger context windows and better long-range training have flattened the U somewhat — but it hasn't disappeared. The practical lesson is simple and worth knowing: in a long conversation, the facts that matter most should not live only in the middle. Restate the key detail when it becomes important again, or put it near the end of your message, right before the question. You are not reminding a forgetful model. You are putting the fact where the model is already looking.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections