RIME:利用强化学习训练模型持续学习与记忆写入
Highly recommended read.
Agent 持续学习是核心痛点,RIME 用 RL 训练小模型实现前沿模型水平的记忆更新,思路硬核且具启发性,值得 Agent 开发者关注。
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.
我最近开始对协同进化模型进行独立研究。我的重点在于协同进化模型和 harness(工具链/框架)。
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.
随着你与智能体(agent)协作,它应该在你的任务上变得更好,但这显然不容易实现,而且当前的外部记忆系统往往不够用。
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.
为了说明这一点,想象一个 AI 智能体花了一周时间在同一个项目中修复 bug。我们期望它能学会该项目的工作原理并避免重复犯错。给它一个保存笔记的地方可以让它将这些知识带入后续任务中。但选择哪些内容值得记录需要判断力。
This work looks at how to train that judgment with RL.
这项工作探讨了如何使用强化学习(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.
一个经过训练的 4B 参数模型达到了与 GPT-5.4 和 Claude Opus 4.7 相似的水平。
RIME uses one model in two roles.
RIME 使用一个模型承担两种角色。
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.
作为执行者(actor),它利用现有记忆完成任务;作为写入者(writer),它会回顾发生的情况并更新可供下一个任务使用的笔记。
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.
执行者因完成任务而获得奖励,并因发现的有用信息被存入记忆而获得额外奖励。一个 AI 裁判会比较新旧笔记,寻找有用的补充、修正后的信念以及具体的线索。
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.
我在这里有一个主要问题是效率,以及显然地,这一切如何整合到 harness 和工作流中。我认为这类方法可以节省大量的 token 和交互轮次。
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.
前沿模型在保留知识方面表现得越来越好,但我认为高效的持续学习仍然需要触及权重,而这正是开源权重模型将发挥巨大作用的地方。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力