< CollectionsPaper
Lost in the Middle.
Lost in the Middle: How Language Models Use Long Contexts
Liu et al. · 2023 · arXiv 2307.03172
Read the paper (opens in a new tab)Models use what is at the start and the end of a long context best, and miss what is in the middle.
3 sections · 6 problems
0 of 6 done
Start Next: 01 Put the Answer Where the Model Will Read It
Section 01
The U-shaped curve
0 of 1
The paper: Accuracy is highest when the relevant document is first or last in the context, and drops when it sits in the middle.
Section 02
More documents, little gain
0 of 3
The paper: Past about twenty retrieved documents, adding more barely helps the reader, even as recall keeps rising.
Section 03
A long conversation
0 of 2
Beyond the paper: The same lesson for a chat: what you keep, and where you put it, decides what the model reads.