Abstract
We report session-level recall@5 and recall@10 for Grove on LongMemEval[1], the public benchmark that has become the standard test of long-term memory for conversational agents. The benchmark confronts a system with a long, multi-session conversation history and asks whether it can surface the past sessions holding the evidence a question requires. The cleaned _s split holds 470 scored questions, each faced with roughly 40 candidate sessions, and Grove places a correct evidence session among its top five results for 99.36% of them, and among its top ten for 99.79%. That R@5 exceeds the 98.51%[2] published for gbrain's hybrid configuration and the 96.60%[3] reported for the raw MemPalace baseline. Under the strict form of the metric, credited only when every evidence session for a question sits in the top five, Grove reaches 96.17%, against 92.34% for gbrain's hybrid configuration and 85.74% for the raw MemPalace baseline, and a paired test finds Grove's advantage significant over both. The LongMemEval retrieval scorer itself produces every score in the paper, imported and run unchanged, so correctness follows the benchmark authors' definition rather than our own. A simple dense retriever serves as the base, and the single change is a fact-extraction step at indexing coupled with a two-arm hybrid ranking, whose contribution the ablation in §4 examines under controlled conditions. The rest of the paper first presents the dataset, then gives the metric an exact definition, then walks through how the retrieval pipeline is built and why, reports the ablation, traces each comparative figure to its source, and provides a complete reproduction path. The closing sections name the behaviors of a memory system that this benchmark leaves untested, so the headline number is not mistaken for an assertion it cannot sustain.
Revision, 22 October 2026
This revision takes its gbrain figures from the October 2026 recount, which no longer reports the vectors-only configuration cited in the paper's first version. Strict-metric results for all three systems are added in §2.2 and §3.3. The reranked gbrain configuration is now covered in §5.3 and §5.4; the run Grove published stands as it was, and we compute its strict score by reading the per-question output it already contains.
1Background
A long-running AI agent accumulates a growing record of sessions, decisions, and user-stated facts over days and weeks of interaction. Once that record outgrows any usable context window, the central engineering problem becomes retrieval: given a new question, which fragments of the accumulated history should be pulled back into context so that the agent can answer correctly? To a first approximation, the quality of an agent's memory is the quality of this retrieval step, and it is the part of a memory system that can be measured without confounding it with the behavior of whatever model later reads the result.
LongMemEval[1] is, to our knowledge, the only public benchmark that scores this retrieval step directly and in isolation. It consists of 500 questions, each paired with a long multi-session chat history. For every question the benchmark marks one or more gold evidence sessions, the sessions that actually contain the information needed to answer (recorded in the answer_session_ids field), and surrounds them with approximately 40 distractor sessions on unrelated topics. A system is scored on how well it separates the former from the latter.
The benchmark defines two evaluation tracks. The retrieval track is deterministic: it scores the ranked list of sessions a system returns, using recall@k and NDCG@k, with no model anywhere in the scoring path. The end-to-end QA track instead feeds the retrieved context to a reader model and grades the final answer with an LLM judge. This paper concerns only the retrieval track, both because it isolates memory retrieval from answer generation and because it is fully reproducible without a judge in the loop. We report Grove against the two systems most frequently cited on LongMemEval in the personal-knowledge-graph space: gbrain, at 98.51% (hybrid)[2], and MemPalace, at 96.60% (raw)[3].
2Method
2.1 Dataset
We evaluate on longmemeval_s_cleaned.json, the cleaned version of the small (_s) split and the current official release on Hugging Face[4]. The file holds 500 questions. Thirty of these are abstention instances, marked with the _abs suffix in their identifiers; they test whether a system correctly declines to answer when no supporting evidence exists, which is a property of the reader rather than the retriever, and the official harness excludes them from retrieval scoring. That leaves 470 scored questions.
Each question is accompanied by a chat history of approximately 40 sessions, where a session is one continuous conversation of alternating user and assistant turns. One or more sessions in that history are the gold evidence; the rest are topical distractors, chosen to be plausibly related but not actually answer-bearing. The questions are tagged with six types that stress different retrieval demands: single-session questions grounded in a user turn, an assistant turn, or a stated preference; multi-session questions whose evidence is spread across several conversations; knowledge-update questions in which a later session supersedes an earlier fact; and temporal-reasoning questions that turn on when something was said.
2.2 Metric
The headline metric is session-level recall_any@5. For a single question it poses a yes-or-no test: among the five sessions the retriever ranks highest, is at least one of the gold evidence sessions present? The benchmark score is the fraction of the 470 questions for which the answer is yes. Formally, averaging over the non-abstention questions:
where Gq is the set of gold evidence sessions for question q (its answer_session_ids field), rank(s) is the position of session s in the retriever's output for that question, Q is the set of 470 non-abstention questions, and the indicator function contributes 1 when at least one gold session lands within the top five and 0 otherwise.
Two properties of this metric matter for reading the results. First, it is session-level and permissive at the question: a question counts as solved as soon as one correct session appears in the top five, regardless of how many gold sessions exist or where the others rank. Second, and more important for reproducibility, the scoring path contains no model. The metric is computed by LongMemEval's own eval_utils.evaluate_retrieval function[5], imported and executed unmodified; underneath, it is a deterministic sort of similarity scores followed by a set-membership test in NumPy. There is no LLM judge, and therefore no run-to-run variance and no grader disagreement to absorb. LongMemEval does define a separate end-to-end QA-accuracy metric that relies on a judge, but we do not run that track here.
Alongside the headline form, the LongMemEval scorer computes recall_all@5, a strict form that awards credit to a question only if all of its gold evidence sessions appear in the top five:
The two forms agree on every question whose gold evidence sits in a single session, and they diverge everywhere else. Divergence is common here: 300 of the 470 questions carry two or more gold sessions, so for close to two-thirds of the benchmark the headline form grants full credit even when part of the evidence is missed. The strict form therefore matters, and gbrain itself highlights it in its own report[2]. We report those strict figures for the three systems in §3.3.
2.3 Pipeline
For each question the retriever sees only that question's own haystack of roughly 40 sessions and must rank those sessions by relevance to the question. Grove does this in two stages: an index-time stage that distills each session into facts, and a query-time stage that ranks sessions using both those facts and the raw session text.
Stage 1. Fact extraction (index-time)
Each unique session transcript is sent once to gpt-4.1-mini with a system prompt that asks for a JSON array of atomic, self-contained, third-person statements about the user: the preferences, attributes, decisions, plans, and events the user reported in that session. The motivation is that a raw transcript interleaves a small amount of durable signal, a few facts about the user, with a large amount of conversational filler, and a short list of clean facts is a far sharper match for a pointed question than the full back-and-forth. Sessions that contain no user-stated facts, which is common for generic assistant chatter, return an empty array and contribute nothing to the fact index. The exact prompt is reproduced in Appendix A.
Stage 2. Hybrid retrieval (query-time)
The question, together with every fact extracted from every session in the haystack, is embedded with text-embedding-3-large at 1536 dimensions (set through the dimensions parameter) and L2-normalized. The full text of each session is embedded with the same model. Each session then receives two similarity scores against the question: a fact-arm score, the highest cosine similarity between the question and any fact drawn from that session, and a session-arm score, the cosine similarity between the question and the session's full text. The session's final score is the larger of the two. Taking the maximum, rather than a weighted sum, lets each session win on whichever representation serves it best: a session whose relevance is captured by one sharp fact is ranked on that fact, while a session whose relevance is diffuse across the conversation is ranked on its full text. Sessions are sorted by this combined score, and the five highest are handed to the scorer.
2.4 Models
Two OpenAI models are used, one per stage, summarized in Table 1. We deliberately match the embedding model and dimensionality that gbrain reports for its retrieval arms. Embedding strength is the largest single confound in a benchmark of this kind, so holding it fixed means any difference between Grove and gbrain is attributable to the pipeline built around the embedder rather than to the embedder itself.
| Role | Model | Provider | Configuration |
|---|---|---|---|
| Fact extraction | gpt-4.1-mini | OpenAI | API default at run time, temperature 0 |
| Embedding (queries, facts, sessions) | text-embedding-3-large | OpenAI | 1536 dimensions via dimensions parameter, L2-normalized |
2.5 Reproducibility
The evaluation pipeline is three short Python scripts whose only dependencies are openai, numpy, tiktoken, and LongMemEval's own scorer, imported unmodified. The full run, from raw dataset to headline number, is reproduced with:
# 1. Download the dataset (~265 MB) wget https://huggingface.co/datasets/xiaowu0162/longmemeval-cleaned/resolve/main/longmemeval_s_cleaned.json # 2. Stage 1: distill facts per unique session # (gpt-4.1-mini, ~$1.80, ~40 min, 16-way parallel) python extract_facts.py \ --in_file longmemeval_s_cleaned.json \ --out_file facts/all_facts.jsonl \ --workers 16 # 3. Stage 2: hybrid retrieval # (text-embedding-3-large @ 1536, ~$0.40, ~13 min) python run_hybrid.py \ --in_file longmemeval_s_cleaned.json \ --facts_file facts/all_facts.jsonl \ --out_file out/full500_hybrid_large.jsonl # 4. Score with LongMemEval's own scorer (deterministic, ~1 s) python print_retrieval_metrics.py out/full500_hybrid_large.jsonl
The two model-bearing stages, fact extraction and embedding, cost approximately $1.80 and $0.40 respectively, for a total of about $2.20 in OpenAI usage. Wall-clock time from a cold cache is roughly 55 minutes, dominated by the single extraction call per unique session. Both the embeddings and the extracted facts are written to disk, so any later run, including every ablation reported below, reuses them and incurs no further API cost.
3Results
3.1 Headline comparison
Grove places a gold evidence session in its top five for 99.36% of the 470 questions. Against the main retrieval-only baselines, this puts Grove ahead of the gbrain hybrid configuration (98.51%) and the raw MemPalace baseline (96.60%), a lead of 0.85 to 2.76 points. Two comparison configurations bring in a reranker when a query is issued, the gbrain release configuration and MemPalace + Claude reranker; sections 5.3, 5.4 and 5.5 cover their numbers, how those numbers relate to the published benchmark, and what an LLM rerank per query costs, in that order. At recall@10, Grove reaches 99.79%.
_s split, computed over the n = 470 questions that involve no abstention. The first row credits a question as soon as a single gold evidence session lands in the top five, while the strict row counts only questions for which every gold evidence session appears there (§2.2). gbrain is represented by its hybrid configuration as recomputed in the October 2026 recount, run without any reranker; MemPalace publishes only the headline form in its benchmark report, so its strict figure is recomputed here from the question-level rankings it releases, matching the count gbrain itself reports for MemPalace (cf. §5.3), and Grove's recall@10 of 99.79% is given in §3.1. Configurations that rerank the query are excluded, namely gbrain's release configuration and the MemPalace Claude reranker configuration, because the table isolates retrieval without any reranking stage (cf. §5.3).3.2 Per-question-type breakdown
A single average across every question can hide uneven behavior across categories, so recall@5 is also reported for each of the six question types LongMemEval defines. The comparison uses the gbrain hybrid configuration, recomputed from the per-question outputs released with its October 2026 recount[2]. In every category, Grove is equal to or above that configuration, with the widest margins on temporal-reasoning (+2.3) and knowledge-update (+1.4). These two categories probe whether a system knows when something was said and whether a later session supersedes an earlier fact. The other categories show the two systems tied.
| Question type | n | Grove | gbrain (hybrid) | Δ |
|---|---|---|---|---|
| multi-session | 121 | 100.0% | 100.0% | +0.0 |
| single-session-assistant | 56 | 100.0% | 100.0% | +0.0 |
| single-session-preference | 30 | 96.7% | 96.7% | +0.0 |
| temporal-reasoning | 127 | 99.2% | 96.9% | +2.3 |
| single-session-user | 64 | 98.4% | 98.4% | +0.0 |
| knowledge-update | 72 | 100.0% | 98.6% | +1.4 |
| Overall | 470 | 99.36% | 98.51% | +0.85 |
3.3 Strict recall
Under the strict form, Grove returns all gold evidence sessions for 452 of the 470 questions (96.17%), against 434 (92.34%) for gbrain's hybrid configuration and 403 (85.74%) for MemPalace's raw baseline. Question by question, the headline form separates Grove from gbrain's hybrid configuration on just 8 questions, 6 won by Grove and 2 by gbrain, a margin too thin to rank the two systems (exact McNemar test, p = 0.29). The strict form separates them on 30, with 24 wins for Grove and 6 for gbrain (p = 0.0014). Against MemPalace the strict tally is 54 to 5 (p = 1.9 × 10−11). Most of the difference comes from questions holding several gold sessions, the cases where the two forms diverge: Grove reaches 95.9% on multi-session questions, versus 90.1% for gbrain and 77.7% for MemPalace, and 91.3% on temporal-reasoning questions, versus 83.5% and 76.4%.
A structural asymmetry shapes this comparison. Because gbrain's ranking operates on chunks instead of entire sessions, there are 42 questions where its best five chunks come from fewer than five distinct sessions, so the strict test is harder for gbrain. None of the 24 strict wins Grove holds against the hybrid configuration falls on those questions; setting them aside leaves a split of 24 to 5 (p = 0.00055). MemPalace, by contrast, ranks entire sessions and is untouched by this asymmetry.
4Ablation
A reasonable objection to any high LongMemEval score is that it may reflect nothing more than a strong embedding model, with the surrounding architecture contributing little. To test that objection directly, we strip the pipeline back to a plain dense retriever and rebuild it one component at a time, measuring recall@5 at each step.
| Configuration | R@5 | Δ |
|---|---|---|
Dense, text-embedding-3-small, full-session text only | 96.17% | baseline |
Dense, text-embedding-3-large@1536, full-session text only | 97.02% | +0.85 |
+ gpt-4.1-mini fact extraction + hybrid max-combiner (Grove) | 99.36% | +2.34 |
The first step, swapping the smaller embedding model for the larger one used throughout this paper, accounts for +0.85. This is the gain available to any vector retriever simply from a better embedder, and it is the part of the result that does reduce to embedding strength. The second step, adding fact extraction and the hybrid max-combiner on top of that same strong embedder, accounts for a further +2.34. That figure is Grove's pipeline contribution, measured against an equally-strong vector baseline, and it is exactly the quantity the objection above leaves unexplained.
To check that the +2.34 contribution does not depend on the specific small LLM used for extraction, we repeated the full pipeline with gpt-4o-mini-2024-07-18 (the snapshot used by TiMem[9]) in place of gpt-4.1-mini. Recall@5 lands at 98.94%, a difference of 0.42 points (two questions on n = 470). The pipeline's contribution therefore reflects the extract-then-hybridize structure rather than any particular extraction model. We retain gpt-4.1-mini as the published configuration because it is the small-model standard used across 2026 memory benchmarks[10][11].
It is worth being explicit about what this number does not include. Grove's headline result is produced without any of the graph, bitemporal, identity, or provenance machinery that the production system runs; none of those layers is active in this evaluation, because LongMemEval's retrieval track does not pose questions that would exercise them. They contribute to the product, not to this score.
5Discussion
5.1 What LongMemEval measures
LongMemEval scores exactly one capability: given a long chat history, can the system surface the session that holds the evidence for a question? That is a flat retrieval task over session-sized units with a fixed top-k cutoff. Its value is that it makes a memory claim falsifiable, which is rare in this space and the reason we report against it. Its limit is that a single flat-retrieval number is not, on its own, a complete measure of memory-system quality.
5.2 What it does not measure
The retrieval track does not exercise any of the capabilities below. We list them not as a roadmap but to calibrate the headline number, so that it is read as evidence of strong flat retrieval and nothing more.
- Multi-hop relational queries. A question such as "Who is blocking the project owned by the person who reports to Bob?" can only be answered by traversing typed relationships between entities. Vector retrieval over raw chat returns text that is superficially similar to the question; it cannot follow a chain of relationships, whereas a typed graph can return the actual path.
- Bitemporal state. A question such as "What was true on April 12, before the correction on April 20?" requires tracking, for every fact, both when it became valid and when it was superseded, and then answering as of a chosen point in time. Vector similarity has no notion of valid-from or valid-until and cannot distinguish a current fact from a refuted one.
- Identity resolution. Answering "What did the CTO decide?" requires recognizing that "the CTO", "@bob", "BM", and "Bob Martinez" denote the same person and resolving them to a single canonical entity. Fuzzy text matching degrades as soon as the surface forms diverge.
- Provenance. A request to "cite the source for X" requires every stored fact to carry a back-pointer to its origin: a message id, a commit hash, a meeting note. Retrieval over chat text can return the passage that surfaced, but it does not certify that the passage actually supports the claim.
5.3 Comparator integrity
gbrain documents its entire evaluation procedure in public[2]. The run fixes dataset and code commits, keeps the evaluator on the upstream release of LongMemEval, holds seeds constant, shuffles the order of queries, and seals the relevance judgments away from the adapter boundary. The October 2026 recount re-ran every published configuration over the 470 questions studied here and released the per-question outputs, and we treat it as the anchor for everything that follows. The hybrid configuration mixes lexical signals with text-embedding-3-large embeddings of 1536 dimensions and scores 98.51% (463 of 470), the number Table 2 carries. A second, the release configuration, sends each query through a Voyage reranker before returning results and scores 100% (470 of 470). Measured strictly, the form gbrain's report now leads with, the hybrid configuration reaches 92.34% (434 of 470) and the release configuration 95.96% (451 of 470), the latter sitting level with Grove's 96.17%, with the questions they disagree on splitting 12 against 11 (exact McNemar test, p = 1.0). gbrain also discloses that its configuration was chosen on these same 470 questions, whereas the extraction prompt feeding Grove was drafted once and never adapted to LongMemEval (§6). The first version of the paper quoted 97.60% for the hybrid configuration and 97.40% for a vectors-only variant, figures that no longer appear among gbrain's current results, though an older gbrain report from May still lists them. One additional benchmark, BrainBench, runs on a proprietary corpus with no independent replication, and we exclude it from this discussion.
MemPalace[3] is a more complicated case. Several independent parties have reproduced its reported recall@5 of 96.60%[6][7][8], and they trace the figure to the default ChromaDB embeddings, all-MiniLM-L6-v2, indexing the verbatim raw transcript, with none of the palace structure the system is named for switched on. Once that structure is activated, those reproductions find the score falling to 89.4% and 84.2%. A separate configuration adds a Claude reranker (Haiku or Sonnet) at query time, and the project reports it in two non-equivalent forms: 100.0% recall@5 across all 500 questions after three manual patches developed against the evaluation set, and 98.4% recall@5 on a held-out subset of 450 questions without those patches. The held-out 98.4% offers the strongest defense against overfitting concerns, and it is the number we carry into the architectural fairness analysis (§5.4) and the cost analysis (§5.5). The reranker configuration is absent from Table 2, since one cell cannot honestly stand for both reported forms. The 96.60% baseline carried in Table 2 is the headline figure MemPalace presents as its own, and its provenance is recorded here so readers can judge it for themselves. MemPalace's benchmark report gives only the any-session form. Working from the question-level rankings the project makes public for the raw configuration, we recount a strict form of 85.74% (403 of 470), the same count that gbrain's comparison reports[2], and the recount matches the published any-session result on every question.
5.4 Architectural fairness
The architectures of the systems examined here are not equivalent. For a precise comparison, we group them by what each layers onto dense retrieval and by the stage where it operates: a language model during indexing or when a query arrives, lexical signals, or reranking applied at query time.
| Tier | System | Index-time LLM | Query-time model | R@5 |
|---|---|---|---|---|
| Retrieval-only | Grove (dense baseline) | none | none | 97.02% |
| Retrieval-only | MemPalace (raw) | none | none | 96.60% |
| LLM-augmented | Grove (published) | gpt-4.1-mini, per session | none | 99.36% |
| LLM-augmented | MemPalace + Claude reranker (held-out, n=450) | none | Claude Haiku/Sonnet, per query | 98.4% |
| Lexical-augmented | gbrain (hybrid) | none | none (lexical + vector fusion) | 98.51% |
| Reranker-augmented | gbrain (release, Voyage reranker) | none | Voyage reranker, per query | 100% |
In the retrieval-only tier the two systems differ by less than half a point. The LLM-augmented tier clears 98% on both sides, with Grove at 99.36% on n = 470 and the MemPalace Claude reranker at 98.4% on its held-out subset of 450 questions (see §5.3). The meaningful divide lies in where the language model enters the pipeline, not in the size of the gap. gbrain (hybrid) (98.51%), which layers lexical signals rather than a language model onto dense retrieval, sits between those two, and the gbrain release configuration reaches 100% on the same 470 questions by adding a query-time reranker, with its settings chosen on those same questions (§5.3).
The two LLM-augmented systems differ in where the language model is invoked. Grove invokes it once per session, at index time, to produce a static fact index that subsequent queries read from. MemPalace + reranker invokes it once per query, at retrieval time, to rescore candidate sessions returned by the underlying vector store. The accuracy outcome is comparable; the cost implications are not, and we quantify them in §5.5.
5.5 Cost analysis
The cost class implied by a query-time LLM reranker differs materially from the cost class implied by index-time fact extraction. We quantify this contrast for Grove and the MemPalace + Claude reranker configuration discussed in §5.3, the two systems in this comparison that introduce a language model into the retrieval pipeline. The contrast is structural; it does not depend on which of the reranker's reported accuracy figures is taken as canonical.
Grove pays for fact extraction once, when a session is indexed. With LongMemEval _s's 19,195 unique sessions and OpenAI's gpt-4.1-mini pricing at the time of writing, this totals approximately $5. Every subsequent query incurs a single embedding API call costing approximately $6 × 10−6 (about six millionths of a dollar); the cosine similarity that follows is computed in-memory at no API cost.
MemPalace + Claude reranker pays nothing at index time but issues a Claude API call on every user query. The reranker call processes the query alongside roughly 30 candidate sessions, totaling on the order of 15,000 input tokens at Anthropic's Claude Haiku 4.5 pricing[12], costing approximately $0.015 per query.
| Queries served | Grove (this paper) | MemPalace + Claude reranker | Ratio |
|---|---|---|---|
| 1 | ~$5 | ~$0.02 | Grove front-loads |
| ~330 | ~$5 | ~$5 | break-even |
| 10,000 | ~$5 | ~$150 | 30× cheaper |
| 100,000 | ~$6 | ~$1,500 | 250× cheaper |
| 1,000,000 | ~$15 | ~$15,000 | 1,000× cheaper |
The cost contrast is the practical distinction between paying once at index time and paying on every retrieval. For any deployment with non-trivial query volume, the choice has material consequences regardless of the specific accuracy figure cited for the reranker variant. We report the cost contrast independent of any direct accuracy claim against MemPalace + reranker; its reported figures and their provenance are addressed in §5.3.
6Limitations
Several boundaries on the result above are worth stating directly.
- We do not run the end-to-end QA-accuracy track. Retrieval quality and answer quality are distinct: a system can surface the right session and still answer poorly under a given reader, and the reverse is also possible. This paper speaks only to the first.
- The result is on the
_ssplit, whose histories run to roughly 115,000 tokens. The larger_msplit, with histories near 1.5 million tokens, is the harder variant and is not evaluated here. - We do not benchmark end-to-end cost or latency. The pipeline's wall time is dominated by one extraction call per unique session, which is acceptable for a batch evaluation; the production system indexes incrementally as sessions arrive rather than extracting the whole corpus at once, and that path is not what LongMemEval measures.
- The extraction prompt was written once and never tuned against the LongMemEval data. No held-out validation set was used to adjust it, so the result reflects an untuned prompt rather than a best case.
References
- Wu, D. et al. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. ICLR 2025. arXiv:2410.10813
- Tan, G. gbrain-evals. 2026. github.com/garrytan/gbrain-evals, in particular
docs/benchmarks/2026-10-04-longmemeval-opaque-followups.md(October 2026 recount, with per-question results),docs/comparison-systems.md(strict recounts) and, for the figures in the first version,docs/benchmarks/2026-05-07-longmemeval-s.md. - MemPalace project. Benchmarks. github.com/MemPalace/mempalace/blob/develop/benchmarks/BENCHMARKS.md; raw per-question rankings:
benchmarks/results_mempal_raw_session_20260414_1629.jsonl. - LongMemEval cleaned dataset on Hugging Face. huggingface.co/datasets/xiaowu0162/longmemeval-cleaned
- LongMemEval source code. github.com/xiaowu0162/LongMemEval, scorer at
src/retrieval/eval_utils.pyandsrc/evaluation/print_retrieval_metrics.py. - Vectorize. MemPalace Benchmarks Review. vectorize.io/articles/mempalace-benchmarks
- Coding With Cody. MemPalace: Digital Castles on Sand. April 2026. codingwithcody.com/2026/04/13
- MemPalace GitHub Issue 875, misrepresentation of benchmark methodology. github.com/MemPalace/mempalace/issues/875
- Liu, Y. et al. TiMem: Time-aware Memory for AI Agents. arXiv 2601.02845. arxiv.org/abs/2601.02845. Uses
gpt-4o-mini-2024-07-18for memory consolidation; cited as the reference point for our extraction-model robustness check in §4. - Prosus AI Tech Blog. MemEval: Benchmarking Memory for AI Agents. March 2026. medium.com/prosus-ai-tech-blog/memeval-benchmarking-memory-for-ai-agents. Standardizes
gpt-4.1-miniacross nine systems. - MemMachine project. MemMachine: Memory Architecture for Long-running AI Agents. arXiv 2604.04853. arxiv.org/abs/2604.04853
- Anthropic. Claude API pricing reference. anthropic.com/pricing. Claude Haiku 4.5 used as the per-query reranker pricing basis in §5.5.
Appendix A Extraction prompt
The system prompt below is issued to gpt-4.1-mini for fact extraction, with the output format constrained to a JSON object:
You distill a chat session into atomic, retrievable facts about the user.
Output a JSON object {"facts": [...]} where each fact is one short,
self-contained sentence in third person about the user: preferences,
decisions, attributes, plans, or events they reported. Each fact should
be standalone (no pronouns referring outside). If the session has no
user-stated facts, return {"facts": []}. Keep facts terse.The accompanying user message carries the full session transcript with role labels, truncated at 32,000 characters, which is well inside gpt-4.1-mini's context limit. The temperature is fixed at 0 so that extraction is deterministic. Run across the full _s haystack of 19,195 unique sessions, the extractor produced 111,969 facts in total; sessions made up of generic filler material (the ShareGPT and UltraChat conversations used as distractors) were correctly recognized as carrying no user facts and returned empty arrays.
Appendix B Pipeline output schema
The scorer reads one JSONL row per scored question. Each row carries the question's metadata, the rank-ordered list of retrieved session ids, and the per-question metric values:
{
"question_id": "<LongMemEval question id>",
"question_type": "<one of the six LongMemEval types>",
"retrieval_results": {
"metrics": {
"session": {
"recall_any@5": <float in [0,1]>,
"recall_all@5": <float in [0,1]>,
"ndcg_any@5": <float in [0,1]>,
"recall_any@10": <float in [0,1]>,
"recall_all@10": <float in [0,1]>,
"ndcg_any@10": <float in [0,1]>
},
"turn": { }
},
"top10_sessions": [ "<session id>", ... ]
}
}LongMemEval's print_retrieval_metrics.py reads rows in this shape, drops the _abs abstention questions, and averages each metric over the questions that remain. Feeding our pipeline's output to that script unmodified reproduces the 99.36% headline.