arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.13504cs.CL
收藏

解耦大型语言模型中的记忆与推理能力

Disentangling Memory and Reasoning Ability in Large Language Models

Rutgers University(罗格斯大学);The Ohio State University(俄亥俄州立大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Mingyu Jin, Weidi Luo, Sitao Cheng, Xinyi Wang, Wenyue Hua, Ruixiang Tang, William Yang Wang, Yongfeng Zhang

AI总结:

本文提出将 LLM 推理显式分解为 memory 知识回忆与 reason 逻辑推理两个动作的新范式,以提升性能、可解释性及错误定位能力。

摘要:

大型语言模型(LLM)在处理同时需要广泛知识和推理能力的复杂任务时表现出强大性能。然而,现有的 LLM 推理流程以不透明过程运行,没有在知识检索与推理步骤之间进行显式分离,使模型的决策过程不清晰且缺乏条理。这种模糊性可能导致幻觉和知识遗忘等问题,从而显著影响 LLM 在高风险领域的可靠性。本文提出一种新的推理范式,将复杂推理过程分解为两个独立且明确的动作:(1)记忆回忆,用于检索相关知识;(2)推理,用于基于回忆出的知识执行逻辑步骤。为促进这种分解,我们引入两个特殊 token:memory 和 reason,引导模型区分需要知识检索的步骤与涉及推理的步骤。实验结果表明,这种分解不仅提升了模型性能,还增强了推理过程的可解释性,使用户能够识别错误来源并有效改进模型响应。代码可在 https://github.com/MingyuJ666/Disentangling-Memory-and-Reasoning 获取。

英文摘要:

Large Language Models (LLMs) have demonstrated strong performance in handling complex tasks requiring both extensive knowledge and reasoning abilities. However, the existing LLM inference pipeline operates as an opaque process without explicit separation between knowledge retrieval and reasoning steps, making the model's decision-making process unclear and disorganized. This ambiguity can lead to issues such as hallucinations and knowledge forgetting, which significantly impact the reliability of LLMs in high-stakes domains. In this paper, we propose a new inference paradigm that decomposes the complex inference process into two distinct and clear actions: (1) memory recall: which retrieves relevant knowledge, and (2) reasoning: which performs logical steps based on the recalled knowledge. To facilitate this decomposition, we introduce two special tokens memory and reason, guiding the model to distinguish between steps that require knowledge retrieval and those that involve reasoning. Our experiment results show that this decomposition not only improves model performance but also enhances the interpretability of the inference process, enabling users to identify sources of error and refine model responses effectively. The code is available at https://github.com/MingyuJ666/Disentangling-Memory-and-Reasoning.

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

↑