Manuscript Offprint

arXiv:2609.35505

An RL View of OPD: Least Square Policy Distillation for Sample-Efficient LLM Reasoning

Shangzhe Li, Yuxiao Yang, Tianrun Yu, Kaixiang Zhao, Xiaoyun Wang, Taylor W. Killian, Weitong Zhang

Shangzhe Li 1^{1}, Yuxiao Yang 1^{1}, Tianrun Yu 2^{2}, Kaixiang Zhao 2^{2}, Xiaoyun Wang 3^{3}, Taylor W. Killian 2^{2}, Weitong Zhang 1^{1}

1^{1}University of North Carolina at Chapel Hill, 2^{2}Brigham Young University, 3^{3}NVIDIA

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 O~(log⁡K)\tilde{\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=64k = 64, we found that LSPD better preserves policy diversity by achieving stronger performance as kk 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.

Code: https://github.com/UNCSciML/LSPD

1 Introduction

On-policy distillation (OPD) (Lu & Lab, 2025) has emerged as a promising approach to transferring and improving the capabilities of large language models (LLMs). Building on knowledge distillation (Hinton et al., 2015; Kim & Rush, 2016), OPD trains a student model using token-level teacher supervision on trajectories generated by the student itself. This allows the teacher to provide guidance at prefixes encountered under the student's own generation policy.

While OPD has recently been interpreted as a reinforcement learning (RL) approach (Yang et al., 2026a; Lu & Lab, 2025) and implemented using policy optimization frameworks such as PPO (Schulman et al., 2017b) and GRPO (Shao et al., 2024), the algorithmic implications of this formulation remain underexplored, particularly for exploration and data efficiency. These policy-based frameworks are typically implemented in an on-policy manner, requiring time-consuming fresh rollouts throughout training while offering limited support for historical data reuse and sufficient exploration.

On the other hand, KL-regularized RL (Yang et al., 2026a), with maximum-entropy RL as a special case, has been extensively studied both empirically (Haarnoja et al., 2018, 2017; Schulman et al., 2017a) and theoretically (Zhao et al., 2025, 2026). This literature provides principled algorithms for data-efficient off-policy updates that reuse previously collected experience (Watkins & Dayan, 1992; Degris et al., 2012; Munos et al., 2016), together with exploration strategies and regularization mechanisms that promote policy diversity and coverage. These advances provide a foundation for exploiting the structure of KL-regularized RL through value-based approaches to policy distillation.

Motivated by the success of value-based KL-regularized RL and the data-efficiency limitations of policy-based OPD implementations, we introduce Least Square Policy Distillation (LSPD), a distillation framework motivated by optimistic KL-regularized value-based RL. Starting from the teacher-induced log-ratio reward, we consider reward estimation using accumulated student trajectories and optimistic policy updates over statistically plausible reward functions. A Lagrangian relaxation of this formulation motivates quadratic matching between student and teacher log-probabilities. For practical token-level training, we combine a robust version of this matching loss with explicit entropy regularization to encourage policy diversity. Crucially, the resulting objective supports optimization on trajectories generated by earlier student policies, enabling both multiple updates per rollout batch and historical data reuse through a replay-buffer variant, LSPD-RB. Together, these components provide a practical approach to incorporating exploration-promoting regularization and off-policy learning into policy distillation. To summarize, our main contributions are threefold:

• An RL-inspired policy distillation framework. We introduce Least Square Policy Distillation (LSPD), motivated by optimistic KL-regularized policy optimization. LSPD combines robust quadratic matching of student and teacher log-probabilities with explicit entropy regularization, encouraging policy diversity while naturally supporting off-policy optimization. We complement this framework with a theoretical analysis of an idealized optimistic formulation showing that the LSPD enjoys a sharp convergence rate with regret by O~(log⁡K)\tilde{\mathcal{O}}(\log K) where K is the update rounds.

• Effective data reuse for sample-efficient distillation. We demonstrate that LSPD effectively leverages both multiple updates per rollout batch and historical trajectories through its replay-buffer variant, LSPD-RB. In our off-policy experiments, LSPD-RB reaches saturated performance in approximately 10 rollout batches, compared with more than 40 for LSPD with one update per batch, highlighting the potential of historical data reuse to reduce rollout requirements.

• Improved reasoning performance, diversity, and efficiency. Across six benchmarks and three teacher–student settings, LSPD improves Avg@16 and Pass@16 by +1.59 and +1.87 points on average over baselines. LSPD with replay buffer further improves Pass@16 with only 10 training steps, while higher entropy and Pass@k demonstrate better policy diversity and solution coverage.

References (98)