Manuscript Offprint
arXiv:2609.35505An 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
University of North Carolina at Chapel Hill, Brigham Young University, 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 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 , we found that LSPD better preserves policy diversity by achieving stronger performance as 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 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.
Language Model Distillation. Language model distillation transfers knowledge from a larger teacher model to a smaller student model. Standard approaches typically minimize the forward KL divergence from the teacher to the student using teacher-generated data (Hinton et al., 2015; Kim & Rush, 2016). Subsequent work incorporates student-generated on-policy trajectories alongside teacher-generated data (Agarwal et al., 2024), or formulates on-policy distillation as an RL problem based on the reverse KL divergence between the student and teacher policies (Gu et al., 2024; Lu & Lab, 2025). Other studies investigate the effects of different divergence choices (Wu et al., 2025), interpret language model distillation through the lens of temporal-difference imitation learning (Yu et al., 2026b), and improve its data efficiency (Hsieh et al., 2023). DistiLLM combines skew KL objectives with adaptive off-policy reuse of student-generated responses (Ko et al., 2024), while DistiLLM-2 introduces a contrastive formulation that increases the likelihood of teacher responses and decreases that of student responses (Ko et al., 2025). Recent extensions of on-policy distillation further address reward extrapolation (Yang et al., 2026a), introduce entropy-aware training (Jin et al., 2026), and incorporate curriculum-level guidance (Li et al., 2026a).
Reinforcement Learning for LLM Post-Training. Reinforcement learning has been widely used to improve the instruction-following and reasoning capabilities of large language models. Ouyang et al. (2022) introduced reinforcement learning from human feedback for aligning language models with human preferences, while more recent work employs verifiable, rule-based rewards to improve mathematical and general reasoning capabilities (Shao et al., 2024; Guo et al., 2025; Yu et al., 2026a). Complementary to online RL, Identity Preference Optimization (IPO) learns directly from pairwise preferences using a squared loss on differences of policy-to-reference log-likelihood ratios (Gheshlaghi Azar et al., 2024), whereas our quadratic objective matches student and teacher log-probabilities. A growing theoretical literature has established sharp performance guarantees (Zhao et al., 2026) and logarithmic regret bounds (Zhao et al., 2025) for KL-regularized RL.
3 Preliminaries
We formulate language model post-training from an RL view: at the sequence level, the post-training of LLM can be viewed as a contextual bandit. In particular, at position , we denote the prefix using the query from the dataset and the tokens generated by the model . The model then generates the next token from the policy . Through this process, we define the reward and it's class which the policy seeks to maximize.
Maximum-Entropy and KL-Regularized Reinforcement Learning. Instead of greedy maximizing the reward by , maximum-entropy reinforcement learning (Ziebart et al., 2008; Haarnoja et al., 2018), or generally, the KL regularized reinforcement learning Zhao et al. (2025), regularize the policy optimization with the KL divergence with the objective
where the denotes a fixed reference policy. When is the uniform policy on the action set , it can be verified that becomes the negative entropy and Eq. 3.1 becomes the typical setting of maximum entropy RL .
On-Policy Distillation. On-policy distillation (OPD, Lu & Lab 2025) minimizes the token-level reverse KL divergence between the teacher policy with the student policy by
where the expectation is taken over prefix is sampled from student policy from some query , which is dubbed as on-policy since it requires student's rollout. Notably, the current common implementation of OPD leverages the on-policy optimization framework like PPO (Schulman et al., 2017b) by taking the policy gradient (and additional clippings in PPO) by
where denotes the stopping gradient and is the advantage function for PPO process.
4 Methodology and Analysis
4.1 On-Policy Distillation as KL-Regularized Reinforcement Learning
We reinterpret the reverse-KL objective in Eq. 3.2 as token-level policy optimization with a teacher-induced reward. Following the notation in Section 3, we fix an arbitrary reference policy and define , assuming that the teacher and reference policies assign positive probability to tokens in the student's support at each prefix. Then, the OPD objective in Eq. 3.2 becomes
(4.1)
Here, expectations are taken over and autoregressive generation from , with . Thus, OPD is the token-level counterpart of the KL-regularized policy optimization problem in Eq. 3.1 with .
The reward R is fixed with respect to the student and measures the teacher's next-token log-likelihood relative to the reference, while the KL penalty discourages deviations from that reference at each prefix. Importantly, this is an exact reformulation of OPD rather than an additional regularization term. Choosing as a fixed initial model yields the reward–KL structure commonly used in RLHF (Ouyang et al., 2022; Rafailov et al., 2023), with the reward specified directly by the teacher-to-reference likelihood ratio. Prior work (Yang et al., 2026a) has also noted the connection between OPD and KL-regularized RL.
4.2 Least Square Policy Distillation
Optimistic KL-regularized Update. Given the KL-regularized objective introduced in the previous subsection, the next question is how to solve the resulting policy optimization problem. A straightforward approach is to apply PPO (Schulman et al., 2017b), using advantage estimation together with the clipped surrogate objective. However, PPO is not an optimistic optimization method: its updates are driven by the current reward estimates and do not explicitly account for uncertainty in a way that encourages exploration toward potentially better tokens. Motivated by prior works on KL-regularized reinforcement learning (Zhao et al., 2026, 2025), which leverage optimistic reward estimation for policy optimization, we instead consider a more direct approach that admits an explicit, “closed-form” iterative update of the conditional token distribution. Specifically, after collecting rollouts through iteration k, we estimate the induced token-level reward using their prefix-token pairs:
(4.2)
For a stored rollout , let denote its token at position and its prefix. We then construct a least-squares confidence set containing reward functions that remain statistically consistent with the accumulated prefix-token pairs:
Here, denotes the confidence radius and is a regularization parameter. We directly find the pointwise optimistic token-level reward . At each fixed prefix, we then use the closed-form KL-regularized token update
This update optimizes the conditional token distribution while holding the prefix fixed. Thus, each iteration uses stored prefix-token pairs to estimate the induced reward and constructs optimistic next-token distributions from the most favorable pointwise reward estimates compatible with the collected data. Algorithm 2 summarizes the corresponding sequence-level theoretical idealization.
Lagrangian Relaxation. The pointwise optimization can be reformulated through a Lagrangian relaxation. Ignoring terms that are constant with respect to , for each fixed prefix and token , we obtain
where denotes the Lagrange multiplier and indexes token positions in the stored rollouts. We further consider a centered reward function class , which is parameterized by token-level policies. Since is fixed, the pointwise optimistic optimization at each prefix can therefore be equivalently written as
Algorithm 1 Least Square Policy Distillation
Input: Student policy , teacher policy , replay buffer , batch size , number of updates .
1: Initialize .
2: for do
3: Sample queries and responses . On-policy rollout collection
4: .
5: for do
6: Sample a minibatch from and update the student using Eq. 4.6.
7: end for
8: if use LSPD then
9: . No replay in LSPD; LSPD-RB reuses historical trajectories.
10: end if
11: end for
In this way, we obtain an optimistic token-level distillation formulation motivated by the reverse-KL objective of OPD (Lu & Lab, 2025). Importantly, the resulting objective is off-policy, allowing the algorithm to leverage prefix-token pairs from historical rollouts for policy updates rather than restricting training to samples generated by the current policy. Moreover, the mechanism through which optimism is incorporated into the objective is closely related to maximum-entropy objectives studied in the reinforcement learning literature (Ziebart et al., 2008; Haarnoja et al., 2018) and, more recently, in the LLM post-training literature (Xie et al., 2025).
4.3 Practical Implementation
In practice we are given a query dataset , a teacher policy , and a student policy . The student generates rollouts , conditioned on queries sampled from , yielding prefix-token pairs . Building on Eq. 4.5, we use a practical surrogate that combines robust token-level log-probability matching with an entropy bonus in place of the pointwise optimistic term:
where denotes a replay buffer that stores query-response pairs, denotes the entropy of the current student's next-token distribution at a stored prefix.
To improve training stability and reduce the influence of excessively large log-probability differences, in practical implementations, we replace the standard quadratic loss with a Huber-type robust penalty , detailed in Appendix A.1. Notably, the objective in Eq. 4.6 supports both on-policy and off-policy optimization. The on-policy (or semi-on-policy) variant uses freshly generated responses from the current policy for one or multiple optimization updates, whereas the off-policy variant additionally reuses responses generated by earlier policies through a replay buffer. This flexibility allows rollout data to be efficiently reused across multiple updates. In the following experiments, we refer to the former as Least Square Policy Distillation (LSPD) and the fully off-policy variant as Least Square Policy Distillation with Replay Buffer (LSPD-RB). The detailed practical implementation is summarized in Algorithm 1.
5 Experiments
We evaluate the empirical performance of our proposed method against a range of post-training baselines on mathematical reasoning tasks. We describe the experimental setup in Section 5.1, present the main results in Section 5.2, investigate off-policy learning and ablation studies in Section 5.3. Results on out-of-domain evaluation and more ablation studies are shown in Appendix B.
5.1 Experimental Setup
Model Setup. We consider three distillation setups based on the Qwen3 model family (Yang et al., 2025). Specifically, we use Qwen3-8B as the teacher and Qwen3-4B-Base as the student, Qwen3-4B as the teacher and
Qwen3-1.7B-Base as the student, and Qwen3-1.7B as the teacher and Qwen3-0.6B-Base as the student. For all teacher models, we disable thinking mode and use standard non-thinking model configuration.
Dataset and Evaluation Setup. For all experiments, we use DAPO-Math-17K (Yu et al., 2026a) as the training dataset for mathematical reasoning. For evaluation, we consider a diverse set of challenging mathematical reasoning benchmarks spanning different difficulty levels, including MATH-500 (Hendrycks et al., 2021), Minerva (Lewkowycz et al., 2022), Olympiad-Bench (He et al., 2024), AMC23 (Mathematical Association of America, 2023), AIME24 (Math-AI, 2024), and AIME25 (Math-AI, 2025). We report the average score over 16 generations (Avg@16) as the final result for all baselines and benchmarks in Table 1.
Generation Configurations. During training, we use top-p sampling with p = 1.0, a temperature of 1.0, a maximum rollout length of 7168 tokens, and four rollouts per query. During evaluation, we use top-p sampling with p = 0.95, a temperature of 0.7, and the same maximum rollout length of 7168 tokens. For both training and evaluation, we use the prompt template described in Appendix A.3.
Baselines. We compare LSPD and LSPD-RB against several language model distillation baselines: Knowledge Distillation (KD) (Hinton et al., 2015; Kim & Rush, 2016), On-Policy Distillation (OPD) (Lu & Lab, 2025), and Entropy-Aware On-Policy Distillation (EOPD) (Jin et al., 2026). KD performs off-policy distillation on teacher-generated trajectories using cross-entropy supervision together with forward KL divergence between the student and teacher distributions. In contrast, OPD trains on student-generated trajectories using the reverse-KL objective introduced in Section 3. EOPD further augments OPD with forward KL regularization at high-entropy teacher token positions to better preserve teacher uncertainty and output diversity.
5.2 Main Results
Results on Mathematical Reasoning Capabilities. Table 1 shows that LSPD consistently delivers strong mathematical reasoning performance across model scales and benchmarks. Averaged over all 18 model-benchmark combinations, LSPD achieves an Avg@16 of 31.60 and Pass@16 of 53.30, outperforming the strongest baseline, EOPD, by +0.91 and +0.85 points, respectively, and standard OPD by +1.99 and +2.27 points. Notably, LSPD-RB achieves a comparable Avg@16 of 31.51 while further improving Pass@16 to 54.86, exceeding EOPD by +0.82 Avg@16 and +2.42 Pass@16, and OPD by +1.89 and +3.84 points, respectively. When all five methods are considered, LSPD attains the best or tied-best Avg@16 on 11 of 18 settings and Pass@16 on 9 of 18 settings, while remaining top-2 on 17 of 18 and 16 of 18 settings, respectively. More importantly, considering LSPD and LSPD-RB together, at least one of the two achieves the best or tied-best result on 17 of 18 settings for both Avg@16 and Pass@16, and ranks second or tied-second in each of the two remaining cases. Thus, the better-performing LSPD variant is top-2 across all 36 metric-setting combinations, demonstrating robust improvements in both average-generation accuracy and multi-sample solution coverage. Remarkably, LSPD-RB achieves these results using only 10 training steps, whereas the baselines require more than 40 steps to converge stably, highlighting the substantial sampling efficiency enabled by off-policy reuse.
Results on Model Entropy. To examine the student's response diversity during distillation, we track its policy entropy throughout training across three teacher-student pairs in Figure 1. Both LSPD and EOPD (Jin et al., 2026) maintain student entropy at approximately 0.5, consistently higher than standard OPD (Lu & Lab, 2025). While EOPD augments the OPD objective with an entropy-gated forward KL term, LSPD encourages higher entropy directly through the entropy regularization term in Eq. 4.6, together with the robust log-probability matching objective. Despite these different formulations, both methods exhibit similar entropy behavior during training. This suggests that LSPD can maintain a higher level of student policy diversity than standard OPD with direct entropy-regularized maximization instead of relying on EOPD's entropy-gated forward KL formulation.
Results on Pass@k Scaling. To further evaluate the multi-sample solution coverage and useful generation diversity of the distilled student model, we study how Pass@k scales with the number of sampled responses. As reported in Table 2, we distill a Qwen3-4B-Base student from a Qwen3-8B non-thinking teacher using LSPD and three baselines, KD, OPD, and EOPD, and evaluate Pass@k over a broad range of sampling budgets, with . Remarkably, LSPD exhibits stronger scaling as the sampling budget increases. In particular, it achieves the best or tied-best Pass@32 and Pass@64 on all three benchmarks, reaching 85.54, 43.33, and 46.67 Pass@32, and 89.16, 46.67, and 50.00 Pass@64 on AMC23, AIME24, and AIME25, respectively.
Table 1 Main Results on Mathematical Reasoning. We report Avg@16 and Pass@16 performance of our proposed LSPD and three baselines (KD, OPD, and EOPD) across six mathematical reasoning benchmarks and three teacher–student distillation settings based on the Qwen3 model family. The best-performing result within each setup is highlighted in bold, and the second-best result is underlined. Note that LSPD-RB results are reported with only 10 training steps, whereas all other methods require at least 40 training steps to converge stably.
| Model | Method | MATH-500 | Minerva | Olympiad | AMC23 | AIME24 | AIME25 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | ||
| 8B↓4B | KD | 79.73 | 94.00 | 38.51 | 58.09 | 45.97 | 67.85 | 51.20 | 77.11 | 17.71 | 33.33 | 17.08 | 36.67 |
| OPD | 79.31 | 95.20 | 35.73 | 58.46 | 44.64 | 67.85 | 48.49 | 79.97 | 17.92 | 30.00 | 15.83 | 40.00 | |
| EOPD | 80.50 | 95.00 | 37.78 | 59.56 | 46.36 | 68.00 | 51.05 | 80.72 | 17.92 | 36.67 | 17.92 | 40.00 | |
| LSPD | 81.61 | 95.40 | 38.99 | 59.56 | 47.22 | 69.04 | 52.48 | 81.93 | 18.96 | 36.67 | 18.13 | 36.67 | |
| LSPD-RB | 81.55 | 95.20 | 38.49 | 58.09 | 47.41 | 69.33 | 52.11 | 84.34 | 21.25 | 50.00 | 18.75 | 36.67 | |
| 4B↓1.7B | KD | 66.75 | 91.00 | 27.76 | 52.94 | 30.52 | 58.52 | 35.54 | 66.27 | 8.13 | 26.67 | 5.21 | 13.33 |
| OPD | 69.13 | 90.20 | 26.93 | 53.68 | 31.98 | 57.04 | 34.64 | 65.06 | 10.00 | 26.67 | 6.88 | 16.67 | |
| EOPD | 69.75 | 90.60 | 27.92 | 54.04 | 32.91 | 59.26 | 35.84 | 66.27 | 11.46 | 33.33 | 7.50 | 20.00 | |
| LSPD | 70.86 | 91.80 | 29.32 | 55.15 | 33.47 | 59.70 | 36.97 | 67.47 | 11.88 | 30.00 | 8.33 | 23.33 | |
| LSPD-RB | 70.69 | 91.00 | 29.57 | 54.41 | 33.50 | 61.04 | 36.60 | 67.47 | 11.67 | 36.67 | 8.33 | 23.33 | |
| 1.7B↓0.6B | KD | 49.61 | 79.60 | 15.49 | 41.18 | 18.98 | 41.63 | 22.97 | 53.01 | 2.08 | 13.33 | 1.88 | 10.00 |
| OPD | 51.40 | 79.80 | 11.28 | 37.50 | 20.66 | 41.93 | 22.89 | 51.81 | 4.17 | 13.33 | 1.25 | 13.33 | |
| EOPD | 51.98 | 79.40 | 15.85 | 38.60 | 19.84 | 42.81 | 23.12 | 53.01 | 3.33 | 16.67 | 1.46 | 10.00 | |
| LSPD | 52.04 | 81.60 | 17.14 | 40.81 | 20.39 | 43.56 | 24.62 | 54.22 | 5.00 | 20.00 | 1.46 | 10.00 | |
| LSPD-RB | 51.56 | 81.20 | 16.36 | 41.54 | 20.12 | 44.59 | 22.97 | 65.06 | 3.96 | 16.67 | 2.29 | 13.33 | |
— OPD — EOPD — LSPD (Ours)

Figure 1 Student Entropy during Training. We plot the student policy entropy over 200 training steps for OPD, EOPD, and LSPD across three teacher–student pairs. LSPD maintains an entropy level comparable to EOPD and consistently higher than standard OPD, indicating improved preservation of student policy diversity during distillation.
Averaged across the three benchmarks, LSPD achieves Pass@32/64 of 58.51/61.94, consistently outperforming the strongest competing method, EOPD (57.00/60.43), by +1.51 and +1.52 points, respectively. These results suggest that LSPD maintains competitive single-sample accuracy while providing stronger solution coverage under larger sampling budgets, indicating that its improvements are not limited to concentrating probability mass on a small set of high-probability responses.
5.3 Off-policy and LSPD-RB Replay Buffer Results
Since our proposed objective naturally supports off-policy optimization, we evaluate its ability to leverage off-policy data under two settings. First, we vary the number of optimization steps per rollout batch as , resulting in increasingly off-policy updates while still training only on the most recently collected rollouts. Second, we consider a fully off-policy variant, LSPD-RB, which maintains a replay buffer containing all previously collected query-response pairs and performs updates using batches sampled from this buffer. Figure 2 reports the corresponding Avg@16 training curves on AMC23, AIME24, and AIME25 with a Qwen3-4B teacher model and a Qwen3-1.7B-Base student. For all settings in Figure 2, including different choices of and the replay-buffer variant, each training step collects one rollout batch consisting of 64 prompts with 4 responses sampled per prompt.
Table 2 Pass@k Scaling Results. We report Pass@k results for on Qwen3-4B-Base distilled from Qwen3-8B non thinking teacher. The best-performing result within each setup is highlighted in bold, and the second-best result is underlined.
| Benchmark | Method | Pass@1 | Pass@2 | Pass@4 | Pass@8 | Pass@16 | Pass@32 | Pass@64 |
|---|---|---|---|---|---|---|---|---|
| AMC23 | KD | 51.81 | 56.63 | 66.27 | 71.08 | 77.11 | 85.54 | 87.95 |
| OPD | 51.81 | 55.42 | 63.86 | 73.49 | 79.97 | 83.13 | 86.75 | |
| EOPD | 51.81 | 60.24 | 72.29 | 75.90 | 80.72 | 84.34 | 87.95 | |
| LSPD | 54.22 | 62.65 | 71.08 | 79.52 | 81.93 | 85.54 | 89.16 | |
| AIME24 | KD | 20.00 | 26.67 | 30.00 | 33.33 | 33.33 | 36.67 | 40.00 |
| OPD | 16.67 | 20.00 | 23.33 | 26.67 | 30.00 | 36.67 | 40.00 | |
| EOPD | 13.33 | 23.33 | 30.00 | 33.33 | 36.67 | 40.00 | 43.33 | |
| LSPD | 16.67 | 23.33 | 26.67 | 30.00 | 36.67 | 43.33 | 46.67 | |
| AIME25 | KD | 10.00 | 23.33 | 26.67 | 33.33 | 36.67 | 43.33 | 43.33 |
| OPD | 20.00 | 26.67 | 33.33 | 36.67 | 40.00 | 43.33 | 46.67 | |
| EOPD | 13.33 | 20.00 | 33.33 | 36.67 | 40.00 | 46.67 | 50.00 | |
| LSPD | 13.33 | 20.00 | 26.67 | 33.33 | 36.67 | 46.67 | 50.00 |
— 1 update — 4 updates — 16 updates — 64 updates — replay buffer

Figure 2 Off-Policy Training Curves. We plot the evolution of Avg@16 on AMC23, AIME24, and AIME25 for LSPD with optimization steps per rollout batch, together with the replay-buffer variant LSPD-RB. For LSPD-RB, after each newly collected rollout batch is added to the replay buffer, we perform 256 optimization steps on batches sampled from the buffer. We indicate the saturated performance after convergence using dotted horizontal lines. Each training step collects one rollout batch consisting of 64 prompts with 4 responses sampled per prompt.
For the semi-on-policy setting, increasing the number of updates per rollout batch consistently improves sample efficiency, requiring fewer rollout batches to reach saturated performance. This effect is particularly pronounced on AIME24 and AIME25: with , performance typically saturates after roughly 30 training steps, whereas requires more than 50 steps. The gains become substantially smaller beyond , however, suggesting that the sample-efficiency benefit of additional updates eventually saturates. In contrast, the fully off-policy LSPD-RB variant reaches its saturated performance within approximately 10 training steps, substantially faster than all semi-on-policy variants. These results demonstrate that LSPD can effectively reuse historical data and that replay-based off-policy training can further improve its sample efficiency.
Ablation Studies. We ablate the entropy regularization component introduced in Eq. 4.6 to study its effect on reasoning performance and solution diversity. As shown in Table 3, removing entropy regularization has only a modest effect on Avg@16, but leads to a substantially larger degradation in Pass@16. Averaged across the six benchmarks, removing entropy regularization decreases Avg@16 by only 0.17 points for LSPD and 0.75 points for LSPD-RB, while Pass@16 drops by 2.26 and 1.64 points, respectively. Across both methods and all benchmarks, this corresponds to an average degradation of 0.46 points in Avg@16 compared with 1.95 points in Pass@16. Notably, Pass@16 decreases in all 12 method–benchmark comparisons without entropy regularization, whereas the changes in Avg@16 are comparatively small and mixed. These results suggest
Table 3 Effect of Entropy Regularization. Avg@16 and Pass@16 performance of LSPD and LSPD-RB with and without entropy regularization across six mathematical reasoning benchmarks.
| Reg. | Method | MATH-500 | Minerva | Olympiad | AMC23 | AIME24 | AIME25 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | Avg@16 | Pass@16 | ||
| w/ Ent. | LSPD | 70.86 | 91.80 | 29.32 | 55.15 | 33.47 | 59.70 | 36.97 | 67.47 | 11.88 | 30.00 | 8.33 | 23.33 |
| LSPD-RB | 70.69 | 91.00 | 29.57 | 54.41 | 33.50 | 61.04 | 36.60 | 67.47 | 11.67 | 36.67 | 8.33 | 23.33 | |
| w/o Ent. | LSPD | 71.14 | 90.60 | 28.65 | 51.84 | 32.91 | 58.52 | 37.12 | 66.27 | 11.46 | 26.67 | 8.54 | 20.00 |
| LSPD-RB | 69.39 | 90.60 | 28.84 | 53.31 | 33.65 | 60.59 | 36.67 | 66.27 | 10.00 | 33.33 | 7.29 | 20.00 | |
that entropy regularization primarily improves the diversity and coverage of generated solutions, rather than substantially changing the average per-sample accuracy.
6 Theoretical analysis
In this section, we establish the theoretical advantage of the proposed algorithm by explicitly enforcing optimism and exploiting the value-based KL-regularized RL. The detailed proof is deferred to Appendix C. Following the notation in Section 3, we define the cumulative regret as
Here , counts rollout/update rounds, and is the response-length and the second equality is due to the chain rule of KL divergence. The policy denotes the optimal policy. Similarly with Sriraman et al. (2026), we assume the noisy teacher feedback in as detailed in Assumption C.1. Then the following assumption is also crucial in understanding OPD:
Assumption 6.1. Let be a reward class with . For the optimal policy and the reference policy , we assume .
In practice, one can choose as the initial student model thus Assumption 6.1 assumes the well coverage between the student and teacher model.
Theorem 6.2 (Logarithmic reverse-KL regret, informal). Under Assumptions C.1 and 6.1, with high probability, Algorithm 2 satisfies where are both complexity measurements in the order of when the reward is a -dimensional linear function.
We defer the detailed proof and further discussion to Appendix C, and highlight how Theorem 6.2 informs the comparison between reverse-KL-based OPD and forward-KL-based SFT.
Remark 6.3. Theorem 6.2 implies a sample complexity for obtaining a mixture policy whose reverse-KL divergence to is at most under bounded log-ratio reward. By comparison, Foster et al. (2024) establish a sample complexity for attaining an -small imitation performance gap through maximum likelihood estimation (MLE) with a deterministic expert. Although these guarantees concern different error criteria, they highlight complementary conditions supporting fast learning. In reverse KL minimization including OPD and our LSPD, the fast rates depends on the coverage between the student and teacher model with according to Assumption 6.1. This dependence on the coverage is also reported empirically in Li et al. (2026b); Xing et al. (2026); Fu et al. (2026). In contrast, the SFT with MLE exploits expert determinism and exhibits the “mass-covering” tendency in minimizing the forward KL. This comparison explains the practical implementations for SFT in establishing an initial policy followed by reverse-KL-based refinement with adequate coverage.
7 Conclusion
We presented Least Square Policy Distillation (LSPD), an RL-inspired framework that connects reverse-KL distillation to KL-regularized policy optimization through a teacher-induced reward. This perspective motivates an optimistic least-squares formulation that enables trajectory reuse with a purely off-policy replay buffer. Experiments across six mathematical reasoning benchmarks and multiple teacher–student settings show improved reasoning performance, stronger Pass@k scaling, and greater rollout efficiency. In particular, LSPD-RB achieves performance comparable to vanilla OPD using only the first 25% of rollout batches. Together with a sharp reverse-KL regret guarantee, these results show how value-based RL principles can improve policy distillation by preserving policy diversity and enhancing sample efficiency through off-policy learning.
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Thomas Degris, Martha White, and Richard S. Sutton. Off-policy actor-critic. In Proceedings of the 29th International Conference on Machine Learning, 2012.
Dylan J Foster, Adam Block, and Dipendra Misra. Is behavior cloning all you need? understanding horizon in imitation learning. Advances in Neural Information Processing Systems, 37:120602–120666, 2024.
Zixuan Fu, Bingxiang He, Yuxin Zuo, Haohuan Huang, Jinqian Zhang, Ruhang Xiao, Cheng Qian, Qinyu Luo, Huan-ang Gao, Yudong Wang, et al. Rethinking on-policy distillation of large language models ii: One training example. arXiv preprint arXiv:2609.04172, 2026.
Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. A general theoretical paradigm to understand learning from human preferences. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pp. 4447–4455. PMLR, 2024.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. Minillm: Knowledge distillation of large language models. In International Conference on Learning Representations, volume 2024, pp. 32694–32717, 2024.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. In International conference on machine learning, pp. 1352–1361. PMLR, 2017.
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, et al. Olympiadbench: A challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3828–3850, 2024.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
Cheng-Yu Hsieh, Chun-Liang Li, Chih-Kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In Findings of the association for computational linguistics: ACL 2023, pp. 8003–8017, 2023.
Woogyeol Jin, Taywon Min, Yongjin Yang, Dennis Wei, Yi Zhou, Swanand Ravindra Kadhe, Nathalie Baracaldo, and Kimin Lee. Entropy-aware on-policy distillation of language models. arXiv preprint arXiv:2603.07079, 2026.
Yoon Kim and Alexander M Rush. Sequence-level knowledge distillation. In Proceedings of the 2016 conference on empirical methods in natural language processing, pp. 1317–1327, 2016.
Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. DistiLLM: Towards streamlined distillation for large language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 24872–24895. PMLR, 2024.
Jongwoo Ko, Tianyi Chen, Sungnyun Kim, Tianyu Ding, Luming Liang, Ilya Zharkov, and Se-Young Yun. DistiLLM-2: A contrastive approach boosts the distillation of LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 31044–31062. PMLR, 2025.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. Solving quantitative reasoning problems with language models. Advances in neural information processing systems, 35:3843–3857, 2022.
Gengsheng Li, Mao Zheng, Mingyang Song, Ruiqi Liu, Tianyu Yang, Jie Sun, Qiyong Zhong, Haiyun Guo, Junfeng Fang, Dan Zhang, et al. On-policy distillation with curriculum turn-level guidance for multi-turn agents. arXiv preprint arXiv:2606.15912, 2026a.
Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan-ang Gao, Wenkai Yang, Zhiyuan Liu, et al. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016, 2026b.
Kevin Lu and Thinking Machines Lab. On-policy distillation. Thinking Machines Lab: Connectionism, 2025. doi:10.64434/tml.20251026. https://thinkingmachines.ai/blog/on-policy-distillation.
Team Math-AI. American invitational mathematics examination (aime) 2024, 2024.
Team Math-AI. American invitational mathematics examination (aime) 2025, 2025.
Mathematical Association of America. American mathematics competitions. American Mathematics Competitions, 2023.
Rémi Munos, Tom Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient off-policy reinforcement learning. In Advances in Neural Information Processing Systems, volume 29, pp. 1046–1054, 2016.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:53728–53741, 2023.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021.
John Schulman, Xi Chen, and Pieter Abbeel. Equivalence between policy gradients and soft q-learning. arXiv preprint arXiv:1704.06440, 2017a.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017b.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Ved Sriraman, Peihan Liu, Daniel Hsu, and Adam Block. Behavior cloning is not all you need: The optimality of on-policy distillation for noisy expert feedback. arXiv preprint arXiv:2606.30923, 2026.
Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 8(3):279–292, 1992.
Taiqiang Wu, Chaofan Tao, Jiahao Wang, Runming Yang, Zhe Zhao, and Ngai Wong. Rethinking kullback-leibler divergence in knowledge distillation for large language models. In Proceedings of the 31st International Conference on Computational Linguistics, pp. 5737–5755, 2025.
Tengyang Xie, Dylan Foster, Akshay Krishnamurthy, Corby Rosset, Ahmed H Awadallah, and Alexander Rakhlin. Exploratory preference optimization: Harnessing implicit q*-approximation for sample-efficient rlhf. In International Conference on Learning Representations, volume 2025, pp. 43632–43669, 2025.
Xingrun Xing, Haoqing Wang, Boyan Gao, Ziheng Li, and Yehui Tang. Trust region on-policy distillation. arXiv preprint arXiv:2606.01249, 2026.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, and Yankai Lin. Learning beyond teacher: Generalized on-policy distillation with reward extrapolation. arXiv preprint arXiv:2602.12125, 2026a.
Yuxiao Yang, Tianrun Yu, Shangzhe Li, Kaixiang Zhao, Xuchao Zhang, Chetan Bansal, Huaxiu Yao, Taylor W Killian, and Weitong Zhang. When eos tokens disagree: Understanding length inflation in on-policy distillation. arXiv preprint arXiv:2609.20511, 2026b.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems, 38:113222–113244, 2026a.
Zishun Yu, Shangzhe Li, and Xinhua Zhang. Language model distillation: A temporal difference imitation learning perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 34512–34520, 2026b.
Heyang Zhao, Chenlu Ye, Wei Xiong, Quanquan Gu, and Tong Zhang. Logarithmic regret for online KL-regularized reinforcement learning. In Forty-second International Conference on Machine Learning, 2025.
Heyang Zhao, Chenlu Ye, Quanquan Gu, and Tong Zhang. Sharp analysis for kl-regularized contextual bandits and rlhf. Advances in Neural Information Processing Systems, 38:107964–108002, 2026.
Brian D. Ziebart, Andrew Maas, J. Andrew Bagnell, and Anind K. Dey. Maximum entropy inverse reinforcement learning. AAAI'08. AAAI Press, 2008. ISBN 9781577353683.
Yuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Xinwei Long, Ermo Hua, Biqing Qi, et al. Ttrl: Test-time reinforcement learning. Advances in Neural Information Processing Systems, 38:131459–131483, 2026.
A Hyperparameters and Implementation Details
A.1 Details on Huber-Type Penalty in Practical Implementation
For improved numerical stability, we employ a Huber-type penalty in the practical implementations of LSPD and LSPD-RB. Specifically, let , we define
where denotes the threshold separating the quadratic and linear regimes. This formulation preserves the original quadratic objective when the log-probability discrepancy is moderate, while replacing the quadratic growth with a linear penalty for large discrepancies, thereby reducing the influence of extreme outliers and improving optimization stability. We provide an ablation study of this design choice in Appendix B.
A.2 Training Details
Our experimental implementation of LSPD and LSPD-RB builds upon the on-policy distillation codebase of Li et al. (2026b) and adopts the EOS corrections in Yang et al. (2026b). Detailed training hyperparameters are summarized in Table 4. For comparison, we reproduce the OPD (Lu & Lab, 2025), EOPD (Jin et al., 2026), and KD (Hinton et al., 2015; Kim & Rush, 2016) baselines within the same implementation framework and under the same experimental setup. Across all methods, we keep the training batch size, rollout and evaluation configurations, and optimizer settings fixed to ensure a controlled comparison. All experiments are conducted using four NVIDIA RTX PRO 6000 GPUs, each equipped with 96GB of VRAM.
A.3 Prompt Template
For both training rollouts and evaluation, we follow the mathematical reasoning prompt template used in Test-Time Reinforcement Learning (TTRL) (Zuo et al., 2026). Specifically, we append the following instruction to each problem:
Prompt Template
Please reason step by step, and put your final answer within \boxed{}.
B Additional Experimental Results
Out-of-Domain Results. We further evaluate whether improvements from LSPD transfer beyond the mathematical reasoning domain used for distillation. Specifically, although the student is trained exclusively on mathematical dataset DAPO-Math-17K (Yu et al., 2026a), we evaluate KD (Hinton et al., 2015; Kim & Rush, 2016), OPD (Lu & Lab, 2025), EOPD (Jin et al., 2026), and our proposed LSPD and replay-buffer variant LSPD-RB on four out-of-domain benchmarks spanning general knowledge, commonsense reasoning, and code generation: GPQA (Rein et al., 2023), MMLU (Hendrycks et al., 2020), WinoGrande (Sakaguchi et al., 2021), and HumanEval (Chen et al., 2021). We report 0-shot accuracy on GPQA Main (448 questions), 5-shot accuracy on MMLU (14,042 questions), and 0-shot validation accuracy on WinoGrande (1,267 questions). For HumanEval, we report accuracy using one greedy completion for each of the 164 tasks. For all out-of-domain experiments, we leverage a Qwen3-4B non-thinking teacher and a Qwen3-1.7B-Base student.
Results are shown in Table 5. Averaged across the four out-of-domain benchmarks, LSPD achieves a score of 56.02, improving upon the strongest baseline, EOPD (55.01), by +1.02 percentage points. LSPD-RB further increases the average score to 56.84, corresponding to a +1.84 point improvement over EOPD. Notably, LSPD-RB achieves the best performance on GPQA, MMLU, and HumanEval, while LSPD obtains the best result on WinoGrande. These results indicate that the gains from LSPD are not restricted to the in-domain mathematical reasoning tasks used during training; instead, the learned policy retains and, in several cases, improves general reasoning and coding capabilities, suggesting better preservation of the student's out-of-domain capabilities during distillation.
Table 4 Hyperparameters for LSPD and LSPD-RB. We report the training hyperparameters used for our proposed LSPD and LSPD-RB methods across all experiments. For the off-policy experiments without a replay buffer, we vary the number of optimizer updates per rollout iteration over .
| Hyperparameter | w/o Replay Buffer | w/ Replay Buffer |
|---|---|---|
| Entropy regularization coefficient | 0.1 | 0.1 |
| Squared-loss robustification | Huber | Huber |
| Huber transition threshold | 5.0 | 5.0 |
| Optimizer | AdamW | AdamW |
| Learning rate | ||
| Learning-rate schedule | Constant | Constant |
| Warmup steps | 0 | 0 |
| Optimizer momentum coefficients | (0.9, 0.999) | (0.9, 0.999) |
| Weight decay | 0.01 | 0.01 |
| Maximum gradient norm | 1.0 | 1.0 |
| Maximum prompt length (tokens) | 1,024 | 1,024 |
| Maximum response length (tokens) | 7,168 | 7,168 |
| Rollout sampling temperature | 1.0 | 1.0 |
| Teacher distribution temperature | 1.0 | 1.0 |
| Vocabulary truncation | None | None |
| Prompts per rollout iteration | 64 | 64 |
| Responses per prompt | 4 | 4 |
| New trajectories per rollout iteration | 256 | 256 |
| Trajectories per optimizer update | 64 | 64 |
| Optimizer updates per rollout iteration | 4 | 256 |
| Rollout iterations | 100 | 100 |
| Replay buffer capacity (trajectories) | — | 65,536 |
| Replay eviction policy | — | First in, first out |
| Replay sampling | — | Uniform |
Ablation on Huber-Type Robust Penalty. We ablate the Huber-type robust penalty introduced in Eq. A.1. Specifically, we distill a Qwen3-1.7B-Base student from a Qwen3-4B non-thinking teacher using LSPD-RB, with and without the Huber-type penalty. The results are shown in Figure 3. Across AMC23, AIME24, and AIME25, the Avg@16 results show that incorporating the Huber-type penalty consistently improves performance, yielding an average gain of +0.50 points.
We further analyze the distribution of token-level log-probability differences using the step-10 checkpoint of the distilled Qwen3-1.7B-Base model. We sample 128 responses from 32 training prompts in DAPO-Math-17K, resulting in approximately 335K evaluated tokens. We find that 99.655% of tokens fall within the quadratic region of Eq. A.1, whereas only 0.345% exhibit sufficiently large log-probability discrepancies to enter the linear region. This suggests that the objective behaves predominantly as a quadratic penalty during training, while the linear tail robustly handles rare large discrepancies and improves training stability.
C Theoretical Analysis and Proofs
This appendix proves Theorem 6.2 by adapting the contextual-bandit analysis of Zhao et al. (2025) to conditional next-token distributions. We apply the sharp bandit inequality at each fixed prefix and then sum it along student-generated responses using the KL chain rule. No transition model, action-value function, or Bellman recursion is required. The reduction uses the special reward , whose target partition function equals one at every prefix; deterministic token concatenation alone would not justify a bandit analysis for an arbitrary sequential reward.
We first assume and give the covering-number extension in Appendix C.5. Throughout, indexes
Table 5 Results on Out-of-Domain Benchmarks. Performance comparison of KD, OPD, EOPD, LSPD, and LSPD-RB on GPQA, MMLU, WinoGrande, and HumanEval. The student is trained only on mathematical reasoning data. The best result on each benchmark is shown in bold, and the second-best result is underlined.
| Method | GPQA | MMLU | WinoGrande | HumanEval |
|---|---|---|---|---|
| KD | ||||
| OPD | ||||
| EOPD | ||||
| LSPD | ||||
| LSPD-RB |

(a) Performance with and without Huber.
(b) Log-probability difference magnitudes.
Figure 3 Huber-Type Penalty Ablation. We evaluate the effect of the Huber-type penalty on AMC23, AIME24, and AIME25. The left figure compares Avg@16 performance with and without the Huber-type penalty, while the right figure shows the distribution of the log-ratio discrepancy . Overall, incorporating the Huber-type penalty yields a small but consistent improvement in performance. We further observe that the objective operates almost entirely in its quadratic regime: only 0.345% of the evaluated token-level discrepancies satisfy and therefore fall into the linear tail. This suggests that the Huber formulation primarily behaves as a quadratic penalty in practice, while its linear tail provides additional robustness to the small fraction of large log-ratio discrepancies.
rollout/update rounds and indexes tokens in the finite vocabulary . Queries are drawn from the dataset distribution of Section 3. The policy remains fixed while generating , and all its token observations become available for the update to . Responses have at most tokens. Equivalently, completed responses may be padded with an absorbing token on which all policies agree and all rewards and regression errors are zero.
C.1 Setup and Reverse-KL Identity
Let be the history before sampling query . Within rollout , let contain this history, the current query, and the tokens and teacher feedback preceding position . Thus is known before drawing . We use for the history after the complete rollout and its feedback.
Assumption C.1 (Conditionally unbiased teacher). There exists a target policy such that, for every observed prefix-token pair ,
Moreover, the noise is conditionally -sub-Gaussian: for every ,
Algorithm 2 Least Square Policy Distillation (Theoretical)
Input: Reference policy , reward class , teacher feedback , rounds , response-length bound , parameters ; .
1: Initialize , , and with pointwise.
2: for do
3: Sample and initialize .
4: for do
5: Sample .
6: Observe .
7: Append the token: ; stop at termination.
8: end for
9: Store the prefix-token pairs and targets from rollout in .
10: Fit to all stored token targets by Eq. C.8.
11: Construct the estimator-centered confidence set in Eq. C.13.
12: Set for every prefix-token pair.
13: Set .
14: end for
Remark C.2. Explicit modeling of teacher noise has precedent in the theoretical study of on-policy distillation. In particular, Sriraman et al. (2026) distinguish a clean expert from an observed teacher corrupted at the token level according to , where is the corruption level and is a corruption policy. Their analysis considers known corruption and, for unknown corruption, imposes a deterministic clean expert together with smoothness and margin conditions on the corruption. Assumption C.1 follows the same motivation of distinguishing target behavior from imperfect teacher feedback, but adopts a different statistical model: the observed token-level feedback is conditionally unbiased for , with sub-Gaussian deviations. Conditional unbiasedness centers the induced reward-regression target at , while the tail condition enables concentration under adaptive prefix and token sampling. Thus, introducing explicit structural assumptions on teacher noise is consistent with prior theoretical work. Our particular condition is a complementary analytical idealization tailored to least-squares reward estimation, rather than a consequence of their mixture-corruption model.
Definition C.3 (Reward representation and regularized objective). For a fixed reference policy , define the target token reward by
For any reward function r, define its prefix-wise partition function and conditional Gibbs policy by
The sequence distribution is the autoregressive product of these conditionals, not a single sequence-level Gibbs normalization. With , the regularized objective is
Reverse-KL identity. Substituting Eq. C.1 into Eq. C.4 and conditioning on each prefix gives
(C.5) where the second equality is the autoregressive KL chain rule. In particular, and at every prefix. Hence , and
Thus Regret(K) = is exactly the regret in Eq. 6.1, not a token-averaged surrogate.
Definition C.4 (Regression target and reward estimator). At token t of rollout k, the observed regression target is
Let store the prefix-token pairs and their observed targets. The empirical version of Eq. 4.2 is
We use and any .
Under Assumption C.1,
The conditional formulation permits adaptive prefixes and does not require independent observations within a response.
Definition C.5 (Cumulative eluder complexity). Fix . After completed rollouts, define
including k = 0 with an empty denominator sum. For K rollout rounds, define
where the supremum ranges over valid query-response sequences, , and uses only their first completed rollouts. We abbreviate this quantity as .
This is the rollout-batched token-level version of the cumulative contextual-bandit complexity. It bounds the clipped squared widths along every realized adaptive sequence. Importantly, its denominator does not use tokens from the current rollout before the policy is updated. At T = 1, it is the usual bandit definition. Retaining only historical observations at the same token position can only enlarge each width; consequently, is at most the sum of the T corresponding K-round bandit complexities. Thus response-length dependence is explicit in the complexity definition, without introducing a transition-estimation or Bellman-error term.
Definition C.6 (Confidence set, bonus, and optimistic reward). For , set
Define the estimator-centered confidence set by
Its pointwise optimistic reward and an auxiliary confidence bonus are
For noisy feedback, Eq. C.13 makes the theoretical confidence construction precise by centering at : an uncentered squared residual against noisy targets includes the accumulated noise energy and is not, by itself, a logarithmic-radius confidence set. Algorithm 2 and the proof both use the same pointwise optimistic reward ; is only a bound on its estimation error. Since , the set is always nonempty. The policy update is
In particular, and . These are conditional token updates; they do not assert that a prefix-wise Gibbs policy globally maximizes an arbitrary sequence-reward objective.
C.2 Objective Decomposition and the Sharp One-Step Bound
For a fixed prefix , define
Lemma C.7 (Objective decomposition). For every ,
Proof. For a fixed prefix, Eq. C.3 gives
Using , we obtain the prefix-wise identity
(C.19)
Because and , the right-hand side is , with . Sum over tokens and average over prefixes generated by , using Eq. C.6.
Lemma C.8 (Gradient of the functional gap). For every fixed prefix and token ,
(C.20)
Proof. Direct differentiation of Eqs. C.2–C.3, holding the prefix fixed, yields
The derivative of is . Differentiating the expectation in Eq. C.16 produces a direct term , which cancels it. The remaining terms give Eq. C.20. No derivative of a prefix distribution is taken.
Define the uniform optimism event
Lemma C.9 (Sharp one-step bound under optimism). On , for every ,
Proof. Fix a prefix and write
where the interpolation is only over the token-reward vector at this fixed prefix. Apply the one-dimensional mean-value theorem to . For some , Lemma C.8 yields
(C.27)
Here and below, the token expectations in this proof are conditional on the fixed prefix. To compare the intermediate policy with , define
The exponential-family derivative identity gives
The covariance term is nonnegative because . Indeed, for independent copies of under ,
Consequently , and
Combining Eqs. C.27 and C.31 proves the sharp contextual-bandit inequality at this prefix. Only after obtaining this pointwise bound do we sum over and average under the student . Lemma C.7 and conditional expectation then give Eq. C.25. This avoids comparing prefix distributions under different interpolated policies.
C.3 Least-Squares Confidence and Uniform Optimism
Lemma C.10 (Finite-class least-squares confidence). Under Assumptions C.1 and 6.1, with probability at least , simultaneously for every ,
Proof. For , write . By Eq. C.9, the excess squared loss at a sampled token is
(C.33)
For , conditional sub-Gaussianity implies that, for every fixed r, the exponential process obtained by revealing tokens and their feedback in chronological order is a nonnegative supermartingale. At the end of rollout k, it equals
The conditional noise assumption is applied after the sampled token is revealed, so adaptivity of the prefix and token does not invalidate this supermartingale. Markov's inequality and a union bound over and the K rollout endpoints yield, with probability at least ,
for every such and . Only fitting checkpoints are union-bounded, not separate estimators. Since minimizes the empirical loss and ,
Substitute into the uniform event in Eq. C.35 and rearrange to obtain Eq. C.32. For , the feedback is noiseless and the same claim follows directly from least-squares optimality.
Lemma C.11 (Uniform optimism). Under Assumptions C.1 and 6.1, with probability at least , simultaneously for all and all prefix-token pairs,
In particular, holds on this event.
Proof. Work on the event of Lemma C.10. For , Eqs. C.12 and C.32 imply
Thus . This also holds for , since .
For every , both and lie in the same empirical ball centered at . Using gives
The definition of therefore implies . Also, all functions in take values in . Taking the pointwise supremum over yields
Finally, target membership gives
Together these prove Eq. C.37, including the empty-design case.
C.4 Proof of Theorem 6.2
Proof. For the actual rollout k, define the accumulated squared token-reward error
On the event in Lemma C.11, the reverse-KL identity and Lemma C.9 imply
Since , the clipped bonus satisfies
For every realized sequence of rollouts, Definition C.5 gives
Consequently, on the confidence event.
From observed errors to predictable regret. A pathwise bound on does not by itself bound with high probability. We supply the required concentration step while keeping the same logarithmic regret order. Define the pointwise diameter
The set is nonempty and contained in , and . Thus, even outside the confidence event, pointwise. Since and ,
Any valid response can appear as the first rollout in the supremum defining . Therefore
for every , without conditioning on optimism. If , all these errors and the regret are zero. Otherwise, for , the convexity bound yields
Hence is a nonnegative supermartingale in . Markov's inequality gives a second event, of probability at least , on which
Intersecting this event with that of Lemma C.11 gives probability at least . On their intersection,
Substituting Eq. C.12 yields
For fixed , this is
as claimed. If , the reward class is a singleton and ; otherwise constants inside the logarithm are absorbed into . The entire argument estimates immediate token log-ratio rewards and sums fixed-prefix bandit inequalities, rather than propagating errors through an MDP.
C.5 Covering-Number Interpretation
For a token-level policy class , define its log-policy class and induced reward class by
The fixed reference term cancels in every pairwise difference:
where the supremum is over prefix-token pairs. Thus these two classes have identical uniform covering numbers. The same cancellation holds in the numerator and denominator of Eq. C.10, so their token-level uncertainty values and cumulative eluder complexities also coincide.
Finite-cover extension. For completeness, the discretization can be made explicit without changing the regret order. Suppose admits a finite uniform -net with centers in , and let . The estimator and confidence set may still be formed over the original class, assuming the empirical minimum is attained. Define
Applying the supermartingale argument to the net centers with failure probability , and a conditional sub-Gaussian union bound to all observed noises with failure probability , gives simultaneously
for all and , with probability at least . Indeed, replacing by a net center changes by at most , its square by at most , and the noise cross-term by at most , while on the noise event. Least-squares optimality then yields
Consequently, using
in Algorithm 2 proves the same optimism and explicit regret bound as before. Choosing ensures . Thus Theorem 6.2 retains its logarithmic form with the indicated covering number, while any additional dependence on through the covering resolution and remains explicit. The covering number is therefore evaluated on prefix-token pairs at the stated resolution.
C.6 Comparison with On-Policy Distillation under Noisy Expert Feedback
Building on the discussion following Assumption C.1, we compare Theorem 6.2 with the unknown-corruption guarantee of Sriraman et al. (2026). We specialize their sequential formulation to token generation: states are prefixes , actions are tokens , the horizon is , and counts rollout rounds. Write for the joint distribution of and . Their error criterion is the squared Hellinger distance, with normalization
Theorem C.12 (NAILGUN with unknown corruption, Sriraman et al., 2026, Theorems 9 and 15). Let be a finite class of deterministic token-level policies containing the clean expert . Suppose the observed teacher satisfies
where , , and for every prefix-token pair. Assume . Given the bounds and , but without knowing or , NAILGUN uses sampled teacher-token labels at learner-visited prefixes and returns a uniformly selected rollout policy after rounds such that
The expectation includes the training randomness and the selection of .
Remark C.13 (Why vanilla OPD is insufficient under corruption). NAILGUN is a noise-aware algorithm, not vanilla reverse-KL distillation: directly matching the corrupted teacher need not recover the clean expert (Sriraman et al., 2026). Under Assumption C.1, our feedback is instead conditionally unbiased. Theorem 6.2 establishes a finite-sample guarantee for optimistic least-squares learning, rather than proving that vanilla OPD must fail under our assumptions.
Remark C.14 (On-policy interaction versus optimistic exploration). NAILGUN updates a weighted aggregate of deterministic policies using noisy expert labels (Sriraman et al., 2026, Algorithm 3). In contrast, Algorithm 2 combines optimistic token selection with least-squares estimation of log-ratio rewards. Our analysis shows how this explicit exploration mechanism yields fast learning with general reward-function approximation; ordinary on-policy sampling alone does not provide the same guarantee.
Remark C.15 (Different noise dependence and identifiability). NAILGUN's bound depends inversely on the squared corruption margin , reflecting the difficulty of distinguishing clean and corrupted labels. Our bound instead depends on through estimation uncertainty in Eq. C.52. As discussed following Assumption C.1, this difference relies on conditionally unbiased feedback, not robustness to arbitrary corruption. Our analysis explicitly characterizes how feedback uncertainty affects distillation under this noise model.
Remark C.16 (Comparing rates, support, and rollout budgets). NAILGUN bounds expected final-policy Hellinger error, whereas Theorem 6.2 gives high-probability logarithmic cumulative reverse-KL regret and a guarantee for the response-level mixture policy. Both have a output-error factor up to complexity and logarithmic terms, with counting rollouts. Our analysis directly controls the distillation objective throughout training and accommodates stochastic targets under bounded log-ratio rewards. Different support assumptions and horizon-dependent complexities make these complementary guarantees, rather than a strict improvement in sample complexity.
D Generated Samples
In this section, we present representative samples generated on the AMC23, AIME24, and AIME25 benchmarks using our proposed LSPD and LSPD-RB methods, under the Qwen3-8B non-thinking teacher to Qwen3-4B-Base student distillation setup.
LSPD Solutions in AMC23
Question. What is the degree measure of the acute angle formed by lines with slopes and ?
Solution
We are given two lines with slopes and , and we are asked to find the acute angle formed between them.
Step 1: Use the formula for the angle between two lines
The formula to find the angle between two lines with slopes and is:
This gives the acute angle between the lines.
Step 2: Plug in the values
We have:
Compute:
So:
Step 3: Find the angle
Final Answer:
LSPD Solutions in AIME24
Question. There exist real numbers and , both greater than 1, such that . Find .
Solution.
We are given the equations:
We are to find , where both and are real numbers greater than 1.
Step 1: Use logarithmic identities
Recall the logarithmic identity:
So we can rewrite the given equations using this identity.
First equation:
(Equation 1)
Second equation:
(Equation 2)
Let's denote:
Then from Equation 1:
From Equation 2:
Now, recall the identity:
Substitute the expressions for and :
Step 2: Solve the equation
Multiply both sides by :
Final Answer:
LSPD Solutions in AIME25
Question. Find the sum of all integer bases for which is a divisor of .
Solution.
We are given the problem:
Find the sum of all integer bases for which is a divisor of .
Step 1: Convert the numbers from base to base
We are given:
-
is the number
-
is the number
So the problem becomes:
Find all integers such that divides , and then sum those values of .
Step 2: Set up the divisibility condition
We want:
This means:
Let's perform the division:
So:
Therefore:
Step 3: Find all divisors of
We need to find all integers such that:
So, we list the positive divisors of :
Now, we want , so .
Check which of these divisors are greater than :
- 1: too small
- 2: too small
- 4: too small
- 7: too small
- 8: too small
- 14: too small
- 28: OK
- 56: OK
So the valid values of are:
Step 4: Compute the sum
Final Answer:
LSPD-RB Solutions in AMC23
Question. What is the degree measure of the acute angle formed by lines with slopes and ?
Solution
We are given two lines with slopes and , and we are asked to find the acute angle formed between them.
Step 1: Use the formula for the angle between two lines
The formula for the angle between two lines with slopes and is:
We are interested in the acute angle, so we take the absolute value of the right-hand side.
Step 2: Plug in the values
Simplify the numerator and denominator:
-
Numerator:
-
Denominator:
So,
Step 3: Find the angle
Since the angle is acute (less than ), the answer is:
Final Answer:
LSPD-RB Solutions in AIME24
Question. There exist real numbers and , both greater than 1, such that . Find .
Solution.
We are given the following two equations involving logarithms:
We are to find the value of , given that .
Step 1: Simplify the first equation
Using the logarithm power rule:
So,
Step 2: Simplify the second equation
Again using the logarithm power rule:
So,
Step 3: Express in terms of
We recall the change of base formula:
Let's denote:
Now substitute into equations (1) and (2):
-
From (1):
-
From (2):
Step 4: Substitute into
We now have expressions for and in terms of :
So,
Step 5: Verify that
We have:
We want , so:
So, , which is valid.
Final Answer:
25
LSPD-RB Solutions in AIME25
Question. Find the sum of all integer bases for which is a divisor of .
Solution
We are given that divides , and we are to find the sum of all integer bases for which this is true.
Step 1: Convert both numbers from base to base
We convert and to base :
So, the condition becomes:
Step 2: Use divisibility condition
We are told that divides , so:
To simplify this, we use the fact that if and , then for any integer .
Let's subtract from :
So:
Since divides , it also divides . So we are looking for all positive integers such that:
Step 3: Find all divisors of
List all positive divisors of :
Divisors of :
Now, we want to be one of these, and , so:
So we filter the divisors of that are greater than :
Divisors of :
So possible values of are and , and thus:
Both values are greater than 9, so they are valid.
Step 4: Final Answer
We now sum all such :
Bonus: Check that these work
-
For :
-
For :
Both values satisfy the condition.
Final Answer: