arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.15841cs.CLcs.AIcs.IR
收藏

MEM1:学习协同记忆与推理以实现高效长程智能体

MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents

Singapore-MIT Alliance for Research and Technology Centre(新加坡-麻省理工联合研究技术中心);National University of Singapore(国立新加坡大学);MIT(麻省理工学院);Yonsei University(延世大学)

Zijian Zhou, Ao Qu, Zhaoxuan Wu, Sunghwan Kim, Alok Prakash, Daniela Rus, Jinhua Zhao, Bryan Kian Hsiang Low, Paul Pu Liang

AI总结:

本文提出MEM1端到端强化学习框架,通过紧凑共享内部状态实现恒定内存下的记忆巩固与推理协同,在多个长程多轮任务中显著提升性能并降低内存使用。

摘要:

现代语言智能体必须在长程、多轮交互中运行,在此过程中它们检索外部信息、适应观察结果并回答相互依赖的查询。然而,大多数LLM系统依赖全上下文提示,将所有历史轮次都附加到上下文中,而不考虑其相关性。这导致内存无界增长、计算成本增加,并在分布外输入长度上降低推理性能。我们提出MEM1,这是一个端到端强化学习框架,使智能体能够在长多轮任务中以恒定内存运行。在每一轮中,MEM1更新一个紧凑的共享内部状态,该状态同时支持记忆巩固和推理。该状态将先前记忆与环境中的新观察结果整合在一起,同时策略性地丢弃无关或冗余信息。为了支持在更真实和组合化的环境中进行训练,我们提出了一种简单而有效且可扩展的方法,通过将现有数据集组合成任意复杂的任务序列来构建多轮环境。在三个领域的实验,包括内部检索问答、开放域网络问答和多轮网络购物,表明在16目标多跳问答任务上,与Qwen2.5-14B-Instruct相比,MEM1-7B将性能提高了3.5倍,同时将内存使用量减少了3.7倍,并且能够泛化到训练时域之外。我们的结果证明了以推理驱动的记忆巩固作为一种可扩展的替代方案的前景,可用于训练长程交互式智能体,在效率和性能两方面都得到优化。

英文摘要:

Modern language agents must operate over long-horizon, multi-turn interactions, where they retrieve external information, adapt to observations, and answer interdependent queries. Yet, most LLM systems rely on full-context prompting, appending all past turns regardless of their relevance. This leads to unbounded memory growth, increased computational costs, and degraded reasoning performance on out-of-distribution input lengths. We introduce MEM1, an end-to-end reinforcement learning framework that enables agents to operate with constant memory across long multi-turn tasks. At each turn, MEM1 updates a compact shared internal state that jointly supports memory consolidation and reasoning. This state integrates prior memory with new observations from the environment while strategically discarding irrelevant or redundant information. To support training in more realistic and compositional settings, we propose a simple yet effective and scalable approach to constructing multi-turn environments by composing existing datasets into arbitrarily complex task sequences. Experiments across three domains, including internal retrieval QA, open-domain web QA, and multi-turn web shopping, show that MEM1-7B improves performance by 3.5x while reducing memory usage by 3.7x compared to Qwen2.5-14B-Instruct on a 16-objective multi-hop QA task, and generalizes beyond the training horizon. Our results demonstrate the promise of reasoning-driven memory consolidation as a scalable alternative to existing solutions for training long-horizon interactive agents, where both efficiency and performance are optimized.

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

↑