通过检索-推理双阶段提升长文本问答的准确率
ALR$^2$: A Retrieve-then-Reason Framework for Long-context Question Answering
- 先检索后推理,分步引导模型聚焦关键信息
- 在HotpotQA和SQuAD长文本任务上分别提升8.4和7.9的精确率
- 适合需要精准长文本理解的问答与知识推理场景
近年来大语言模型(LLM)的上下文窗口已显著扩展,但模型在长文本中准确推理的能力却明显下降。这是因为现代LLM常被海量信息淹没,在回答问题时需从稀疏分布的文本中识别并推理相关证据。为缓解这一问题,我们提出一种检索-推理框架,使模型在中间检索阶段收集相关证据后再进行推理。我们发现,现有LLM在检索时难以准确提取事实,常产生幻觉性“检索结果”,导致错误推理。为此,我们引入ALR$^2$,通过显式的两阶段流程,对齐模型在检索与推理目标上的表现。在多个长文本问答基准测试中,该方法显著优于基线,相较于对比模型,在HotpotQA和SQuAD的长文本版本上分别取得至少8.4和7.9的EM提升。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。