Lost in the Middle: How Language Models Use Long Contexts

Затерянные в середине: как языковые модели используют длинные контексты
Kevin Lin, Percy Liang, John Hewitt, Fabio Petroni, Nelson F. Liu, Ashwin Paranjape, Michele Bevilacqua
2024-01-01

key-value retrievallong-context evaluationlong-context language modelsmulti-document question answeringposition-dependent performance
Abstract While recent language models have the ability to take long contexts as input, relatively little is known about how well they use longer context. We analyze the performance of language models on two tasks that require identifying relevant information in their input contexts: multi-document question answering and key-value retrieval. We find that performance can degrade significantly when changing the position of relevant information, indicating that current language models do not robustly make use of information in long input contexts. In particular, we observe that performance is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts, even for explicitly long-context models. Our analysis provides a better understanding of how language models use their input context and provides new evaluation protocols for future long-context language models.
1
Accessing relevant information in the middle of long contexts causes significant performance degradation, including for explicitly long-context models.
2
Model performance can degrade substantially when the position of relevant information changes within the input context.
3
Models generally perform best when relevant information appears at the beginning or end of long contexts.
4
The analysis introduces evaluation protocols for assessing how robustly future language models use long input contexts.
5
The study evaluates long-context language models on multi-document question answering and key-value retrieval tasks requiring relevant-information identification.

language models processing long input contexts

the dependence of relevant-information retrieval and task performance on information position within long contexts, including the degradation of performance for information located in the middle

Publication Details
Publication Date
2024-01-01
Journal
Publisher
ISSN
Cited by
1281
Access Type
Author Information
Authors
Kevin Lin
Percy Liang
John Hewitt
Fabio Petroni
Nelson F. Liu
Ashwin Paranjape
Michele Bevilacqua
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%