Definitions
Lost in the Middle: Why Long-Running AI Agents Lose Instructions Buried in Their Own Context
Lost in the middle is the positional bias where a language model retrieves information most reliably when it sits at the very start or end of its input, and least reliably when it sits in the middle, holding context length constant. First measured by Liu et al. in 2023 and shown to persist in far larger context windows by the 2025 NoLiMa benchmark, the effect means a long-running agent's own tool output keeps pushing its earliest instructions toward the one zone of the context where the model reads worst. This entry covers the published numbers, why a bigger context window doesn't fix it, and the one mitigation that measurably does.