TensorX
返回文献探索

Paper · arXiv 2307.03172

Lost in the Middle: How Language Models Use Long Contexts

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

44 upvotesJuly 6, 2023arXiv 预印本
AI 摘要

Analysis reveals language models perform better when relevant information is at the ends of longer contexts and suggests new evaluation protocols for long-context models.

multi-document question answeringkey-value retrievallong-context models

Abstract

While recent language models have the ability to take long contexts as input, relatively little is known about how well the language models use longer context. We analyze language model performance on two tasks that require identifying relevant information within their input contexts: multi-document question answering and key-value retrieval. We find 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. Furthermore, performance substantially decreases as the input context grows longer, 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 models.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Lost in the Middle: How Language Models Use Long Contexts | TensorX