arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.12110cs.CLcs.HC
收藏

A-MEM:面向LLM智能体的智能体记忆系统

A-MEM: Agentic Memory for LLM Agents

Rutgers University(罗杰斯大学)

Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, Yongfeng Zhang

AI总结:

针对LLM智能体记忆系统组织能力不足和适应性差的问题,本文提出基于Zettelkasten方法的智能体记忆系统A-MEM,通过动态索引和链接构建知识网络,实现记忆演化,在六个基础模型上超越现有SOTA基线。

摘要:

尽管大型语言模型(LLM)智能体能够有效地使用外部工具处理复杂的现实世界任务,但它们需要记忆系统来利用历史经验。当前的记忆系统能够实现基本的存储和检索,但缺乏复杂的记忆组织能力,尽管最近有尝试引入图数据库。此外,这些系统的固定操作和结构限制了它们在不同任务中的适应性。为了解决这一局限性,本文提出了一种新颖的、面向LLM智能体的智能体记忆系统,该系统能够以智能体的方式动态组织记忆。遵循Zettelkasten方法的基本原则,我们设计的记忆系统通过动态索引和链接创建相互关联的知识网络。当添加新记忆时,我们生成包含多个结构化属性的综合笔记,包括上下文描述、关键词和标签。然后,系统分析历史记忆以识别相关联系,在存在有意义相似性的地方建立链接。此外,这一过程还实现了记忆演化——随着新记忆的整合,它们可以触发对现有历史记忆的上下文表示和属性的更新,从而使记忆网络不断优化其理解。我们的方法将Zettelkasten的结构化组织原则与智能体驱动决策的灵活性相结合,实现了更具适应性和上下文感知的记忆管理。在六个基础模型上的实证实验显示,相较于现有的SOTA基线,我们的方法取得了显著的改进。用于评估性能的源代码可在https://github.com/WujiangXu/A-mem获取,而智能体记忆系统的源代码可在https://github.com/WujiangXu/A-mem-sys获取。

英文摘要:

While large language model (LLM) agents can effectively use external tools for complex real-world tasks, they require memory systems to leverage historical experiences. Current memory systems enable basic storage and retrieval but lack sophisticated memory organization, despite recent attempts to incorporate graph databases. Moreover, these systems' fixed operations and structures limit their adaptability across diverse tasks. To address this limitation, this paper proposes a novel agentic memory system for LLM agents that can dynamically organize memories in an agentic way. Following the basic principles of the Zettelkasten method, we designed our memory system to create interconnected knowledge networks through dynamic indexing and linking. When a new memory is added, we generate a comprehensive note containing multiple structured attributes, including contextual descriptions, keywords, and tags. The system then analyzes historical memories to identify relevant connections, establishing links where meaningful similarities exist. Additionally, this process enables memory evolution - as new memories are integrated, they can trigger updates to the contextual representations and attributes of existing historical memories, allowing the memory network to continuously refine its understanding. Our approach combines the structured organization principles of Zettelkasten with the flexibility of agent-driven decision making, allowing for more adaptive and context-aware memory management. Empirical experiments on six foundation models show superior improvement against existing SOTA baselines. The source code for evaluating performance is available at https://github.com/WujiangXu/A-mem, while the source code of the agentic memory system is available at https://github.com/WujiangXu/A-mem-sys.

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

↑