MemRSI: Recursive Policy-Harness Evolution Enables Memory Agents to Self-Improve

MemRSI lets memory agents' harness and policy evolve recursively together, significantly improving multimodal memory benchmarks.
MemRSI addresses the problem that a fixed harness limits continuous improvement of memory policies in personalized AI agents by proposing a recursive policy-harness evolution mechanism. It first trains a foundational manager via supervised fine-tuning and state-conditioned GRPO in a multimodal environment, then enters a diagnose-revise-verify loop where the manager diagnoses its own failures, proactively revises the harness, and retains revisions only when they improve memory utility. It achieves an average gain of 8.6 points on three benchmarks, with up to 11.3 points on seven unseen settings, holding from 4B to 27B scales and across GPT and Claude answer models.
In personalized AI agents, memory management is the core capability that connects historical interactions with dynamic needs. However, traditional memory policy learning often relies on a pre-designed "harness"—which specifies how the agent organizes interactions, obtains feedback, and optimizes its policy. As the policy improves, its failure modes and learning needs change, and a fixed harness can become a bottleneck. A recent paper proposes the MemRSI framework, which enables memory agents to self-improve through Recursive Policy-Harness Evolution, achieving significant gains on multiple benchmarks.

Core Problem: Why Does a Fixed Harness Limit Memory Agent Evolution?
Memory management policy learning typically follows the paradigm of "policy optimized within a harness." The harness defines the state representation, action space, feedback signals, and optimization process. When the policy improves, its remaining error types and required learning signals may differ from the initial design, yet the fixed harness still operates according to its original logic, preventing the agent from making targeted adjustments to newly emerging weaknesses. The paper points out that this mismatch limits further improvement. MemRSI's core insight is that the harness itself should also be a learning object, co-evolving with the policy.
The distinction between Policy and Harness is key to understanding MemRSI. In the reinforcement learning context, a policy typically refers to the decision function by which an agent selects actions based on the current state—i.e., "what to do"; the harness is the peripheral infrastructure surrounding the policy, including how states are represented, how the action space is defined, how feedback signals are constructed, and how the optimization process is scheduled—i.e., "under what conditions and how learning happens." Traditional approaches treat the harness as a fixed, human-designed constant and optimize only the policy parameters. But as policy capabilities change, its error patterns also shift—for example, it may fail early on due to inaccurate memory retrieval, and later stagnate because feedback signals are too sparse. At that point, the learning signals provided by the fixed harness are misaligned with the policy's current weaknesses, and optimization efficiency drops. MemRSI treats the harness as a learnable variable as well, allowing the two to improve alternately—essentially extending the object of "meta-learning" from hyperparameters to the entire interaction and feedback structure.
The MemRSI Framework: From Multimodal Memory Environment to Recursive Evolution
MemRSI builds a multimodal memory environment containing a structured Memory Bank, validated operations, source evidence, and outcome feedback. This environment provides a rich interaction foundation for memory agents. In the initialization phase, the manager acquires foundational capabilities through memory policy learning, trained with supervised fine-tuning (SFT) and State-Conditioned GRPO (SC-GRPO). SC-GRPO incorporates state information into the optimization process, enabling the policy to adjust dynamically based on context.
It then enters the recursive policy-harness evolution phase: the manager diagnoses its own failure cases, proactively revises the harness design (e.g., adjusting feedback mechanisms or interaction flows), and retains a revision only if subsequent learning improves memory utility. This "diagnose-revise-verify" loop keeps the harness continuously aligned with the policy's current needs.
SC-GRPO (State-Conditioned GRPO) is the core training method in MemRSI's initialization phase. GRPO (Group Relative Policy Optimization) is itself a policy optimization algorithm that requires no separate value network; it reduces training cost by sampling a group of candidate responses for the same prompt and replacing absolute value estimates with intra-group relative advantages. SC-GRPO introduces state conditioning on top of this: the agent's current memory state (such as conversation history length, sufficiency of retrieved evidence, and task stage) is injected as an explicit condition into the optimization process, so that advantage estimation and policy updates can adjust dynamically with context. For memory management tasks, this is especially important—the same operation can produce completely opposite effects under different memory states, and state conditioning lets the policy learn to "act according to circumstances" rather than acquiring a fixed set of context-independent rules.
Experimental Validation: Significant Gains Across Benchmarks and Strong Generalization
On three major multimodal long-term dialogue memory benchmarks, MemRSI improves the judge score by an average of 8.6 points over the strongest control baseline. Even more notable is its generalization: a policy trained only on Mem-Gallery surpasses untrained managers on seven unseen evaluation settings without any adaptation, with gains of up to 11.3 points. These gains hold across memory managers of 4B, 9B, and 27B parameter scales, and extend to diverse answer models, including proprietary LLMs such as GPT and Claude. This shows that MemRSI's improvements do not depend on a specific model scale or on closed-source versus open-source status.
Judge Score is a common evaluation approach in such memory benchmarks: a highly capable LLM acts as a judge, comparing the agent's generated responses against reference answers or scoring rubrics, usually on a continuous scale of 0-100 or 1-10. Compared with surface-level metrics such as exact match or BLEU, LLM judges are more tolerant of phrasing differences and better at assessing semantic correctness and the reasonableness of memory use, making them suitable for open-ended tasks like long-term dialogue memory. Note, however, that judge models have their own biases and variance, so the reported "average gain of 8.6 points" should be interpreted in light of baseline scores and judge consistency; validation across multiple answer models such as GPT and Claude is partly intended to rule out systematic bias from a single judge or a single generation model.
Implications: A New Paradigm for Self-Improving Agents
MemRSI turns the "harness" from a static design into an evolvable component, offering a new approach to building self-improving personalized agents. Its recursive evolution mechanism allows agents to continuously diagnose and fix their own limitations after deployment, while the multimodal memory environment and SC-GRPO training strategy lay the groundwork for practical applications. Although the paper does not disclose computational costs and training details, the consistent gains across model scales suggest the method's robustness. In the future, how to constrain harness revisions within safe bounds and avoid catastrophic forgetting may be worthwhile directions to explore.
One-line Summary
MemRSI lets memory agents' harness and policy evolve recursively together, significantly improving multimodal memory benchmarks.
Paragraph Summary
To address the problem that a fixed harness limits continuous improvement of memory policies in personalized AI agents, MemRSI proposes a recursive policy-harness evolution mechanism. The traditional paradigm optimizes only the policy while keeping the harness fixed; once the policy improves, its failure modes and learning needs have changed, and the fixed harness becomes a bottleneck. MemRSI first trains a foundational manager through supervised fine-tuning and state-conditioned GRPO in a multimodal environment containing a memory bank, operations, and feedback, then enters a "diagnose-revise-verify" loop: the manager diagnoses its own failures, proactively revises the harness design, and retains a revision only when it improves memory utility. It improves by an average of 8.6 points on three multimodal long-term dialogue memory benchmarks, with a policy trained on a single benchmark gaining up to 11.3 points across seven unseen settings, and these results hold from 4B to 27B scales and across answer models such as GPT and Claude.
Related articles

AI SDK zai 3.0.60 Update: Patch-Only Dependency Upgrade
AI SDK's @ai-sdk/zai releases patch version 3.0.60, only updating provider-utils and openai-compatible dependencies. This article analyzes the practical impact on developers and upgrade recommendations.

@ai-sdk/xai 5.0.53 Patch Release: The Signal Behind the Dependency Update
@ai-sdk/xai releases patch 5.0.53, updating @ai-sdk/provider-utils to 5.0.86. What this patch means, its SemVer signal, and what it means for developers.

@ai-sdk/voyage 2.0.88 Released: The Maintenance Signal Behind a Dependency Patch Update
@ai-sdk/voyage 2.0.88 is released, updating only the dependency @ai-sdk/provider-utils@5.0.86 in a patch-level maintenance release. This article covers the changes, automated release workflow, and upgrade notes for developers.