SESK: Stuff Everyone Should Know · sesk.info/ai-lost-in-the-middle
In a long prompt, where is key information most likely to be missed by a language model?
In the middle.
- In the middle ✔
- At the very beginning
- At the very end
Why: A 2023 study found accuracy was highest when the relevant fact sat at the start or end of the input, and dropped when it was buried in the middle. The accuracy plot makes a U shaped curve.
Huh, didn't know that: The paper's title says it all: Lost in the Middle.
I'm like a language model with a long book. I remember the first chapter and the ending, and the middle is a mystery.
Like this card?
References
Answer: In the middle. A 2023 study found accuracy was highest when the relevant fact sat at the start or end of the input, and dropped when it was buried in the middle. The accuracy plot makes a U shaped curve.
- Liu et al., Lost in the Middle: How Language Models Use Long Contexts (arXiv 2307.03172) arxiv.org/abs/2307.03172
performance is often highest when relevant information occurs at the beginning or end of the input context
Checked 2026-10-10. - Liu et al., Lost in the Middle (full paper PDF, Figure 1) arxiv.org/pdf/2307.03172
results in a U-shaped performance curve
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.