arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.05940cs.LGcs.CL
收藏

近策略:通过异步生成与选择性打包加速 on-policy 知识蒸馏

Near-Policy: Accelerating On-Policy Distillation via Asynchronous Generation and Selective Packing

Huawei Technologies(华为技术有限公司);Tianjin University(天津大学)

Miao Rang, Zhenni Bi, Hang Zhou, Kai Han, Xuechun Wang, An Xiao, Xinghao Chen, Yunhe Wang, Hanting Chen

AI总结:

本文提出近策略蒸馏(NPD),通过异步生成与选择性打包减少 on-policy 知识蒸馏的计算开销,实现 8.1 倍加速,并在 RL 中取得更优表现。

摘要:

标准的知识蒸馏在自回归模型中常面临分布不匹配问题。尽管 on-policy 方法通过利用学生生成输出来缓解这一问题,但它们依赖于计算成本高的强化学习(RL)框架。为提高效率,我们提出了近策略蒸馏(NPD),一种异步方法,将学生生成与训练解耦。这种重新表述使监督微调(SFT)能够使用序列打包。然而,异步更新不可避免地引入策略滞后和样本噪声,可能导致行为从近策略向 off-policy 偏移。为避免牺牲效率,NPD 集成稀疏学生更新和 Δ-IFD 过滤机制,一种启发式样本选择机制,通过经验稳定优化轨迹。通过过滤极端分布外样本,Δ-IFD 防止噪声主导梯度,确保更新保持在安全的近端学习区域内。实验表明,NPD 框架在 on-policy 基线上实现了 8.1 倍的加速,并在 SFT 上表现优于 8.09%。关键的是,通过有效缩小后续 RL 的探索空间,我们的方法使 openPangu-Embedded-1B 达到 68.73% 的 state-of-the-art 分数,优于 Qwen3-1.7B。代码将很快发布。

英文摘要:

Standard knowledge distillation for autoregressive models often suffers from distribution mismatch. While on-policy methods mitigate this by leveraging student-generated outputs, they rely on computationally expensive Reinforcement Learning (RL) frameworks. To improve efficiency, we propose Near-Policy Distillation (NPD), an asynchronous approach that decouples student generation from training. This reformulation enables Supervised Fine-Tuning (SFT) with sequence packing. However, asynchronous updates inevitably introduce policy lag and sample noise, which can cause the behavior to drift from near-policy toward off-policy. To counteract this without sacrificing efficiency, NPD integrates sparse student updates and the $Δ$-IFD filtering mechanism, a heuristic sample selection mechanism that empirically stabilizes the optimization trajectory. By filtering extreme out-of-distribution samples, $Δ$-IFD prevents noise from dominating the gradients, ensuring updates remain within a safe proximal learning zone. Empirically, the NPD framework achieves a 8.1x speedup over on-policy baselines and outperforms SFT by 8.09%. Crucially, by effectively narrowing the exploration space for subsequent RL, our method enables openPangu-Embedded-1B to reach a state-of-the-art score of 68.73%, outperforming the substantially larger Qwen3-1.7B. Codes will be released soon.

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

↑