RIME trains memory-writing judgment in agents with RL
The non-obvious result is that memory quality in agents is a trainable judgment problem, not a retrieval or storage problem, and a 4B model can close the gap with frontier models on this axis. Developers building long-running agents should evaluate whether RL-trained memory writing can cut token spend and wasted turns compared with current memory frameworks. Teams shipping agent products across ASEAN and China markets can test the two-role design in existing harnesses rather than adopting a separate memory stack.
A research work introduced by AI writer Elvis Saravia on X, RIME (co-evolved models), trains an agent to decide what to write into memory for continual learning, using reinforcement learning. A trained 4B parameter model matched the memory-related performance of GPT-5.4 and Claude Opus 4.7 on the reported tasks.
RIME uses one model in two roles: an actor that works on tasks using existing memory, and a writer that reviews what happened and updates notes for the next task. Rewards differ by role. The writer earns credit when performance on upcoming tasks improves relative to recent tasks, an approximate signal since other factors also influence results. The actor earns a reward for completing its task plus a bonus for discoveries that reach memory, judged by an AI judge comparing old and new notes for useful additions, corrected beliefs and concrete leads. Paraphrasing existing notes earns little credit, pushing the agent toward genuinely reusable findings.
The authors found the two abilities must co-develop, since the writer depends on what the actor discovers and the actor depends on what the writer preserves. Current external memory systems often fail not for lack of storage but because models lack judgment about when and what to record, which this training approach targets directly.
Highly recommended read. My notes: I have recently started independent research on co-evolved models. My focus has been on co-evolving models and harnesses. This work focuses on memory writing specifically for continual learning. Why is this a big deal? As you work with an agent, it should get better at your tasks, but that obviously doesn't happen easily, and current external memory systems often aren't enough. This has less to do with memory systems (there are many great ones out there) and more to do with the model's awareness and judgment about when to act. To illustrate, imagine an AI agent spends a week fixing bugs in the same project. We would expect it to learn how the project works and avoid repeating mistakes. Giving it a place to save notes lets it carry that knowledge into later tasks. But choosing what belongs in those notes requires judgment. This work looks at how to train that judgment with RL. They essentially teach an agent to discover useful information while working and write memories that help it succeed on later tasks. A trained 4B parameter model reached a score similar to GPT-5.4 and Claude Opus 4.7. RIME uses one model in two roles. As the actor, it works on a task using its existing memory. As the writer, it reviews what happened and updates the notes available for the next task. The training rewards each role differently. The writer receives credit when performance on the next few tasks improves relative to performance on the recent tasks. This gives it a reason to preserve information that will help later. The comparison is an approximate training signal, since other actions and memory updates also affect those results. The actor earns a reward for completing its task and an additional reward for discoveries that reach memory. An AI judge compares the old and new notes, looking for useful additions, corrected beliefs, and concrete leads. This encourages the agent to investigate enough to learn something reusable. Rewriting the same notes in different words earns little credit. The researchers found that these abilities need to develop together. A writer depends on the information the actor discovers, and an actor depends on the knowledge the writer preserves. One big question I have here is efficiency and, obviously, how it all integrates into harnesses and workflows. I think approaches like this can save a lot of tokens and turns. While this is on a small scale, it's great to see it working already. It feels like a more feasible approach for continual learning. Frontier models are getting better at retaining knowledge, but I think efficient continual learning will still require touching the weights, which is where open-weight models will play a huge role. Aviral Kumar @aviral_kumar2 How can we train LLMs to write memories from experience collected on the fly to as best as possible solve the next task, i.e., optimize for both capability and "continual learning" ability? In our new post, we study this question in the setting continual learning over a sequence of tasks, and develop a simple approach to train models to write effective memories cmu-aire.github.io/RIME/ *Spoiler*: the picture is more nuanced than you think 🧵 ⬇️ 🔗 View Quoted Tweet📊 12 ⚡
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include RIME, continual learning, reinforcement learning, agents.
Source attribution: curated from elvis (@omarsar0).