同策略还是异策略学习?蒸馏动力学的系统研究

·

研究论文 · 2026/10/03

在受控的强到弱蒸馏设置中,通过独立改变 rollout 策略、token 级 KL 方向和学习率,跨 Llama3 和 Qwen2.5 模型家族及科学、医学、算术领域的推理任务,研究了 rollout 策略的影响。分析揭示了蒸馏动态的细微图景:rollout 策略不一定起核心作用,token 级 KL 方向更清晰地影响任务性能和输出覆盖,而学习率控制遗忘和更新稀疏性。KL 梯度分析和沿连续学生-教师 rollout 策略谱的实验解释了这一模式:前向 KL 对 rollout 策略非常鲁棒,性能稳定且强;反向 KL 则敏感得多,偏好学生生成的 rollout。在两种 KL 方向下,on-policy 数据仍能提升对更难 Countdown 算术任务变体的泛化,但这一优势在后续 RLVR 后不能可靠保持。更广泛的结论在移除梯度裁剪、使用采样 KL 估计器和训练需要更长推理链的任务时仍然稳健。总体而言,结果挑战了 on-policy rollout 固有更优的观点,表明其价值关键取决于目标、评估设置和优化超参数。

该研究通过系统实验挑战了 on-policy 学习固有优势的常见观点,为蒸馏和强化学习中的策略选择提供了细致且稳健的实证依据,对优化目标、评估设置和超参数选择具有重要指导意义。

On-policy learning has been argued to reduce catastrophic forgetting, produce sparser parameter updates, and improve generalisation. However, existing comparisons between supervised fine-tuning and reinforcement learning vary many factors simultaneously, making the contribution of rollout policy difficult to isolate. We study the effect of rollout policy in a controlled strong-to-weak distillation setting, by independently varying rollout policy, token-level KL direction, and learning rate across the Llama3 and Qwen2.5 model families and reasoning tasks spanning scientific, medical, and arithmetic domains. Our analysis reveals a nuanced picture of distillation dynamics in which rollout policy does not necessarily play a central role. Instead, token-level KL direction more clearly shapes task performance and output coverage, while learning rate governs forgetting and update sparsity. Analysis of KL gradients and experiments along a continuous student-teacher rollout-policy spectrum explain this pattern: forward KL is remarkably robust to rollout policy, with its performance stable and strong despite changes to the rollout policy, whereas reverse KL is substantially more sensitive and favours student-generated rollouts. On-policy data nevertheless improves generalisation to harder variants of the Countdown arithmetic task under both KL directions, although this advantage does not reliably persist after subsequent RLVR. Our broader conclusions remain robust to removing gradient clipping, using sampled KL estimators, and training on tasks requiring longer reasoning chains. Overall, our results challenge the view that on-policy rollouts are inherently preferable and show that their value depends critically on the objective, evaluation setting, and optimisation hyperparameters.

阅读原文

参与讨论