arXiv:2607.01480 · 中英对照阅读
程序性记忆蒸馏:面向自我改进语言模型的在线反思
Procedural Memory Distillation: Online Reflection for Self-Improving Language Models
中文速览
模型在反复做相似题时,常常只根据眼前一次的成败更新,没能把过去摸索出的解题经验留下来。论文提出程序记忆蒸馏(Procedural Memory Distillation,PMD):从模型自己的答题轨迹中整理出具体经历、针对题目的策略与教训,以及跨题反复出现的思路,再让这些记忆指导训练中的“自我老师”,帮助模型改进自身。实验显示,PMD在科学知识和编程任务上都优于已有方法;记忆和模型一起持续更新,是提升效果的关键。重要的是,这些经验最终被学进模型参数,部署时不需要额外记忆,也能继续受益。
摘要
可验证奖励强化学习(RLVR)及近期的自蒸馏变体(如 SDPO),会依据验证器评估每次展开轨迹,并根据该回合级信号更新策略。然而,展开轨迹中更丰富的程序性信息很少得到保留或复用。在不同回合和训练轮次中,模型会在策略不断变化的情况下反复遇到相关问题,从而产生回合内更新无法捕捉的跨回合信号:哪些策略总能通过验证,哪些失败模式持续存在,哪些模式反复出现。我们提出程序性记忆蒸馏(PMD),将这些跨回合信号转化为可复用的程序性记忆,并在训练期间将其蒸馏到策略的权重中。这种记忆发挥训练支架的作用,被吸收到策略本身中,从而使模型在推理时无需记忆。PMD 将记忆组织为三个抽象层级:原始轨迹、自我反思得出的策略与经验,以及在不同问题中反复出现的更高层次行为模式;这些内容均从模型自身的轨迹中在线提取。记忆条件化自教师利用累积的经验,在学生自身的展开轨迹上为其提供监督,使学生能够逐步将程序性知识内化到其参数中。其核心设计原则是协同演化:策略生成展开轨迹以更新记忆,而记忆则塑造用于更新策略的监督信号。在 Qwen3-8B 和 OLMo3-Instruct-7B 上的实验表明,PMD 在 SciKnowEval 上较 SDPO 提升 $3.8$–$5.5\%$,在 LiveCodeBench 上提升 $7.9$–$13.6\%$。协同演化推动了这些提升:无论冻结记忆还是冻结策略,在 SciKnowEval 各领域的表现都比 PMD 低 10% 以上。
Reinforcement learning with verifiable rewards (RLVR), along with recent self-distillation variants such as SDPO, evaluates each rollout against a verifier and updates the policy from that episode-level signal. However, the richer procedural information in the rollout is rarely retained or reused. Across episodes and epochs, the model repeatedly encounters related problems under a changing policy, producing cross-episode signals that episode-local updates cannot capture: which strategies consistently pass verification, which failure modes persist, which patterns recur. We propose Procedural Memory Distillation (PMD), which converts these cross-episode signals into reusable procedural memory and distills it into the policy’s weights during training. This memory functions as a training scaffold, absorbed into the policy itself, yielding a memory-free model at inference. PMD organizes the memory at three levels of abstraction: raw trajectories, self-reflected strategies and lessons, and higher-level behavioral patterns that recur across problems, all extracted online from the model’s own trajectories. A memory-conditioned self-teacher draws on the accumulated experience to supervise the student on its own rollouts, enabling student to progressively internalize procedural knowledge within its parameters. The central design principle is co-evolution: the policy generates rollouts that update the memory, and memory shapes the supervision that updates the policy. Empirically, across Qwen3-8B and OLMo3-Instruct-7B, PMD improves over SDPO by $3.8$ – $5.5\%$ on SciKnowEval and $7.9$ – $13.6\%$ on LiveCodeBench. Co-evolution powers these gains: freezing either the memory or the policy trails PMD by more than 10% across SciKnowEval domains.
术语表
- reinforcement learning with verifiable rewards (RLVR)
- 可验证奖励强化学习(RLVR)
- Self-Distillation Policy Optimization (SDPO)
- 自蒸馏策略优化(SDPO)
- Procedural Memory Distillation (PMD)
- 程序性记忆蒸馏(PMD)
- Proximal Policy Optimization (PPO)
- 近端策略优化(PPO)
- Direct Preference Optimization (DPO)
- 直接偏好优化(DPO)
- Group Relative Policy Optimization (GRPO)
- 组相对策略优化(GRPO)
- on-policy distillation
- 在策略蒸馏
- offline distillation
- 离线蒸馏
- self-distillation
- 自蒸馏
- procedural memory
- 程序性记忆
- cross-episode signals
- 跨回合信号
- episode-local updates
- 回合内更新
- self-teacher
- 自教师
- memory-conditioned self-teacher
- 记忆条件化自教师
- co-evolution
- 协同演化
- training scaffold
- 训练支架
- experience memory
- 经验记忆
- insight memory
- 洞见记忆
- behavior memory
- 行为记忆
- fidelity-transfer trade-off
- 保真度—迁移性权衡
- test-time compute scaling
- 测试时计算扩展
- verifier headroom
- 验证器性能提升空间
- SciKnowEval
- SciKnowEval
- LiveCodeBench
- LiveCodeBench
- Qwen3-8B
- Qwen3-8B
- OLMo3-Instruct-7B
- OLMo3-Instruct-7B