MemRSI: Learning Self-Improving Memory Agents via Recursive Policy-Harness Evolution

Litong Liu, Tianxin Wei, Yuanchen Bei, Sikai Cheng, Xuying Ning, Zihao Li, Zhining Liu, Jiaru Zou, Haonan Wang, Zhenrui Yue, Dongqi Fu, Jianhui Sun, Haixu Ma, Yao Zhang, Qifei Wang, Ruiyi Li, Serena Li, Xiangjun Fan, Bo Peng, Weiwei Li, Lizhu ZhangarXiv 2026

TL;DR

Teaching an AI agent what to remember over months of conversations usually hits a wall because the training "harness"—the fixed set of rules, rewards, and feedback loops guiding the model—stays static even as the agent gets smarter. MemRSI breaks past this plateau by letting the memory agent inspect its own mistakes, rewrite its own training harness, and continue learning recursively. The result is a compact, self-improving multimodal memory system that outperforms frontier models and transfers zero-shot to entirely new tasks.

Comparison of traditional Fixed-Harness RL, which plateaus due to static rules and rewards, versus MemRSI, where the policy and its learning harness co-evolve recursively.

What Problem Does This Paper Address?

Imagine showing a personal AI assistant a photo of a houseplant, correcting its species name two weeks later, and mentioning a yellowing leaf a month after that. Stuffing the entire raw chat history into a prompt eventually breaks down; long contexts degrade LLM reliability and leave the current state of the world buried in old chatter.

To solve this, researchers use Reinforcement Learning (RL) to train a dedicated memory manager—a model that decides what to store, update, or ignore—rewarded by how accurately a separate answer agent can answer questions using that memory later.

Here is the catch: RL relies on a pre-designed learning harness—the scaffolding that dictates how memory is structured, how credit is assigned, and how rewards update the model. Early in training, coarse feedback helps an agent learn the basics. Once it masters those, its remaining mistakes become subtle (like accidentally overwriting a crucial historical detail). A static harness cannot adapt its feedback to target these evolving blind spots, causing learning to plateau.

Methods

MemRSI separates memory writing (a trainable manager, $\pi_\theta$) from reading (a frozen answer agent) and unfolds across three core stages:

  1. Stateful Multimodal Memory Environment: Instead of a messy notepad or a lossy rolling summary, the manager writes validated operations (ADD, UPDATE, DELETE, NOOP) into a three-layer Memory Bank:
  2. State: What is true right now (e.g., current car choice).
  3. History: Dated chains of events showing how things changed.
  4. Records: Atomic facts and visual observations. Crucially, every entry keeps provenance links back to the exact source dialogue, images, and the specific operation that wrote it. If an answer goes wrong later, the system can trace the exact crime scene.

  5. Memory Policy Learning (Initialization): The manager is warmed up via Supervised Fine-Tuning (SFT) on teacher-generated transactions, followed by State-Conditioned GRPO (SC-GRPO). Rather than rolling out entire multi-session conversations (which is slow and noisy), SC-GRPO branches multiple candidate transactions from the same historical memory state at a single session, isolating the impact of the current decision.

  6. Recursive Policy–Harness Evolution: Once SC-GRPO saturates, the self-improvement loop kicks in. The current manager reads a diagnostic trace of its own failures, proposes an executable code revision to its harness (modifying memory structure, reward/credit signals, or optimization rules), and trains under the new harness for a fixed budget. If validation utility improves, the new (policy, harness) pair is promoted to become the parent—and proposer—for the next round.
Overview of MemRSI showing the structured Memory Environment on top and the 5-step Recursive Policy-Harness Evolution loop on the bottom.

Datasets

The authors introduce no new datasets, evaluating instead across eight established benchmarks:

  • Main Training & Evaluation: Mem-Gallery (long-term multimodal chat), MemEye (fine-grained visual memory and temporal changes), and LoCoMo (extended multi-session dialogue reasoning).
  • Zero-Shot Transfer: MemLens, LongMemEval, LongMemEval-v2 (Web and Enterprise agent trajectories), and PersonaMem (dynamic user profiling).

Key Insights and Ideas

  • Fix the credit assignment, don't move the goalposts: During recursive evolution, all four retained revisions targeted how feedback and credit were calculated—gradually evolving from coarse session-level rewards to per-operation counterfactual credit evaluated on the final memory bank. Conversely, letting the agent revise the memory structure or reward-time retrieval hurt performance (-4.58 and -1.00 points), because changing the environment disrupted previously learned behaviors or allowed retrieval to game the reward.
  • Co-evolution beats a "magic recipe": Taking the final, best-evolved harness and training a fresh model with it from scratch failed to match recursive evolution (86.33% vs. 88.03%) and caused training instability. Advanced credit rules only make sense after the policy has matured enough to need them.
  • Self-diagnosis beats a smarter outsider: When evolving a 27B manager, letting the model propose its own harness edits outperformed edits proposed by a stronger frontier model (GPT) or transferred from a 9B model. Knowing your own blind spots matters.
  • Less is more: Compared to storing everything for retrieval (UniversalRAG), MemRSI's learned bank cut token usage roughly in half (48.4% median reduction) while boosting accuracy across the board.

Key Results

  • Benchmark Dominance: Using a Qwen3.5-9B manager, MemRSI averaged 77.5% across the three main benchmarks—beating the strongest controlled baseline (UniversalRAG) by 8.6 judge points, and even outperforming end-to-end frontier systems like GPT-5.6 Luna and Claude Sonnet 5.
  • Breaking the RL Plateau: On Mem-Gallery, Recursive Policy–Harness Evolution pushed a saturated 9B SC-GRPO policy from 85.6% to 88.0% (while simply training longer under the initial harness dropped performance to 84.4%).
  • Zero-Shot Generalization: A single 9B policy trained only on Mem-Gallery improved over its untrained baseline across all seven unseen benchmarks without adaptation—gaining up to +11.3 points on LongMemEval-v2 Enterprise, where standard retrieval baselines collapsed.
  • Cross-Model Scaling: Training gains held across Gemma4-4B (+20+ points), Qwen3.5-9B, and Qwen3.8-27B managers, and memories built by a 9B manager boosted answer quality when read by 27B Qwen, GPT, and Claude models (+3.8 to +6.3 points).

Limitations and Future Work

  • Domain Scope: MemRSI is tailored for single-agent personal assistance over conversations. Embodied robotics or multi-agent setups may require fundamentally different interaction and harness mechanics.
  • Narrow Evolution Scope: Recursive evolution was only studied on 9B and 27B models using Mem-Gallery as the source, where only reward/optimization edits succeeded. Future work aims to apply this co-evolutionary loop to procedural memory (like web and embodied agents) and scale up search budgets to successfully evolve structural memory components.

Summary updated

BibTeX
@misc{liu2026memrsi,
  author = {Litong Liu and Tianxin Wei and Yuanchen Bei and Sikai Cheng and Xuying Ning and Zihao Li and Zhining Liu and Jiaru Zou and Haonan Wang and Zhenrui Yue and Dongqi Fu and Jianhui Sun and Haixu Ma and Yao Zhang and Qifei Wang and Ruiyi Li and Serena Li and Xiangjun Fan and Bo Peng and Weiwei Li and Lizhu Zhang},
  title = {{MemRSI: Learning Self-Improving Memory Agents via Recursive Policy-Harness Evolution}},
  year = {2026},
  eprint = {2611.36706},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36706},
}
Figure