Benchmarks

LongMemEval efficient frontier: accuracy vs cost

LongMemEval efficient frontier: accuracy vs average latency

LongMemEval efficient frontier: accuracy vs p90 latency

The task

LongMemEval is a benchmark for evaluating long-term memory in conversational AI. It tests whether a system can answer questions about past conversations spanning thousands of facts across multiple sessions.

The benchmark contains 500 questions across six categories:

Category Count Tests
Temporal reasoning 133 "When did we last discuss caching?" — requires reasoning about dates and ordering
Multi-session 133 "What approaches have we tried for auth?" — spans multiple conversations
Knowledge update 78 "What's our current rate limit?" — most recent info should override earlier
Single-session (user) 70 "What did I say about the API design?" — retrieving specific user statements
Single-session (assistant) 56 "What code did you suggest for parsing?" — retrieving agent responses
Single-session (preference) 30 "What testing framework do I prefer?" — inferring preferences from patterns

Each question has a ground-truth answer. The system retrieves up to 50 facts, then a QA model generates an answer from them. An independent judge (Claude Sonnet 5) scores correctness.

Setup

Retrieval: shmem's multi-index retrieval (keyword + temporal + semantic) with max_facts=50. The memory database is built once per question set using a mock LLM, so retrieval is identical for every model — what varies is only the model reading the retrieved context.

QA model: each model answers from the same retrieved facts, so the comparison isolates reasoning over context rather than retrieval quality. Prompts average 10,400 input tokens; answers are short, typically under 300 characters.

Judge: Claude Sonnet 5, with type-specific judging (preference questions accept superset answers; knowledge-update questions check for the most recent value). A shortcut that skips the judge now applies only when the answer equals the ground truth exactly. It used to apply whenever the ground truth appeared anywhere in the answer, which credited an answer for naming the right option while choosing the wrong one. On questions that offer a choice, the judge scores what the answer selects, not what it mentions.

Token budget: every non-Anthropic model runs with a 16,384-token output budget. This matters more than it sounds. Models that reason before answering bill those reasoning tokens against the same budget as the answer, so too small a budget produces an empty answer rather than a wrong one — and an empty answer scores as wrong without ever looking like a failure. A handful of models still exhaust it (noted below).

Infrastructure: Anthropic and OpenAI models via their own APIs, Gemini via the Gemini API, and every open-weight model via OpenRouter — one provider for that whole group, so a single rate card covers the cost axis.

Results

500 questions per model, 50 max facts, Claude Sonnet 5 judge. Answers generated 2026-09-14; every answer re-scored with the current judge 2026-10-26. The re-score moved each model by at most 1.4 points, and two re-scores of the same answers disagreed on 1 question in 500.

Six models were added 2026-11-09 and 10 with the same corpus, settings and judge: Claude Sonnet 5.5, Claude Haiku 5.5, GPT-6.1 Terra, GPT-5.6 Terra, GPT-6 Luna and GPT-5.6 Luna. The OpenAI models ran synchronously over all 500 questions, one model at a time at concurrency 6, as in the main run. Claude Sonnet 5.5 and Haiku 5.5 ran through the Batch API, with latency from the same 101-question sample as the other Anthropic models. Claude Haiku 4.5, re-run alongside them as a control, scored the same 90.2% it did in October.

Three more were added 2026-11-18, again with the same corpus, settings and judge: Claude Fable 5.2, Gemini 4 Neon and Gemini 4 Carbon. The two Gemini models ran synchronously over all 500 questions at concurrency 8, side by side. Their first pass used an 8,192-token output budget by mistake; the 11 questions that came back empty were asked again at 16,384, which leaves every other answer as it would have been, since the budget only changes answers that reach it. Claude Fable 5.2 ran through the Batch API, with latency from the 101-question sample.

Amazon Ergo 1.0 was added 2026-12-01, again with the same corpus, settings and judge. It ran through OpenRouter, synchronously over all 500 questions at concurrency 6, alongside its long-haystack run on the same machine.

Model Accuracy Avg latency Input $/Mt Provider
Claude Fable 5.2 98.4% 4.7s* $8.00 Anthropic
Claude Fable 5.1 96.8% 6.3s* $10.00 Anthropic
Gemini 4 Neon 96.4% 19.5s $3.00 Google
Claude Sonnet 5.5 95.8% 2.7s* $2.00 Anthropic
Gemini 4 Carbon 95.6% 14.6s $2.00 Google
Claude Fable 5 95.0% 6.8s* $10.00 Anthropic
Claude Haiku 5.5 95.0% 2.4s* $0.10 Anthropic
Claude Opus 5 94.8% 5.2s* $5.00 Anthropic
GLM-5.3 Flash 94.4% 7.8s $0.15 Z.ai (OpenRouter)
Amazon Ergo 1.0 94.4% 6.9s $1.00 Amazon (OpenRouter)
GPT-6 Astra 94.0% 3.3s $10.00 OpenAI
Inkling Small 94.0% 4.8s $0.45 Thinking Machines (OpenRouter)
GLM-5.3 94.0% 6.9s $1.40 Z.ai (OpenRouter)
GPT-5.6 Terra 93.8% 1.9s $2.00 OpenAI
GPT-6 Luna 93.8% 2.5s $0.10 OpenAI
Kimi K3 93.8% 18.4s $2.65 Moonshot AI (OpenRouter)
Claude Sonnet 4.6 93.6% 4.8s* $3.00 Anthropic
Claude Opus 4.8 93.4% 3.3s* $5.00 Anthropic
Claude Sonnet 5 93.4% 3.5s* $2.00 Anthropic
Claude Opus 4.5 93.2% 4.5s* $5.00 Anthropic
GPT-5.6 Luna 93.2% 1.9s $0.20 OpenAI
GLM-5.2 93.2% 9.1s $0.68 Z.ai (OpenRouter)
Inkling 93.0% 9.4s $1.00 Thinking Machines (OpenRouter)
DeepSeek V4.1 Flash 92.8% 14.6s $0.15 DeepSeek (OpenRouter)
Gemma 4 31B 92.4% 5.1s $0.09 Google (OpenRouter)
GPT-5.6 Sol 92.2% 3.9s $4.00 OpenAI
Gemini 3.8 Flash 92.0% 3.8s $0.75 Google
Qwen3.5 397B 92.0% 70.7s $0.55 Alibaba (OpenRouter)
Qwen3.8 Max 92.0% 33.7s $2.00 Alibaba (OpenRouter)
GPT-6.1 Terra 91.8% 2.1s $1.00 OpenAI
DeepSeek V4 Pro 91.6% 15.2s $0.66 DeepSeek (OpenRouter)
Gemini 3.1 Pro 90.6% 9.8s $2.00 Google
Claude Haiku 4.5 90.2% 2.6s* $1.00 Anthropic
Gemma 4 26B A4B 88.2% 7.0s $0.09 Google (OpenRouter)

* latency sampled over 101 questions; see below.

Cost frontier

Input-token pricing, verified against each provider's own rate card on the day of the run. Input dominates: prompts average 10,400 tokens against answers of a few hundred, so ranking by input price ranks by what a run actually costs.

The Pareto-optimal models — no other model is both cheaper and more accurate:

  • Gemma 4 31B (92.4%, $0.09/Mt)
  • Claude Haiku 5.5 (95.0%, $0.10/Mt)
  • Claude Sonnet 5.5 (95.8%, $2.00/Mt)
  • Gemini 4 Neon (96.4%, $3.00/Mt)
  • Claude Fable 5.2 (98.4%, $8.00/Mt)

The interesting result is how little the top of this chart now costs. Claude Haiku 5.5 answers 95.0% of the benchmark at $0.10 per million input tokens: level with Claude Fable 5 and 3.4 points behind Claude Fable 5.2, the most accurate model in the study, at one eightieth of its price. Spending 80× more buys about three more correct answers per hundred questions. Between them on the frontier sit Claude Sonnet 5.5 (95.8%, $2.00) and Gemini 4 Neon (96.4%, $3.00). GPT-6 Luna, also at $0.10, reaches 93.8%.

That is a different shape again from the previous version of this page, where the best model under $1 was GLM-5.3 Flash at 94.4% for $0.15, and before that, when the cheap end topped out around 91-93%. The sub-$1 tier now reaches 95%, and the remaining premium buys the last three points. Claude Fable 5.2 is the first model in the study to clear 98%, and it costs less than Fable 5.1 ($8.00 against $10.00) while answering 1.6 points more.

Three caveats worth stating plainly, because they cut against the headline:

  • Gemini 3.8 Flash's $0.75 is promotional, through the end of 2026. At its scheduled 2027 rate of $1.50 it moves off the value tier entirely at 92.0%.
  • Gemini 4 Carbon's $2.00 is introductory, through 2026-11-30. At $4.00 from December it sits further below the frontier than it already does (95.6%, below Claude Sonnet 5.5 at the same $2.00).
  • Cheap and fast are not always the same axis. Claude Haiku 5.5 happens to sit on both frontiers, at $0.10 and 2.4s, but GLM-5.3 Flash, the value leader before it, averages 7.8s per answer. If latency is the binding constraint rather than cost, read the latency chart, not this one.

Latency frontier

Anthropic models ran through the Batch API for the main sweep, which records no per-call timing. Their latency comes from a synchronous re-run over a 101-question stratified sample, at the same concurrency as every other model, and is marked with an asterisk in the table. Accuracy is always the full 500-question number.

  • GPT-5.6 Terra (93.8%, 1.9s)
  • Claude Haiku 5.5 (95.0%, 2.4s)
  • Claude Sonnet 5.5 (95.8%, 2.7s)
  • Claude Fable 5.2 (98.4%, 4.7s)

GPT-5.6 Terra is the fastest model in the study, at 1.9s for 93.8%. From there the frontier is short: Claude Haiku 5.5 adds 1.2pp for half a second, and Claude Sonnet 5.5 another 0.8pp at 2.7s. The top of the frontier is no longer slow: Claude Fable 5.2 reaches 98.4% at 4.7s, faster than Claude Fable 5.1 (6.3s) and Claude Opus 5 (5.2s), both of which it outscores.

The tail matters more than the average for anything interactive. Qwen3.5 397B averages 70.7s per answer and its p90 is worse; Kimi K3 averages 18.4s. Gemini 4 Neon sits on the cost frontier at 96.4% but averages 19.5s, and Gemini 4 Carbon 14.6s. All are respectable on accuracy and hard to use behind a prompt someone is waiting on.

By question type

Averaged across all models, the hardest categories are multi-session (89.5% — evidence spread across several conversations) and preference (87.5% — inferring a preference never stated outright). The easiest are single-session assistant (98.8%) and single-session user (97.6%): finding one statement in one conversation is close to solved.

Multi-session is where the spread between models is widest — from 77.4% to 97.7%. It is the category that most rewards a stronger model, and the one where retrieval and reasoning are hardest to separate: the facts that answer the question rarely share vocabulary with each other, so the model has to do the joining that keyword search cannot.

Model Temporal Multi-session Knowledge update SS-User SS-Asst Preference
Claude Fable 5.2 98.5% 97.7% 100.0% 100.0% 100.0% 90.0%
Claude Fable 5.1 97.0% 94.0% 98.7% 100.0% 100.0% 90.0%
Gemini 4 Neon 97.0% 94.0% 100.0% 98.6% 98.2% 86.7%
Claude Sonnet 5.5 97.7% 95.5% 97.4% 97.1% 100.0% 73.3%
Gemini 4 Carbon 98.5% 91.7% 100.0% 97.1% 98.2% 80.0%
Claude Fable 5 93.2% 92.5% 97.4% 98.6% 100.0% 90.0%
Claude Haiku 5.5 94.0% 89.5% 98.7% 97.1% 100.0% 100.0%
Claude Opus 5 93.2% 93.2% 94.9% 98.6% 98.2% 93.3%
GLM-5.3 Flash 94.0% 91.7% 97.4% 97.1% 98.2% 86.7%
Amazon Ergo 1.0 94.7% 91.7% 94.9% 100.0% 98.2% 83.3%
GPT-6 Astra 95.5% 91.7% 89.7% 98.6% 98.2% 90.0%
Inkling Small 97.0% 90.2% 92.3% 98.6% 100.0% 80.0%
GLM-5.3 94.7% 89.5% 93.6% 95.7% 100.0% 96.7%
GPT-5.6 Terra 94.7% 90.2% 92.3% 98.6% 100.0% 86.7%
GPT-6 Luna 95.5% 86.5% 93.6% 98.6% 98.2% 100.0%
Kimi K3 93.2% 90.2% 94.9% 100.0% 100.0% 83.3%
Claude Sonnet 4.6 97.0% 89.5% 91.0% 95.7% 100.0% 86.7%
Claude Opus 4.8 94.7% 88.7% 91.0% 97.1% 100.0% 93.3%
Claude Sonnet 5 94.7% 90.2% 91.0% 95.7% 98.2% 93.3%
Claude Opus 4.5 94.7% 85.7% 93.6% 100.0% 98.2% 93.3%
GPT-5.6 Luna 96.2% 91.0% 91.0% 100.0% 96.4% 73.3%
GLM-5.2 93.2% 88.7% 93.6% 97.1% 98.2% 93.3%
Inkling 94.7% 88.7% 88.5% 100.0% 100.0% 86.7%
DeepSeek V4.1 Flash 94.7% 88.7% 89.7% 97.1% 100.0% 86.7%
Gemma 4 31B 93.2% 86.5% 93.6% 98.6% 96.4% 90.0%
GPT-5.6 Sol 92.5% 91.0% 91.0% 92.9% 96.4% 90.0%
Gemini 3.8 Flash 95.5% 87.2% 89.7% 95.7% 98.2% 83.3%
Qwen3.5 397B 91.7% 90.2% 92.3% 92.9% 98.2% 86.7%
Qwen3.8 Max 91.7% 87.2% 91.0% 95.7% 100.0% 93.3%
GPT-6.1 Terra 92.5% 83.5% 96.2% 98.6% 98.2% 86.7%
DeepSeek V4 Pro 90.2% 88.0% 88.5% 98.6% 100.0% 90.0%
Gemini 3.1 Pro 94.0% 85.7% 91.0% 94.3% 98.2% 73.3%
Claude Haiku 4.5 90.2% 85.7% 88.5% 98.6% 96.4% 83.3%
Gemma 4 26B A4B 94.0% 77.4% 85.9% 97.1% 98.2% 76.7%

Known limitations

  • A few models still exhaust the output budget. At 16,384 tokens, Qwen3.5 397B returns an empty answer on 1.4% of questions (7 of 500) and DeepSeek V4.1 Flash on 1.0% (5 of 500), after 30-240 seconds of reasoning. Gemini 4 Carbon does it 3 times, and GLM-5.3, DeepSeek V4 Pro and Gemini 4 Neon once or twice each. Those count as wrong, so those models are understated by roughly that much, and the budget is held uniform across models rather than tuned per model, because a per-model budget would make the column mean different things in different rows.
  • Latency for Anthropic models is sampled, not measured over the full 500 (see above).
  • One benchmark, one retrieval configuration. LongMemEval at 50 facts measures reading comprehension over retrieved context. It does not measure retrieval on a corpus where the right facts are hard to find — see LoCoMo below, where they are.

Long haystack (LongMemEval-S)

The leaderboard above uses the oracle corpus, which hands every model only the sessions that hold the answer, so it measures the reader alone. This section measures retrieval too. On longmemeval_s_cleaned, each question comes with about 48 sessions and 490 turns of history, and the evidence is buried among distractors. shmem has to find it before any model can read it.

Long haystack: accuracy vs cost

Long haystack: accuracy vs average latency

500 questions per model, run 2026-11-19; Amazon Ergo 1.0 was added 2026-12-01 under the same settings. Retrieval sends a budget of facts per question type, from 15 for single-session-user questions to 110 for multi-session ones, ranked by fusing keyword and POTION embedding ranks. The answer prompt and the Claude Sonnet 5 judge are the same as above. The question type is the benchmark's own label for each question: it picks the budget and, as in the leaderboard above, the answer prompt and the judge's rubric. In the product shmem's question classifier assigns the type, with a coarser default budget table (25 facts for knowledge-update, 85 for temporal, 120 otherwise), so these scores assume the type is known. Claude Opus 5 was re-run as a control against the previous best on this corpus, a 2026-10 run under an earlier prompt and retrieval setup: it scored 94.8% against 94.2% then, a difference within noise.

Model Accuracy Avg latency Input $/Mt
Claude Fable 5.2 97.4% 3.2s* $8.00
Claude Sonnet 5.5 94.8% 3.4s* $2.00
Claude Opus 5 94.8% 6.5s* $5.00
Gemini 4 Neon 94.6% 14.1s $3.00
Gemini 4 Carbon 93.6% 15.3s $2.00
Amazon Ergo 1.0 93.4% 8.6s $1.00
GPT-6.2 Sol 92.2% 2.2s $2.00
GPT-6.2 Astra 92.2% 3.3s $8.00
Claude Haiku 5.5 91.6% 2.6s* $0.10
GPT-6 Luna 89.6% 2.9s $0.10
GPT-6.1 Terra 88.8% 2.4s $1.00

* latency sampled over the same 101 questions as above, synchronously; the full runs went through the Batch API.

Cost frontier:

  • Claude Haiku 5.5 (91.6%, $0.10/Mt)
  • Amazon Ergo 1.0 (93.4%, $1.00/Mt)
  • Claude Sonnet 5.5 (94.8%, $2.00/Mt)
  • Claude Fable 5.2 (97.4%, $8.00/Mt)

Latency frontier:

  • GPT-6.2 Sol (92.2%, 2.2s)
  • Claude Fable 5.2 (97.4%, 3.2s)

Claude Fable 5.2 leads at 97.4%, ahead of Gemini 4 Neon (94.6%) by a margin that holds up on a paired test of the same questions, and it answers in 3.2s. Claude Sonnet 5.5, Claude Opus 5 and Gemini 4 Neon form a second tier within a few questions of each other, but Neon takes 14 seconds per answer.

The cheaper models lose the most when the haystack is real. Claude Haiku 5.5 drops from 95.0% on the oracle corpus to 91.6% here, GPT-6 Luna from 93.8% to 89.6%, and GPT-6.1 Terra from 91.8% to 88.8%. Claude Sonnet 5.5 and Claude Fable 5.2 each lose about a point. With fifty to a hundred retrieved facts and distractors among them, the reader has to do more of the work, and the stronger models do it better. If your memory store is large, read this table rather than the one above.

Amazon Ergo 1.0 also loses about a point, from 94.4% to 93.4%, and at $1.00 it joins the cost frontier between Claude Haiku 5.5 and Claude Sonnet 5.5.

A few answers came back empty and count as wrong: 3 for Claude Fable 5.2, 3 for Gemini 4 Neon, 4 for Gemini 4 Carbon and 1 for Amazon Ergo 1.0.


LoCoMo

LoCoMo is a second benchmark for conversational memory, with 1,540 questions across 10 multi-session conversations (5,882 facts total). It tests four categories: open-domain, temporal, single-hop, and multi-hop retrieval.

LoCoMo is a harder retrieval challenge than LongMemEval because evidence is scattered across sessions and often uses different vocabulary than the question. At 50 retrieved facts, keyword search misses critical evidence — 93% of evidence turns share no keywords with the question. Sending all facts (400–700 per conversation) bypasses this retrieval bottleneck.

These LoCoMo numbers are from an earlier run and were not re-measured for this refresh — they are reported here for the retrieval finding, not for model comparison.

Results

Config Overall open_domain temporal single_hop multi_hop
shmem + Opus (all facts) 84.1% 90.2% 87.2% 71.6% 56.2%
shmem + Sonnet (all facts) 79.8% 87.7% 79.5% 69.4% 44.9%
shmem + Opus (50 facts) 71.8% 80.0% 78.5% 47.2% 50.0%
shmem + Sonnet (50 facts) 68.3% 76.2% 74.8% 45.0% 45.8%
Letta 74.0% — — — —
Mem0 68.5% — — — —
Zep 63.8% — — — —

With all facts, shmem beats Letta by 10pp (84.1% vs 74.0%) and Mem0 by 16pp. The biggest gain is single_hop (+24pp), where the retrieval fix surfaces evidence that keyword search missed.

Key findings

  • Date context matters: Using conversation-era dates instead of today's date improved temporal accuracy by 9pp
  • Retrieval is the bottleneck: 98% of LoCoMo's "single_hop" questions require evidence from 2+ sessions, and keyword IDF can't find evidence that uses different vocabulary than the question
  • All-facts mode works for small conversations: For conversations under 1,000 facts (~25K tokens), sending everything outperforms selective retrieval
  • Multi-hop remains hardest: Even with all facts and Opus, multi-hop is 56.2% — these require cross-topic reasoning that's genuinely difficult