arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.07903cs.CLcs.LG
收藏

记忆增强语言模型能否在“草堆中推理”任务上实现泛化?

Can Memory-Augmented Language Models Generalize on Reasoning-in-a-Haystack Tasks?

IBM AI Research(IBM AI研究院);Princeton University(普林斯顿大学)

Payel Das, Ching-Yun Ko, Sihui Dai, Georgios Kollias, Subhajit Chaudhury, Aurelie Lozano

AI总结:

本文提出记忆增强架构 MemReasoner,通过在上下文中学习事实顺序并选择性关注记忆,在仅使用极弱支持事实监督的情况下,于单跳和双跳合成推理任务上实现强泛化,优于现有记忆增强 Transformer 和状态空间模型。

摘要:

大型语言模型在推理任务中常常暴露出脆弱性,尤其是在上下文中执行长链推理时。我们提出 MemReasoner,一种新的、简单的记忆增强 LLM 架构,其中记忆学习上下文中事实的相对顺序,并支持在这些事实上进行跳跃,而解码器则选择性地关注记忆。MemReasoner 以端到端方式进行训练,并可选地使用不同程度支持事实监督。我们将 MemReasoner 与现有的记忆增强 Transformer 模型以及一个状态空间模型一起,在两个不同的合成多跳推理任务上进行训练。在多种具有挑战性的场景下开展的实验,包括测试集中存在长干扰文本或目标答案发生变化的情况,显示 MemReasoner 在单跳和双跳任务上都具有很强的泛化能力。MemReasoner 的这种泛化是在无支持事实监督到弱支持事实监督的条件下实现的(单跳和双跳任务分别使用无支持事实和 1% 的支持事实)。相比之下,基线模型总体上难以泛化,并且从使用完整支持事实监督中获益远少。这些结果凸显了显式记忆机制结合额外弱监督,对于提升大型语言模型面向推理任务的上下文处理能力的重要性。

英文摘要:

Large language models often expose their brittleness in reasoning tasks, especially while executing long chains of reasoning over context. We propose MemReasoner, a new and simple memory-augmented LLM architecture, in which the memory learns the relative order of facts in context, and enables hopping over them, while the decoder selectively attends to the memory. MemReasoner is trained end-to-end, with optional supporting fact supervision of varying degrees. We train MemReasoner, along with existing memory-augmented transformer models and a state-space model, on two distinct synthetic multi-hop reasoning tasks. Experiments performed under a variety of challenging scenarios, including the presence of long distractor text or target answer changes in test set, show strong generalization of MemReasoner on both single- and two-hop tasks. This generalization of MemReasoner is achieved using none-to-weak supporting fact supervision (using none and 1\% of supporting facts for one- and two-hop tasks, respectively). In contrast, baseline models overall struggle to generalize and benefit far less from using full supporting fact supervision. The results highlight the importance of explicit memory mechanisms, combined with additional weak supervision, for improving large language model's context processing ability toward reasoning tasks.

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

↑