跳到正文
arXiv (AI + Vision + Imaging)· Zhengxin Zhang, Maosen Tang, Ning Wang, Changhao Li, Jingren Zhou, Bo Dai, Sainyam Galhotra, Alex Townsend, Claire Cardie·· 9 天前AI 评分28

STOPD:随机截断学生rollout的on-policy蒸馏方法

Does On-Policy Distillation Need to Complete Every Rollout?

AI 导读

研究者提出随机截断on-policy蒸馏(STOPD),在生成前为每条rollout采样停止位置,并用分块逆概率加权(IPW)校正截断带来的采样偏差,证明该加权在期望上保持Vanilla OPD的梯度总和。在多种教师-学生模型对、任务领域和优化器上,STOPD减少25-48%生成token,精度与Vanilla OPD相当,训练加速1.3-2.2倍。

正文 · 原文

arXiv:2610.21337v5 Announce Type: replace Abstract: On-policy distillation (OPD) transfers teacher knowledge to a student through feedback on student-generated rollouts, but generating complete rollouts and computing per-token teacher feedback are computationally expensive. Existing truncation methods save computation by stopping rollouts early. However, they do not compensate for truncated token gradients, which biases the gradient estimates and changes Vanilla OPD's original training objective. Furthermore, their truncation decisions rely on assumptions about supervision quality or criteria that may not generalize across settings. We introduce Stochastic Truncated On-Policy Distillation (STOPD), which accelerates OPD by randomly truncating student rollouts and correcting the resulting sampling bias with blockwise inverse-probability weighting (IPW). At each training step, we sample a stopping position for each rollout before generation and let the student generate until that position or natural termination. We obtain teacher feedback on every generated token and use blockwise IPW to compensate for the lower probability of retaining later tokens while controlling the weights. We prove that this weighting preserves Vanilla OPD's gradient sum in expectation and derive one-step update-error bounds for SGD, Adam, and Muon. We evaluate STOPD across multiple teacher-student model pairs, task domains, and optimizers. STOPD reduces generated tokens by 25-48% while maintaining accuracy comparable to Vanilla OPD, achieving 1.3-2.2x training speedups.

来源:arXiv (AI + Vision + Imaging) · arxiv.org