CortexDB Docs
Integrations

CortexDB v1 on the Public Memory Benchmarks

Reproducible scores on LongMemEval-S and LoCoMo — full methodology, per-category breakdowns, and a one-command repro path.

Abstract

We report CortexDB v1's scores on the two public, standardized long-term-memory benchmarks for conversational AI: LongMemEval-S (ICLR 2025; 500 questions across six skill categories) and LoCoMo (NAACL 2024; 1,540 QA pairs). On LongMemEval-S, CortexDB v1 reaches 93.8% (469/500) with the server-parity pipeline; on LoCoMo categories 1–4, 86.9% (1,339/1,540) with the same production write-path code. Both runs are single-attempt, with no retry targeting and no gold-oracle leakage; cost and wall-clock are reported per run and reproducible from one command.

1. Why benchmark at all

A long-term memory layer is easy to demo and hard to verify. The interesting questions — does it work across hundreds of sessions, answer temporal questions correctly, cite the right turn out of thousands — only show up at scale on test sets the author didn't design. Two public benchmarks serve this role:

  • LongMemEval-S (Wu et al., 2025) — 500 hand-labeled questions across six categories; the "-S" panel averages ~115k input tokens per question.
  • LoCoMo (Maharana et al., 2024) — 1,540 QA pairs across very-long conversations (avg. ~9,000 turns).

We use the official datasets, the official evaluator scripts (LLM-judge), and the same write path that ships in production.

2. Headline numbers

BenchmarkScoreDetailCohortDate
LongMemEval-S93.8%469 / 500server parity (production write path)2026-05-16
LoCoMo (cats 1–4)86.9%1,339 / 1,540server parity2026-05-12

3. Methodology

Server parity means every memory is written via POST /v1/experience, every retrieval is via POST /v1/recall / POST /v1/answer, with no question-specific tuning and no oracle access at retrieval time — the same endpoints a paying customer hits.

ComponentUsedRationale
Answer modelClaude Opus 4.6Strongest general-purpose answerer at panel build time
Embedding modelOpenAI text-embedding-3-smallCost / quality sweet spot
Cross-encoder rerankerCohere rerank-v3.5Replaced the gpt-4o-mini reranker (+0.2 pt)
Fact extractionClaude Opus 4.6 (async, write-path)Same model the consolidator uses in prod
Question judgeGPT-4oHeld constant; required by the official scripts

The pipeline used the public-SaaS defaults: capture raw turns to the WAL; extract subject/predicate/object triples into the Facts layer; reconcile contradictions bi-temporally; recall holistic with include=["events","episodes","facts","beliefs"]; answer with citations.

4. LongMemEval-S results

CategoryScoreDetail
single-session-assistant100.0%56 / 56
knowledge-update97.4%76 / 78
single-session-user95.7%67 / 70
single-session-preference93.3%28 / 30
temporal-reasoning91.7%122 / 133
multi-session90.2%120 / 133
Overall93.8%469 / 500
SystemLongMemEval-SNotes
CortexDB v1 (this work, server parity)93.8%Claude Opus 4.6 + hybrid retrieval + Cohere rerank-v3.5
Mem0 (published)93.4%As reported in the Mem0 paper
LangMem (published)75.6%LangChain memory adapter
MemGPT (published)69.3%OS-style virtual context
GPT-4o long context (no memory layer)56.7%Stuff every turn into the prompt
No memory baseline22.8%Question + system message only

Cost per LongMemEval-S run: $49.69 total (write-path extraction $18.42, read-path answer + judge $24.71, Cohere rerank $4.56, embedding $2.00) over 2h 2m wall clock, reproducible from benchmarks/longmemeval/RESULTS.md.

5. LoCoMo results

CategoryScoreDetail
Cat 4 — Single-hop91.6%770 / 841
Cat 2 — Temporal87.9%282 / 321
Cat 1 — Multi-hop79.8%225 / 282
Cat 3 — Open-domain64.6%62 / 96
Cats 1–4 overall86.9%1,339 / 1,540

Category 5 ("adversarial", answer = "I don't know") is omitted because its score is refusal-prompt-dependent rather than memory-dependent, and not comparable across systems.

6. Architectural drivers

  • Bi-temporal Facts layer (drives temporal-reasoning): every triple stores valid_from/valid_to and recorded_from/recorded_to, so an as-of question hits a typed-store lookup for the correct historical value — where freeform "LLM-rewriting" memory layers collapse this to a single current state at write time.
  • Cross-encoder reranker (drives single-session): sorts the top-50 candidates by question-relevance.
  • Hybrid recall (drives multi-hop): graph traversal follows entity edges to connect facts that don't share embedding-space neighborhood; disabling the graph stage drops multi-hop by ~13 pp.

7. Ablations

ConfigurationLongMemEval-SΔ vs production
Production v1 pipeline (this report)93.8%
− Cohere rerank (use gpt-4o-mini)93.6%−0.2
− Graph traversal (BM25 + HNSW only)87.4%−6.4
− HNSW (BM25 + graph only)86.1%−7.7
− BM25 (HNSW + graph only)88.2%−5.6
− Bi-temporal facts layer (events only)81.0%−12.8
− Async extraction (no Facts at all)71.4%−22.4

The single largest contributor is the async fact-extraction pipeline (−22.4 pp if removed).

8. Operational characteristics

MetricValueNotes
Write-path p50 / p99 latency4 ms / 12 msPOST /v1/experience returns 202 with WAL offset
Write-path error rate0.00%175,000 writes, zero failures
Async-extraction completion (p50)18 sTime from write to Facts visible
Recall p50 (holistic, 4 KB budget)489 msHybrid retrieval + rerank
Answer p50 (Claude Opus 4.6)3.2 sEnd-to-end including recall

The write path is a disk append with no LLM call — that's what gives 4 ms p50 and 0% error rate; extraction runs async, decoupled from ingest.

9. Threats to validity

  • Benchmark coverage — both benchmarks bias toward conversational settings; 93.8% may not generalize outside conversational memory.
  • Model availability — Claude Opus 4.6 and Cohere rerank-v3.5 are commercial; a self-hosted Llama-3.1-70B + BGE-large-en-v1.5 swap reaches 88.4% on LongMemEval-S.
  • Single-run variance — LongMemEval-S was replicated six times (April–May 2026), σ = 0.31 pp; the reported number is the median.
  • Judge subjectivity — swapping the GPT-4o judge for Claude Opus 4.6 shifts scores ±0.6 pp without changing the ranking.

10. References

Wu et al. (2025), LongMemEval, ICLR 2025 · Maharana et al. (2024), LoCoMo, NAACL 2024 · Chhikara et al. (2025), Mem0 · Packer et al. (2023), MemGPT · Lewis et al. (2020), RAG, NeurIPS 2020.

See also Benchmarking for the reproduction steps.

On this page