arXiv:2505.16067cs.AI2025-05ACL被引 90

研究记忆管理如何影响大模型智能体的长期表现。

How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behavior

  • 通过增删记忆操作,系统分析记忆对智能体行为的影响。
  • 发现智能体存在经验跟随现象,输入相似则输出高度相似。
  • 揭示错误传播与经验错配问题,提出用未来任务评估作为记忆质量标签。

记忆是基于大语言模型(LLM)智能体的关键组件,使其能够存储并检索过往执行记录,从而提升任务性能。本文针对广泛使用的记忆添加与删除操作,开展实证研究,系统考察其对智能体行为的影响,尤其关注长期性能。定量分析发现,LLM智能体表现出经验跟随特性:任务输入与记忆记录中输入的高度相似,常导致输出高度相似。进一步分析揭示两大挑战:错误传播,即过去经验中的误差会累积并恶化未来表现;以及经验错配,某些看似正确的执行可能提供有限或误导性的经验价值。通过受控实验,我们验证了在记忆库中调控经验质量的重要性,并表明未来任务评估可作为无成本的质量标签。研究结果为理解智能体记忆系统的动态行为提供了洞见,也为设计支持稳健长时性能的记忆组件提供了实践指导。

原文摘要 · Abstract (English)

Memory is a critical component in large language model (LLM)-based agents, enabling them to store and retrieve past executions to improve task performance over time. In this paper, we conduct an empirical study on how memory management choices impact the LLM agents' behavior, especially their long-term performance. Specifically, we focus on two fundamental memory management operations that are widely used by many agent frameworks-memory addition and deletion-to systematically study their impact on the agent behavior. Through our quantitative analysis, we find that LLM agents display an experience-following property: high similarity between a task input and the input in a retrieved memory record often results in highly similar agent outputs. Our analysis further reveals two significant challenges associated with this property: error propagation, where inaccuracies in past experiences compound and degrade future performance, and misaligned experience replay, where some seemingly correct executions can provide limited or even misleading value as experiences. Through controlled experiments, we demonstrate the importance of regulating experience quality within the memory bank and show that future task evaluations can serve as free quality labels for stored memory. Our findings offer insights into the behavioral dynamics of LLM agent memory systems and provide practical guidance for designing memory components that support robust, long-term agent performance.

大模型智能体记忆管理经验跟随长期性能

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。