Lost in the Middle: How Language Models Use Long Contexts
Citations Over TimeTop 1% of 2024 papers
Abstract
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.
Related Papers
- → Automated system for classification of COVID-19 infection from lung CT images based on machine learning and deep learning techniques(2022)12 cited
- → Machine Learning and Deep Learning Approaches for Robotics Applications(2023)10 cited
- → Improved topic-dependent language modeling using information retrieval techniques(1999)55 cited
- → An Object Detection and Pose Estimation Approach for Position Based Visual Servoing(2017)5 cited
- → Significance of Machine Learning and Deep Learning in Development of Artificial Intelligence(2022)4 cited