Dynamic Mixture of Latent Memories for Self-Evolving Agents

Dianzhi Yu, Vireo Zhang, Hongru Wang, Yanyu Chen, Minda Hu +5 more
5/21/2026
cs.LG
moe

No confident code implementation found for this paper.

Abstract

Achieving self-evolution in intelligent agents requires the continual accumulation of new knowledge across changing task sequences without forgetting previously acquired abilities. Existing approaches either internalize knowledge by updating model parameters, which induces catastrophic forgetting, or rely on external memory, which fails to genuinely enhance the model's intrinsic capabilities.

Show full abstract

We propose MoLEM, a generative mixture of latent memory framework based on a dynamic mixture-of-experts (MoE). We treat multiple experts as independent carriers to generate memory. A router selects and weights experts through key-query matching, and the aggregated latent memory is injected into the reasoning process. The base model for reasoning remains entirely frozen, with all experiential knowledge internalized into the additional modules, avoiding catastrophic forgetting. For continual learning, each training stage is paired with a lightweight autoencoder that selects the appropriate routing group at inference, and inputs that match no stage fall back to the pretrained model. Experiments train the framework on continual-learning sequences spanning math, science, and code domains. After training, we evaluate the framework on the corresponding test sets to measure task learning and competence preservation across continual adaptation stages. After the full continual-learning sequence, our method improves the average accuracy by 10.40% over the Vanilla pretrained baseline, while none of the competing methods consistently exceed this baseline across different training orders.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yu2026dynamic,
  title  = {Dynamic Mixture of Latent Memories for Self-Evolving Agents},
  author = {Dianzhi Yu and Vireo Zhang and Hongru Wang and Yanyu Chen and Minda Hu and Wanghan Xu and Siki Chen and Philip Torr and Zhenfei Yin and Irwin King},
  year   = {2026},
  eprint = {2605.21951},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.21951v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.21951.svg)](https://codeofpaper.com/paper/2605.21951)

Discussion