PromptForge
AI Glossary

Risks & limitations

Lost in the middle

Also known as: lost-in-the-middle problem, positional bias

Definition

Lost in the middle is the tendency of models to use information at the start and end of a long context well while under-weighting material in the middle. Position affects whether the model actually uses what you provided.

Measured across models and tasks, accuracy on retrieving a fact from a long context follows a U-shape: high when the fact is near the beginning or end, noticeably lower in the middle.

The practical consequence is that a large context window does not guarantee the model uses all of it. Filling 200,000 tokens does not mean 200,000 tokens of effective attention.

Design around it. Put critical instructions at the very start or very end. Order retrieved passages by relevance rather than document order. And prefer retrieving the relevant 5% over pasting everything and hoping.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.