BABILong:用长上下文大海捞针式推理测试大语言模型的极限
BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack
AI总结:
本文提出BABILong基准,用于测试大语言模型在超长文档中的跨事实推理能力,发现主流模型仅有效利用10%-20%上下文,而微调后的循环记忆变换器可处理5000万token,为长上下文推理评估提供了可扩展标准。
摘要:
近年来,大语言模型(LLMs)的输入上下文规模急剧增大。然而,现有的评估方法未能跟上这一发展,未能全面评估模型处理长上下文的能力。为弥补这一差距,我们引入了BABILong基准,旨在测试语言模型在极长文档中跨事实推理的能力。BABILong包含20个多样化的推理任务,包括事实链、简单归纳、演绎、计数以及列表/集合处理。这些任务本身具有挑战性,而当所需事实分散在长篇幅自然文本中时,任务难度进一步加大。我们的评估显示,主流大语言模型仅有效利用了上下文的10%-20%,且其性能随推理复杂度的增加而急剧下降。在上下文内推理的替代方案中,检索增强生成方法在单事实问答上达到60%的准确率,且与上下文长度无关。在上下文扩展方法中,经过微调的循环记忆变换器表现出最高性能,能够处理长达5000万token的序列。BABILong基准可扩展到任意长度,以支持对能力增强的新模型的评估,我们提供了最长1000万token的分割。
英文摘要:
In recent years, the input context sizes of large language models (LLMs) have increased dramatically. However, existing evaluation methods have not kept pace, failing to comprehensively assess the efficiency of models in handling long contexts. To bridge this gap, we introduce the BABILong benchmark, designed to test language models' ability to reason across facts distributed in extremely long documents. BABILong includes a diverse set of 20 reasoning tasks, including fact chaining, simple induction, deduction, counting, and handling lists/sets. These tasks are challenging on their own, and even more demanding when the required facts are scattered across long natural text. Our evaluations show that popular LLMs effectively utilize only 10-20\% of the context and their performance declines sharply with increased reasoning complexity. Among alternatives to in-context reasoning, Retrieval-Augmented Generation methods achieve a modest 60\% accuracy on single-fact question answering, independent of context length. Among context extension methods, the highest performance is demonstrated by recurrent memory transformers after fine-tuning, enabling the processing of lengths up to 50 million tokens. The BABILong benchmark is extendable to any length to support the evaluation of new upcoming models with increased capabilities, and we provide splits up to 10 million token lengths.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。