LLM Reasoning 相关度: 9/10

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

Yecheng Wu, Song Han, Hai Cai
arXiv: 2604.13010v1 发布: 2026-04-14 更新: 2026-04-14

AI 摘要

Lightning OPD通过离线On-Policy蒸馏和教师一致性,高效提升大语言模型的推理能力。

主要贡献

  • 提出Lightning OPD框架,实现离线On-Policy蒸馏
  • 发现并解决OPD中的教师一致性问题
  • 显著提升模型在数学推理和代码生成任务上的效率

方法论

通过预计算教师模型log-probabilities,并强制教师一致性,实现高效的离线On-Policy蒸馏,避免策略漂移。

原文摘要

On-policy distillation (OPD) has emerged as an efficient post-training paradigm for large language models. However, standard OPD requires a live teacher inference server throughout training, resulting in substantial infrastructure overhead. In this work, we investigate whether on-policy distillation can be performed offline. A natural approach is to precompute teacher log-probabilities once over SFT rollouts and reuse them during training. In practice, however, this offline variant fails to reliably match the performance of standard OPD. To understand this discrepancy, we identify a previously overlooked condition that is critical for any OPD pipeline, which we term teacher consistency. This condition requires that the same teacher model be used for both supervised fine-tuning and OPD. We show that violating teacher consistency introduces an irreducible gradient bias, causing both offline and online OPD to converge to a suboptimal fixed point regardless of training duration. Building on this insight, we propose Lightning OPD, an offline on-policy distillation framework that enforces teacher consistency by precomputing teacher log-probabilities over SFT rollouts. This design eliminates the need for a live teacher server entirely. We further show 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. Extensive experiments on mathematical reasoning and code generation demonstrate that Lightning OPD achieves state-of-the-art performance with significantly improved efficiency. Starting from an SFT-initialized Qwen3-8B-Base model, Lightning OPD reaches 69.9% on AIME 2024 in just 30 GPU hours, achieving a 4.0x speedup over standard OPD and substantially lowering the barrier to entry for academic research on LLM post-training.

标签

On-Policy Distillation 离线学习 教师一致性 模型优化

arXiv 分类

cs.LG cs.AI