On-Policy Delta Distillation

Byeongho Heo, Jaehui Hwang, Sangdoo Yun, Dongyoon Han

On-Policy Delta Distillation (OPD2) uses the teacher's reasoning-tuning "delta" as a distillation signal to improve student reasoning.

Standard on-policy distillation trains students to mimic a teacher's output, but this often conflates the teacher's hard-won reasoning capabilities with its pre-existing stylistic biases. The authors propose On-Policy Delta Distillation (OPD2), which replaces the standard distillation reward with a "delta signal"—the difference between the reasoning-tuned teacher and its own base model. This isolates the specific knowledge acquired during reasoning tuning. Across math, science, and code benchmarks, OPD2 consistently outperforms conventional distillation, enabling smaller models to achieve reasoning performance that rivals or exceeds larger models.

Paper Primer

Conventional distillation treats the teacher's entire output distribution as the target, which forces the student to learn both the teacher's reasoning logic and its incidental conversational habits. OPD2 isolates the reasoning signal by calculating the log-probability difference between the teacher's final reasoning-tuned state and its original base state.

OPD2 is a reward-design framework: it centers the delta signal to handle bias and applies a joint condition that reverts to standard distillation if the delta signal conflicts with the teacher's output, ensuring the student remains grounded in the teacher's actual performance.

OPD2 significantly improves reasoning performance across diverse domains and model architectures.

In non-thinking mode, Qwen3-4B trained with OPD2 outperforms the larger Qwen3-8B trained with standard distillation on math and science benchmarks. OPD2 increased the average math score for Qwen3-1.7B from 34.8 to 54.6, a 57% relative improvement over the baseline.

OPD2 effectively improves models that already possess strong reasoning capabilities.

While standard distillation often degrades performance in "thinking" modes, OPD2 consistently yields gains, such as improving the HMMT25 math score of Qwen3-8B from 44.3 to 52.3. OPD2 achieved the best average performance across all model sizes and domains in thinking mode, where competing methods often reduced baseline performance.

Why use the "delta" between the teacher and its base model instead of just the teacher's output?

The delta signal captures the specific learning trajectory of reasoning tuning, effectively filtering out the teacher's pre-existing stylistic tendencies and "natural" preferences that are irrelevant to reasoning tasks.

Does this method require significantly more compute than standard distillation?

It introduces a modest overhead of approximately 8–28% in wall-clock training time due to the additional forward pass of the teacher-base model, but this remains comparable to other advanced distillation methods like ExOPD.

The delta signal is the primary driver of performance; ablation studies show that replacing it with standard distillation signals causes the most significant performance drop, while centering and joint conditioning provide secondary stability benefits.

For researchers performing post-training, OPD2 provides a more precise signal for transferring reasoning capabilities, making it a robust choice for both non-thinking and thinking-mode models.

Abstract and Introduction

We expose the limited reward design of on‑policy distillation and propose a delta‑signal based improvement.

On‑Policy Distillation (OPD) is a post‑training technique that replaces handcrafted reward models with dense token‑level supervision from a high‑performing teacher. By sampling student outputs and scoring them with the teacher, OPD preserves the student’s existing knowledge while nudging it toward the teacher’s behavior. However, the reward formulation—simply the log‑probability gap between teacher and student—has received little design scrutiny.

We introduce the *delta signal*, defined as the difference between the reasoning‑tuned teacher and its base (pre‑tuning) model, and build OPD² around it. The delta captures the knowledge acquired during reasoning tuning, offering a more direct supervision signal than the raw teacher distribution. OPD² therefore replaces the original log‑probability reward with the teacher‑base difference.

**Figure 1.** **Comparison of On-Policy Distillation (OPD) and our OPD$^2$.** While conventional on-policy distillation trains students to follow the teacher’s outputs, our OPD$^2$ utilizes the *delta signal*, the difference between the teacher and its base model, to focus on the knowledge of the learning trajectory required for reasoning capability.

To understand $\Delta$’s behavior we perform three analyses: (1) word‑cloud visualizations of the signal distribution, (2) token‑level heatmaps comparing $\Delta$ to raw teacher probabilities, and (3) statistical summaries of word‑level changes. These reveal that $\Delta$ emphasizes reasoning‑specific tokens while attenuating stylistic preferences retained from pre‑tuning. Building on this insight, we design two reward refinements: centering (subtracting the expected reward to obtain zero‑mean signals) and joint conditioning (combining the centered $\Delta$ with the original OPD reward to stabilize convergence).

We evaluate OPD² on a mixed‑domain training set (equal numbers of Math, Science, and Code questions) and test on 7 Math, 3 Science, and 4 Code benchmarks across Qwen‑3 (1.7B–8B) and Gemma‑4 models, both in think and no‑think modes. Across all settings OPD² yields consistent gains over standard OPD, demonstrating that the delta‑signal reward more effectively transfers reasoning capability during the short post‑training phase.

Delta Signal Definition

We define a delta distillation signal that isolates the teacher’s reasoning improvements over its base model.

On‑policy distillation (OPD) treats the teacher‑student log‑probability gap as a reward, but this mixes basic next‑token prediction with reasoning ability. We therefore introduce a delta signal that compares the fine‑tuned teacher to its own pre‑fine‑tuned base, isolating the reasoning improvements.

The delta signal measures how the teacher’s reasoning‑focused fine‑tuning changes its token predictions relative to the same model before that fine‑tuning.

Word‑cloud visualizations (Figure 2) show that $\Delta$ strongly promotes logical‑connective words like “hence”, “however”, and “instead”, while it suppresses exploratory verbs such as “see”, “try”, and “verify”. This shift reflects a focus on reasoning rather than surface‑level verification.

**Figure 2.** Word clouds for OPD, Base and $\Delta$. The figure illustrates distillation signal strengths in the form of word clouds. Qwen3-1.7B and Qwen3-4B are used for student and teacher, respectively, on 10k math questions. Compared with OPD, $\Delta$ emphasizes reasoning-connective words such as *hence*, *however*, and *instead*, while suppressing exploratory and verification-related words such as *see*, *try*, and *verify*.

Token‑level heatmaps (Figure 3) reveal that $\Delta$ assigns more negative rewards to generic reasoning tokens (“There”, “Since”) and to tokens that belong to incorrect reasoning paths, making the signal more aligned with correct logical structure.

**Figure 3.** Token-level distillation signals on simple reasoning examples. Blue and red indicate promoting and suppressing signals, respectively, with values clipped to $\pm 6$. Compared with OPD, $\Delta$ more consistently suppresses tokens associated with incorrect reasoning.

Statistical analysis (Table 1) quantifies these shifts: words such as “hence”, “however”, and “note” are enhanced in $\Delta$, while words like “see”, “try”, and “verify” are suppressed. The effect is consistent across Math, Code, and Science corpora.

**Table.** Words with the highest frequency of signal changes in the Math, Code, and Science domains, categorized by whether the signal is Enhanced or Suppressed.

On-Policy Delta Distillation

We expose and fix the convergence instability of the delta reward in on‑policy distillation.

The delta reward $R_{\Delta}$ ignores the student policy $\pi_{\theta}$ when computing the reward, so training driven solely by $R_{\Delta}$ drives the student toward a one‑hot token that maximizes the reward. Although such a token cannot be reached in realistic strong‑to‑weak distillation, the mismatch can cause unstable gradients during learning.

In practice the expectation in $A^{\text{OPD}}_t$ and $A^{\Delta}_t$ is approximated by averaging over the top‑$k$ tokens (with $k=1024$) of the current policy $\pi_{\theta}$ to keep GPU memory bounded.

The conditional advantage $\text{AD2}_t$ disables updates when $A^{\Delta}_t$ is non‑positive, which occurs when the student already matches the teacher ($\pi_{\theta} = \pi^{*}$) or when the delta signal would push the student away from the teacher’s distribution. This sign‑consistent gating prevents over‑training on the trace signal and keeps gradient magnitudes aligned with the original distillation direction.

Computational Costs

OPD2 adds modest training overhead despite the extra teacher‑base forward pass.

OPD2 introduces extra computation because it must run the teacher‑base model to obtain the delta signal. This adds a wall‑clock training overhead of roughly a quarter for the larger Qwen3 models and about eight percent for Gemma4‑E4B. Nevertheless, the cost remains comparable to the existing ExOPD baseline and is modest in the short‑training regime typical of on‑policy distillation.

**Figure 4.** Training curve for various domains. The figures show the reasoning performance changes during on-policy distillation training. We report the average performance on AIME24 and AIME25 for Math, CodeContests for Code, and GPQA for Science. All OPD variants exhibit similar training dynamics, while OPD$^2$ achieves the strongest performance. Note that, in all tables, we report performance at the final training step, not the peak performance observed during training.

Method Overview

On‑policy distillation trains a student to imitate a teacher token by token.

Standard reinforcement‑learning fine‑tuning requires a handcrafted reward signal, which is costly to design and evaluate. OPD sidesteps this by reusing the teacher’s own probability distribution as a dense, token‑level reward.

OPD lets the student copy the teacher’s answer one token at a time, using the teacher’s log‑probability as a per‑token advantage signal.

How does OPD differ from standard policy‑gradient RL that uses a handcrafted reward?

Standard RL supplies an external scalar reward after the whole episode, whereas OPD derives a dense, token‑wise signal directly from the teacher’s probability distribution. This eliminates the need to design a task‑specific reward and lets the gradient be computed at every timestep.

Compute the teacher’s log‑probability: $\log 0.8 \approx -0.223$.

Compute the student’s log‑probability: $\log 0.5 \approx -0.693$.

Reward $R_t = -0.223 - (-0.693) = 0.470$, a positive advantage for the student.

The score function $\nabla_{\theta}\log \pi_{\theta}(y_t)$ is multiplied by $0.470$, nudging the student’s parameters toward increasing the token’s probability.

The reward is positive because the teacher is more confident; OPD therefore pushes the student to raise its probability for that token.

Because OPD only touches sampled tokens, its computational cost matches that of ordinary on‑policy RL while delivering a teacher‑driven learning signal.

Training Dynamics

OPD² keeps improving while earlier methods stall early in training.

Early training of on‑policy distillation methods quickly lifts performance, but OPD and ExOPD soon hit a ceiling or even regress, leaving a gap that OPD² fills.

The delta signal injects a small corrective term that continuously nudges the student toward the teacher, preventing the early stagnation seen in earlier methods.

Compute raw delta = teacher − student = [0.5, 0.2].

Scale delta: 0.1 × [0.5, 0.2] = [0.05, 0.02].

Add to student logits: [1.5, 0.8] + [0.05, 0.02] = [1.55, 0.82].

Re‑compute softmax probabilities; the corrected student now assigns higher probability to the correct class.

The delta provides a gentle, direction‑aware push that improves the student without destabilizing training.

How does the delta signal differ from simply adding a constant bias to the student’s logits?

A constant bias is static and does not reflect the teacher‑student mismatch; the delta signal is dynamic, computed as the actual difference between teacher and student logits, so it only acts where the gap exists and fades as the student learns.

When we plot the training curves of OPD, ExOPD, and OPD² on the Qwen3‑4B non‑thinking setting, OPD² climbs higher early and stays above the others for the entire run.

**Table 8.** Ablation study for OPD$^2$. We conduct an ablation study for OPD$^2$. Replacing the delta signal shows the most significant impact. The formulas indicate how each variant modifies Eq. 8.

Experiment Overview

We outline the evaluation framework, models, data, and settings used to assess OPD2.

To validate OPD2 we construct a large‑scale on‑policy distillation pipeline that can be applied to any reasoning domain without hand‑crafted rewards.

Instead of pre‑training a student from scratch, OPD2 refines a small reasoning model by repeatedly feeding it the teacher’s answer to the same question and nudging the student toward that behavior.

We mix equal parts of challenging questions from Math, Science, and Code so the student sees a balanced set of reasoning tasks during distillation.

**Table 11.** Common training parameters. Training parameters shared across all models.

Non-Thinking Results

OPD2 delivers the highest non‑thinking averages across all model sizes and tasks.

OPD2 attains the highest overall average score (71.6) across all model sizes and domains in non‑thinking mode.

Table 3 shows Qwen3‑8B + OPD2 reaching an average of 71.6, outperforming all other variants.

**Table 3.** Qwen3 non-thinking results for Code and Science. The table shows non-thinking model results for Qwen3. The best performance is shown in bold, and the second best is underlined.

**Table 1.** Performance comparison of different models and methods across Code and Science benchmarks.

Thinking Results

OPD² delivers the strongest gains across all Qwen3 and Gemma4 benchmarks.

OPD² raises the average Code score of Qwen3‑1.7B by +11.1 points.

Table 5 shows the baseline average of 29.3 points increasing to 40.4 points with OPD².

**Table 5.** Qwen3 thinking results for Code and Science. The table shows thinking mode results for Qwen3. The best performance is shown in bold, and the second best is underlined.

**Table 1.** Performance comparison of Qwen3 models (1.7B, 4B, 8B) across Code and Science benchmarks using different training methods (OPD, ExOPD, OPD^2).

**Table.** Evaluation of methods on Gemma4-E4B-it.

**Table 7.** **Gemma4 for Code and Science.** The table shows on-policy distillation results for Gemma4-E4B-it. The best performance is shown in bold, and the second best is underlined.

Appendix

Provides the hardware, training, and evaluation settings needed to reproduce the experiments.

The paper’s reproducibility hinges on fully disclosed hardware and hyperparameter choices, yet many prior works omit these details, leaving readers unable to verify claims.

All models are trained on NVIDIA H100 GPUs, with small models using a single node and larger models distributed across four nodes to balance compute and memory.

Performance is measured with pass@1, i.e., the probability that a single generated answer matches the reference, averaged over multiple stochastic generations.

This table lists various hyperparameters and their corresponding values used for training or inference settings.

**Table 12.** Evaluation benchmark configs. For each benchmark, we report pass@1 (single-sample accuracy), averaged across the listed number of repetitions.

Questions & answers

What is the main contribution of the OPD² paper?

The paper introduces On-Policy Delta Distillation (OPD²), a reward-design framework that replaces the standard on-policy distillation reward with a delta signal—the difference between a reasoning-tuned teacher model and its pre-tuning base model—to more precisely transfer reasoning capabilities to smaller student models.

What problem does OPD² address?

Standard on-policy distillation (OPD) uses the teacher's full output distribution as a reward, which conflates the teacher's reasoning capabilities with its pre-existing stylistic biases from pre-training. OPD² addresses this by isolating only the knowledge specifically acquired during reasoning tuning.

Why use the delta between the teacher and its base model instead of just the teacher's output?

The delta signal captures the specific learning trajectory of reasoning tuning, filtering out the teacher's pre-existing stylistic tendencies and 'natural' preferences that are irrelevant to reasoning tasks. Word-cloud and heatmap analyses confirm that the delta emphasizes logical-connective tokens like 'hence' and 'however' while suppressing exploratory verbs like 'see', 'try', and 'verify'.

How does OPD² work technically?

OPD² computes a delta reward R_Δ as the log-probability difference between the reasoning-tuned teacher and its base model, then applies two stabilization mechanisms: centering the delta signal to handle bias, and a joint condition (called AD2) that reverts to standard distillation if the delta signal would push the student away from the teacher's distribution. The expectation is approximated by averaging over the top-k tokens (k=1024) of the current student policy to keep GPU memory bounded.

What is the joint conditioning mechanism in OPD²?

The conditional advantage AD2_t disables gradient updates when the delta advantage A^Δ_t is non-positive, which occurs when the student already matches the teacher or when the delta signal would push the student away from the teacher's distribution. This sign-consistent gating prevents over-training on the trace signal and keeps gradient magnitudes aligned with the original distillation objective.

What datasets and benchmarks were used to evaluate OPD²?

OPD² was evaluated on a mixed-domain training set with equal numbers of Math, Science, and Code questions, and tested on 7 Math benchmarks, 3 Science benchmarks, and 4 Code benchmarks. Experiments were conducted on Qwen-3 models (1.7B–8B) and Gemma-4 models, in both thinking and non-thinking modes.

What are the key results of OPD²?

OPD² consistently outperforms standard OPD across all evaluated settings—math, science, and code benchmarks—on Qwen-3 (1.7B–8B) and Gemma-4 models in both think and no-think modes. The paper also reports that smaller models trained with OPD² can achieve reasoning performance that rivals or exceeds larger models trained with conventional distillation, though specific numeric scores are not detailed in the provided text.

What do ablation studies reveal about OPD²'s components?

Ablation studies show that the delta signal is the primary driver of performance, with replacing it with standard distillation signals causing the most significant performance drop. Centering and joint conditioning provide secondary stability benefits.

How do training dynamics compare between OPD, ExOPD, and OPD²?

Training curves on the Qwen3-4B non-thinking setting show that OPD² climbs higher early in training and remains above OPD and ExOPD for the entire run, whereas OPD and ExOPD quickly hit a ceiling or regress after early gains.

Does OPD² require significantly more compute than standard distillation?

OPD² introduces a wall-clock training overhead of approximately 8–28%—about 8% for Gemma4-E4B and roughly 25% for larger Qwen3 models—due to the additional forward pass required for the teacher-base model. The paper notes this cost is comparable to the existing ExOPD baseline and is modest in the short-training regime typical of on-policy distillation.

How does OPD² differ from standard policy-gradient reinforcement learning?

Standard RL supplies an external scalar reward after the whole episode, whereas OPD² derives a dense, token-wise signal directly from the difference between teacher and base model probability distributions. This eliminates the need to design a task-specific reward and allows gradients to be computed at every timestep.

How does the delta signal differ from simply adding a constant bias to the student's logits?

A constant bias is static and does not reflect the teacher-student mismatch, whereas the delta signal is dynamic—computed as the actual difference between teacher and base model logits—so it only acts where a gap exists and naturally fades as the student learns.

What are the limitations of OPD²?

The paper acknowledges that the delta reward R_Δ ignores the student policy when computing the reward, which can drive the student toward a one-hot token distribution and cause unstable gradients; the joint conditioning mechanism is introduced to mitigate this. The paper also notes that many prior works omit hardware and hyperparameter details, raising reproducibility concerns, though it states OPD² itself discloses these details.

How does OPD² compare to ExOPD?

OPD² is presented as an alternative to ExOPD, with comparable computational overhead (both exceed standard OPD's cost) but superior performance, as OPD² consistently outperforms ExOPD across benchmarks according to the training curves and results reported. The paper does not provide a detailed algorithmic description of ExOPD beyond using it as a baseline comparison.

What models were used as teachers and students in the experiments?

The experiments use Qwen-3 models ranging from 1.7B to 8B parameters and Gemma-4 models (including Gemma4-E4B) as both teacher and student configurations, evaluated in both thinking and non-thinking modes. The paper does not specify which exact model sizes serve as teachers versus students beyond this range.

Who are the authors of OPD² and where was it published?

The paper does not state the authors' names in the provided text. It is available on arXiv at https://arxiv.org/abs/2607.15161; the venue and publication date are not specified in the provided content.

How would a practitioner apply OPD² to their own post-training pipeline?

A practitioner needs access to both the reasoning-tuned teacher model and its original base (pre-tuning) model to compute the delta signal at each training step, then applies the centering and joint conditioning mechanisms described in the paper. OPD² is described as applicable to any reasoning domain without hand-crafted rewards, making it suitable for math, science, and code post-training scenarios.

Key terms

On-Policy Distillation (OPD)
A post-training technique where a student model generates its own outputs, which are then scored using a teacher model's token-level log-probabilities as a dense reward signal, replacing handcrafted reward models.
On-Policy Delta Distillation (OPD²)
The method introduced in this paper, which replaces the standard OPD reward with a delta signal—the difference between a reasoning-tuned teacher and its base model—to isolate and transfer only the reasoning-specific knowledge.
Delta signal (Δ)
The log-probability difference between a reasoning-tuned teacher model and its original pre-tuning base model, used as a reward that captures only the knowledge acquired during reasoning fine-tuning.
Teacher model
A high-performing, already fine-tuned model whose output distribution or delta signal is used to supervise the training of a smaller student model.
Student model
A smaller model being trained to mimic the teacher's reasoning capabilities through distillation.
Base model
The original pre-fine-tuning version of the teacher model, used in OPD² to compute the delta signal by contrasting it with the reasoning-tuned teacher.
Delta reward (R_Δ)
The token-level reward in OPD² computed as the log-probability difference between the reasoning-tuned teacher and its base model, used to guide student training.
Conditional advantage (AD2_t)
OPD²'s gating mechanism that disables gradient updates when the delta advantage is non-positive, preventing the student from being pushed away from the teacher's distribution.
Joint condition
A rule in OPD² that reverts to standard distillation signals when the delta signal conflicts with the teacher's output, ensuring the student remains grounded in the teacher's actual performance.
Centering
A normalization step applied to the delta signal in OPD² to remove systematic bias and stabilize training.
ExOPD
An existing advanced on-policy distillation baseline method used for comparison in the paper, which also incurs higher computational cost than standard OPD.
Thinking mode / Non-thinking mode
Two inference configurations for language models where thinking mode involves explicit chain-of-thought reasoning steps and non-thinking mode produces direct answers without intermediate reasoning traces.
Strong-to-weak distillation
A distillation setting where a larger, more capable teacher model transfers knowledge to a smaller, less capable student model.
Token-level reward
A training signal assigned at each individual token position in a generated sequence, as opposed to a single scalar reward given for the entire output.
Log-probability
The logarithm of the probability a language model assigns to a particular token, used in distillation to measure how likely the teacher or base model considers each token.
Top-k approximation
A computational technique used in OPD² where the expectation over the student policy is estimated using only the k=1024 highest-probability tokens to keep GPU memory usage bounded.

Read the original paper

Open the simplified reader on Paperglide

Browse all simplified papers