arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.04150cs.CLcs.AI
收藏

在多根针于干草堆中的推理

Reasoning on Multiple Needles In A Haystack

Yidong Wang

AI总结:

本文针对多针推理任务中模型直接作答及长上下文性能下降问题,提出过滤直接答案、分解检索与推理阶段并引入反思机制,通过迭代思维训练缓解性能退化,并提升GPT-4o在AIME2024上的表现。

摘要:

“干草堆中的一根针”(NIAH)任务已被广泛用于评估大语言模型(LLMs)的长上下文问答能力。然而,该任务对简单检索的依赖限制了其有效性。为解决这一局限,近期研究引入了“多根针于干草堆中的推理”(MNIAH-R)任务,将多跳推理任务的支持文档(多根针)嵌入干扰性上下文(干草堆)中。尽管有这一进展,现有方法仍未能解决模型直接从内部知识给出答案的问题,也未解释或缓解随着上下文长度增加而出现的准确率下降。在本文中,我们通过过滤掉可直接回答的问题来应对基于记忆作答的问题,并揭示性能下降主要由输入长度增加导致思维过程长度缩短所驱动。基于这一发现,我们将思维过程分解为检索和推理两个阶段,并引入用于多轮扩展的反思机制。我们还利用生成的迭代思维过程训练了一个模型,这有助于缓解性能下降。此外,我们展示了这种检索-反思能力在数学推理场景中的应用,提升了GPT-4o在AIME2024上的表现。

英文摘要:

The Needle In A Haystack (NIAH) task has been widely used to evaluate the long-context question-answering capabilities of Large Language Models (LLMs). However, its reliance on simple retrieval limits its effectiveness. To address this limitation, recent studies have introduced the Multiple Needles In A Haystack Reasoning (MNIAH-R) task, which incorporates supporting documents (Multiple needles) of multi-hop reasoning tasks into a distracting context (Haystack}). Despite this advancement, existing approaches still fail to address the issue of models providing direct answers from internal knowledge, and they do not explain or mitigate the decline in accuracy as context length increases. In this paper, we tackle the memory-based answering problem by filtering out direct-answer questions, and we reveal that performance degradation is primarily driven by the reduction in the length of the thinking process as the input length increases. Building on this insight, we decompose the thinking process into retrieval and reasoning stages and introduce a reflection mechanism for multi-round extension. We also train a model using the generated iterative thinking process, which helps mitigate the performance degradation. Furthermore, we demonstrate the application of this retrieval-reflection capability in mathematical reasoning scenarios, improving GPT-4o's performance on AIME2024.

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

↑