SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10813 · ICLR · 2025

LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory

Kai-Wei Chang, Hongwei Wang, Wenhao Yu, Di Wu, Dong Yu, Yuwei Zhang

arXiv · PDF · Open in the Atlas

Code that ran

2 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.10813.json · badge: /api/ran/2410.10813.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xiaowu0162/longmemeval canonical (classifier label)
classifier basis: census
1 ran · 3 no recorded run
xiaowu0162/LongMemEval canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_anscheck_prompt Ran
ran; our contract draft was wrong, not the code
xiaowu0162/LongMemEval/src/evaluation/evaluate_qa.py
code served (permissive licence) · get_code("8e4f7c8ecedd17fa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

ARGS = {
    'task': 'single-session-user',
    'question': 'What is the capital of France?',
    'answer': 'Paris',
    'response': 'The capital of France is Paris.',
    'abstention': False
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
increment_date Ran
ran; our contract draft was wrong, not the code
xiaowu0162/longmemeval/src/index_expansion/temp_query_search_pruning.py
code served (permissive licence) · get_code("13f95adddd44b4f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from datetime import datetime, timedelta

ARGS = {
    'date_str': '2024/01/15',
    'x': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dcg Not yet run
unverified (harvested, no recorded run)
xiaowu0162/longmemeval/src/retrieval/eval_utils.py
code served (permissive licence) · get_code("c8f76a04b5265a70")
How it ran

no invocation recorded.

evaluate_retrieval Not yet run
unverified (harvested, no recorded run)
xiaowu0162/longmemeval/src/retrieval/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from AvatarMemory/UnifiedMem, is pointer only (licence: NONE) · get_code("4c538cdb253e39f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AvatarMemory/UnifiedMem, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ndcg Not yet run
unverified (harvested, no recorded run)
xiaowu0162/longmemeval/src/retrieval/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from AvatarMemory/UnifiedMem, is pointer only (licence: NONE) · get_code("878c3d776ad1928f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AvatarMemory/UnifiedMem, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_anscheck_prompt 3 other papers
3 later
2506.09944 (2025-06)
Query-Focused Retrieval Heads Improve Long-Context Reasoning and Re-ranking
2510.18866 (2025-10)
LightMem: Lightweight and Efficient Memory-Augmented Generation
2601.01280 (2026-01)
Does Memory Need Graphs? A Unified Framework and Empirical Analysis for Long-Term Dialog Memory
dcg 2 other papers
2 later
2601.01280 (2026-01)
Does Memory Need Graphs? A Unified Framework and Empirical Analysis for Long-Term Dialog Memory
2601.06966 (2026-01)
RealMem: Benchmarking LLMs in Real-World Memory-Driven Interaction
evaluate_retrieval 1 other paper
1 later
2601.01280 (2026-01)
Does Memory Need Graphs? A Unified Framework and Empirical Analysis for Long-Term Dialog Memory
ndcg 1 other paper
1 later
2601.01280 (2026-01)
Does Memory Need Graphs? A Unified Framework and Empirical Analysis for Long-Term Dialog Memory

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent large language model (LLM)-driven chat assistant systems have integrated memory components to track user-assistant chat histories, enabling more accurate and personalized responses. However, their long-term memory capabilities in sustained interactions remain underexplored. We introduce LONGMEMEVAL, a comprehensive benchmark designed to evaluate five core long-term memory abilities of chat assistants: information extraction, multi-session reasoning, temporal reasoning, knowledge updates, and abstention. With 500 meticulously curated questions embedded within freely scalable user-assistant chat histories, LONGMEMEVAL presents a significant challenge to existing long-term memory systems, with commercial chat assistants and long-context LLMs showing a 30% accuracy drop on memorizing information across sustained interactions. We then present a unified framework that breaks down the long-term memory design into three stages: indexing, retrieval, and reading. Built upon key experimental insights, we propose several memory design optimizations including session decomposition for value granularity, fact-augmented key expansion for indexing, and time-aware query expansion for refining the search scope. Extensive experiments show that these optimizations greatly improve both memory recall and downstream question answering on LONGMEMEVAL. Overall, our study provides valuable resources and guidance for advancing the long-term memory capabilities of LLM-based chat assistants, paving the way toward more personalized and reliable conversational AI. Our benchmark and code are publicly available at https://github.com/xiaowu0162/LongMemEval. Large language models (LLMs) have exhibited impressive capabilities in solving diverse tasks through natural language, leading to numerous successful chat assistant applications (OpenAI, 2022; Microsoft, 2023). Nevertheless, LLMs face limitations on tasks relying heavily on personal knowledge accumulated through long-term user-AI interactions, such as psychological counseling or secretarial duties (Zhong et al., 2024). Failing to incorporate user background and preferences into responses can diminish the response's accuracy as well as user satisfaction. To personalize LLM-based assistants, long-term memory, the ability to memorize, recall, and reason with a long interaction history, is indispensable. Recently, several commercial (OpenAI, 2024;Coze, 2024) and open-source assistant systems with memory (Zhong et al., 2024;Zhang et al., 2024) have been introduced. These systems leverage techniques like compressing, indexing, and retrieving from chat histories to generate more accurate and personalized responses. Despite these advances, there has been limited progress in holistically evaluating the memory capability in long-term interactions. While several benchmarks evaluate LLMs on understanding long chat histories (

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.10813")
get_code_for_paper("2410.10813")
have("2410.10813")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.10813.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.10813.svg)](https://syntology.ai/paper/2410.10813)

Connect an agent — have() is free.