about
Lost in the Middle: How Language Models Use Long Contexts (2023) (arxiv.org)
2 points by wslh 246 days ago | hide | past | pdf | discuss on HN

In plain words: Tested how language models use long inputs by moving the key fact to different spots in question answering and lookup tasks. Accuracy was highest when the fact sat at the start or end and fell in the middle, even for models made for long inputs.

Abstract · Lost in the Middle: How Language Models Use Long Contexts

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
arXiv:2307.03172 · cs.CL · submitted Jul 6, 2023 · updated Nov 20, 2023
abstract · pdf · html · 18 pages, 16 figures. Accepted for publication in Transactions of the Association for Computational Linguistics (TACL), 2023

add comment on HN
Also discussed: Aug 2023 (15 points, 0 comments) · Jul 2023 (2 points, 0 comments)