重新思考相对策略差异的迁移:在线策略蒸馏

·

研究论文 · 2026/10/12

在策略蒸馏(OPD)利用更强教师的令牌级监督在目标策略自身的轨迹上训练目标策略,但通常要求教师能力显著高于目标。近期工作通过迁移专家与参考策略之间的相对策略差异而非专家的绝对分布来放宽这一要求。然而,哪些差异提供有用监督以及哪些目标能从中受益仍不清楚。我们提出一个统一视角,其中代理专家与代理参考之间的对数概率比定义了KL正则化策略优化的隐式奖励。该形式诱导目标策略的在策略更新,将传统OPD作为特例恢复,并支持在规模、训练阶段或生成方式不同的模型间进行任意到任意的迁移。我们的系统实验得出三个发现。第一,更强的专家不一定是更好的监督来源:由任务特定训练(包括强化学习和监督微调)引起的差异能一致迁移,而仅由模型规模引起的差异迁移较弱或无法迁移。第二,专家和参考起互补作用:专家提供要迁移的能力,而参考过滤掉共享行为并分离出相关残差。第三,即使是有用的差异也不能迁移到所有目标:成功需要诱导的更新将目标推向专家并泛化到采样轨迹之外。原始策略距离不能预测可迁移性,而适当的参考可以挽救原本不成功的迁移。这些结果刻画了相对策略差异何时为OPD提供有效监督。

该研究系统分析了相对策略差异迁移的条件,挑战了“更强专家总是更好”的直觉,为在策略蒸馏提供了理论统一框架和实证指导,有助于设计更有效的蒸馏策略。

On-policy distillation (OPD) trains a target policy on its own rollouts using token-level supervision from a stronger teacher, but typically relies on the teacher being substantially more capable than the target. Recent work relaxes this requirement by transferring the relative policy difference between an expert and a reference policy rather than the expert's absolute distribution. Yet it remains unclear which differences provide useful supervision and which targets can benefit from them. We develop a unified view in which the log-probability ratio between a proxy expert and a proxy reference defines an implicit reward for KL-regularized policy optimization. This formulation induces an on-policy update for the target, recovers conventional OPD as a special case, and enables any-to-any transfer across models that differ in scale, training stage or generation. Our systematic experiments yield three findings. First, a stronger expert is not necessarily a better source of supervision: differences induced by task-specific training, including reinforcement learning and supervised fine-tuning, transfer consistently, whereas those arising from model scale alone transfer weakly or not at all. Second, the expert and reference serve complementary roles: the expert provides the capability to be transferred, while the reference filters out shared behavior and isolates the relevant residual. Third, even a useful difference does not transfer to every target: success requires the induced update to move the target toward the expert and generalize beyond sampled rollouts. Raw policy distance does not predict transferability, whereas an appropriate reference can rescue otherwise unsuccessful transfer. These results characterize when relative policy differences provide effective supervision for OPD.

阅读原文

参与讨论