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

学习记忆:利用自适应记忆框架优化基于LLM的智能体

Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Huawei Noah’s Ark Lab(华为诺亚实验室)

Zeyu Zhang, Quanyu Dai, Rui Li, Xiaohe Bo, Xu Chen, Zhenhua Dong

AI总结:

本文提出一种自适应数据驱动的记忆框架,通过建模记忆循环并引入MoE门控、可学习聚合和任务特定反思,使基于LLM的智能体能够在特定环境中有效学习记忆策略,并通过多维度实验验证其有效性。

摘要:

基于LLM的智能体已被广泛应用于各个领域,其中记忆是其最核心的能力之一。以往基于LLM的智能体的记忆机制由人类专家手动预定义,导致较高的人工成本和次优性能。此外,这些方法忽视了交互场景中的记忆循环效应,而该效应对针对特定环境优化基于LLM的智能体至关重要。为应对这些挑战,本文提出通过建模记忆循环,利用自适应且数据驱动的记忆框架来优化基于LLM的智能体。具体而言,我们设计了一个MoE门控函数以促进记忆检索,提出了一种可学习的聚合过程以提高记忆利用率,并开发了任务特定的反思机制以适配记忆存储。我们的记忆框架使基于LLM的智能体能够在特定环境中有效学习如何记忆信息,并同时支持离策略和在策略优化。为评估所提方法的有效性,我们从多个方面进行了全面实验。为惠及该领域的研究社区,我们在 https://github.com/nuster1128/learn_to_memorize 发布了本项目。

英文摘要:

LLM-based agents have been extensively applied across various domains, where memory stands out as one of their most essential capabilities. Previous memory mechanisms of LLM-based agents are manually predefined by human experts, leading to higher labor costs and suboptimal performance. In addition, these methods overlook the memory cycle effect in interactive scenarios, which is critical to optimizing LLM-based agents for specific environments. To address these challenges, in this paper, we propose to optimize LLM-based agents with an adaptive and data-driven memory framework by modeling memory cycles. Specifically, we design an MoE gate function to facilitate memory retrieval, propose a learnable aggregation process to improve memory utilization, and develop task-specific reflection to adapt memory storage. Our memory framework empowers LLM-based agents to learn how to memorize information effectively in specific environments, with both off-policy and on-policy optimization. In order to evaluate the effectiveness of our proposed methods, we conduct comprehensive experiments across multiple aspects. To benefit the research community in this area, we release our project at https://github.com/nuster1128/learn_to_memorize.

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

↑