Reproduce “A-MEM: Agentic Memory for LLM Agents” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

A-MEM organizes conversational memories by turning interactions into contextualized notes, linking related notes, and revising older notes as new exchanges arrive. An LLM proposes links among retrieved candidates. In LoCoMo multi-hop question answering with GPT-4o-mini, F1 rises from 9.65 without both modules, to 21.35 with link generation alone, and 27.02 with both. These results apply to the tested setting.

Key insights

  • LLM-driven dynamic organization, linking, and evolution of memory (agentic memory) substantially enhance LLM agents' capabilities for complex, long-term reasoning.
  • Mimicking human knowledge organization methods like Zettelkasten, by creating interconnected and flexible knowledge networks, allows for emergent understanding and adaptability in AI agents.
  • An agentic approach to memory management can drastically reduce operational costs by enabling selective and context-aware retrieval, minimizing token usage in LLM interactions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.