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.
Methods
EVOLVEMEM achieves self-evolution through a multi-layered architecture connected by a closed feedback loop, mirroring an autonomous research process:
- 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.
- 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.
- 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).
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%).
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