{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/longmemeval-benchmarking-chat-assistants-on","title":"LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory","arxiv_id":"2410.10813","date":"2024-10-14","proceeding":null,"authors":["Di wu","Hongwei Wang","Wenhao Yu","Yuwei Zhang","Kai-Wei Chang","Dong Yu"],"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. This paper introduces 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 30% accuracy drop on memorizing information across sustained interactions. We then present a unified framework that breaks down the long-term memory design into four design choices across the indexing, retrieval, and reading stages. Built upon key experimental insights, we propose several memory designs including session decomposition for optimizing value granularity, fact-augmented key expansion for enhancing the index structure, and time-aware query expansion for refining the search scope. Experiment results 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.","url_abs":"https://arxiv.org/abs/2410.10813v1","url_pdf":"https://arxiv.org/pdf/2410.10813v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"longmemeval-benchmarking-chat-assistants-on","repo_url":"https://github.com/xiaowu0162/longmemeval","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"benchmarking","task_name":"Benchmarking"},{"task_slug":"large-language-model","task_name":"Large Language Model"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.10813","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.10813"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/xiaowu0162/LongMemEval","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xiaowu0162/longmemeval","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"ran":1,"unverified":3},"by_repo_kind":{"official":{"samples":5,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"8e4f7c8ecedd17fa","entry":"get_anscheck_prompt","repo":"xiaowu0162/LongMemEval","repo_kind":"official","path":"src/evaluation/evaluate_qa.py","file_url":"https://github.com/xiaowu0162/LongMemEval/blob/HEAD/src/evaluation/evaluate_qa.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e4f7c8ecedd17fa"}},{"code_sha256_prefix":"13f95adddd44b4f1","entry":"increment_date","repo":"xiaowu0162/longmemeval","repo_kind":"official","path":"src/index_expansion/temp_query_search_pruning.py","file_url":"https://github.com/xiaowu0162/longmemeval/blob/HEAD/src/index_expansion/temp_query_search_pruning.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"13f95adddd44b4f1"}},{"code_sha256_prefix":"c8f76a04b5265a70","entry":"dcg","repo":"xiaowu0162/longmemeval","repo_kind":"official","path":"src/retrieval/eval_utils.py","file_url":"https://github.com/xiaowu0162/longmemeval/blob/HEAD/src/retrieval/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8f76a04b5265a70"}},{"code_sha256_prefix":"4c538cdb253e39f7","entry":"evaluate_retrieval","repo":"xiaowu0162/longmemeval","repo_kind":"official","path":"src/retrieval/eval_utils.py","file_url":"https://github.com/xiaowu0162/longmemeval/blob/HEAD/src/retrieval/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c538cdb253e39f7"}},{"code_sha256_prefix":"878c3d776ad1928f","entry":"ndcg","repo":"xiaowu0162/longmemeval","repo_kind":"official","path":"src/retrieval/eval_utils.py","file_url":"https://github.com/xiaowu0162/longmemeval/blob/HEAD/src/retrieval/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"878c3d776ad1928f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}