# Relevant facts in the middle of a long prompt are harder to use

> Position-controlled retrieval and question-answering tests found a U-shaped accuracy pattern in long contexts.

Canonical: https://aischolar.cc/blog/lost-in-the-middle

[← All articles](https://aischolar.cc/blog)

AISCHOLAR / BLOG

# Relevant facts in the middle of a long prompt are harder to use

Position-controlled retrieval and question-answering tests found a U-shaped accuracy pattern in long contexts.

November 15, 2026

_A long-context model's answer changed when the same relevant fact moved from the ends of its input to the middle._

### Two retrieval tasks

Liu and colleagues tested multi-document question answering and key-value retrieval in [Lost in the Middle](https://arxiv.org/abs/2307.03172v3). They varied the position of relevant information inside long contexts, isolating where a model must look while holding the information itself available.

### The U-shaped result

Accuracy was often highest when the relevant material appeared near the beginning or end of the input and fell when it sat in the middle. The authors observed this pattern even in models built for long contexts. Position alone changed the measured performance, so a fixed placement can distort a context-use score.

The paper's evidence comes from controlled retrieval and question-answering tasks. Documents in use can scatter evidence across passages or require different reasoning, and the tested models and context lengths set the scope of the result. A follow-up evaluation of long-context systems should report scores at the beginning, middle, and end positions separately; the average can mask this pattern.

### Bibliography

-   Nelson F. Liu; Kevin Lin; John Hewitt; Ashwin Paranjape; Michele Bevilacqua; Fabio Petroni; Percy Liang. (2023). Lost in the Middle: How Language Models Use Long Contexts. arXiv:2307.03172v3. https://arxiv.org/abs/2307.03172v3

Original source: [https://arxiv.org/abs/2307.03172v3](https://arxiv.org/abs/2307.03172v3)

About AIScholar

## Study LLM behavior.

AIScholar is a research workspace for controlled, replicated studies of LLM behavior using single-turn text responses from OpenRouter-served models. The nine-stage workflow includes response coding, visualization, analysis and write-up; researchers validate measurements and interpret results.

[Explore AIScholar ↗](https://aischolar.cc/features)
