Structured persistent memory: A-MEM versus Mem0
TL;DR. A-MEM and Mem0 both use an LLM at write time to turn conversation turns into structured memory, then retrieve that memory at question time. A-MEM (Xu et al., NeurIPS 2025) writes Zettelkasten-style notes, links each new note to related old ones, and lets new notes rewrite the descriptions of old ones. Mem0 (Chhikara et al., 2025, written by the Mem0 company) extracts candidate facts and lets an LLM choose to ADD, UPDATE, DELETE or do nothing; Mem0ᵍ stores the facts as a graph. Both are cross-session conversational memory; neither updates model weights.
Key idea
Section titled “Key idea”A-MEM: notes, links and evolution. Each interaction becomes a note
where is the original content, its timestamp, , , are LLM-generated keywords, tags and a context description, is an embedding of the concatenated text, and is the set of linked notes. When a note is added, A-MEM retrieves its top- neighbours by cosine similarity and asks an LLM which of them to link (link generation). It then asks the LLM whether each neighbour’s context, keywords and tags should be rewritten in light of the new note (memory evolution). At question time it retrieves the top- notes by cosine similarity to the query.
Mem0: extract, then update (arXiv 2504.19413, code at github.com/mem0ai/mem0). For each new message pair, an LLM reads a running conversation summary, the last messages and the new pair, and extracts candidate facts. For each fact, the system retrieves the most similar stored memories, and an LLM picks one of four operations through a tool call: ADD (new fact), UPDATE (augment an existing memory), DELETE (remove a contradicted memory) or NOOP. All LLM operations in the paper use GPT-4o-mini. Mem0ᵍ stores memories as a directed labelled graph of entities and relations.
The key difference: A-MEM keeps the original content in every note and only rewrites the generated attributes, while Mem0 stores extracted facts and can delete them.
Results. A-MEM (arXiv v11) reports F1 and BLEU-1 on LoCoMo across six foundation models and says it at least doubles multi-hop performance over its baselines (LoCoMo, ReadAgent, MemoryBank, MemGPT) with GPT-based models. On DialSim it reaches F1 3.45 against 2.55 (LoCoMo baseline) and 1.18 (MemGPT), and it uses about 1,200 tokens per memory operation against about 16,900 for the LoCoMo and MemGPT baselines. Its ablation shows that removing link generation and evolution hurts most on multi-hop and open-domain questions. Mem0 (arXiv v1, vendor-reported, Table 2) reports LoCoMo LLM-judge scores of 66.88 for Mem0 and 68.44 for Mem0ᵍ, against 72.90 for full context (about 26,000 tokens), 65.99 for Zep, 52.90 for OpenAI’s memory, 48.38 for A-MEM and at most about 61 for its RAG configurations. Its strength is cost: p95 total latency of 1.44 s against 17.12 s for full context. These comparisons should be read with care. In the Raw-RAG paper’s setup, A-MEM scores 60.84 and 68.83 and Mem0 66.88 and 64.20 (GPT-4o-mini and GPT-4.1-mini readers) against 89.07 and 93.70 for Raw-RAG, and the same paper finds that Mem0’s published category scores, weighted by question counts, give 62.14 rather than 66.88. Mem0’s RAG baselines retrieve only one or two chunks, which is a weak setting for a tuned IR pipeline.
Connections
Section titled “Connections”- MemGPT: the earlier design both papers compare against; it keeps raw messages and searches them through function calls.
- Is complex agentic memory always needed? (Raw-RAG): the mutation audit of Mem0 and the raw-evidence baseline.
- Librarian Agents: also builds structure before queries, but for a document corpus, keeps the raw documents, and trains the builder with RL.
- LLM-as-a-judge: the J metric both evaluations depend on.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
Both systems change old memories when new information arrives. A-MEM's memory evolution rewrites the context description, keywords and tags of neighbouring notes; Mem0's update phase can UPDATE or DELETE a stored fact. Explain, at the level of what is stored, which of the two can permanently lose evidence a later question needs, and how each affects retrieval for a question asked months later.
What a strong answer covers
- A-MEM keeps the original interaction content and timestamp in every note and only rewrites the LLM-generated attributes, so evidence is not deleted; but the note embedding is computed from content plus the rewritten attributes, so evolution moves notes in embedding space and can change what gets retrieved.
- Mem0 stores extracted facts, not raw turns. DELETE removes a fact judged contradicted and UPDATE merges complementary information, so if the judgement is wrong (the old value was still needed, or the change was temporary) the evidence is gone.
- Questions about history (what did the user prefer before they moved?) need both the old and the new value with their order; a store that only keeps the current state cannot answer them.
- Raw-RAG measured how often Mem0 actually mutates: UPDATE and DELETE are a small share of decisions, and turning them off slightly raised LoCoMo accuracy, which suggests mutation is not where the gains come from.
- Critique
Mem0's paper reports an LLM-judge score J of 66.88 for Mem0 and 48.38 for A-MEM on LoCoMo. The Raw-RAG paper reports A-MEM at 60.84 (GPT-4o-mini reader) and also finds that Mem0's published category scores, weighted by question counts, give 62.14 rather than 66.88. Explain what can make the same system score so differently across papers, and design a comparison that would settle A-MEM versus Mem0.
What a strong answer covers
- Different readers, judges, judge prompts, answer formats and question subsets (for example, whether adversarial questions are excluded) can move scores by many points.
- Retrieval budget differs: A-MEM retrieves top-k notes (k swept from 10 to 50), Mem0 retrieves a set of facts; the reader sees different numbers of tokens.
- The Mem0 paper is written by the Mem0 company, so its numbers are vendor-reported; A-MEM numbers in that table are a reimplementation by a competitor.
- Fair design: same reader and judge, same token budget for retrieved memory, same question set with per-category counts reported, a raw-history retrieve-and-rerank baseline and a full-context baseline, and several seeds with confidence intervals.
- Also report write-time cost (LLM calls and tokens per stored turn), since both systems spend LLM calls at ingestion.
- Design
You need memory for a research assistant that talks to the same professor over a semester: preferences, ongoing projects, deadlines, and paper notes. Choose between a linked-note store (A-MEM style), an extract-and-update fact store (Mem0 style) and raw-history retrieval, or combine them. Specify what is stored, what is updated in place, and how you would evaluate it.
What a strong answer covers
- Keep raw turns as the evidence layer (cheap to write, needed for questions about history and for auditing), and index them for retrieve-and-rerank.
- Add a small current-state table for fast-changing facts (deadlines, current projects) with explicit timestamps and links back to the raw turns that set them, so updates never destroy provenance.
- Linked notes are useful for papers and projects, where multi-hop questions connect several sessions; store them as an additional index, not a replacement.
- Evaluation: a held-out set of questions written after the semester, labelled by type (current state, history of changes, multi-hop, temporal), with accuracy, tokens shown to the reader, write cost and latency for each design.