Projects

Memory benchmark

Started
7 October 2026
Accuracy against input tokens per question on LoCoMo, 1,540 questions, same answerer throughout. Memory with the judge ties full context on about a quarter of the tokens.

Retrieval over vector embeddings answered as well as putting the entire conversation in the prompt. Across all 1,540 LoCoMo questions in categories 1 to 4, memory scored 95.6% against full context’s 96.0%. A paired McNemar test can’t separate those (p = 0.40), and memory reached them on a median of 9,726 input tokens per question against 35,764, about 3.7 times fewer.

The system under test is my own agent, the successor to MemoryGPT. What the benchmark exercises is the recall behind it: full-text search and bge-small embeddings over the stored messages, with a judge deciding what’s relevant enough to inject before the turn. Each question gets a fresh session, so nothing carries over, and the same answerer runs under all five conditions: the whole conversation in the prompt, memory with the judge, memory without it, memory without parent pointers, and memory written by the agent’s own note-taker. Answers are graded by gpt-4o-mini with mem0’s prompt.

The judge is what makes it work. Retrieval without it scored 94.7%, far enough behind full context for the same test to separate them. Dropping parent pointers, so a retrieved chunk arrives without the message it came from, landed at 95.0%. Ranking is the cheap part. Deciding what’s worth the space in front of the model is not.

None of this shows memory beats context. LoCoMo’s conversations run about 26k tokens, so the full-context baseline was never under pressure. What it shows is that where the prompt could hold everything, embeddings gave up nothing measurable by holding a quarter as much. A LongMemEval harness is built for the case where context genuinely doesn’t fit, which I intend to run once I’ve polished the rest of my embedding memory system.

Linked