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

Lightning OPD: 为大推理模型高效实现离线在线蒸馏

Lightning OPD: Efficient Post-Training for Large Reasoning Models with Offline On-Policy Distillation

NVIDIA

Yecheng Wu, Song Han, Han Cai

AI总结:

本文提出Lightning OPD,通过强制教师一致性消除对实时教师服务器的需求,实现高效离线在线蒸馏,实验表明其在数学推理和代码生成任务中性能与传统OPD相当,训练效率提升4倍。

摘要:

在线蒸馏(OPD)是大语言模型的一种有效后训练范式,但需要整个训练过程中持续运行教师服务器,导致显著的基础设施开销。我们探讨是否可以通过预计算教师日志概率来实现离线OPD,并在SFT滚动中重用这些概率。我们发现,简单地这样做无法可靠地匹配标准OPD,根源在于一个之前被忽视的条件,即教师一致性,要求监督微调和OPD使用相同的教师。违反这一条件会引入梯度偏置,降低离线和在线OPD的性能。基于这一见解,我们提出了Lightning OPD,一种离线在线蒸馏框架,强制教师一致性并完全消除对实时教师服务器的需求。我们证明,在教师一致性下,Lightning OPD与标准OPD共享相同的最优解,具有有界梯度差异和隐含的正则化效果,有助于防止策略漂移。在数学推理和代码生成实验中,Lightning OPD在性能上与标准OPD相当,同时训练效率提高了4倍。从SFT初始化的Qwen3-8B-Base模型开始,Lightning OPD在30个GPU小时内达到AIME 2024的69.9%。Lightning OPD进一步扩展到MoE架构,训练Qwen3-30B-A3B在单个8xH100节点上达到AIME 2024的71.0%,显著降低了学术界在LLM后训练研究中的门槛。我们的代码在https://github.com/jet-ai-projects/Lightning-OPD上发布。

英文摘要:

On-policy distillation (OPD) is an effective post-training paradigm for large language models but requires a live teacher server throughout training, resulting in substantial infrastructure overhead. We investigate whether OPD can be performed offline by precomputing teacher log-probabilities once over SFT rollouts and reusing them during training. We find that naively doing so fails to reliably match standard OPD, and trace the root cause to a previously overlooked condition we term teacher consistency, requiring that the same teacher be used for both supervised fine-tuning and OPD. Violating this condition introduces a gradient bias that degrades performance for both offline and online OPD. Building on this insight, we propose Lightning OPD, an offline on-policy distillation framework that enforces teacher consistency and eliminates the need for a live teacher server entirely. We prove that, under teacher consistency, Lightning OPD shares the same optimum as standard OPD, with bounded gradient discrepancy and an implicit regularization effect that helps prevent policy drift. Experiments on math reasoning and code generation show that Lightning OPD achieves comparable performance to standard OPD while delivering 4.0x higher training efficiency. Starting from an SFT-initialized Qwen3-8B-Base model, Lightning OPD reaches 69.9% on AIME 2024 in just 30 GPU hours. Lightning OPD further scales to MoE architectures, training Qwen3-30B-A3B to 71.0% on AIME 2024 on a single 8xH100 node, substantially lowering the barrier for academic research on LLM post-training. Our code is released at https://github.com/jet-ai-projects/Lightning-OPD.

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

↑