arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01480cs.AIcs.LG
收藏

程序记忆蒸馏:用于自我改进语言模型的在线反思

Procedural Memory Distillation: Online Reflection for Self-Improving Language Models

Ye Liu, Srijan Bansal, Bo Pang, Yang Li, Zeyu Leo Liu, Yifei Ming, Zixuan Ke, Shafiq Joty, Semih Yavuz

AI总结:

提出程序记忆蒸馏(PMD),通过在线提取跨回合信号(轨迹、反思策略、行为模式)并蒸馏到策略权重中,使语言模型在推理时无需额外记忆,相比SDPO在SCIKNOWEVAL和LIVECODEBENCH上分别提升3.8-5.5%和7.9-13.6%。

摘要:

基于可验证奖励的强化学习(RLVR)以及最近的自我蒸馏变体(如SDPO)会评估每次生成的结果并基于该回合信号更新策略。然而,生成过程中更丰富的程序性信息很少被保留或重用。跨回合和跨周期,模型在不断变化的策略下反复遇到相关问题,产生回合局部更新无法捕获的跨回合信号:哪些策略持续通过验证,哪些失败模式持续存在,哪些模式重复出现。我们提出程序记忆蒸馏(PMD),它将这些跨回合信号转换为可重用的程序记忆,并在训练过程中将其蒸馏到策略权重中。这种记忆作为训练支架,被吸收到策略本身中,从而在推理时得到无记忆模型。PMD在三个抽象层次组织记忆:原始轨迹、自我反思的策略和经验,以及跨问题重复出现的高级行为模式,所有这些都从模型自身的轨迹中在线提取。一个记忆条件的自我教师利用累积的经验来监督学生自身的生成,使学生能够逐步将程序知识内化到其参数中。核心设计原则是共同进化:策略生成更新记忆的轨迹,记忆塑造更新策略的监督。实验上,在Qwen3-8B和OLMo3-Instruct-7B上,PMD在SCIKNOWEVAL上比SDPO提升3.8-5.5%,在LIVECODEBENCH上提升7.9-13.6%。共同进化驱动了这些增益:冻结记忆或策略都会导致PMD在SCIKNOWEVAL领域上落后超过10%。

英文摘要:

Reinforcement learning with verifiable rewards (RLVR), along with recent selfdistillation 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 crossepisode 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑