{"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/arxiv-2606-00619","title":"MemPro: Agentic Memory Systems as Evolvable Programs","arxiv_id":"2606.00619","date":"2026-05-30","proceeding":null,"authors":["Qingshan Liu","Guoqing Wang","Wen Wu","Jingqi Huang","Xinqi Tao","Dejia Song","Jie Zhou","Liang He"],"abstract":"Long-horizon autonomous agents require memory systems to retain historical information, track evolving states, and reuse relevant knowledge beyond finite context windows. Existing agentic memory systems typically follow a memory construction-retrieval (MCR) pipeline, but often adapt mainly the memory bank while keeping the surrounding pipeline fixed after deployment. This fixed-pipeline design struggles to handle heterogeneous task-specific failure modes and can become misaligned with memory banks that evolve in scale and structure over time. To address these limitations, we propose MemPro, a system-level evolution framework that treats the entire MCR pipeline as an evolvable program rather than adapting only the memory bank or prompt text. MemPro maintains a version tree of runnable memory-system implementations, where an Evolving Agent iteratively selects promising versions, diagnoses recurring failures, and creates improved child versions through failure-mode-guided edit-debug refinement. Experiments on LongMemEval, LoCoMo, HotpotQA, and NarrativeQA show that MemPro consistently outperforms strong static and prompt-level evolving baselines within a few iterations, continues to improve with evolution, and achieves a favorable performance-cost trade-off. Code is available at https://github.com/wanghai673/MemPro.","url_abs":"https://arxiv.org/abs/2606.00619","url_pdf":"https://arxiv.org/pdf/2606.00619","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.00619"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/wanghai673/MemPro","reach":null}],"summary":{"ran":7},"by_repo_kind":{"found_in_text":{"samples":7,"ran":7,"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":7,"samples":[{"code_sha256_prefix":"15cba788837300b2","entry":"benchmark_name","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/_shared/evolution_workspace.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/_shared/evolution_workspace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"15cba788837300b2"}},{"code_sha256_prefix":"2aa6ca64a439e002","entry":"build_final_summarize_prompt","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2aa6ca64a439e002"}},{"code_sha256_prefix":"238699007dd301bd","entry":"find_mempro_root","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/_shared/evolution_workspace.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/_shared/evolution_workspace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"238699007dd301bd"}},{"code_sha256_prefix":"d0502b2e704d1039","entry":"make_final_summarize_prompt","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d0502b2e704d1039"}},{"code_sha256_prefix":"3a8cd1dbfa310669","entry":"make_final_summarize_prompt_category3","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/hotpotqa/versions/v_best/final_summarize_prompts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3a8cd1dbfa310669"}},{"code_sha256_prefix":"bd08cb277bcf62c1","entry":"make_prompt","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/hotpotqa/versions/v_best/working_prompts.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/hotpotqa/versions/v_best/working_prompts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bd08cb277bcf62c1"}},{"code_sha256_prefix":"33b8c29334f2703c","entry":"workspace_root_from_script","repo":"wanghai673/MemPro","repo_kind":"found_in_text","path":"MemPro/_shared/evolution_workspace.py","file_url":"https://github.com/wanghai673/MemPro/blob/HEAD/MemPro/_shared/evolution_workspace.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"33b8c29334f2703c"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}