Mem0: an append-only store, dated by day

Hand-written, from the result files in results/main/mem0/ (every memory stored, the 20 retrieved for the answer, the answer), read next to the LongMemEval histories. Mem0's main-run prompts were not logged, but its replies are in the reply cache, and the full-history run logged its prompts in full; quotations of the extraction prompt come from there (the same library version). 67 questions are too few for rates; the mechanisms are the result.

Summary

Mem0 answers 56 of 67 (84%, 95% interval 73–91%), at 10 model calls and $0.040 per question. It never resolves a conflict: in this release the extraction prompt's "sole operation is ADD", so an old value and a new one simply both become memories. That works when both reach the answer with dates that order them (41 of 45 such questions correct). The 11 failures:

Cause answers questions
The revision, or the value asked for, was never extracted from its session 4 59524333, 71315a70, f685340e, 07741c44
Both values stored, dated the same day, so not ordered 1 a2f3aa27
Both values delivered; the answer added them, or read the new one as a one-off 2 f9e8c073, dad224aa
The answer misread the question 1 eace081b
The question or its key is flawed 3 618f13b2, 852ce960, e66b632c

What reached the answer, by the probes:

What the 20 retrieved memories held questions correct
new value and old value 45 41
new value only 7 7
old value only 6 0
(no old value in the first evidence session) 9 8

How Mem0 ran here

The extraction prompt sets the design:

Your sole operation is ADD: identify every piece of memorable information and produce self-contained, contextually rich factual statements.

and, for existing memories:

If new information in New Messages is semantically equivalent to an Existing Memory with no meaningful new context, skip it. When a new memory is related to an Existing Memory — same topic, overlapping entities, updated/shifted preference… — include the Existing Memory's ID in the new memory's "linked_memory_ids" array.

So nothing is closed or replaced. The probe finds the old value still stored in 93% of the 58 probed questions and still presented as current in 43%; the reader is left to order the two values by their dates.

The mechanisms

Session-level extraction drops asides. One call extracts from up to twenty messages, and the revision is typically one clause in one message about something else. The prompt warns against exactly this ("When a conversation covers multiple topics, extract each one separately. Do not let a dominant topic cause you to miss secondary information."), and still the clause is dropped. In 71315a70 the cached reply for the June 17 session holds five memories — the sunset sculpture, natural materials, fabric, sculpting tools, techniques for found ocean objects — and none about the "10-12 hours" the user had put into the ocean sculpture.

Dates have day resolution. Each memory carries its session's day. Two sessions on the same day produce memories with the same date, and the answer cannot tell which is later (a2f3aa27). Honcho, which stamps conclusions to the minute, answers the same question correctly.

Phrasing becomes the meaning. The extraction rewrites what the user said into a self-contained statement, and that rewrite decides how the answer reads it: "wake up at 7:30 am" inside a jogging plan became part of a plan for one Saturday (dad224aa); "five sessions… last year" stayed "last year" and read as a separate episode (f9e8c073).

Every wrong answer

"Other arms" are the seven other arms of the main run.

The revision, or the value asked for, was never extracted

71315a70 — "How many hours have I spent on my abstract ocean sculpture?" (10-12 hours)

59524333 — "What time do I usually go to the gym?" (6:00 pm)

f685340e — "How often do I play tennis with my friends at the local park previously? How often do I play now?" (weekly, now every other week)

07741c44 — "Where do I initially keep my old sneakers?" (under my bed)

Both stored, the same day

a2f3aa27 — "How many followers do I have on Instagram now?" (1300)

Both delivered, read wrongly

f9e8c073 — "How many sessions of the bereavement support group did I attend?" (five)

dad224aa — "What time do I wake up on Saturday mornings?" (7:30 am)

Misread

eace081b — "Where am I planning to stay for my birthday trip to Hawaii?" (Oahu)

The question or its key

How the correct answers were reached

The full history

On the 25 questions run with the whole history (~48 sessions), Mem0 scores 84% both times; it stores about 250 memories instead of 54, and retrieval still picks 20. Its four full-history errors: 4d6b87c8 (25 titles plus two planned additions, 27, the same arithmetic Graphiti made), 6a1eabeb (read "hoping to beat my personal best time of 25:50" as a target and kept 27:12), and two repeats of trimmed-run failures (07741c44, f9e8c073).

Limits

Contents

Reading

Text size

19 px

Column width

Colours

Code cells

When the file changes

Saved on this device.