Highlight

Lost in the Middle: How Language Models Use Long Contexts

Analyzes how language models use long input contexts, showing accuracy drops sharply when relevant information sits in the middle rather than the ends.

Based on

Lost in the Middle: How Language Models Use Long Contexts

By Nelson F. Liu, Kevin Lin, John Hewitt et al.Transactions of the Association for Computational Linguistics
Read original article →

This paper investigates how well language models actually use long input contexts, a question that had received little study even as models gained the ability to accept longer inputs. The authors analyze performance on two tasks that require identifying relevant information within the input: multi-document question answering and key-value retrieval. By systematically varying where the relevant information is placed within the context, they measure how sensitive models are to position.

They find that performance can degrade significantly depending on the position of the relevant information, indicating that current models do not robustly use information across long contexts. Performance is often highest when the relevant content appears at the beginning or end of the input and degrades substantially when models must retrieve information from the middle, even for models explicitly built for long contexts. This lost-in-the-middle finding provides a better understanding of context usage and introduces new evaluation protocols for future long-context models.

Abstract

Although recent language models accept long contexts, little is known about how effectively they use them. The authors evaluate models on two tasks: multi-document question answering and key-value retrieval. Performance degrades substantially as the position of the relevant information changes, showing that models do not robustly exploit long inputs. Accuracy peaks when the needed information is at the beginning or end and drops in the middle, even for long-context models. The study offers new evaluation protocols and a clearer picture of context usage.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

long-context language modelsquestion answeringretrievalpositional biasmodel evaluation
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.