分支同策略蒸馏
研究论文 · 2026/10/13
在线策略蒸馏(OPD)在由学生模型生成的轨迹上提供教师监督,但单条轨迹在每个决策点只实现一种延续,在有限采样预算下限制了监督覆盖范围。我们提出 BranchOPD(分支在线策略蒸馏),它利用学生不确定性和师生分歧选择信息量大的决策点,从共享前缀重新采样学生策略的延续,并对主轨迹和分支都应用词元级教师监督。BranchOPD 在数学任务中作用于词元级决策,在智能体任务中作用于轮内决策。与七条独立轨迹相比,共享前缀复用将学生生成的词元成本在 ALFWorld 上降低约 19%,在 WebShop 上降低约 31%。我们还引入了协议边界修复(PBR),在协议约束下使用针对性监督来减少重复和无效生成。BranchOPD 在所有评估基准上均优于 Vanilla OPD 和 Multi-Rollout OPD(n=7),相比 Vanilla OPD,在 16 个采样答案的平均数学准确率(avg@16)上提升 18.55 个百分点,在 ALFWorld ID/OOD 平均成功率上提升 13.8 个百分点。机制分析和选择消融表明,在不确定决策处分支能扩展后续行为覆盖范围,并优于随机选择和轮次初始分支。
该工作通过分支在线策略蒸馏有效提升了有限采样预算下的监督覆盖,显著降低生成成本并在多个基准上取得大幅性能提升,为在线策略蒸馏提供了高效且可扩展的新思路。
On-policy distillation (OPD) provides teacher supervision on student-generated trajectories, but a single trajectory realizes only one continuation at each decision, limiting supervision coverage under a finite sampling budget. We propose BranchOPD (Branching On-Policy Distillation), which selects informative decision points using student uncertainty and teacher-student disagreement, resamples student-policy continuations from shared prefixes, and applies token-level teacher supervision to both main trajectories and branches. BranchOPD operates at token-level decisions in mathematics and within-turn decisions in agent tasks. Shared-prefix reuse reduces student-generated token costs by approximately 19% on ALFWorld and 31% on WebShop relative to seven independent trajectories. We also introduce protocol-boundary repair (PBR), which uses targeted supervision under protocol constraints to mitigate repetition and wasted generation. BranchOPD outperforms Vanilla OPD and Multi-Rollout OPD (n=7) across all evaluated benchmarks, with gains over Vanilla OPD of 18.55 percentage points in mean mathematics accuracy over 16 sampled answers (avg@16) and 13.8 points in mean ALFWorld ID/OOD success. Mechanistic analyses and selection ablations show that branching at uncertain decisions expands subsequent behavior coverage and outperforms random selection and turn-initial branching.