IN THIS BREAKDOWN · 10 SECTIONS
You can read 20% of this breakdown.
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.
Research notes: the problem, approach and results
temporal-question F1 with GPT-4o-mini, A-MEM against MemGPT; the full-conversation baseline scored 18.41
fewer context tokens per question than the full-conversation and MemGPT baselines
adversarial F1 with GPT-4o-mini, where the full-conversation baseline beat A-MEM
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.
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.
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.
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.
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
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
The note fields, the write and read paths, the results by question type, and misreadings to avoid
Free account - 04How it works
Note construction, link generation, memory evolution, retrieval and the evaluation setup
Premium - 05The numbers that matter
Where A-MEM wins, where it loses, what the ablation says, and what is not measured
Premium - 06Try it yourself
When agentic memory is cheaper than full context, and what in-place evolution does to old notes
Premium - 07Where it breaks
Limits of the method and of the evaluation
Premium - 08Using it on a deployment
Building an enriched, linked memory for a customer assistant safely
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
