← Reference library
PaperHigh credibilityarXiv · Liu et al. · July 6, 2023
Lost in the Middle: How Language Models Use Long Contexts
Our summary
An empirical study showing that LLM accuracy depends strongly on where relevant information sits in the input: performance is highest when key facts are at the very start or end of the context and degrades markedly when they fall in the middle, producing a characteristic U-shaped curve.
Why it matters
Directly undermines the assumption that a bigger context window means reliable recall — central to long-document and RAG use.
Cited by these methods
Related findings (1)
Published June 26, 2026
Cite this
Qlarify Labs. (2026). Lost in the Middle: How Language Models Use Long Contexts. Retrieved from https://labs.qlarify.fi/references/lost-in-the-middle