What was tested
A context window says how much text a model can take in. It does not say how evenly the model reads what it takes in. Liu and colleagues tested that directly, with controlled experiments where everything stayed the same except position and length.
In the first task, models answered questions from Natural Questions given a set of passages, exactly one of which contained the answer. The researchers moved that passage from the front of the input to the middle to the end, and varied the number of distractor passages from 10 to 30. In the second task, a synthetic key-value test, models had to return the value paired with one key inside a large JSON object, the simplest possible version of finding one fact in a long document.
Models tested included GPT-3.5-Turbo and its 16K variant, Claude-1.3 and its 100K variant, MPT-30B-Instruct and LongChat-13B.
What they found
Performance traced a U. Answers were best when the relevant passage sat at the very beginning or the very end of the input, and degraded significantly when it sat in the middle. The effect was large enough to invert the value of giving the model documents at all: with the answer placed mid-input, GPT-3.5-Turbo scored below its own closed-book accuracy of 56.1%, the score it got answering with no documents.
Length made it worse on its own. Performance decreased as inputs grew longer, including in models built and sold as long-context models, and the extended-context versions were not necessarily better at using their context than the standard versions.
The key-value task showed the same U in pure retrieval. Models failed to copy out a value sitting in the middle of the input, a task with no reasoning in it at all. One fix worked there: putting the question both before and after the data made retrieval near-perfect. The same trick barely moved the question-answering results.
More context stopped paying quickly. In an open-domain question answering case study, retriever recall kept rising as more passages were added, but model accuracy flattened: going past 20 retrieved documents improved results by only about 1.5 points for GPT-3.5-Turbo and about 1 point for Claude-1.3, while the extra text raised cost and time on every call.
What it means for the stacks
A context window is a capacity figure, not a reading grade. Stack seats for long contracts and documents are set from long-input evidence, the kind RULER and this study publish, never from the window size printed on a model card.
Position is a routing variable. The clause that decides a document's meaning can sit anywhere in it, and the middle is where models are weakest. Long-document jobs in the stacks are built to work in sections and to ask against located passages, the design the ContractNLI oracle experiment rewards, instead of one pass over the whole file.
More input is not free quality. Past a point, extra context buys about a point of accuracy at full price in tokens and seconds. The cost seats in each stack are set with that trade in view, which is also why cost per finished task, not cost per token, is the unit the pool tracks.
Sources
Liu, Lin, Hewitt, Paranjape, Bevilacqua, Petroni & Liang, "Lost in the Middle: How Language Models Use Long Contexts," Transactions of the ACL, 2024. Paper: arxiv.org/abs/2307.03172. Code and evaluation data were released with the paper.
The models in this study are from 2023. The finding is used in the pool as a structural result about how transformer models use position, and it is paired with RULER's length measurements, summarized in this series, rather than treated as a current model ranking.
Dejargon