Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Lost in the Middle: How Language Models Use Long Contexts

About

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.

Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, Percy Liang• 2023

Related benchmarks

TaskDatasetResultRank
Open-ended Information SeekingInfinity-Chat (test)
DSem0.119
20
Anemia predictionEHRSHOT (test)
Accuracy48.42
6
30-day ReadmissionEHRSHOT 30-day Readmission
Accuracy52.67
6
Acute Myocardial Infarction predictionEHRSHOT (test)
Accuracy89.21
6
Long Length of StayEHRSHOT Long Length of Stay
Accuracy65.1
6
Showing 5 of 5 rows

Other info

Follow for update