A-MEM: Agentic Memory for LLM Agents

Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan +1 more
2/1/2025
1,429 citations

Official code: WujiangXu/A-mem (1,014 stars, Python, MIT, last commit 2026-03-05). 1 more implementation below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
WujiangXu/A-memOfficial1,014PythonMIT2026-03-05
WujiangXu/A-mem-sysOfficial409PythonMIT2026-03-15
WujiangXu/A-memOfficial100%
MIT

The code for NeurIPS 2025 paper "A-Mem: Agentic Memory for LLM Agents"

1,014111Python, ShellJan 30, 20259 months agoMIT
MIT

A-MEM: Agentic Memory for LLM Agents

40961PythonJul 14, 20258 months agoMIT

Similar Papers

Cite this paper

@article{xu2025amem,
  title  = {A-MEM: Agentic Memory for LLM Agents},
  author = {Wujiang Xu and Zujie Liang and Kai Mei and Hang Gao and Juntao Tan and Yong-Feng Zhang},
  year   = {2025},
  eprint = {2502.12110},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2502.12110},
  url    = {https://doi.org/10.48550/arXiv.2502.12110},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12110.svg)](https://codeofpaper.com/paper/2502.12110)

Discussion