MemHarness: Memory Is Reconstructed, Not Replayed
作者: Rong Wu, Daocheng Fu, Licheng Wen, Xuemeng Yang, Shu Zou, Jianbiao Mei, Yuxin Wang, Hairong Zhang, Yu Yang, Tao Hu, Cong Zhang, Botian Shi, Pinlong Cai
分类: cs.AI
发布日期: 2026-07-30
备注: 20 pages, 13 figures
💡 一句话要点
提出MemHarness框架以重构而非重放记忆提升LLM智能体表现
🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)
关键词: 记忆重构 大型语言模型 强化学习 动态决策 智能体 负迁移 上下文适应
📋 核心要点
- 现有的记忆增强智能体通常将检索到的经验逐字重放,导致负迁移问题,无法适应当前决策环境。
- MemHarness框架通过重构过去经验,使智能体能够根据当前上下文生成适应性指导,提升决策质量。
- 实验结果显示,MemHarness在多个任务上显著超越传统方法,尤其在处理分布外场景时表现出色。
📝 摘要(中文)
检索过去经验已成为增强大型语言模型智能体的常用策略。然而,大多数现有的记忆增强智能体将检索到的经验视为静态记录,逐字重放,忽视了存储经验的抽象性与决策时具体状态之间的差距。与此不同,MemHarness框架使LLM智能体能够根据当前上下文主动重构过去经验。在每个决策步骤中,统一策略模型会对检索到的经验进行批判性重构,生成基于上下文的指导。实验结果表明,MemHarness在ALFWorld和WebShop上显著优于纯强化学习和静态记忆增强基线,展现出在分布外场景中的强鲁棒性。
🔬 方法详解
问题定义:论文旨在解决现有记忆增强智能体在决策时逐字重放经验的问题,这种方法常常导致负迁移,无法有效适应动态环境。
核心思路:MemHarness框架的核心思想是通过重构而非重放过去的经验,使智能体能够根据当前的上下文进行适应性调整,从而提升决策的相关性和有效性。
技术框架:MemHarness的整体架构包括一个统一的策略模型,该模型在每个决策步骤中对检索到的经验进行批判性分析和重构,生成与当前状态相匹配的指导信息。
关键创新:该框架的主要创新在于其重构能力,通过端到端训练与GRPO结合,使得智能体能够在决策时灵活调整经验,而非简单重放,显著提升了智能体的推理能力。
关键设计:在设计上,MemHarness采用了特定的损失函数来优化重构过程,并通过多层神经网络结构来实现经验的批判性分析与重构,确保生成的指导信息与当前状态高度相关。
🖼️ 关键图片
📊 实验亮点
在ALFWorld和WebShop的实验中,MemHarness框架显著超越了纯强化学习和静态记忆增强基线,尤其在分布外场景中表现出色,提升幅度达到XX%(具体数据待补充),展现出强大的鲁棒性和适应性。
🎯 应用场景
MemHarness框架具有广泛的应用潜力,特别是在需要动态决策的领域,如机器人控制、智能客服和个性化推荐系统。通过提升智能体的记忆重构能力,能够更好地适应复杂和变化的环境,增强用户体验和系统效率。
📄 摘要(原文)
Retrieving past experiences has become a common strategy to enhance large language model agents. However, most existing memory-augmented agents treat retrieved experiences as static records to be replayed verbatim, injecting them into the context regardless of whether they align with the agent's current situation. This ``replay'' paradigm ignores the gap between the abstract, general nature of stored experience and the concrete, ever-changing states encountered at decision time, frequently causing negative transfer. In contrast, humans rarely recall past experiences verbatim; instead, they reorganize and adapt retrieved memories to fit the present context. Inspired by this, we propose MemHarness, a framework that equips LLM agents to actively harness and reconstruct past experiences based on the present context. At each decision step, a unified policy model critiques and reconstructs the retrieved experience conditioned on the current state, producing context-grounded guidance before acting. This reconstructive ability emerges naturally through end-to-end training with GRPO. Experiments on ALFWorld and WebShop show that MemHarness substantially outperforms pure RL and static memory-augmented baselines, demonstrating strong robustness in out-of-distribution (OOD) scenarios. Furthermore, our analyses reveal that this reconstruction objective not only prevents negative transfer but also serves as latent guidance during training, fundamentally improving the agent's intrinsic reasoning capabilities.