arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.03227cs.CL
收藏

ALR²:一种用于长上下文问答的“先检索后推理”框架

ALR$^2$: A Retrieve-then-Reason Framework for Long-context Question Answering

Cohere(科here公司);Nara Institute of Science and Technology(奈良科学技术研究所);Carnegie Mellon University(卡内基梅隆大学)

Huayang Li, Pat Verga, Priyanka Sen, Bowen Yang, Vijay Viswanathan, Patrick Lewis, Taro Watanabe, Yixuan Su

AI总结:

针对LLM在长上下文中推理能力下降及检索幻觉问题,提出两阶段“先检索后推理”框架ALR²,同时对齐检索与推理目标,在长上下文QA基准上显著超越基线。

摘要:

近年来,大语言模型(LLMs)的上下文窗口已得到显著扩展。然而,尽管LLM能够处理的上下文长度有所增长,模型在该上下文中进行准确推理的能力却明显下降。出现这一现象的原因是现代LLM常常被上下文中海量的信息所淹没;在回答问题时,模型必须识别并基于稀疏分布于全文中的相关证据进行推理。为了缓解长上下文推理的挑战,我们开发了一种“先检索后推理”框架,使LLM能够基于中间检索步骤中收集到的相关证据进行推理。我们发现现代LLM难以准确检索相关事实,反而常常幻觉出“检索到的事实”,从而导致推理存在缺陷并产生错误答案。为了解决这些问题,我们提出了ALR²,该方法通过显式的两阶段过程来增强LLM的长上下文推理能力,即使LLM同时对齐检索与推理两个目标。我们证明了ALR²在缓解长上下文推理任务中性能下降方面的有效性。通过在长上下文问答基准上的大量实验,我们发现我们的方法大幅优于竞争基线,在HotpotQA和SQuAD数据集的长上下文版本上分别取得了至少8.4和7.9的精确匹配(EM)增益。

英文摘要:

The context window of large language models (LLMs) has been extended significantly in recent years. However, while the context length that the LLM can process has grown, the capability of the model to accurately reason over that context degrades noticeably. This occurs because modern LLMs often become overwhelmed by the vast amount of information in the context; when answering questions, the model must identify and reason over relevant evidence sparsely distributed throughout the text. To alleviate the challenge of long-context reasoning, we develop a retrieve-then-reason framework, enabling LLMs to reason over relevant evidence collected during an intermediate retrieval step. We find that modern LLMs struggle to accurately retrieve relevant facts and instead, often hallucinate "retrieved facts", resulting in flawed reasoning and the production of incorrect answers. To address these issues, we introduce ALR$^2$, a method that augments the long-context reasoning capability of LLMs via an explicit two-stage procedure, i.e., aligning LLMs with the objectives of both retrieval and reasoning. We demonstrate the efficacy of ALR$^2$ for mitigating performance degradation in long-context reasoning tasks. Through extensive experiments on long-context QA benchmarks, we find our method to outperform competitive baselines by large margins, achieving at least 8.4 and 7.9 EM gains on the long-context versions of HotpotQA and SQuAD datasets, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑