让语言代理的长期记忆会自我纠错,避免错误信息反复污染
EvoGraph-Mem: Failure-Aware Editable Graph Memory for Long-Term Language Agents

- 用带正负证据和状态的图结构管理记忆节点
- 实验显示新方法在多种模型上均超越现有基线
- 适合需要长期学习与纠错的任务场景
长期记忆对持续交互与任务演化的语言代理至关重要。现有内存增强型代理多关注经验的存储与检索,但存储内容的质量可能随时间退化。特别是先前提炼的洞见在新任务背景下可能过时、过度泛化或有害,重复使用会引发记忆污染。为此,我们研究了语言代理的洞察级内存维护,提出一种基于可编辑洞察图的故障感知维护框架。每个洞察节点记录正证据、负证据及激活状态,使代理能区分可复用与冲突或无效的洞见。我们进一步引入效用感知检索机制和图控制器,在任务执行后通过保留可靠洞见、归档无效洞见、修订过时洞见并添加新发现的可复用洞见来更新记忆图。大量实验表明,该方法在不同主干模型下均持续优于代表性记忆代理基线。消融实验进一步证明,仅追加的内存不足以应对长时程任务,而基于证据的检索与图级编辑显著提升了内存可靠性与下游任务性能。
原文摘要 · Abstract (English)
Long-term memory is essential for language agents operating across extended interactions and evolving tasks. Existing memory-augmented agents mainly focus on storing and retrieving past experience, but the quality of stored memories may degrade over time. In particular, previously distilled insights can become outdated, over-generalized, or harmful under new task contexts, causing memory pollution when repeatedly reused. To address this issue, we study insight-level memory maintenance for long-term language agents and propose a failure-aware memory maintenance framework based on an editable insight graph. Each insight node tracks positive evidence, negative evidence, and an activation state, enabling the agent to distinguish reusable insights from conflicting or invalid ones. We further introduce a utility-aware retrieval mechanism and a graph controller that updates the memory graph after task execution by keeping reliable insights, archiving invalid ones, revising outdated ones, and adding newly discovered reusable insights. Extensive experiments show that our method consistently outperforms representative memory-based agent baselines across different backbone models. Ablation studies further demonstrate that append-only memory is insufficient for long-horizon tasks, while evidence-aware retrieval and graph-level editing improve memory reliability and downstream task performance.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。