更多记忆,更糟智能体:LLM智能体中的错误复现与反持续性
研究论文 · 2026/10/21
LLM智能体通过将自身执行经验存储于外部记忆并重用,可在不更新模型参数的情况下提升任务表现。核心设计问题是:仅保留观察到的轨迹和结果,还是也保留从中推断的规则、摘要和技能。保留这些抽象可让智能体重用策略而无需反复从原始轨迹推导,但存储抽象中的错误会通过检索和重用传播到后续决策,并塑造执行轨迹,进而成为新抽象的基础,再现原始错误。我们将此反馈机制称为错误再现:错误通过抽象、执行和再抽象的循环被重新生成,使其持久性超越对原始错误知识的直接重用。我们提出Anti-Persistence,一种记忆设计,累积轨迹和结果,同时按需重建任务特定指导。自适应选择器利用先前结果决定是否以及如何合成指导,该指导在执行后被丢弃。这防止其作为存储对象被直接重用,尽管通过保留轨迹的间接反馈仍可能。在不同基准和骨干模型上,Anti-Persistence在评估的记忆设计中实现了更高的整体留出成功率,且平均LLM调用成本最低。这些结果支持在基于记忆的自我改进中将经验积累与抽象持久化分离。
该研究揭示了LLM智能体记忆设计中抽象存储的错误传播风险,并提出了有效的缓解方案,对提升智能体可靠性和效率具有重要参考价值。
LLM agents can improve across tasks without updating model parameters by storing experience from their own executions in external memory and reusing it to guide later decisions. A central design question is whether to retain only observed trajectories and outcomes or also the rules, summaries, and skills inferred from them. Retaining these abstractions allows agents to reuse strategies without repeatedly deriving them from raw trajectories. However, errors in stored abstractions can propagate to subsequent decisions through retrieval and reuse. They can also shape execution trajectories, which then become the basis for new abstractions that reproduce the original errors. We term this feedback mechanism error reproduction: errors are regenerated through a cycle of abstraction, execution, and re-abstraction, extending their persistence beyond direct reuse of the original faulty knowledge. We propose Anti-Persistence, a memory design that accumulates trajectories and outcomes while reconstructing task-specific guidance on demand. An adaptive selector uses prior outcomes to decide whether and how to synthesize guidance, which is discarded after execution. This prevents its direct reuse as a stored object, although indirect feedback through retained trajectories remains possible. Across different benchmarks and backbones, Anti-Persistence achieves higher overall held-out success and the lowest average LLM-call cost among the evaluated memory designs. These results support separating experience accumulation from abstraction persistence in memorybased self-improvement.