Lama AI University · 3D lesson · research, applied

Lost in the Middle

Stanford researchers moved one relevant document through a pile of twenty and watched accuracy trace a U-curve: strong start, strong end, a canyon in the middle — where the model holding the answer scored worse than the model given nothing. Bury the needle yourself, then see the four rules our fleet built around this curve.

position 10 of 20
drag to look · wheel to zoom · bar heights illustrative of the reported shape — exact values in the paper

The three numbers

56.1%
closed-book: no documents at all
< 56.1%
answer buried mid-context (20/30 docs)
88.3%
oracle: handed exactly the right page
>20 pts
the positional swing, same question

Same model. Same knowledge. The only variable was where the signal sat and how much noise surrounded it. And the extended-context versions of the same models were often no better — a bigger window means a model can accept more, not that it can use more.

The four cures we run in production

Laws first — every agent's boot document opens with its laws; page one is prime real estate. Worst first — our plan page ranks by severity at the top. Short indexes — memory is a strict index under a hard size budget, one hop to one-topic files. Drain to zero — messages are read and marked one at a time, never digested as one long pile. Each rule is a direct answer to this curve — learned from our own scars before we read the paper that explained them.

Sources — read them yourself

Companion article: Lost in the Middle on the university.