Scaling Self-Evolving Agents via Parametric Memory

Tao Ren, Weiyao Luo, Hui Yang, Rongzhi Zhu, Xiang Huang, Yuchuan Wu, Bingxue Chou, Jieping Ye, Jiafeng Liang, Yongbin Li, Yijie PengarXiv 2026

TL;DR

Current LLM agents use prompt-space memory (like summaries or RAG) but keep their model parameters frozen, meaning they can look up history but can't truly learn from it within an episode. This paper introduces TMEM, a framework that allows agents to update their own parameters on-the-fly during a single rollout using fast LoRA weights. By combining SVD-based weight initialization and reinforcement learning, TMEM enables intra-episode self-evolution, consistently outperforming traditional memory baselines.

What Problem Does This Paper Address?

When large language model (LLM) agents tackle long-horizon tasks—such as multi-session conversations, extended web searches, or complex tool use—they must handle contexts that far exceed their standard window.

To manage this, existing agents rely on prompt-space memory: they either compress history into textual summaries or store past interactions in external retrieval indices (RAG). However, the underlying model parameters remain completely frozen throughout the rollout. This creates a fundamental bottleneck:

  1. Lossy Compression: Summaries often discard fine-grained facts that cannot be recovered later.
  2. Passive Lookup vs. Active Learning: The agent's core policy remains unchanged by experience. It can look up what it has seen, but it cannot internalize that experience to alter its future reasoning behavior within the same episode.

Methods

The authors introduce TMEM (Parametric Memory), a framework that treats test-time parameter updates as an intrinsic part of the agent's decision-making process.

Figure 2: Architecture of TMEM.

Key technical components include:

  1. Fast-Weight Rollout Dynamics: When the agent's working context reaches a preset budget, it enters a "memory-writing" mode. It distills the current session into grounded, QA-style supervision pairs and applies a lightweight online Supervised Fine-Tuning (SFT) update to fast LoRA weights ($\Delta_t$). Subsequent actions are then sampled from this newly adapted policy ($\pi_{\theta_0+\Delta_t}$).
  2. SVD-Based Initialization: Standard LoRA randomly initializes its matrices, which wastes precious gradient steps during rapid test-time training. TMEM computes a Singular Value Decomposition (SVD) on the pretrained weights to initialize the LoRA projection matrix ($A$). By freezing $A$ and only training the coefficient matrix ($B$) online, the agent anchors its updates to the model's most critical, "high-energy" directions.
  3. Stop-Gradient Policy Optimization: The authors formalize memory extraction as an agentic action. Using Reinforcement Learning (specifically GRPO), they optimize the base parameters ($\theta_0$) across multiple rollouts while placing a stop-gradient through the online update operator. This explicitly trains the base model to generate higher-quality QA pairs that make its own future fast-weight updates more effective.

Datasets

TMEM was evaluated across four distinct task families using Qwen3-4B and Qwen3-8B backbones:

  • LoCoMo: A long-context conversational memory benchmark featuring multi-session dialogue histories.
  • LongMemEval-S: A chat assistant benchmark tested under a strict "full-haystack" protocol (no oracle evidence provided).
  • Multi-Objective Search: A search-agent protocol where the model must resolve multiple independent QA subgoals over several steps using a web search tool.
  • CL-Bench (Filtered): A continual context-learning benchmark. The authors filtered this dataset to retain instances matched to the capability range of 4B/8B models to ensure high discriminability between memory strategies.

Key Insights and Ideas

  • Coupling Computation and Memory: Mirroring biological systems, TMEM couples learning and memory by reflecting experience directly within the computational substrate (the weights) rather than just appending tokens to the input prompt.
  • Memory Extraction as an Optimizable Action: Instead of treating summarization as an auxiliary preprocessing step, TMEM frames it as an action directly tied to the final task reward. RL forces the base model to become a better "self-teacher."
  • SVD as an Adaptive Preconditioner: Beyond reducing the approximation gap, SVD initialization acts as an implicit preconditioner. It scales effective step sizes along principal singular directions, which drastically accelerates convergence in ultra-low-step training regimes (e.g., 5 epochs of SGD at test time).

Key Results

TMEM consistently outperformed summary-based (MemAgent/MEM1) and retrieval-based (AMEM) baselines across different model scales.

Conversational Memory

On LongMemEval-S, TMEM achieved substantial performance leaps over the best explicit-memory baselines, showing an increase of +4.79 F1 / +2.34 EM on Qwen3-4B and a massive +10.21 F1 / +7.02 EM on Qwen3-8B.

Conversational memory results

Search-Agent Memory

In multi-objective search tasks, TMEM similarly led the pack, outperforming the strongest explicit-memory baseline after RL by +4.34 F1 on the 4-objective split.

Efficiency Trade-offs

In terms of computational overhead, TMEM sits in a practical middle ground. It avoids the massive peak GPU memory costs of keeping a raw, uncompressed context window, runs faster than retrieval-based methods on long sequences, and adds only a modest time overhead compared to pure text summarization.

Limitations and Future Work

  • Context Budget Sensitivity: TMEM's performance follows a bell-curve relative to the context trigger budget ($L_{max}$). Triggering updates too frequently causes aggressive, lossy compression, while waiting too long makes the extraction prompt harder for the model to process accurately.
  • Architectural Scope: Currently, LoRA adapters are only attached to the feed-forward network (FFN) projections in the final 4 layers of the Transformer backbone. Exploring full-network adaptation or applying parametric memory to attention projections remains an open avenue.

Summary updated

BibTeX
@misc{ren2026scaling,
  author = {Tao Ren and Weiyao Luo and Hui Yang and Rongzhi Zhu and Xiang Huang and Yuchuan Wu and Bingxue Chou and Jieping Ye and Jiafeng Liang and Yongbin Li and Yijie Peng},
  title = {{Scaling Self-Evolving Agents via Parametric Memory}},
  year = {2026},
  eprint = {2606.04536},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.04536},
}
Figure