GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

A-Mem: Agentic Memory for LLM Agents

Memory as Zettelkasten: each interaction becomes a note with LLM-written keywords and context, linked to related notes; old notes are rewritten as new ones arrive. Big temporal gains, mixed elsewhere.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2025
AUTHORS
Xu, Liang, Mei, Gao, Tan, Zhang
FROM
Rutgers University, AIOS Foundation
PUBLISHED
Feb 2025 · arXiv preprint
CITED BY
1,222Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

A Zettelkasten is a note-taking method: write small, self-contained notes and link them to related ones, so a network of ideas grows over time. Wujiang Xu, Yongfeng Zhang and colleagues at Rutgers and the AIOS Foundation built A-MEM to give LLM agents memory organized the same way, with the model doing the organizing.

Every interaction becomes a note. It holds the original content and a timestamp, plus attributes the model writes: keywords, tags and a context description that explains what the interaction means. An embedding of all of these is computed for search. When a note is added, A-MEM retrieves the most similar existing notes and asks the model which of them it should link to, based on shared attributes. Then comes the distinctive step, memory evolution: for each of those neighbors, the model decides whether to update its context, keywords and tags in light of the new note, and the updated version replaces the old one. At question time, the query is embedded and the top-k most similar notes go into the prompt.

The authors tested A-MEM on LoCoMo, long multi-session conversations of about 9,000 tokens with 7,512 questions across five types (single-hop, multi-hop, temporal, open-domain, adversarial), with six models from GPT-4o-mini to small Qwen and Llama models, and on DialSim, questions over TV-show dialogues. Compared with putting the whole conversation in context (the LoCoMo baseline), MemGPT, ReadAgent and MemoryBank, A-MEM had the best average rank and used far fewer context tokens per question. Its biggest gains were on temporal questions. On several question types, the full-conversation baseline or MemGPT scored higher.

An ablation showed that removing link generation and evolution hurt substantially, and removing only evolution hurt less.

THE IDEA, VISUALLY
A NOTE content · timestamp · keywords · tags · context description embedding of all of the above · links to related notes keywords, tags and context are written by the LLM WRITE PATH (EVERY NEW INTERACTION) Build note LLM writes it Neighbors top-k similar Link LLM decides Evolve LLM rewrites several LLM calls per write; 5.4 s per operation with GPT-4o-mini READ PATH (EVERY QUESTION) Embed the query same text encoder Top-k notes into the prompt Figure 2 also says linked notes are pulled in with a match; the method section describes only top-k similarity retrieval. Evolution rewrites old notes in place. Useful links can appear; so can a changed detail, with no record of the original. LOCOMO F1, GPT-4O-MINI (TABLE 1) Multi-hop 25.02 26.65 27.02 Temporal 18.41 25.52 45.85 Open domain 12.04 9.15 12.14 Single hop 40.36 41.04 44.65 Adversarial 69.23 43.29 50.03 full conversation MemGPT A-MEM context per question: 16,910 · 16,977 · 2,520 tokens With GPT-4o, A-MEM trailed both baselines on single hop (48.43 vs 61.56) and adversarial (36.35 vs 52.61). Its biggest gain is temporal, not multi-hop.
A-MEM stores each interaction as a note enriched by the model, links it to similar notes, and lets the model update those older notes. On LoCoMo it answered temporal questions far better and used about a seventh of the context, but trailed simple baselines on some question types.
Research notes: the problem, approach and results
45.85 vs 25.52

temporal-question F1 with GPT-4o-mini, A-MEM against MemGPT; the full-conversation baseline scored 18.41

≈ 85-93%

fewer context tokens per question than the full-conversation and MemGPT baselines

69.23 vs 50.03

adversarial F1 with GPT-4o-mini, where the full-conversation baseline beat A-MEM

THE PROBLEM

Agent memory systems fix their structure in advance: what gets stored, when, and how it is organized. That makes them rigid when an agent meets new kinds of information, and full-conversation context gets expensive as histories grow.

THE IDEA

Borrow the Zettelkasten method. Turn each interaction into an atomic note with model-written keywords, tags and a context description; link it to related notes chosen by the model from the most similar ones; and let new notes trigger updates to the descriptions of old ones.

THE RESULT

On LoCoMo, A-MEM had the best average rank across six models and cut context per question from about 16,900 tokens to 1,200 to 2,500. It was strongest on temporal questions, while full-conversation baselines often won on single-hop and adversarial ones.

02

Why it matters to an FDE

A-MEM is one of several "smart memory" designs customers will ask about. It shows two useful ideas and one risky one.

Enrich at write time. Having the model write keywords, tags and a short context for each memory makes later retrieval much better than embedding raw text alone, especially for questions phrased differently from the original conversation.

Small retrieved context saves money. Answering from a handful of notes instead of the whole history cut context by about 85 to 93%. For long-running assistants, that is the difference between a viable and an unviable unit cost, provided writes are cheap enough.

In-place evolution needs history. Rewriting old notes when new information arrives can add useful connections, but it also changes what you stored, with no record of the original. For customer data, keep the original and store evolutions as versions you can audit and roll back.

Check per-type results, not averages. The paper's summary ranking hides that a simple full-context baseline beat A-MEM on some question types. Evaluate on the question mix your customer will actually ask.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The note fields, the write and read paths, the results by question type, and misreadings to avoid

    Free account
  2. 04How it works

    Note construction, link generation, memory evolution, retrieval and the evaluation setup

    Premium
  3. 05The numbers that matter

    Where A-MEM wins, where it loses, what the ablation says, and what is not measured

    Premium
  4. 06Try it yourself

    When agentic memory is cheaper than full context, and what in-place evolution does to old notes

    Premium
  5. 07Where it breaks

    Limits of the method and of the evaluation

    Premium
  6. 08Using it on a deployment

    Building an enriched, linked memory for a customer assistant safely

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →