Skip to main content
QUICK REVIEW

[Paper Review] A-MEM: Agentic Memory for LLM Agents

Wujiang Xu, Zujie Liang|ArXiv.org|Feb 17, 2025
Modular Robots and Swarm IntelligenceEngineering6 citations
TL;DR

A-Mem introduces an agentic, dynamically evolving memory system for LLM agents inspired by Zettelkasten, enabling autonomous note creation, linking, and memory evolution to improve long-term task performance. Evaluations across six foundation models on LoCoMo show competitive to superior results, especially in multi-hop reasoning, with lower token overhead.

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. 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.

Motivation & Objective

  • Motivate flexible, universal memory for LLM agents that goes beyond fixed schemas and predefined memory operations.
  • Design an agentic memory system that autonomously constructs enriched memory notes with attributes and embeddings.
  • Enable dynamic linking and evolution of memories to form a self-organizing knowledge network.
  • Demonstrate superior performance on long-term conversational tasks across multiple foundation models.

Proposed method

  • Adopt Zettelkasten-inspired atomic notes with rich attributes (content, timestamp, keywords, tags, contextual description) and dense embeddings for similarity matching.
  • Compute note embeddings and use top-k cosine similarity to select near memories for link generation.
  • Invoke LLMs to generate contextual descriptions, links, and evolving attributes when new memories are added.
  • Allow memory evolution by updating surrounding memories’ context, keywords, and tags in response to new experiences.
  • Retrieve relevant memories for a given query by embedding the query and performing cosine similarity search over the memory network.

Experimental results

Research questions

  • RQ1Can an agentic memory system autonomously structure and evolve memories without predefined operations?
  • RQ2Do dynamic links and memory evolution improve long-term reasoning in multi-session tasks?
  • RQ3How does A-Mem compare to existing memory baselines across diverse foundation models on long-term conversational benchmarks?

Key findings

  • A-Mem achieves competitive to superior F1 and BLEU-1 scores across six foundation models on LoCoMo, with notable gains in multi-hop tasks.
  • Memory retrieval with top-k settings balances context richness and processing efficiency, showing diminishing returns at higher k.
  • Ablation studies show that both link generation and memory evolution contribute to performance, with full A-Mem outperforming variants.
  • t-SNE visualizations indicate more coherent memory clustering with A-Mem, reflecting stronger memory organization.
  • A-Mem maintains substantially lower token lengths (roughly 1,200–2,500) compared to some baselines (≈16,900).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.