从强化学习视角看OPD:用于样本高效LLM推理的最小二乘策略蒸馏

·

研究论文 · 2026/09/29

本文从强化学习视角研究在线策略蒸馏(OPD),建立了OPD中反向KL目标与KL正则化策略优化之间的联系。基于此联系,提出最小二乘策略蒸馏(LSPD),一种受RL启发的框架,将基于价值的RL中的乐观探索和离策略数据重用引入策略蒸馏。LSPD通过探索保持策略多样性,同时通过重复学习先前收集的轨迹提高 rollout 效率。理论分析将LSPD与乐观价值学习联系起来,并表明其理想化公式在在线探索下达到尖锐的 O(log K) 遗憾界。实验上,LSPD在六个数学推理基准和多样化的师生设置中持续优于现有蒸馏基线,Avg@16平均提升+1.59分。值得注意的是,通过高达k=64的Pass@k评估,发现LSPD随着k增长表现更强,更好地保持了策略多样性。其完全离策略变体仅使用前25%的 rollout 批次即可达到与原始OPD相当的性能。这些结果为OPD提供了RL视角,既给出了原则性解释,也提供了更有效且 rollout 高效的语言模型蒸馏的实用途径。

该工作为在线策略蒸馏提供了强化学习理论视角,提出的LSPD方法在多个数学推理任务上显著提升性能并大幅提高 rollout 效率,对高效语言模型蒸馏具有重要实践意义。

We study on-policy distillation (OPD) through the lens of reinforcement learning, establishing a connection between the reverse-KL objective in OPD and KL-regularized policy optimization. Building on this connection, we introduce Least-Square Policy Distillation (LSPD), an RL-inspired framework that brings optimistic exploration and off-policy data reuse from value-based RL into policy distillation. LSPD preserves policy diversity through exploration while improving rollout efficiency by repeatedly learning from previously collected trajectories. Our theoretical analysis connects LSPD to optimistic value-based learning and shows that its idealized formulation achieves a sharp mathcal O(log K) regret bound under online exploration. Empirically, LSPD consistently outperforms existing distillation baselines across six mathematical reasoning benchmarks and diverse teacher-student settings, with average gains of +1.59 points in Avg@16. Remarkably, through Pass@k evaluations up to k=64, we found that LSPD better preserves policy diversity by achieving stronger performance as k grows. Its fully off-policy variant achieves comparable performance to vanilla OPD using only the first 25% of rollout batches. Together, these results provide an RL perspective on OPD that offers both a principled interpretation and a practical route toward more effective and rollout-efficient language model distillation.

阅读原文

参与讨论