EvolveMem:Self-Evolving Memory Architecture via AutoResearch for LLM Agents

Jiaqi Liu, Xinyu Ye, Peng Xia, Zeyu Zheng, Cihang Xie, Mingyu Ding, Huaxiu YaoarXiv 2026

TL;DR

EVOLVEMEM is a novel memory framework for LLM agents that autonomously optimizes its own retrieval infrastructure using an LLM-driven "AutoResearch" loop. By analyzing its own failure logs and dynamically adjusting parameters like fusion weights, context budgets, and query strategies, it eliminates manual tuning and significantly outperforms static memory baselines.

What Problem Does This Paper Address?

Long-term memory is a foundational requirement for LLM agents handling multi-session tasks, such as personal assistants or coding agents. However, existing memory architectures suffer from a fundamental limitation: while the stored content grows and changes, the retrieval infrastructure remains completely frozen.

A static retrieval configuration (e.g., fixed weights for keyword vs. semantic search) cannot optimally handle the shifting landscape of an agent's memory. Different types of questions require fundamentally different retrieval strategies: factual lookups need precise keyword matching, temporal reasoning requires time-aware filtering, and multi-hop inference requires query decomposition. EVOLVEMEM addresses this mismatch by allowing the retrieval mechanism to co-evolve alongside the stored knowledge base.

Table 1: Comparison of memory systems. EVOLVE- MEM is the first to combine content evolution with self-evolving retrieval infrastructure via AutoResearch. C.E.: content evolution. P.E.: policy/parameter evolu- tion. T.M.: typed memory. Cons.: consolidation. O.E.: offline evaluation.

Methods

EVOLVEMEM achieves self-evolution through a multi-layered architecture connected by a closed feedback loop, mirroring an autonomous research process:

  1. Structured Memory Store (Layer 1): Extracts typed memory units from raw conversations using an LLM with robust quality guards (retries, chunk-splitting, and coverage verification). It continuously consolidates memory via deduplication, importance decay, and entity reinforcement.
  2. Retrieval Layer as an Action Space (Layer 2): Instead of hardcoding retrieval parameters, EVOLVEMEM exposes its entire configuration—including candidate generation top-$k$, fusion modes (SUM, WEIGHTED-SUM, RRF), query augmentation (entity-swap, query decomposition), and answer generation styles—as a structured action space.
  3. Self-Evolution Engine (Layers 3 & 4): At the end of an evaluation round, an LLM-powered diagnosis module reviews per-question failure logs, identifies root causes (e.g., temporal confusion, insufficient context), and proposes targeted configuration adjustments ($\Delta\theta$).

To prevent bad adjustments from breaking the system, a guarded meta-analyzer applies a revert-on-regression safeguard (rolling back if performance drops) and an explore-on-stagnation safeguard (adding random perturbations to escape local optima).

Figure 2: EVOLVEMEM architecture. Three layers connected by a self-evolution feedback loop. A typed memory store is populated by an LLM-based extractor with retry and chunk-splitting; a multi-view retriever fuses BM25, semantic, and structured-metadata search with optional entity-swap, query decomposition, and answer verification; an LLM-powered diagnosis module reads per-question raw-result logs and proposes structured adjustments to the retrieval configuration; the evolution engine validates adjustments and auto-converges when the primary metric plateaus.

Datasets

The authors evaluated EVOLVEMEM on two long-term memory benchmarks:

  • LoCoMo: A dataset consisting of multi-session dialogues (19–32 sessions, 369–689 turns) featuring 5 QA categories: single-hop, temporal, multi-hop/inferential, open-domain, and adversarial name-swap.
  • MemBench: A memory-tool-use benchmark evaluating 7 low-level capabilities, including simple recall, comparative reasoning, conditional logic, and robustness to noise.

Key Insights and Ideas

  • The "AutoResearch" Paradigm: Rather than relying on black-box optimization algorithms (like Bayesian optimization), EVOLVEMEM uses an LLM to read raw text failure logs, hypothesize root causes, and propose semantic architectural changes.
  • Self-Expanding Action Space: Remarkably, the diagnosis LLM isn't strictly bound to the initial hyperparameters; it can discover and introduce entirely new configuration dimensions (such as adding a second-pass answer verification step or an adversarial entity-swap mechanism) based purely on failure patterns.
  • Universal Retrieval Principles over Heuristics: Evolved configurations demonstrate positive transfer across entirely different benchmarks. For example, a configuration optimized on the dialogue-heavy LoCoMo dataset actually accelerates and improves performance when transferred to the tool-use-heavy MemBench dataset, proving the engine uncovers generalized retrieval principles rather than overfitting to a specific dataset.

Key Results

EVOLVEMEM achieves substantial performance gains over state-of-the-art memory baselines across multiple LLM backbones (GPT-4o and GPT-5.1):

  • LoCoMo Benchmark: On GPT-4o, EVOLVEMEM achieved an overall F1 score of 54.3%, outperforming the strongest baseline, SimpleMem (43.2%), by 25.7% relative, and marking a 78.0% relative improvement over its own minimal baseline. The most dramatic improvements occurred in temporal (+63.4%) and single-hop (+68.7%) question categories.
  • MemBench Benchmark: EVOLVEMEM attained the highest overall accuracy on both backbones (67.9% on GPT-4o and 71.4% on GPT-5.1), outperforming the strongest baseline by up to 18.9% relative.
  • Cross-Benchmark Transfer: When a configuration evolved on LoCoMo ($C_L$) was used as a starting point for further evolution on MemBench ($C_{LM}$), it reached an accuracy of 79.2%, significantly beating a configuration trained on MemBench from scratch ($C_M$ at 67.9%).
Figure 1: EVOLVEMEM self-evolves its retrieval configuration on LoCoMo via AutoResearch. (a) A four-step evolution loop (EVALUATE–DIAGNOSE–PROPOSE–GUARD) ratchets accepted proposals into the action space; harmful ones (e.g., R2) are auto-reverted. (b) Overall F1 trajectory (single- backbone GPT-4o): 30.5% baseline to 54.3% at R7.

Limitations and Future Work

The authors noted that Robustness remains the weakest dimension in benchmarks like MemBench (specifically within the POST_PROCESSING category). Failure log analysis revealed that these errors often stem from a coverage limitation—meaning the required information was completely missing from the memory store during the ingestion phase. Retrieval-level adjustments cannot resolve errors if the underlying data was never captured.

Promising future directions include extending this AutoResearch-driven self-evolution framework to handle dynamic, real-time streaming scenarios and multimodal memory settings (e.g., text combined with images or audio).

Summary updated

BibTeX
@misc{liu2026evolvemem,
  author = {Jiaqi Liu and Xinyu Ye and Peng Xia and Zeyu Zheng and Cihang Xie and Mingyu Ding and Huaxiu Yao},
  title = {{EvolveMem:Self-Evolving Memory Architecture via AutoResearch for LLM Agents}},
  year = {2026},
  eprint = {2605.13941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.13941},
}
Figure