betaFeedback

WorksComputer Science

MetaOPD: Meta-Learned Token Weighting for On-Policy Distillation

Abstract

On-policy distillation (OPD) trains a student on its own generated responses using token-level teacher supervision. However, uniform weighting overlooks differences in token learning value, while existing weighting methods rely on predefined mappings from prediction signals to token weights. These mappings are not learned from the effectiveness of the resulting student updates, limiting their ability to adapt to evolving learning needs. In this paper, we propose MetaOPD, a bilevel optimization framework that jointly learns the student model and a lightweight token-weighting network. The inner objective updates the student through weighted OPD, while the outer objective optimizes the weighting network using validation loss on reference solutions after a virtual student update. Differentiating through this update connects weighting decisions to their effects on post-update performance, allowing the mapping from prediction signals to token weights to evolve alongside the student. Experiments on six mathematical reasoning and three out-of-domain datasets, covering two student scales and seven baselines, demonstrate the effectiveness of MetaOPD, with Avg@8/Pass@8 gains over OPD of 1.99/5.97 percentage points for the 0.6B student and 2.25/6.41 points for the 1.7B student.

Introduction

Off-policy distillation trains a student on teacher-generated sequences, which can lead to a distribution mismatch between training and inference ([17, 1]). To mitigate this issue, on-policy distillation (OPD) trains the student on its own generated trajectories, with a frozen teacher providing dense token-level supervision. OPD typically employs a mode-seeking reverse-KL objective that encourages the student to capture the teacher’s high-probability behaviors ([28, 4]). However, experiments by Li et al. [14] show that tokens differ substantially in their learning value, a distinction that standard OPD’s uniform weighting fails to capture.

Recent approaches address this limitation by allocating token-level weights through static proxy rules. For example, EOPD ([8]) uses predictive entropy, while TIP ([31]) leverages teacher–student disagreement. These methods provide useful signals for allocating supervision based on predictive uncertainty or differences between model predictions. However, their mappings from proxy signals to token weights are predefined rather than adapted to the student’s actual learning gains. As training progresses, the student’s capabilities and generated contexts evolve, and the learning benefit associated with the same proxy signal may change accordingly. Thus, even when token weights vary across inputs, a fixed weighting rule may not transfer effectively across training stages or task contexts. The central challenge is to learn a weighting rule that adapts supervision to the student’s evolving learning needs through feedback from the resulting updates.

To examine whether different token weighting strategies translate into actual learning gains, we conduct a motivating experiment. As illustrated in Figure 1(a), we compare assigning weights through predefined proxies with learning weights. Figure 1(b) reports validation loss reductions relative to Uniform OPD, with larger values indicating greater gains. EOPD yields only a modest improvement, while TIP and random weighting perform close to the uniform baseline. In contrast, learning weights through validation-loss feedback produces a substantially larger improvement. These results suggest that, in this setting, predefined rules do not fully exploit the potential benefits of token weighting, whereas the student’s update performance provides valuable feedback for weight allocation. The key is therefore not only to distinguish tokens using prediction signals, but also to adapt the signal-to-weight mapping based on the effectiveness of the resulting updates. This leads to our central question: How can we use the student’s post-update performance to learn a token weighting rule that translates prediction signals into effective supervision?

Comparison of token weighting strategies and loss reduction over Uniform OPD

Figure 1. Motivating experiment on token weighting strategies. (a) Static proxy methods assign token weights using predefined signals, while MetaOPD learns weights through validation-loss feedback. (b) Validation loss reductions relative to Uniform OPD for MetaOPD, EOPD Jin et al., [8], TIP Xu et al., [31], and random token weighting. MetaOPD achieves the largest reduction, supporting the benefit of learning token weights aligned with the validation objective.

In this paper, we take a step forward by proposing MetaOPD, an on-policy distillation framework that jointly optimizes the student model and the token-weighting rule. Specifically, we introduce a lightweight token-weighting network that maps prediction signals to token weights. The student and the weighting network perform two coupled learning tasks: the student improves through weighted teacher supervision, while the weighting network learns to allocate supervision based on the effectiveness of student updates. To achieve this, we formulate their joint learning as a bilevel optimization problem. At the inner level, we update the student on its own generated responses using an OPD loss weighted by the network’s outputs. At the outer level, we evaluate the student’s loss on validation reference solutions after a virtual update and use this loss to optimize the weighting network. Differentiating through the virtual update allows the student’s post-update performance to guide token weight allocation, enabling the network to learn which allocations lead to greater subsequent improvements. Alternating between the two levels allows the student and the weighting rule to evolve together, replacing predefined proxy weighting with adaptive supervision allocation driven by update outcomes. Our main contributions are summarized as follows:

  • We identify a gap between static proxy weighting and actual learning gains in OPD, and empirically motivate learning token weights from post-update performance feedback.

  • We propose MetaOPD, a bilevel framework that jointly optimizes the student through weighted OPD and a lightweight token-weighting network through update validation loss.

  • We conduct extensive experiments across six reasoning and three out-of-domain datasets on two student scales against seven baselines, demonstrating the effectiveness of our MetaOPD.

Related Work

On-policy distillation (OPD). On-policy distillation (OPD) trains a student to match teacher predictions on student-generated trajectories [1]. Compared with distillation on fixed data or teacher-generated sequences [6, 9], it reduces training–inference mismatch by providing teacher feedback at prefixes the student actually visits. One line of work improves OPD through the design of distillation objectives and optimization strategies [4, 10, 34, 36]. Another focuses on selecting training prompts, improving rollout trajectories, and refining teacher supervision (Li et al., 2026; Xu et al., 2026a; Qu et al., 2026). Since tokens differ in learning value, assigning different weights to tokens within the OPD loss offers another way to improve OPD.

Static proxy weighting OPD. Static proxy weighting OPD methods start from the observation that dense teacher feedback is not equally useful at every token. Existing approaches use signals such as entropy and teacher–student disagreement to identify informative tokens and emphasize their supervision through token selection, loss adjustment, or reweighting [8, 11, 31, 26, 15]. Another line accounts for changes in supervision reliability along a trajectory, using accumulated prefix discrepancy or token position to guide weighting [29, 18]. However, these methods use predefined mappings from proxy signals to supervision allocation, without learning from post-update feedback how those mappings should adapt to the student’s evolving learning needs.

Bilevel Optimization. Bilevel optimization provides a framework for learning example or token weights using feedback on the updated model. Early meta-reweighting methods used this structure to learn example importance under class imbalance and label noise [23, 25]. Recent studies have extended this principle to language-model training, using outer-loop feedback to replace fixed weighting rules with update-aware supervision [7, 20, 35, 37, 13]. Across these settings, a common view emerges: the value of a training signal is not fixed, but depends on the model update it induces and the reference objective used to assess that update. MetaOPD applies this principle to token weighting within the OPD loss on student-generated trajectories.

Methodology

This section first introduces the token-weighted on-policy distillation objective (§3.1), then presents the bilevel optimization procedure of MetaOPD (§3.2), and finally explains the role of individual tokens in the weighting-network update and describes the gradient computation (§3.3).

Token-Weighted On-Policy Distillation

Let Dtrain\mathcal{D}_{\mathrm{train}} denote the training distribution over question–solution pairs. We write DtrainX\mathcal{D}^{X}_{\mathrm{train}} for the corresponding distribution of questions. The student πθ\pi_{\theta} has trainable parameters θ\theta, and πT\pi_{T} is the frozen teacher. At the start of each rollout round, we set θold←θ\theta_{\mathrm{old}} \leftarrow\theta. For xi∼DtrainXx_i \sim\mathcal{D}^{X}_{\mathrm{train}}, we sample a response from πθold\pi_{\theta_{\mathrm{old}}}:

yi=(ai,1,…,ai,Ti)∼πθold(⋅∣xi),si,t=(xi,ai,<t),(1)y_i = (a_{i,1}, \ldots, a_{i,T_i}) \sim\pi_{\theta_{\mathrm{old}}}(\cdot\mid x_i), \qquad s_{i,t} = (x_i, a_{i,<t}), \tag*{(1)}

where si,ts_{i,t} is the visited prefix and ai,ta_{i,t} the sampled token. The mask mi,t∈{0,1}m_{i,t} \in\{0,1\} marks valid completion positions, including an observed end-of-sequence token.

For each sampled token, write ui,tθ=log⁡πθ(ai,t∣si,t)u^{\theta}_{i,t} = \log\pi_{\theta}(a_{i,t} \mid s_{i,t}), with ui,toldu^{\mathrm{old}}_{i,t} denoting the rollout-time log-probability and ui,tTu^{T}_{i,t} the teacher log-probability after aligning token identities. All three use full-vocabulary normalization; Appendix A.1 specifies the teacher-view mapping. The detached teacher-minus-rollout log-probability difference and the current-to-old probability ratio are

Ai,t=sg⁡[ui,tT−ui,told],ri,t(θ)=exp⁡(ui,tθ−ui,told),(2)A_{i,t} = \operatorname{sg}[u^{T}_{i,t} - u^{\mathrm{old}}_{i,t}], \qquad r_{i,t}(\theta) = \exp(u^{\theta}_{i,t} - u^{\mathrm{old}}_{i,t}), \tag*{(2)}

where sg⁡\operatorname{sg} preserves its argument’s value but blocks gradients through it. Following the sampled reverse-KL update used in Relay-OPD [30], let ri,tclip=clip⁡(ri,t,1−ϵl,1+ϵh)r^{\mathrm{clip}}_{i,t} = \operatorname{clip}(r_{i,t}, 1-\epsilon_l, 1+\epsilon_h), with clipping margins ϵl,ϵh\epsilon_l,\epsilon_h, and define the per-token OPD term as

ℓi,tOPD(θ)=max⁡(−Ai,tri,t(θ),−Ai,tri,tclip).(3)\ell^{\mathrm{OPD}}_{i,t}(\theta) = \max\left(-A_{i,t}r_{i,t}(\theta), -A_{i,t}r^{\mathrm{clip}}_{i,t}\right). \tag*{(3)}

At θ=θold\theta= \theta_{\mathrm{old}}, the unclipped form gives an unbiased single-action estimate of the student-to-teacher reverse-KL gradient at the fixed visited prefix, using the induced teacher distribution defined in Appendix A.1. Away from that policy, the cached log-probability difference and clipping define a local surrogate.

A shared weighting network qηq_{\eta}, with trainable parameters η\eta, maps each token’s descriptor fi,t∈R74f_{i,t} \in\mathbb{R}^{74} to a scalar score. The descriptor contains student and teacher log-probabilities of the sampled token, entropy, prediction agreement, position, and ranked top-32 log-probability profiles (Table 4). These profiles are inputs only and do not restrict the OPD loss vocabulary. The feature δi,t=ui,tθ−ui,told\delta_{i,t}=u_{i,t}^{\theta}-u_{i,t}^{\mathrm{old}} uses current-student log-probabilities, whereas Ai,tA_{i,t} uses cached rollout-policy log-probabilities. All numeric inputs are detached; descriptors are constructed without reference solutions.

Feature groupFeaturesDim.Detached
Sampled actionCurrent-student log-probability, teacher log-probability, and teacher-minus-current log-probability gap3Yes
UncertaintyVocabulary-normalized student and teacher entropy2Yes
Top-1 behaviorStudent and teacher top-1 probability; student–teacher top-1 identity match3Yes
Position and overlapPosition normalized by the common completion-window width; student–teacher top-32 set overlap2Yes
Ranked probabilitiesStudent top-32 and teacher top-32 full-vocabulary-normalized log-probability values64Yes
TotalTen scalar statistics plus two ranked top-32 vectors74Yes

Table 4. Composition of the 74-dimensional weighting network descriptor, with kf=32k_f=32.

We convert the network scores into positive weights with unit mean within each response. For ni=∑tmi,t>0n_i=\sum_t m_{i,t}>0, define

zi,t=qη(sg⁡[fi,t]),zˉi=1ni∑smi,szi,s,z_{i,t}=q_{\eta}(\operatorname{sg}[f_{i,t}]),\qquad\bar{z}_i=\frac{1}{n_i}\sum_s m_{i,s}z_{i,s},
w~ni,t=1+ρtanh⁡(zi,t−zˉi),wni,t=mi,tw~ni,tni∑smi,sw~ni,s.(4)\widetilde{w}_{n_i,t}=1+\rho\tanh(z_{i,t}-\bar{z}_i),\qquad w_{n_i,t}=m_{i,t}\widetilde{w}_{n_i,t}\frac{n_i}{\sum_s m_{i,s}\widetilde{w}_{n_i,s}}. \tag*{(4)}

Centering expresses each token’s score relative to the mean over valid tokens in the same response. Normalization then keeps the mean weight over these tokens at one, allowing the network to adjust their relative contributions within the OPD loss. Both operations are differentiated with respect to η\eta. We use residual scale ρ=0.25\rho=0.25 and a zero-initialized output head, so all valid weights start at one. Completely masked responses receive zero weights. The architecture, weight bounds, and numerical safeguards appear in Appendices A.2 and B.

For an optimizer minibatch BB, the weighted OPD objective is

Lin(θ,η;B)=1NB∑i,tmi,twη,i,tℓi,tOPD(θ),NB=∑i,tmi,t.(5)\mathcal{L}_{\mathrm{in}}(\theta,\eta;B)=\frac{1}{N_B}\sum_{i,t}m_{i,t}w_{\eta,i,t}\ell_{i,t}^{\mathrm{OPD}}(\theta),\qquad N_B=\sum_{i,t}m_{i,t}. \tag*{(5)}

The numerator and valid-token count are reduced over the complete optimizer minibatch. Setting all valid weights to one recovers uniform sampled OPD.

Bilevel Optimization of MetaOPD

Figure 2 illustrates the bilevel procedure: the student learns from weighted OPD, while the weighting network learns from the student’s validation loss after a virtual student update. Here validation loss is the teacher-forced token loss on training reference solutions, used as the outer objective defined below. Following gradient-based meta-reweighting and Meta-Weight-Net (Ren et al., [23]; Shu et al., [25]), each optimizer minibatch involves a virtual student update, a weighting-network update, and an actual student update.

Figure 2. Overview of MetaOPD. (1) Standard OPD uses uniform token weights, while (2) static proxy weighting OPD assigns token weights through predefined rules based on proxy signals. (3) MetaOPD uses two branches: (a) the weighting network learns from the student’s validation loss after a virtual weighted OPD update; (b) the updated network recomputes weights for the actual student update. The schematic sums omit valid-token normalization, and weights in the actual-update branch refer to those recomputed after the weighting-network update.

Virtual student update. Teacher statistics are cached with the rollout. At the start of each optimizer minibatch, we compute current-student statistics and detach the descriptors used to obtain the token weights. Let SS collect the incoming student AdamW moments, step counters, and parameter-group hyperparameters. Write gin(η):=∇θLin(θ,η;B)g_{\mathrm{in}}(\eta) := \nabla_\theta L_{\mathrm{in}}(\theta,\eta;B) for the student gradient, whose dependence on η\eta is through the token weights. One virtual step defines the virtual student parameters

θ′(η)=AAdamW(θ,C(gin(η));S).(6)\theta'(\eta)=\mathcal{A}_{\mathrm{AdamW}}\left(\theta,\mathcal{C}\left(g_{\mathrm{in}}(\eta)\right);S\right). \tag*{(6)}

The virtual and actual student steps use the same AdamW update rule [19]. Here C\mathcal{C} applies full-model global-norm clipping, and AAdamW\mathcal{A}_{\mathrm{AdamW}} reads the current student optimizer state and scheduled learning rates. Differentiation with respect to η\eta holds θ\theta, SS, the rollout, and detached descriptors fixed. The dependence through the token weights and student gradient is retained, including the new virtual moments, clipping coefficient, and AdamW parameter map. This operation changes neither the real parameters nor the stored moments, step counters, or scheduler. Appendix § 9.§ 3 expands the two maps.

Weighting-network update. Draw a batch Bref={(xj⋆,yj⋆)}B^{\mathrm{ref}}=\{(x_j^\star,y_j^\star)\} of prompts and reference solutions from a separately shuffled stream over DtrainD_{\mathrm{train}}; overlap with the rollout stream is allowed. At θ′(η)\theta'(\eta), the student predicts each solution token given the prompt and preceding solution tokens. We compute validation loss under teacher forcing, averaging over valid target tokens:

Lout(θ′;Bref)=−1Nref∑j,tmj,treflog⁡πθ′(yj,t⋆∣xj⋆,yj,<t⋆),Nref=∑j,tmj,tref.(7)L_{\mathrm{out}}\left(\theta';B^{\mathrm{ref}}\right)=-\frac{1}{N_{\mathrm{ref}}}\sum_{j,t}m_{j,t}^{\mathrm{ref}}\log\pi_{\theta'}\left(y_{j,t}^\star\mid x_j^\star,y_{j,<t}^\star\right),\qquad N_{\mathrm{ref}}=\sum_{j,t}m_{j,t}^{\mathrm{ref}}. \tag*{(7)}

The mask mj,trefm_{j,t}^{\mathrm{ref}} selects valid reference-solution tokens; NrefN_{\mathrm{ref}} is counted separately from NBN_B. To regularize departures from uniform weighting, define

Rw(η;B)=1NB∑i,tmi,t(wη,i,t−1)2.(8)R_w(\eta;B)=\frac{1}{N_B}\sum_{i,t}m_{i,t}(w_{\eta,i,t}-1)^2. \tag*{(8)}

At global student step rr, let λw(r)\lambda_w^{(r)} be the weight-regularization coefficient, fixed for this step. We optimize the one-step meta-objective

Jmeta(η)=Lout(θ′(η);Bref)+λw(r)Rw(η;B).(9)J_{\mathrm{meta}}(\eta)=L_{\mathrm{out}}\left(\theta'(\eta);B^{\mathrm{ref}}\right)+\lambda_w^{(r)}R_w(\eta;B). \tag*{(9)}

Applying the chain rule to the meta-objective gives the meta-gradient with respect to η\eta:

∇ηJmeta=(∂θ′(η)∂η)T∇θ′Lout(θ′(η);Bref)+λw(r)∇ηRw(η;B).(10)\nabla_\eta J_{\mathrm{meta}}=\left(\frac{\partial\theta'(\eta)}{\partial\eta}\right)^{\mathsf{T}}\nabla_{\theta'}L_{\mathrm{out}}\left(\theta'(\eta);B^{\mathrm{ref}}\right)+\lambda_w^{(r)}\nabla_\eta R_w(\eta;B). \tag*{(10)}

The first term propagates the validation-loss gradient through the virtual update; the second comes from the weight regularizer. Let MM denote the weighting network’s AdamW state and AdamWStep an update returning parameters and state. One update per student minibatch gives

(η+,M+)=AdamWStep⁡η(η,∇ηJmeta;M).(11)(\eta^+,M^+)=\operatorname{AdamWStep}_\eta\left(\eta,\nabla_\eta J_{\mathrm{meta}};M\right). \tag*{(11)}

§ 3.3 expands this gradient into token contributions and describes its computation. The weighting-network learning rate and λw(r)\lambda_w^{(r)} follow the student learning-rate schedule in Appendix § 10.§ 4.

Actual student update. We discard the virtual parameters and recompute token weights with qη+q_{\eta^+} on the same detached descriptors. The actual student gradient uses these weights as constants:

greal=1NB∑i,tmi,tsg⁡[wη+,i,t]∇θℓi,tOPD(θ).(12)g_{\mathrm{real}}=\frac{1}{N_B}\sum_{i,t}m_{i,t}\operatorname{sg}\left[w_{\eta^+,i,t}\right]\nabla_\theta\ell_{i,t}^{\mathrm{OPD}}(\theta). \tag*{(12)}
(θ+,S+)=AdamWStep⁡θ(θ,C(greal);S).(\theta^+,S^+)=\operatorname{AdamWStep}_\theta\left(\theta,\mathcal{C}(g_{\mathrm{real}});S\right).

This step starts from the original (θ,S)(\theta,S), not from θ′\theta', and advances the real optimizer state. Its objective contains only weighted OPD supervision on student-generated responses; validation loss trains the weighting network through the meta-objective.

Algorithm 1 One MetaOPD rollout round

Require: Student parameters and AdamW state (θ,S)(\theta, S); weighting parameters and meta-AdamW state (η,M)(\eta, M); frozen teacher πT\pi_T

Require: Separately shuffled reference-solution stream G\mathcal{G}; minibatch count KK; global student-step index rr

Ensure: Updated (θ,S)(\theta, S), (η,M)(\eta, M), and rr

  1. Set θold←θ\theta_{\mathrm{old}} \leftarrow\theta; sample prompts from DtrainXD_{\mathrm{train}}^X and generate student responses.

  2. Query the teacher at visited prefixes; cache teacher statistics, old-policy log-probabilities, and masks.

  3. Partition the rollout into KK optimizer minibatches.

  4. for each minibatch BB do

  5. Draw Bref←Next⁡(G)B^{\mathrm{ref}} \leftarrow\operatorname{Next}(\mathcal{G}); compute and detach current-student descriptors.

  6. Compute token weights and LinL_{\mathrm{in}} using (4) and (5).

  7. Virtual update: construct θ′(η)\theta'(\eta) using (6), leaving (θ,S)(\theta, S) unchanged.

  8. Meta-update: compute ∇ηJmeta\nabla_\eta J_{\mathrm{meta}} using (10); obtain (η+,M+)(\eta^+, M^+) using (11).

  9. Discard θ′\theta'; recompute weights with qη+q_{\eta^+} on the same descriptors and detach them.

  10. Student update: obtain (θ+,S+)(\theta^+, S^+) from the original (θ,S)(\theta, S) using (12).

  11. Set (θ,S)←(θ+,S+)(\theta, S) \leftarrow(\theta^+, S^+), (η,M)←(η+,M+)(\eta, M) \leftarrow(\eta^+, M^+), and r←r+1r \leftarrow r + 1.

  12. end for

Token-Level Interpretation and Gradient Computation

We examine how a small change in a token’s weight within the OPD loss affects validation loss after the virtual student update. Throughout, ∇ηLout\nabla_\eta L_{\mathrm{out}} denotes the gradient with respect to η\eta obtained by differentiating Lout(θ′(η);Bref)L_{\mathrm{out}}(\theta'(\eta); B^{\mathrm{ref}}) through the virtual update, with the inputs fixed as in §3.2. Define the token gradient gi,t=∇θℓi,tOPD(θ)\mathbf{g}_{i,t} = \nabla_\theta\ell_{i,t}^{\mathrm{OPD}}(\theta). The detached descriptors make weights constant with respect to θ\theta, while preserving their dependence on η\eta, so

gin(η)=1NB∑i,tmi,twη,i,tgi,t.(13)\mathbf{g}_{\mathrm{in}}(\eta) = \frac{1}{N_B} \sum_{i,t} m_{i,t}w_{\eta,i,t}\mathbf{g}_{i,t}. \tag*{(13)}

Let gout=∇θ′Lout(θ′;Bref)\mathbf{g}_{\mathrm{out}} = \nabla_{\theta'}L_{\mathrm{out}}(\theta'; B^{\mathrm{ref}}), evaluated at θ′=θ′(η)\theta' = \theta'(\eta). Write JCJ_C for the clipping Jacobian at gin(η)\mathbf{g}_{\mathrm{in}}(\eta), and JAJ_A for the AdamW parameter-map Jacobian with respect to its gradient input, evaluated at C(gin(η))C(\mathbf{g}_{\mathrm{in}}(\eta)). Propagating the outer gradient through these maps defines

d=−JCTJATgout.(14)\mathbf{d} = -J_C^{\mathsf{T}}J_A^{\mathsf{T}}\mathbf{g}_{\mathrm{out}}. \tag*{(14)}

This derivative-based vector, rather than the actual student parameter change, determines each token’s contribution to the weighting-network gradient:

ci,t=⟨d,gi,t⟩,∇ηLout=−1NB∑i,tmi,tci,t∇ηwη,i,t.(15)c_{i,t} = \langle\mathbf{d}, \mathbf{g}_{i,t}\rangle,\qquad\nabla_\eta L_{\mathrm{out}} = -\frac{1}{N_B}\sum_{i,t}m_{i,t}c_{i,t}\nabla_\eta w_{\eta,i,t}. \tag*{(15)}

For a valid token, ∂Lout/∂wi,t=−ci,t/NB\partial L_{\mathrm{out}}/\partial w_{i,t} = -c_{i,t}/N_B when the other normalized-weight coordinates are held fixed. Thus, ci,t>0c_{i,t} > 0 means that a small increase in this weight alone locally reduces validation loss. Learning rates are already included in JAJ_A; adding λν(r)∇ηRw\lambda_\nu^{(r)}\nabla_\eta R_w to (15) gives the complete meta-gradient in (10). Appendix A.4 provides the intermediate Jacobian and chain-rule steps.

Response normalization couples the weight coordinates. Suppressing η\eta for clarity, let wˉi=ni−1∑tmi,tw~i,t\bar{w}_i = n_i^{-1}\sum_t m_{i,t}\tilde{w}_{i,t}. Differentiating wi,t=w~i,t/wˉiw_{i,t} = \tilde{w}_{i,t}/\bar{w}_i on valid positions gives

∂Lout∂w~i,j=−ci,j−cˉiwNBwˉi,cˉiw=1ni∑tmi,twi,tci,t.(16)\frac{\partial L_{\mathrm{out}}}{\partial\tilde{w}_{i,j}} = -\frac{c_{i,j}-\bar{c}_i^w}{N_B\bar{w}_i},\qquad\bar{c}_i^w = \frac{1}{n_i}\sum_t m_{i,t}w_{i,t}c_{i,t}. \tag*{(16)}

The gradient with respect to a raw weight therefore depends on ci,j−cˉiwc_{i,j}-\bar{c}_i^w, the difference from the response’s weighted mean. Score centering, the shared network, and regularization further affect the update, so ci,j>0c_{i,j} > 0 need not lead to an increase in the learned weight. This derivative describes a local effect; it does not guarantee finite-step or long-term improvement. Appendix § 9.§ 2 expands the normalization derivative.

Reverse-mode vector–Jacobian products (VJPs) first compute goutg_{\mathrm{out}}, then propagate it through AdamW and clipping to obtain dd. A Jacobian–vector product (JVP) of the vector of per-token OPD terms at the current θ\theta, in direction dd, gives all ci,tc_{i,t} values without materializing the token-by-parameter Jacobian. Recomputing weights with their η\eta-dependence intact, we differentiate the following objective while treating ci,tc_{i,t} as constants:

L^meta(r)(η;B,c)=−1NB∑i,tmi,twη,i,tsg⁡[ci,t]+λw(r)Rw(η;B).(17)\widehat{\mathcal{L}}_{\mathrm{meta}}^{(r)}(\eta; B, c) = -\frac{1}{N_B}\sum_{i,t}m_{i,t}w_{\eta,i,t}\operatorname{sg}[c_{i,t}] + \lambda_w^{(r)}\mathcal{R}_w(\eta; B). \tag*{(17)}

Holding cic_i fixed retains the Jacobian-product values required by the chain rule without differentiating them again. The resulting η\eta-gradient equals the complete gradient in Equation (10) at the iterate where these values were computed; this is a first-derivative equality at that point, not a global identity between objectives. Appendix § 9.§ 4 verifies the equality.

Experiments

Experimental Setup

Datasets. We evaluate on six mathematical reasoning benchmarks, i.e., MATH500 (Hendrycks et al., [5]; Lightman et al., [16]), AMC23 (Yang et al., [32]), Minerva Math (Lewkowycz et al., 2022), HMMT 2025 (Balunović et al., [2]), AIME24 (Zhang & Math-AI, [38]), and AIME25 (Zhang & Math-AI, [39]), and assess out-of-domain on three additional datasets, i.e., GPQA-Diamond (Rein et al., [22]), MMLU Pro (Wang et al., [27]), and AlpacaEval 2.0 (Dubois et al., [3]).

Baseline methods. We compare our MetaOPD with seven baselines spanning different learning strategies: KD (Hinton et al., [6]), GRPO (Shao et al., [24]), OPD (Agarwal et al., [1]), EOPD (Jin et al., [8]), FiRe-OPD (Li et al., [15]), REOPOLD (Ko et al., [11]), and TIP (Xu et al., [31]).

Implementation details. We use Qwen3 (Yang et al., [33]) models, with Qwen3-8B as the frozen teacher and Qwen3-0.6B-Base and Qwen3-1.7B-Base as students. For all methods, both student models are trained for three epochs on MATH (Hendrycks et al., [5]). MetaOPD samples rollout

prompts and reference solutions from independently shuffled versions of the training split, allowing overlap between the two streams. Evaluation examples are excluded from both student and weighting network updates. All methods are evaluated using the same decoding settings and a Math-Verify-based answer verifier. We generate eight responses per problem and report Avg@8, the average accuracy across these responses, and Pass@8, the proportion of problems with at least one correct response. We aggregate each metric using an unweighted average across benchmarks. Full training and evaluation details are provided in Appendix B.

Main Results

Mathematical-reasoning performance. Table 1 reports the performance of MetaOPD and seven baselines on six mathematical-reasoning benchmarks, using Qwen3-0.6B-Base and Qwen3-1.7B-Base as students. MetaOPD achieves the highest six-benchmark averages for both Avg@8 and Pass@8 at both student scales, including comparisons with adaptive OPD baselines. With the 1.7B student, MetaOPD improves Avg@8/Pass@8 over standard OPD by 2.25/6.41 percentage points and over TIP, which attains the highest aggregate scores among the adaptive OPD baselines, by 1.13/1.56 points. Similar improvements are observed with the 0.6B student, where MetaOPD exceeds OPD by 1.99/5.97 points in Avg@8/Pass@8. The aggregate gains are also broadly reflected at the benchmark level: relative to OPD, MetaOPD improves Pass@8 on all twelve benchmark–scale pairs and Avg@8 on eleven of twelve. The only Avg@8 exception occurs on Minerva Math with the 1.7B student, where MetaOPD is 0.09 points below OPD. On AIME25 with the 1.7B student, MetaOPD obtains the highest Avg@8 while TIP achieves a higher Pass@8, indicating that the two metrics can favor different methods on individual benchmarks.

MethodAvg@8Pass@8
MATH500AMC23MinervaHMMTAIME24AIME25Avg.MATH500AMC23MinervaHMMTAIME24AIME25Avg.
TEACHER Qwen3-8B ⇝ STUDENT Qwen3-0.6B-Base
KD47.9023.7514.250.422.500.8314.9469.2050.0031.253.336.676.6727.85
GRPO53.2028.4416.310.834.171.2517.3775.0057.5032.356.676.6710.0031.36
OPD50.2825.0015.950.422.921.2515.9773.0055.0031.623.3310.006.6729.94
EOPD50.4027.5016.081.673.751.2516.7875.6052.5034.196.6713.336.6731.49
FiRe-OPD50.9829.3816.270.832.920.8316.8773.6062.5031.993.3310.006.6731.35
REOPOLD50.7326.5615.351.673.330.0016.2774.4057.5031.253.3313.330.0029.97
TIP51.6829.6916.451.252.081.2517.0774.6062.5031.996.6710.0010.0032.63
MetaOPD52.8830.3116.682.083.752.0817.9678.4062.5034.5610.0016.6713.3335.91
Abs. ΔOPD\Delta_{\mathrm{OPD}}+2.60+5.31+0.73+1.66+0.83+0.83+1.99+5.40+7.50+2.94+6.67+6.67+6.66+5.97
Rel. ΔOPD\Delta_{\mathrm{OPD}}+5.17%+21.24%+4.58%+395.24%+28.42%+66.40%+12.46%+7.40%+13.64%+9.30%+200.30%+66.70%+99.85%+19.94%
TEACHER Qwen3-8B ⇝ STUDENT Qwen3-1.7B-Base
KD62.9338.1327.021.2510.003.7523.8584.8072.5043.383.3320.0016.6740.11
GRPO66.8537.8128.261.678.755.4224.7983.2072.5048.163.3323.3316.6741.20
OPD67.2338.7527.801.678.336.6725.0784.2067.5047.436.6720.0016.6740.41
EOPD67.6040.6327.481.2510.837.0825.8183.8072.5044.126.6730.0020.0042.85
FiRe-OPD68.5540.3128.452.087.927.0825.7385.8072.5043.386.6716.6723.3341.39
REOPOLD68.8536.2528.771.6710.836.6725.5186.4065.0044.856.6723.3320.0041.04
TIP68.7541.2527.531.6711.256.6726.1986.8072.5045.5910.0030.0026.6745.26
MetaOPD69.9543.7527.712.0812.088.3327.3288.2077.5048.5310.0033.3323.3346.82
Abs. ΔOPD\Delta_{\mathrm{OPD}}+2.72+5.00-0.09+0.41+3.75+1.66+2.25+4.00+10.00+1.10+3.33+13.33+6.66+6.41
Rel. ΔOPD\Delta_{\mathrm{OPD}}+4.05%+12.90%-0.32%+24.55%+45.02%+24.89%+8.97%+4.75%+14.81%+2.32%+49.93%+66.65%+39.95%+15.86%

Table 1. Mathematical-reasoning results (%) with a Qwen3-8B teacher. Avg. is the unweighted average over six benchmarks; benchmark and Avg. scores are rounded separately. Abs. ΔOPD\Delta_{\mathrm{OPD}} reports MetaOPD–OPD in percentage points. Rel. ΔOPD\Delta_{\mathrm{OPD}} reports the same difference as a percentage of the OPD score. Delta values are calculated from the displayed scores. Bold marks the best result in each student setting, including ties.

Out-of-Domain Generalization. We further evaluate the MATH-trained Qwen3-1.7B-Base on GPQA-Diamond, MMLU Pro, and AlpacaEval 2.0, without additional training. Table 2 reports the complete results, with the evaluation protocol provided in Appendix E. MetaOPD achieves the highest scores on both GPQA-Diamond metrics, reaching 27.27 Avg@8 and 78.28 Pass@8, compared with 26.20 and 77.78 for OPD. On MMLU Pro, MetaOPD attains a Pass@1 of 42.30, exceeding OPD by 0.73 percentage points and yielding the highest score among the compared methods. On AlpacaEval 2.0, the improvement over OPD is more limited: MetaOPD obtains 15.98 LC-WR and 18.08 WR, compared with 15.96 and 17.97 for OPD. Overall, these results indicate that the gains from MetaOPD are not confined to the MATH evaluation domain and can transfer to unseen reasoning tasks.

BenchmarkMetricBase ModelKDGRPOOPDEOPDFiRe-OPDREOPOLDTIPMetaOPD
GPQA-DiamondAvg@815.0921.0919.2626.2025.4425.8226.5227.1527.27
Pass@869.1975.2577.2777.7876.2676.7776.2674.7578.28
MMLU-ProPass@17.2838.1341.8641.5740.9341.5139.5241.9042.30
AlpacaEval 2.0LC-WR1.2114.7213.1215.9615.1915.1416.0616.7015.98
WR2.0316.0914.6317.9717.1717.1317.3719.1418.08
All metricsAvg.18.9633.0633.2335.9035.0035.2735.1535.9336.38

Table 2. Out-of-domain results for Qwen3-1.7B-Base after MATH training, with Qwen3-8B as the teacher for distillation methods. Base Model is the student before training. Scores are percentages; higher is better. GPQA-Diamond reports Avg@8/Pass@8, MMLU-Pro reports Pass@1, and AlpacaEval 2.0 reports length-controlled win rate (LC-WR) and win rate (WR). Avg. is the unweighted average of these five metric scores. Bold and underline mark the best and second-best results, respectively; the MetaOPD column is shaded.

Ablations and Controls

How reference solutions are used. We further examine whether the gains of MetaOPD can be attributed to direct supervision from the reference solutions used in the meta-objective. We compare against SFT on reference solutions and variants that add the SFT loss directly to the student objective. The reference coefficient is determined by matching the initial gradient norms of the OPD and SFT losses using training data only, without benchmark-based tuning (Appendix § 10.6). SFT alone underperforms both OPD and MetaOPD in aggregate performance (Table 9). Moreover, adding the SFT loss to uniform OPD increases Pass@8 but consistently reduces Avg@8 across all three tested coefficients (Figure 3(a)), whereas MetaOPD improves both metrics. Adding the same SFT loss to MetaOPD further decreases Avg@8 and Pass@8 by 5.87 and 6.72 points, respectively (Figure 3(b)). These controls show that the tested forms of direct supervision do not reproduce MetaOPD’s gains in both metrics, supporting the use of validation loss after the student update to optimize the token-weighting rule.

Effects of adding SFT to OPD and MetaOPD

Figure 3. Effects of adding SFT to OPD and MetaOPD. Six-benchmark mean Avg@8/Pass@8 changes (percentage points) for Qwen3-1.7B-Base. (a) Adding the SFT loss to OPD at half, equal, and double the gradient-matched reference coefficient γ⋆≈2.16\gamma^\star\approx2.16. (b) Adding the SFT loss at γ⋆\gamma^\star to OPD or MetaOPD. Changes are relative to each method without the added SFT loss.

Combining token descriptors. We examine the contribution of different token descriptors by restricting the weighting network to individual feature groups while keeping its architecture and the meta-training protocol unchanged. The full descriptor achieves the highest aggregate performance, outperforming the strongest single-group variants by 0.57 points in Avg@8 and 3.20 points in Pass@8 (Table 3). Among the restricted variants, teacher entropy yields the highest Avg@8, whereas the teacher–student log-probability gap yields the highest Pass@8. These results indicate that no individual descriptor fully accounts for the performance of MetaOPD and that combining complementary token-level signals provides a more effective basis for learning the weighting rule. Per-benchmark results and the corresponding input masks are provided in Table 8 and Appendix § 10.6.

VariantAvg@8Pass@8
Uniform OPD25.0740.41
Position only25.2139.32
Teacher entropy only26.7543.25
Log-probability gap only25.4243.62
Top-32 profiles only25.7042.24
MetaOPD (all features)27.3246.82

Table 3. Feature-ablation Avg. scores (%).

Conclusion

On-policy distillation provides dense teacher feedback on student rollouts, but local uncertainty or disagreement alone does not determine whether assigning a token a higher weight within the OPD loss will improve student learning. We presented MetaOPD, a one-step bilevel framework that learns to allocate token-level teacher supervision using the student’s validation loss after a virtual distillation update. By differentiating this loss on reference solutions through the virtual update, MetaOPD trains a shared weighting network whose token weights guide the student’s actual OPD update on its own rollouts. Across six mathematical-reasoning benchmarks and two Qwen3 student scales, MetaOPD achieves the highest six-benchmark averages for Avg@8 and Pass@8 among the compared methods. Ablations and one-step update comparisons support learning token weights within the OPD loss using feedback on the updated student. Extending these findings to broader models and tasks, relating local update quality to long-horizon learning, and reducing meta-update cost remain open directions.

AI USE STATEMENT

OpenAI Codex assisted with research methodology and experimental design, implementation and mathematical checks, manuscript revision and translation, and analysis and presentation of author-supplied results. It did not generate experimental observations or training data. The authors are responsible for verifying the experiments, reviewing all assisted work, and approving the manuscript and artifacts.

ETHICS STATEMENT

This work uses existing models and datasets to study on-policy distillation. Distilled students may inherit biases, errors, or harmful behaviors from their teachers; improved benchmark performance does not establish safety. Downstream use should include appropriate safety evaluation and comply with the licenses and terms of use of the underlying models and datasets.

REPRODUCIBILITY STATEMENT

Section 4 specifies the setup and metrics; Appendix B details configurations and costs, and Appendix A.4 derives the meta-gradient. Appendices C–D give diagnostic protocols, aggregation, and confidence intervals; Appendix E reports out-of-domain evaluation. Code and configurations will accompany the release.

Mathematical Details

Sampled-OPD Gradient and Clipping

We first expand the log-probabilities used in Equation (2). Let μ\mu map student action identities to the teacher view, and let T(s)\mathcal{T}(s) convert a visited student prefix to its teacher context. The conversion preserves prompt tokens and follows the completion-side EOS convention in Appendix § 10.§ 5; stored student actions remain unchanged. Then

ui,told=log⁡πθold(ai,t∣si,t),ui,tθ=log⁡πθ(ai,t∣si,t),ui,tT=log⁡πT(μ(ai,t)∣T(si,t)).(18)\begin{aligned} u^{\mathrm{old}}_{i,t} &= \log\pi_{\theta_{\mathrm{old}}}(a_{i,t}\mid s_{i,t}),\\ u^\theta_{i,t} &= \log\pi_\theta(a_{i,t}\mid s_{i,t}),\\ u^{\mathrm{T}}_{i,t} &= \log\pi_{\mathrm{T}}(\mu(a_{i,t})\mid\mathcal{T}(s_{i,t})). \tag*{(18)} \end{aligned}

Each log-probability is the selected logit minus the logsumexp over the model’s complete vocabulary.

Now fix a visited prefix ss, and let VS\mathcal{V}_{\mathrm{S}} be the student action vocabulary. Because μ\mu need not be bijective, the pulled-back teacher scores do not necessarily sum to one over VS\mathcal{V}_{\mathrm{S}}. Define their normalizer and the induced teacher-score distribution as

Zμ(s)=∑a∈VSπT(μ(a)∣T(s)),πTμ(a∣s)=πT(μ(a)∣T(s))Zμ(s).Z_\mu(s)=\sum_{a\in\mathcal{V}_{\mathrm{S}}}\pi_{\mathrm{T}}(\mu(a)\mid\mathcal{T}(s)),\qquad \pi_{\mathrm{T}}^\mu(a\mid s)=\frac{\pi_{\mathrm{T}}(\mu(a)\mid\mathcal{T}(s))}{Z_\mu(s)}.

Abbreviate uθ(a)=log⁡πθ(a∣s)u^\theta(a)=\log\pi_\theta(a\mid s) and uT(a)=log⁡πT(μ(a)∣T(s))u^{\mathrm{T}}(a)=\log\pi_{\mathrm{T}}(\mu(a)\mid\mathcal{T}(s)). Both T(s)\mathcal{T}(s) and Zμ(s)Z_\mu(s) are fixed with respect to the student parameters in this differentiation. Then log⁡πTμ(a∣s)=uT(a)−log⁡Zμ(s)\log\pi_{\mathrm{T}}^\mu(a\mid s)=u^{\mathrm{T}}(a)-\log Z_\mu(s). The corresponding full-vocabulary reverse KL is

DKL(πθ(⋅∣s)∥πTμ(⋅∣s))=Ea∼πθ[uθ(a)−uT(a)+log⁡Zμ(s)].D_{\mathrm{KL}}\left(\pi_\theta(\cdot\mid s)\mathrel{\|}\pi_{\mathrm{T}}^\mu(\cdot\mid s)\right) =\mathbb{E}_{a\sim\pi_\theta}\left[u^\theta(a)-u^{\mathrm{T}}(a)+\log Z_\mu(s)\right].

Differentiating both the sampling distribution and its log-density gives

∇θDKL(πθ∥πTμ)=Ea∼πθ[(uθ(a)−uT(a)+log⁡Zμ(s)+1)∇θlog⁡πθ(a∣s)]=Ea∼πθ[(uθ(a)−uT(a))∇θlog⁡πθ(a∣s)],(19)\begin{aligned} \nabla_\theta D_{\mathrm{KL}}(\pi_\theta\mathrel{\|}\pi_{\mathrm{T}}^\mu) &=\mathbb{E}_{a\sim\pi_\theta}\left[\left(u^\theta(a)-u^{\mathrm{T}}(a)+\log Z_\mu(s)+1\right)\nabla_\theta\log\pi_\theta(a\mid s)\right]\\ &=\mathbb{E}_{a\sim\pi_\theta}\left[\left(u^\theta(a)-u^{\mathrm{T}}(a)\right)\nabla_\theta\log\pi_\theta(a\mid s)\right], \tag*{(19)} \end{aligned}

because both 11 and log⁡Zμ(s)\log Z_\mu(s) are action-independent at the fixed prefix and the expected score Eπθ[∇θlog⁡πθ(a∣s)]\mathbb{E}_{\pi_\theta}[\nabla_\theta\log\pi_\theta(a\mid s)] is zero. At θ=θold\theta=\theta_{\mathrm{old}}, r=1r=1 and

∇θ[−A(a)r(a;θ)]∣θ=θold=(uold(a)−uT(a))∇θlog⁡πθ(a∣s)∣θ=θold,\nabla_\theta[-A(a)r(a;\theta)]\big|_{\theta=\theta_{\mathrm{old}}} =\left(u^{\mathrm{old}}(a)-u^{\mathrm{T}}(a)\right)\nabla_\theta\log\pi_\theta(a\mid s)\big|_{\theta=\theta_{\mathrm{old}}},

so a behavior-policy action provides an unbiased single-sample estimator of Equation (19). This statement is conditional on the visited prefix and does not differentiate the trajectory distribution.

Away from the rollout policy, the objective with the cached AA held fixed has expectation

Ea∼πθold[−A(a)r(a;θ)]=Ea∼πθold[uold(a)−uT(a)].\mathbb{E}_{a\sim\pi_{\theta_{\mathrm{old}}}}[-A(a)r(a;\theta)] =\mathbb{E}_{a\sim\pi_{\theta_{\mathrm{old}}}}\left[u^{\mathrm{old}}(a)-u^{\mathrm{T}}(a)\right].

It therefore differs from the current reverse KL, whose score coefficient contains uθ(a)−uT(a)u^\theta(a)-u^{\mathrm{T}}(a). The importance ratio supports a local update from cached behavior-policy actions; it does not restore exact reverse-KL equivalence at an arbitrary θ\theta.

The active branch of the clipped loss depends on the sign of AA. For A>0A>0, it is −Amin⁡(r,1+ϵh)-A\min(r,1+\epsilon_h), so an excessive probability increase is clipped. For A<0A<0, it is −Amax⁡(r,1−ϵl)-A\max(r,1-\epsilon_l), so an excessive probability decrease is clipped. At a clipping boundary, automatic differentiation supplies the implementation-defined subgradient.

Score Centering and Response Normalization

For response ii, let ni=∑tmi,tn_i=\sum_t m_{i,t}. Under the convention following Equation (4), all normalized weights are zero when ni=0n_i=0. Below, assume ni>0n_i>0 and define

w‾i=1ni∑tmi,tw~i,t.\overline{w}_i=\frac{1}{n_i}\sum_t m_{i,t}\widetilde{w}_{i,t}.

Then Equation (4) is wi,t=w~i,t/w‾iw_{i,t} = \widetilde{w}_{i,t}/\overline{w}_i on valid positions, which immediately gives

1ni∑tmi,twi,t=1.\frac{1}{n_i}\sum_t m_{i,t}w_{i,t}=1.

With w~∈(1−ρ,1+ρ)\widetilde{w} \in(1-\rho,1+\rho), the normalized weights satisfy

wi,t∈(1−ρ1+ρ,1+ρ1−ρ).w_{i,t}\in\left(\frac{1-\rho}{1+\rho},\frac{1+\rho}{1-\rho}\right).

With ρ=0.25\rho=0.25, the normalized range is wi,t∈(0.6,5/3)w_{i,t}\in(0.6,5/3), even though the final weights need not remain inside the raw interval (0.75,1.25)(0.75,1.25).

For valid positions tt and jj,

∂wi,t∂w~i,j=I[t=j]w‾i−w~i,tniw‾i2.\frac{\partial w_{i,t}}{\partial\widetilde{w}_{i,j}}=\frac{\mathbb{I}[t=j]}{\overline{w}_i}-\frac{\widetilde{w}_{i,t}}{n_i\overline{w}_i^2}.

which makes the within-response coupling explicit. Combining this derivative with Equation (15) gives the gradient with respect to the unnormalized weights in Equation (16), expanded here for a valid raw weight:

∂Lout∂w~i,j=−1NBw‾i(ci,j−1ni∑tmi,twi,tci,t).\frac{\partial\mathcal{L}_{\mathrm{out}}}{\partial\widetilde{w}_{i,j}}=-\frac{1}{N_B\overline{w}_i}\left(c_{i,j}-\frac{1}{n_i}\sum_t m_{i,t}w_{i,t}c_{i,t}\right).

Here ci,tc_{i,t} is defined in Equation (15); its learning-rate dependence is already included in d\mathbf{d}. Thus normalization subtracts the response-level weighted mean from ci,jc_{i,j}, rather than using its sign alone. Invalid weights are zero, so a completely masked response contributes to neither the weighted loss nor the weight regularizer. The implementation also clamps valid counts below by one and rejects optimizer minibatches with NB=0N_B=0.

Score centering introduces a second coupling before the residual map. On the valid positions of response ii, let zi∈Rni\mathbf{z}_i\in\mathbb{R}^{n_i} collect the network scores and define

Pi=I−1ni11T,zi∘=Pizi,Di=diag⁡(ρ[1−tanh⁡2(zi,t∘)]).P_i=I-\frac{1}{n_i}\mathbf{1}\mathbf{1}^{\mathsf{T}},\qquad\mathbf{z}_i^\circ=P_i\mathbf{z}_i,\qquad D_i=\operatorname{diag}\left(\rho[1-\tanh^2(z^\circ_{i,t})]\right).

Writing JiJ_i for the normalization Jacobian above, the complete derivative is

∂wi∂zi=JiDiPi,∇ziLout=−1NBPiDiJiTci.(20)\frac{\partial\mathbf{w}_i}{\partial\mathbf{z}_i}=J_iD_iP_i,\qquad\nabla_{\mathbf{z}_i}\mathcal{L}_{\mathrm{out}}=-\frac{1}{N_B}P_iD_iJ_i^{\mathsf{T}}\mathbf{c}_i. \tag*{(20)}

Both PiP_i and DiD_i are symmetric. In particular, the score derivative includes the mean-score derivative; detaching that mean would change the meta-gradient. A common score shift is annihilated by PiP_i, and a response with one valid token has constant weight one. The same Jacobian propagates the regularizer derivative, with ∇wiRw=2(wi−1)/NB\nabla_{\mathbf{w}_i}R_w=2(\mathbf{w}_i-\mathbf{1})/N_B. The implementation safeguards the normalization denominator by 10−810^{-8}; since ∑tmi,tw~i,t>ni(1−ρ)\sum_t m_{i,t}\widetilde{w}_{i,t}>n_i(1-\rho), this safeguard is inactive for nonempty responses.

AdamW Virtual Update

Consider one optimizer minibatch and suppress its training index. For each trainable parameter tensor θj\theta_j, the current real optimizer supplies first and second moments mjm_j, vjv_j, a completed-step count τj\tau_j, and its parameter-group settings (αj,β1,j,β2,j,ϵj,λj)(\alpha_j,\beta_{1,j},\beta_{2,j},\epsilon_j,\lambda_j): learning rate, moment decays, denominator epsilon, and decoupled weight decay. These quantities form SS in Equation (6). The virtual step reads them as constants with respect to η\eta. Zero initialization is used only if the corresponding real optimizer state is uninitialized; moments and step counts are not reset at subsequent virtual steps. We assume the standard settings 0≤β1,j<10\leq\beta_{1,j}<1, 0<β2,j<10<\beta_{2,j}<1, and ϵj>0\epsilon_j>0.

Global gradient clipping. The input to clipping is the full-model gradient of the global token-mean inner loss, after microbatch accumulation and distributed reduction. Let Gmax⁡≥0G_{\max}\geq0 be the real update’s norm threshold and ϵclip≥0\epsilon_{\mathrm{clip}}\geq0 its numerical safeguard. For n=∥gin(η)∥2>0n=\lVert\mathbf{g}_{\mathrm{in}}(\eta)\rVert_2>0, define

κclip=min⁡(1,Gmax⁡n+ϵclip),g‾in(η)=C(gin(η))=κclipgin(η).(21)\kappa_{\mathrm{clip}}=\min\left(1,\frac{G_{\max}}{n+\epsilon_{\mathrm{clip}}}\right),\qquad\overline{\mathbf{g}}_{\mathrm{in}}(\eta)=\mathcal{C}(\mathbf{g}_{\mathrm{in}}(\eta))=\kappa_{\mathrm{clip}}\mathbf{g}_{\mathrm{in}}(\eta). \tag*{(21)}

The zero gradient maps to zero. Clipping uses one norm over all trainable student parameters, including parameters in different optimizer groups; it is not applied separately to each microbatch or parameter tensor. On a smooth branch, its Jacobian is

JC={I,n+εclip<Gmax⁡,κclipI−Gmax⁡n(n+εclip)2gˉin(η)gˉin(η)T,n+εclip>Gmax⁡, n>0.(22)J_C = \begin{cases} I, & n+\varepsilon_{\mathrm{clip}} < G_{\max},\\ \kappa_{\mathrm{clip}}I-\dfrac{G_{\max}}{n(n+\varepsilon_{\mathrm{clip}})^2}\bar{g}_{\mathrm{in}}(\eta)\bar{g}_{\mathrm{in}}(\eta)^{\mathsf{T}}, & n+\varepsilon_{\mathrm{clip}} > G_{\max},\ n>0. \end{cases} \tag*{(22)}

At the switching boundary, the derivative follows the branch convention of the real clipping operation. The rank-one term accounts for the dependence of the clipping coefficient on the weights through gˉin(η)\bar{g}_{\mathrm{in}}(\eta). Detaching that coefficient would omit this term. At the origin, JC=min⁡(1,Gmax⁡/εclip)IJ_C=\min(1,G_{\max}/\varepsilon_{\mathrm{clip}})I for εclip>0\varepsilon_{\mathrm{clip}}>0, and JC=IJ_C=I when the safeguard is zero. If clipping is disabled, CC and JCJ_C are the identity.

Moment update and parameter map. For standard AdamW, the virtual moments, bias corrections, and virtual student parameters are

mj+=β1,jmj+(1−β1,j)gˉin,j(η),m_j^+ = \beta_{1,j}m_j+(1-\beta_{1,j})\bar{g}_{\mathrm{in},j}(\eta),
vj+=β2,jvj+(1−β2,j)gˉin,j(η)2,v_j^+ = \beta_{2,j}v_j+(1-\beta_{2,j})\bar{g}_{\mathrm{in},j}(\eta)^2,
m^j=mj+1−β1,jτj+1,v^j=vj+1−β2,jτj+1,\widehat{m}_j=\frac{m_j^+}{1-\beta_{1,j}^{\tau_j+1}},\qquad \widehat{v}_j=\frac{v_j^+}{1-\beta_{2,j}^{\tau_j+1}},
θj′=(1−αjλj)θj−αjm^jv^j+ϵj.(23)\theta'_j=(1-\alpha_j\lambda_j)\theta_j-\alpha_j\frac{\widehat{m}_j}{\sqrt{\widehat{v}_j}+\epsilon_j}. \tag*{(23)}

All products, squares, square roots, and divisions within a parameter tensor are elementwise. The learning rate αj\alpha_j is read from the current real parameter group, including scheduled decay. Bias correction uses that tensor’s next step τj+1\tau_j+1. The expressions above create temporary values; they do not overwrite θj\theta_j, mjm_j, vjv_j, or τj\tau_j. Only the later real student step advances the stored moments and step counts.

For clarity, the AdamW Jacobian can also be written coordinatewise. Let

ζ1,j=1−β1,j1−β1,jτj+1,ζ2,j=1−β2,j1−β2,jτj+1,σj,k=v^j,k,\zeta_{1,j}=\frac{1-\beta_{1,j}}{1-\beta_{1,j}^{\tau_j+1}},\qquad \zeta_{2,j}=\frac{1-\beta_{2,j}}{1-\beta_{2,j}^{\tau_j+1}},\qquad \sigma_{j,k}=\sqrt{\widehat{v}_{j,k}},

where kk indexes a coordinate of tensor jj. For σj,k>0\sigma_{j,k}>0,

∂θj,k′∂gˉin,j,k(η)=−αj[ζ1,jσj,k+ϵj−ζ2,jm^j,kgˉin,j,k(η)σj,k(σj,k+ϵj)2].(24)\frac{\partial\theta'_{j,k}}{\partial\bar{g}_{\mathrm{in},j,k}(\eta)} =-\alpha_j\left[\frac{\zeta_{1,j}}{\sigma_{j,k}+\epsilon_j} -\frac{\zeta_{2,j}\widehat{m}_{j,k}\bar{g}_{\mathrm{in},j,k}(\eta)} {\sigma_{j,k}(\sigma_{j,k}+\epsilon_j)^2}\right]. \tag*{(24)}

The off-diagonal entries of JAJ_A are zero. The second term differentiates the new second moment; treating AdamW as a fixed preconditioner would discard it. At a zero-gradient coordinate with zero first and second moments, the composite map has derivative −αjζ1,j/ϵj-\alpha_j\zeta_{1,j}/\epsilon_j, obtained by continuity rather than division by σj,k=0\sigma_{j,k}=0. Decoupled weight decay has no direct derivative with respect to the gradient input because θj\theta_j is fixed. It still changes θj′\theta'_j, and hence the outer gradient, so it must remain in the forward virtual map.

One-Step Hypergradient and VJP–JVP Form

We derive the token decomposition in § 3.3 from the complete meta-gradient in Equation (10). Vectorize the student and weighting parameters as θ∈Rp\theta\in\mathbb{R}^{p} and η∈Rq\eta\in\mathbb{R}^{q}. Gradients are column vectors; the Jacobian of a map from Rq\mathbb{R}^{q} to Rp\mathbb{R}^{p} has shape p×qp\times q, with rows indexing outputs and columns indexing inputs. We use the fixed-input convention of § 3.2: current student parameters, real optimizer state, rollout actions, masks, old/teacher caches, and detached descriptors are held fixed.

Only the normalized weights in Equation (13) depend on η\eta. Since gi,t∈Rp\mathbf{g}_{i,t}\in\mathbb{R}^{p} and ∇ηwη,i,t∈Rq\nabla_{\eta}w_{\eta,i,t}\in\mathbb{R}^{q}, differentiating each weighted term gives the outer product

Gη:=∂gˉin(η)∂η=1NB∑i,tmi,tgi,t(∇ηwη,i,t)T∈Rp×q,∂θ′∂η=JAJCGη.(25)G_{\eta}:=\frac{\partial\bar{g}_{\mathrm{in}}(\eta)}{\partial\eta} =\frac{1}{N_B}\sum_{i,t}\mathbf{m}_{i,t}\mathbf{g}_{i,t}\left(\nabla_{\eta}w_{\eta,i,t}\right)^{\mathsf{T}}\in\mathbb{R}^{p\times q}, \qquad \frac{\partial\theta'}{\partial\eta}=J_AJ_CG_{\eta}. \tag*{(25)}

The two optimizer Jacobians are p×pp \times p, and gout∈Rp\mathbf{g}_{\mathrm{out}} \in\mathbb{R}^{p}. Thus the validation-loss term of Equation (10) is the qq-vector

∇ηLout=(∂gin(η)∂η)TJCTJAgout=GηTJCTJAgout.(26)\nabla_{\eta}\mathcal{L}_{\mathrm{out}} = \left(\frac{\partial\mathbf{g}_{\mathrm{in}}(\eta)}{\partial\eta}\right)^{\mathsf{T}} J_{\mathcal{C}}^{\mathsf{T}} J_{\mathcal{A}}\mathbf{g}_{\mathrm{out}} = G_{\eta}^{\mathsf{T}}J_{\mathcal{C}}^{\mathsf{T}}J_{\mathcal{A}}\mathbf{g}_{\mathrm{out}}. \tag*{(26)}

Using JCTJATgout=−dJ_{\mathcal{C}}^{\mathsf{T}}J_{\mathcal{A}}^{\mathsf{T}}\mathbf{g}_{\mathrm{out}}=-\mathbf{d} from Equation (14) and expanding GηTG_{\eta}^{\mathsf{T}} yields

∇ηLout=−1NB∑i,tmi,t(∇ηwη,i,t)gi,tTd=−1NB∑i,tmi,tci,t∇ηwη,i,t.(27)\nabla_{\eta}\mathcal{L}_{\mathrm{out}}=-\frac{1}{N_B}\sum_{i,t}m_{i,t}(\nabla_{\eta}w_{\eta,i,t})\mathbf{g}_{i,t}^{\mathsf{T}}\mathbf{d}=-\frac{1}{N_B}\sum_{i,t}m_{i,t}c_{i,t}\nabla_{\eta}w_{\eta,i,t}. \tag*{(27)}

Here d∈Rp\mathbf{d} \in\mathbb{R}^{p} and ci,t=gi,tTdc_{i,t}=\mathbf{g}_{i,t}^{\mathsf{T}}\mathbf{d} is scalar, establishing Equation (15).

To verify the gradient of Equation (17), fix an evaluation point η0\eta_0 and write ci,t0=ci,t(η0)c_{i,t}^{0}=c_{i,t}(\eta_0). The VJP–JVP procedure in § 3.3 supplies these values. Differentiating the objective while holding them fixed gives

∇ηL^meta(r)(η;B,c0)∣η0=−1NB∑i,tmi,tci,t0∇ηwη,i,t∣η0+λw(r)∇ηRw∣η0=∇ηJmeta∣η0.\begin{aligned} \left.\nabla_{\eta}\widehat{\mathcal{L}}_{\mathrm{meta}}^{(r)}(\eta;B,c^{0})\right|_{\eta_0} =-\frac{1}{N_B}\sum_{i,t}m_{i,t}c_{i,t}^{0}\left.\nabla_{\eta}w_{\eta,i,t}\right|_{\eta_0} +\lambda_{w}^{(r)}\left.\nabla_{\eta}R_w\right|_{\eta_0} \\ &=\left.\nabla_{\eta}J_{\mathrm{meta}}\right|_{\eta_0}. \end{aligned}

The second equality uses Equation (27). Exactness concerns the specified single-step map, including its new moments and clipping coefficient, under the fixed-input convention above. At clipping boundaries, the derivative follows the corresponding automatic-differentiation convention.

Implementation and Reproducibility Details

The inner rollout stream and the reference-solution stream are separately shuffled iterators over the MATH training split. They are not constrained to be sample-disjoint, and the experimental setup does not create a separate validation pool for meta-updates. Evaluation examples do not update either the student parameters θ\theta or the weighting network parameters η\eta.

Token Descriptor

Table 4 expands the 74-dimensional descriptor defined in § 3.1, following its detachment and sampled-loss conventions. Top-kfk_f token identities are used only to compute the top-1 match and top-kfk_f overlap; the identities themselves are not network inputs.

For a common completion tensor of width LwinL_{\mathrm{win}}, the position feature is zero when Lwin=1L_{\mathrm{win}}=1 and otherwise equals (t−1)/(Lwin−1)(t-1)/(L_{\mathrm{win}}-1), using the one-based token index in Equation (1). The same position grid is shared across rows before masking; it is not renormalized by each response’s number of valid completion tokens.

Let pSp^{\mathrm{S}} and pTp^{\mathrm{T}} be the full-vocabulary student and teacher distributions at their respective context views. The entropy features are

hS=−∑a∈VSpS(a)log⁡pS(a)log⁡∣VS∣,hT=−∑a∈VTpT(a)log⁡pT(a)log⁡∣VT∣.h^{\mathrm{S}} = \frac{-\sum_{a \in\mathcal{V}_{\mathrm{S}}} p^{\mathrm{S}}(a)\log p^{\mathrm{S}}(a)}{\log|\mathcal{V}_{\mathrm{S}}|}, \qquad h^{\mathrm{T}} = \frac{-\sum_{a \in\mathcal{V}_{\mathrm{T}}} p^{\mathrm{T}}(a)\log p^{\mathrm{T}}(a)}{\log|\mathcal{V}_{\mathrm{T}}|}.

Let S32S_{32} and T32T_{32} contain the top-32 token identities in the two distributions. With teacher identities canonicalized as in Appendix § 10.§ 5, the overlap feature is

Overlap⁡32=132∑a∈S32I[a∈Canon⁡(T32)].\operatorname{Overlap}_{32} = \frac{1}{32}\sum_{a \in S_{32}} \mathbb{I}[a \in\operatorname{Canon}(T_{32})].

The denominator remains 32 even if canonicalization merges teacher identities; this is a student-set coverage fraction, not Jaccard overlap.

The weighting network has linear widths 74–256–64–1, SiLU activations after the first two linear layers, and dropout probability zero. Its final scalar head is zero-initialized. Consequently, the initial raw and response-normalized weights are exactly one on all valid tokens. The raw weights use ρ=0.25\rho= 0.25, and the normalized-weight regularizer starts at λw(0)=10−3\lambda_{w}^{(0)} = 10^{-3} and follows Appendix § 10.§ 4.

Training and Evaluation Configuration

Table 5 summarizes the shared training and evaluation configuration for the main and ablation experiments. Settings for the weighting network and virtual updates apply only to variants with meta-updates. Settings for reference-solution data apply to variants that use reference solutions for supervision. All learned-weight variants use response-centered scores and the schedules below, except for the factor explicitly changed in an ablation. The ablations use the same optimizer settings as the main experiments; virtual student steps follow the actual student’s AdamW update rule.

SettingValue
Student / teacher modelsQwen3-0.6B-Base or Qwen3-1.7B-Base / frozen Qwen3-8B
Training data / MetaOPD reference-solution dataMATH train / MATH train
MetaOPD rollout / reference samplingSeparate shuffled streams; overlap allowed; no meta split
Shared epochs / training seed3 / 42
Shared rollout and update schedule174 rollout iterations; four student updates per rollout; 696 student updates
Shared batch sizes128 rollout / 32 student optimizer; global reference batch 32 where used
Shared student optimizer / learning rateAdamW / 3×10−63 \times10^{-6}, cosine decay
MetaOPD meta optimizer / initial learning rateAdamW / 2.5×10−52.5 \times10^{-5}; scaled by the student learning-rate ratio
MetaOPD virtual optimizer / stateSame AdamW rule as the actual student update; current student optimizer state, without committing changes
MetaOPD virtual learning ratesCurrent real student optimizer rates, including scheduled decay
Student gradient clippingFull-model global norm, threshold 1.0 in virtual and actual steps
Sampled-OPD ratio clipping(ϵl,ϵh)=(0.2,0.2)(\epsilon_l,\epsilon_h) = (0.2, 0.2)
MetaOPD residual / initial regularizerρ=0.25/λw=10−3\rho= 0.25 / \lambda_w = 10^{-3}; regularizer follows the student learning-rate ratio
MetaOPD score centering / meta updatesValid-response mean subtracted before tanh / one per student update
Shared training decodingTemperature 1.0; top-pp 1.0; maximum completion 4096
Math evaluation decodingEight samples; temperature 1.0; top-pp 0.8; maximum response 8192
Allocation for reported GPU-hoursEight NVIDIA A100 80GB GPUs: four student DDP and four paired teacher GPUs

Table 5. Shared training and evaluation configuration, including MetaOPD-specific settings.

Baseline settings. KD distills the student on teacher-generated sequences. GRPO uses standard answer-correctness rewards with a group size of eight. EOPD uses the method-specific settings reported in its paper. Appendix § 10.2.1 details how the FiRe-OPD, REOPOLD, and TIP allocation rules are implemented within the shared sampled-OPD framework.

Token-Allocation Baseline Implementations

To study supervision allocation under a common OPD training framework, we implement the token-selection and weighting rules of FiRe-OPD (Li et al., [15]), REOPOLD (Ko et al., [11]), and TIP (Xu et al., [31]) on top of the sampled-OPD surrogate in Equation (3). The underlying surrogate form, student optimizer, and training schedule are shared; method-specific selection, weighting, reward processing, and loss reduction are specified below. This design focuses the comparison on supervision allocation while controlling for differences in the original methods’ underlying OPD objectives.

Shared implementation. Selection statistics use the frozen rollout-time student and teacher predictions and are detached from the student update. Batch statistics and rankings are computed over valid completion tokens in the full 32-response optimizer minibatch, across all microbatches and student ranks; response-level selection is identified below. The models, data, rollout batch size, ratio clipping, and decoding follow Table 5. All three baselines use AdamW with zero weight decay, cosine decay advanced once per rollout, BF16 forward computation, and FP32 student parameters and sampled-action log-probabilities. They use no learned weighting network, meta-update, or reference-solution loss. Training runs for 696 student updates, and evaluation uses the final checkpoint at update 696.

FiRe-OPD. Responses are ranked by mean teacher log-probability of their sampled tokens. We remove the lowest-scoring ⌊0.2∣B∣⌋\lfloor0.2|B| \rfloor responses (six for ∣B∣=32|B| = 32). Let hi,tTh_{i,t}^{\mathrm{T}} and hi,tSh_{i,t}^{\mathrm{S}} denote vocabulary-normalized teacher and rollout-student entropies. Before filtering, their respective maxima are computed over all valid tokens in BB. Teacher confidence and student confusion are

ci,tT=1−hi,tTmax⁡BhT,ci,tS=hi,tSmax⁡BhS.c_{i,t}^{\mathrm{T}} = 1 - \frac{h_{i,t}^{\mathrm{T}}}{\max_{B} h^{\mathrm{T}}}, \qquad c_{i,t}^{\mathrm{S}} = \frac{h_{i,t}^{\mathrm{S}}}{\max_{B} h^{\mathrm{S}}}.

Retained-token weights are proportional to (1+ci,tT)(1+ci,tS)(1 + c_{i,t}^{\mathrm{T}})(1 + c_{i,t}^{\mathrm{S}}), normalized to mean one within each retained response. Entropy denominators are lower-bounded by FP32 machine epsilon; removed responses contribute neither loss nor denominator tokens.

MethodConfiguration
FiRe-OPDTrajectory drop fraction 0.2; teacher-confidence and student-confusion coefficients both 1.0
REOPOLDReward parameter λ=0.3\lambda= 0.3; phase switch at update 232; phase-II entropy keep fraction 0.2
TIPSoft-OR; response-level keep fraction 0.5; entropy clipping at the 98th percentile; exact-KL computation in 64-token chunks

Table 6. Method-specific allocation settings within the shared sampled-OPD framework. Selection scopes and loss normalization are specified in the text.

REOPOLD. For the detached reward Ri,t=ui,tT−ui,toldR_{i,t} = u^{\mathrm{T}}_{i,t} - u^{\mathrm{old}}_{i,t}, define Rmin⁡=log⁡(λ)/(1−λ)R_{\min} = \log(\lambda)/(1-\lambda). We replace Ai,tA_{i,t} in Equation (3) with max⁡(Ri,t,Rmin⁡)\max(R_{i,t}, R_{\min}). At zero-based updates 0–231, tokens with Ri,t≥Rmin⁡R_{i,t} \ge R_{\min} are retained. At updates 232–695, selection instead retains the ⌈0.2NB⌉\lceil0.2N_B\rceil highest-student-entropy tokens across the optimizer minibatch. If a response would be empty, its highest-reward token in phase I or highest-entropy token in phase II is retained. This safeguard can raise the actual retained fraction above 0.2 in phase II.

TIP Soft-OR. The two signals are hi,t=H(πθold(⋅∣si,t))/log⁡∣V∣h_{i,t} = H(\pi_{\theta_{\mathrm{old}}}(\cdot\mid s_{i,t}))/\log|\mathcal{V}| and the exact full-vocabulary di,t=DKL(πθold∥πT)d_{i,t} = D_{\mathrm{KL}}(\pi_{\theta_{\mathrm{old}}}\|\pi_{\mathrm{T}}) at the corresponding student and teacher context views. The latter is computed from full logits, rather than from the sampled-token log-probability gap. We cap hh at its minibatch 98th percentile, then separately min–max normalize the capped entropy and dd to obtain h^\hat{h} and d^\hat{d}. A signal whose range is at most FP32 machine epsilon maps to zero. The score is si,t=h^i,t+d^i,ts_{i,t} = \hat{h}_{i,t} + \hat{d}_{i,t}. Each response retains its max⁡(1,⌊0.5ni⌋)\max(1, \lfloor0.5n_i\rfloor) highest-scoring valid tokens. Ranking ties in all three methods preserve the gathered input order. Full-vocabulary reverse KL is used for token selection; the student update on retained tokens uses the shared sampled-OPD surrogate in Equation (3) in place of TIP’s original full-vocabulary reverse-KL training loss.

Reduction after selection. For all three baselines, the loss is the weighted sum of retained-token surrogate losses divided by the total number of retained tokens in the global optimizer minibatch. FiRe-OPD uses its response-normalized soft weights; REPOlD and TIP use unit weights on retained tokens and zero weights elsewhere. The binary masks are not rescaled to have mean one over the original response. Thus, filtering changes both the numerator and the token-count denominator.

Global Token-Mean Reduction

Both the virtual and actual student updates evaluate the weighted OPD loss using the global valid-token count NBN_B from the complete 32-example optimizer minibatch. The numerator is accumulated across all local microbatches and distributed ranks before division by NBN_B; the implementation does not average independently normalized microbatch losses. Response-level weight normalization in Equation (4) is applied before this global reduction.

To compute validation loss, we similarly sum token losses on reference solutions over the microbatches and participating student ranks, then divide by the global valid reference-solution token count NrefN_{\mathrm{ref}}. Because completion lengths differ, NBN_B and NrefN_{\mathrm{ref}} are generally different even though both global example batches contain 32 examples. The inner gradient is globally reduced before norm clipping and the virtual optimizer map; the outer gradient is globally reduced before the optimizer VJPs. Clipping each rank’s partial gradient would define a different virtual update.

Virtual State and Learning-Rate Convention

As specified in § 3.2, training-time virtual steps use the current student AdamW state and scheduled learning rates without committing optimizer or parameter changes.

The motivating comparison in Appendix § 11 starts from zero student moments and step zero. The checkpoint probes in Appendix § 12 restore the trained student optimizer state. Both use a fixed reference learning rate of 3×10−63 \times10^{-6}, whereas training-time virtual steps read the scheduled rate.

Coupled learning-rate schedules. Let αg(r)\alpha_g^{(r)} be the live student learning rate in trainable parameter group gg at global student step rr, and let α0=3×10−6\alpha_0 = 3 \times10^{-6} be the configured initial rate. The schedule scale and effective meta settings are

χr=min⁡(1,max⁡(0,max⁡gαg(r)α0)),αη(r)=αη,0χr,λw(r)=λw(0)χr,(28)\chi_r = \min\left(1,\max\left(0,\max_g\frac{\alpha_g^{(r)}}{\alpha_0}\right)\right), \qquad\alpha_\eta^{(r)} = \alpha_{\eta,0}\chi_r, \qquad\lambda_w^{(r)} = \lambda_w^{(0)}\chi_r, \tag*{(28)}

where αη,0=2.5×10−5\alpha_{\eta,0} = 2.5 \times10^{-5} and λw(0)=10−3\lambda_w^{(0)} = 10^{-3}. The student uses cosine decay, advanced once per rollout round; all four optimizer minibatches in that round read its current rate. The weighting network uses AdamW with zero weight decay and is updated at each student step throughout all 696 updates. The schedule values are constants for the current one-step meta-gradient. Neither the virtual step nor the meta-update advances the student scheduler.

End-of-Sequence Mapping

The action map μ\mu in Equation (18) is the identity except for μ(151643)=151645\mu(151643) = 151645, mapping the student EOS identity to the teacher EOS identity. The context conversion TT leaves prompt tokens unchanged and applies this mapping only to the first valid completion occurrence of 151643 in the teacher view. Padding, later invalid positions, and stored student actions are unchanged. The valid sampled EOS action is scored with its teacher identity. Teacher top-kk identities are canonicalized back to the student identity before match and overlap features are computed. This convention aligns EOS across model views without introducing a dual-EOS student stop set.

Reference-solution targets use the student EOS token 151643, which is also the sole generation stop token. The teacher-view mapping does not change this student target identity. The SFT, OPD + SFT, and MetaOPD + SFT controls use this same EOS convention.

Ablation and Resource Details

Variant definitions and SFT loss calibration. Let LOPDw\mathcal{L}_{\mathrm{OPD}}^{w} denote the OPD loss on student-generated responses with token weights ww. In OPD + SFT, every valid token has weight one. In MetaOPD +

VariantToken weightingReference useStudent objective
Uniform OPDUniformNoneLOPD\mathcal{L}_{\mathrm{OPD}}
Position onlyPositionOuterLOPDw\mathcal{L}^{w}_{\mathrm{OPD}}
Teacher entropyTeacher entropyOuterLOPDw\mathcal{L}^{w}_{\mathrm{OPD}}
Log-probability gapδi,t\delta_{i,t}OuterLOPDw\mathcal{L}^{w}_{\mathrm{OPD}}
Top-32 profilesStudent + teacher profilesOuterLOPDw\mathcal{L}^{w}_{\mathrm{OPD}}
MetaOPDAll 74 descriptorsOuterLOPDw\mathcal{L}^{w}_{\mathrm{OPD}}
SFTNoneDirect onlyLSFT\mathcal{L}_{\mathrm{SFT}}
OPD + SFT (half)UniformDirect onlyLOPD+0.5γ⋆LSFT\mathcal{L}_{\mathrm{OPD}} + 0.5\gamma^{\star}\mathcal{L}_{\mathrm{SFT}}
OPD + SFTUniformDirect onlyLOPD+γ⋆LSFT\mathcal{L}_{\mathrm{OPD}} + \gamma^{\star}\mathcal{L}_{\mathrm{SFT}}
OPD + SFT (double)UniformDirect onlyLOPD+2γ⋆LSFT\mathcal{L}_{\mathrm{OPD}} + 2\gamma^{\star}\mathcal{L}_{\mathrm{SFT}}
MetaOPD + SFTAll 74 descriptorsOuter + directLOPDw+γ⋆LSFT\mathcal{L}^{w}_{\mathrm{OPD}} + \gamma^{\star}\mathcal{L}_{\mathrm{SFT}}

Table 7. Ablation-variant mapping. “Outer” means that reference solutions update only the weighting network through the meta objective; “direct” means that their supervised loss enters the student objective.

SFT, the weighting network assigns the weights, which have mean one over the valid tokens in each response. Let LSFT\mathcal{L}_{\mathrm{SFT}} denote the supervised fine-tuning (SFT) loss: the mean token prediction loss on reference solutions under teacher forcing. It has the form of Equation (7), evaluated at the current student parameters rather than the virtual parameters. Each loss is averaged over the valid tokens in its own global batch. Both variants update the student with

Lstudent=LOPDw+γLSFT.\mathcal{L}_{\mathrm{student}} = \mathcal{L}^{w}_{\mathrm{OPD}} + \gamma\mathcal{L}_{\mathrm{SFT}}.

The coefficient is calibrated once at the common Qwen3-1.7B-Base initialization using 16 disjoint pairs of 32-example OPD and reference-solution batches:

γ⋆=median⁡k=116∥∇θLOPD(k)∥2∥∇θLSFT(k)∥2+10−12.\gamma^{\star} = \operatorname{median}_{k=1}^{16} \frac{\lVert\nabla_{\theta}\mathcal{L}^{(k)}_{\mathrm{OPD}}\rVert_{2}}{\lVert\nabla_{\theta}\mathcal{L}^{(k)}_{\mathrm{SFT}}\rVert_{2} + 10^{-12}}.

Thus γ⋆\gamma^{\star} approximately matches the two gradient scales at initialization; it is applied only to the SFT loss in the student objective, not to the MetaOPD outer objective.

The resulting coefficient is γ⋆≈2.16\gamma^{\star} \approx2.16; the sweep uses half, equal, and double this value. Calibration uses training data only and is not selected by benchmark performance. Matching gradient norms does not imply that the two gradients have the same direction or induce equal optimizer updates.

For MetaOPD + SFT, the virtual inner objective remains weighted sampled OPD. The same global reference batch used for the outer objective supplies the SFT loss in the subsequent real student update; this loss is evaluated at the real student parameters.

Feature-ablation controls and results. Table 8 compares uniform OPD, four restricted-input weighting networks, and MetaOPD with all descriptors. The Uniform OPD and MetaOPD rows reuse the Qwen3-1.7B-Base results from Table 1.

The restricted variants retain, respectively, normalized position, vocabulary-normalized teacher entropy, the teacher-minus-student log-probability gap δi,t\delta_{i,t}, or the two ranked top-32 log-probability profiles. All other descriptor coordinates are zeroed while the 74-dimensional input and 74–256–64–1 architecture remain fixed. All learned variants have 35,713 parameters and follow the shared training protocol with seed 42, the shared virtual-update rule, and 696 student updates. This design compares named input subsets with the full descriptor rather than removing one feature at a time.

Direct-supervision ablations. Table 9 reports SFT, the SFT loss-weight sweep under uniform OPD, and the interaction control that adds the SFT loss to MetaOPD. The Uniform OPD and MetaOPD rows reuse the 1.7B main-table results. All controls use the shared EOS convention, training seed 42, and 696 student updates. The MetaOPD rows retain the shared virtual-update rule; SFT and the uniform-OPD sweep have no meta-update.

Resource accounting. Table 10 compares OPD and MetaOPD with the 1.7B student, training seed 42, and the same eight-GPU allocation. Both runs use 174 rollout iterations, rollout batches of 128, optimizer mini-batches of 32, and 696 student updates. MetaOPD performs a meta-update at each of the 696 student updates; OPD has no outer objective. The MetaOPD timing uses response-centered scores and the coupled schedules in Appendix B.4.

Table 10: Training-only cost for the 1.7B student on eight NVIDIA A100 80GB GPUs, including four student and four teacher GPUs. Both methods complete 696 student updates; MetaOPD performs one meta update per step. Evaluation and diagnostic probes are excluded.

MethodTraining time (h)GPU-hoursRelative cost
OPD5.6245.01.00×
MetaOPD11.0688.51.97×

Table 10.

Training wall time is multiplied by all eight allocated GPUs, including the four paired teacher GPUs. Evaluation and diagnostic probes are excluded. The resulting 45.0 and 88.5 GPU-hours give a 1.97× ratio for this 1.7B setting. These measurements quantify the cost of the complete training procedure, including the outer objective, rather than the small weighting network alone.

Motivating One-Step Comparison

Shared Setting

The comparison in Figure 1 uses Qwen3-1.7B-Base as the student and Qwen3-8B as the frozen teacher. Within each panel, all strategies start from the same initial student and optimizer state and perform one actual student update on the same student-generated responses. The optimizer starts with zero AdamW moments and completed-step count zero, uses a learning rate of 3×10−63 \times10^{-6}, and clips the global gradient norm at 1.0. Virtual and actual student updates use the same AdamW update rule, with the virtual update leaving the shared starting state unchanged. The completion mask retains the valid sampled EOS action.

We use four fixed prompt folds and three response-sampling seeds, giving 12 panels. Each panel contains 16 prompts with two responses per prompt. The seeds change only response sampling; the prompt selection and fold assignment remain fixed across seeds. We also sample two independent reference sets, A and B, from the MATH training pool, each containing 64 prompts and their reference solutions, and share both sets across all panels.

Compared Strategies

Uniform OPD assigns equal weights to valid response tokens. MetaOPD starts from a weighting network initialized to produce uniform weights. It uses reference set A to compute the validation loss after a virtual weighted OPD update, performs one meta-update of the network, and recomputes the token weights. These weights then determine the actual student update from the original student parameters and optimizer state. Reference set B evaluates the resulting student and does not enter weight learning.

EOPD (Jin et al. [8]) and TIP (Xu et al. [31]) apply their supervision-allocation rules within the shared sampled-OPD framework. TIP uses the Soft-OR selection described in Appendix § 10.2.1. Random assigns random nonuniform token weights, providing a reference for allocation without validation-loss feedback. All candidate student updates use the shared responses, learning rate, and clipping threshold described above.

Evaluation and Aggregation

Let θh′\theta'_h be the student after the actual update under strategy hh. We evaluate its teacher-forced reference-solution loss on set B, averaged over valid reference tokens, and report the paired reduction relative to Uniform OPD:

Rh=Lout(θUniform′;B)−Lout(θh′;B).(29)R_h = \mathcal{L}_{\mathrm{out}}(\theta'_{\mathrm{Uniform}}; B) - \mathcal{L}_{\mathrm{out}}(\theta'_h; B). \tag*{(29)}

Positive RhR_h means that strategy hh yields a lower post-update validation loss than Uniform OPD, matching the direction in Figure 1(b). We average the paired reductions across the 12 panels and obtain 95% percentile confidence intervals from 10,000 bootstrap resamples of panels, retaining the pairing between strategies. These intervals are conditional on the fixed prompts and reference sets; the response-sampling seeds are not independent full training runs.

In this comparison, MetaOPD achieves the largest observed reduction, EOPD yields a smaller improvement, and TIP and Random remain close to Uniform OPD. The result supports using post-update performance to learn token weights in this one-step setting; it does not establish the effects of repeatedly applying the strategies over a full training run.

Training Dynamics and Update Analysis

Diagnostic Setting

We use online traces to track token-weight evolution and fixed-checkpoint probes to examine agreement of loss derivatives across batches, learned allocation, and one-step update quality. Here ci,tc_{i,t} is proportional to the negative validation-loss derivative with respect to a token weight, as defined in Equation (15). Figure 4(a) shows the weight standard deviation recorded during training. Figure 4(b) uses a separate, matched diagnostic reproduction with the full three-epoch, 696-step learning-rate schedule, recording only steps 1–232. It reports the median and interquartile range (IQR) of within-response Spearman correlations between pre-update token weights and ci,tc_{i,t} computed using the current training reference batch. Light traces show per-step statistics; dark curves use the trailing 20-step and 8-step arithmetic means in Figure 4(a) and Figure 4(b), respectively. Constant initial weights make correlation undefined, so that point is left blank.

Training dynamics and update quality

Figure 4. Training dynamics and update quality (1.7B). (a) Token-weight standard deviation over training. (b) Median within-response Spearman correlation between pre-update token weights and ci,tc_{i,t}, the scaled negative validation-loss derivative, in epoch 1 of a matched diagnostic run; shading shows the interquartile range. (c) Paired validation loss difference ΔLLearned−Uniform\Delta L_{\mathrm{Learned-Uniform}} after one update from identical starting parameters at each of three checkpoints; negative values favor Learned. Error bars show 95% reference-bank bootstrap intervals with checkpoints and rollouts fixed. Appendix § 12 gives the full protocol.

The checkpoint probes examine Qwen3-1.7B-Base trained with MetaOPD and the restricted-input variants of § 4.3. Early, middle, and final denote MetaOPD steps 232, 464, and 696. The probes use each checkpoint’s student AdamW state, with global gradient-clipping threshold 1.0. All candidates use the same AdamW update rule as training at reference learning rate 3×10−63 \times10^{-6}, independent of the decayed training rate, and are not committed to the model.

For the checkpoint probes, student-generated responses provide the data for candidate OPD updates, while reference solutions are used to compute validation loss. Checkpoints share the same rollout prompts but generate responses separately. Each checkpoint’s panel contains 64 responses, divided into two groups of 32; candidate updates are computed separately for each group from that checkpoint. All candidate weighting rules and reference banks at a given checkpoint reuse these responses. We also use 256 separate prompt–reference-solution pairs, partitioned into 32 reference banks of eight examples each. The rollout prompts and reference examples are drawn from MATH test with MATH500 excluded. Within each reference bank, validation loss is averaged over valid reference-solution tokens.

We compute the raw ci,tc_{i,t} at the weights produced by the checkpoint’s weighting network and define the centered diagnostic quantity

ci,t∘=ci,t−1ni∑smi,sci,s,(30)c^{\circ}_{i,t}=c_{i,t}-\frac{1}{n_i}\sum_s m_{i,s}c_{i,s}, \tag*{(30)}

where ni=∑smi,s>0n_i=\sum_s m_{i,s}>0, using the ordinary mean over valid tokens within each response. The raw ci,tc_{i,t} retains the derivative meaning in Equation (15); ci,t∘c^{\circ}_{i,t} is a centered statistic, distinct from the weighted centering term in the derivative with respect to unnormalized weights. The diagnostic sign and magnitude comparisons below use ci,t∘c^{\circ}_{i,t} and ∣ci,t∘∣|c^{\circ}_{i,t}|. Subtracting a response-wise constant does not change within-response Spearman correlations or ranks.

To assess consistency across reference batches, we combine the 32 banks into eight disjoint batches of 32 reference examples. For each batch, we average the vectors dd from its four banks, weighted by their valid reference-token counts, then compute and center ci,tc_{i,t}. We compare the resulting ci,t∘c^{\circ}_{i,t} values for all pairs of batches within each response using Spearman correlation, sign agreement, and top-20% Jaccard overlap, then take the median over pairs and responses.

To assess learned-weight alignment, we average dd across all 32 reference banks, weighted by their valid reference-token counts, using all 256 reference examples. We report the median within-response correlations of learned weights with the resulting ci,t∘c^{\circ}_{i,t} values or their magnitudes. The 95% percentile intervals use 2,000 prompt-cluster bootstrap resamples, retaining all observations for each sampled prompt. This token-count weighting defines the derivative aggregation; the one-step loss comparisons below instead average banks equally.

Learned Weights and Update Quality

In the 1.7B setting, weight dispersion increases from uniform initialization and then levels off (Figure 4(a)), while each response’s coefficient sum remains fixed. In the matched diagnostic run, the online correlation between token weights and ci,tc_{i,t} turns from negative to positive and reaches about 0.3 later in the recorded first epoch (Figure 4(b)).

The online curve uses the current training reference batch, whereas checkpoint alignment uses that checkpoint’s rollout panel and ci,t∘c^{\circ}_{i,t} computed from the averaged vector over 256 reference examples, so their correlations are not interchangeable.

The ci,t∘c^{\circ}_{i,t} values agree across independent reference batches at all three checkpoints (rank correlation around 0.98; sign agreement above 0.99; Table 11a), providing a reproducible basis for analyzing the learned weights.

(a) Agreement across independent reference batches
CheckpointStudent stepsSpearmanSign agreementTop-20% Jaccard
Early2320.9750.9930.958
Middle4640.9760.9930.961
Final6960.9750.9930.953
(b) Weight alignment: Spearman correlation [95% CI]
Checkpointci,t∘c^{\circ}_{i,t}∣ci,t∘∣|c^{\circ}_{i,t}|
Early0.271 [0.249, 0.286]0.004 [−0.116, 0.169]
Middle0.266 [0.255, 0.284]0.081 [−0.093, 0.190]
Final0.267 [0.246, 0.278]0.082 [−0.064, 0.204]

Table 11. Loss-derivative agreement and learned-weight correlations for MetaOPD at three training stages (1.7B). Agreement compares ci,t∘c^{\circ}_{i,t} computed from 32-example reference batches; weight correlations use ci,t∘c^{\circ}_{i,t} obtained after averaging dd over 256 reference examples, weighted by valid reference-token counts, and centering within each response. Values summarize within-response comparisons. Brackets report 95% intervals from 2,000 prompt-cluster bootstrap resamples.

Learned weights correlate positively with ci,t∘c^{\circ}_{i,t} at all three checkpoints, with 95% bootstrap intervals above zero (Table 11b); the final correlation is 0.267 [0.246, 0.278]. The intervals for correlations with ∣ci,t∘∣|c^{\circ}_{i,t}| include zero, leaving that association inconclusive. Because the student and optimizer states change, the derivatives used for comparison also change; these correlations therefore do not establish convergence of the weighting rule.

Table 11: Loss-derivative agreement and learned-weight correlations for MetaOPD at three training stages (1.7B). Agreement compares ci,t∘c^{\circ}_{i,t} computed from 32-example reference batches; weight correlations use ci,t∘c^{\circ}_{i,t} obtained after averaging dd over 256 reference examples, weighted by valid reference-token counts, and centering within each response. Values summarize within-response comparisons. Brackets report 95% intervals from 2,000 prompt-cluster bootstrap resamples.

At the final checkpoint, correlations with ci,t∘c^{\circ}_{i,t} are 0.007 for position, 0.216 for teacher entropy, and −0.569 for the teacher–student log-probability gap. The gap has a larger absolute correlation than the learned weights (0.267), in the opposite direction. These within-response correlations do not directly measure validation loss after a student update.

One-Step Update Comparisons

We compare Uniform, Learned, and Reweighted allocations from the same checkpoint, computing candidate updates separately for each of the two rollout groups. Learned uses weights directly from the checkpoint’s frozen weighting network, without a new meta-update; this probe evaluates the allocation already learned at that checkpoint. Reweighted multiplies these learned weights by a linear factor in [0.9, 1.1] based on the within-response rank of ci,t∘c^{\circ}_{i,t}, then restores unit response mean. It uses the same eight-example reference bank to compute the ranking and evaluate the update, so this comparison gives Reweighted access to its evaluation objective.

Let BbB_b denote reference bank bb and θh,b,g′\theta'_{h,b,g} the candidate for strategy hh, bank bb, and rollout group gg. Within each bank, we compute token-mean validation loss and average the two group results equally, then average the 32 banks equally:

ΔLhstep=132∑b=13212∑g=12[Lout(θh,b,g′;Bb)−Lout(θ;Bb)],(31)\Delta L^{\mathrm{step}}_h = \frac{1}{32}\sum_{b=1}^{32}\frac{1}{2}\sum_{g=1}^{2}\left[\mathcal{L}_{\mathrm{out}}(\theta'_{h,b,g}; B_b)-\mathcal{L}_{\mathrm{out}}(\theta; B_b)\right], \tag*{(31)}

where h∈{Uniform,Learned,Reweighted}h \in\{\mathrm{Uniform}, \mathrm{Learned}, \mathrm{Reweighted}\}. Negative ΔLhstep\Delta L^{\mathrm{step}}_h indicates a lower mean loss than the unchanged checkpoint. Uniform and Learned do not use the bank to construct their weights, so their candidates depend only on the rollout group. The paired contrasts are

ΔLLearned−Uniform=ΔLLearnedstep−ΔLUniformstep,(32)\Delta L_{\mathrm{Learned-Uniform}} = \Delta L^{\mathrm{step}}_{\mathrm{Learned}} - \Delta L^{\mathrm{step}}_{\mathrm{Uniform}}, \tag*{(32)}
ΔLReweighted−Learned=ΔLReweightedstep−ΔLLearnedstep.(33)\Delta L_{\mathrm{Reweighted-Learned}} = \Delta L^{\mathrm{step}}_{\mathrm{Reweighted}} - \Delta L^{\mathrm{step}}_{\mathrm{Learned}}. \tag*{(33)}

The pre-update losses cancel because each contrast uses the same banks and rollout groups.

For Learned–Uniform (Figure 4(c); Table 12), we average the two paired group differences within each bank, then resample the 32 banks with replacement 10,000 times and recompute their equally weighted mean to obtain a 95% percentile interval. These intervals condition on the checkpoint and its fixed responses, excluding training-seed variation.

Checkpoint (step)(a) Validation loss changes(b) Paired contrasts
UniformLearnedReweightedLearned−Uniform95% CIReweighted−Learned
Early (232)+0.74+0.09−3.32−0.65[−0.72, −0.59]−3.41
Middle (464)+2.78+0.80−3.03−1.97[−2.16, −1.80]−3.83
Final (696)+6.26+4.31+0.61−1.95[−2.13, −1.78]−3.70

Table 12. One-step validation loss changes ΔLhstep\Delta L^{\mathrm{step}}_h and paired contrasts (10310^3 scale; lower is better) at reference learning rate 3×10−63 \times10^{-6}. Learned−Uniform intervals use 10,000 reference-bank bootstrap resamples with checkpoint and rollouts fixed. Reweighted uses the evaluation bank to construct weights.

At the diagnostic reference learning rate of 3×10−63 \times10^{-6}, Learned yields lower validation loss than Uniform at all three checkpoints (Figure 4(c) and Table 12), with a final paired difference of approximately −1.95×10−3-1.95 \times10^{-3}. Both allocations nevertheless increase mean loss relative to the unchanged checkpoint at every stage, so Learned’s advantage is relative rather than absolute.

Reweighted yields lower validation loss than Learned at each checkpoint, although all three allocations increase loss at the final checkpoint (Table 12). These interventions use local derivative rankings to take finite steps at the reference rate; their relative ordering does not guarantee descent or improvement over the full training trajectory.

Restricted-input allocations. All four restricted-input variants are evaluated at student step 696 and yield consistent derivative estimates and negative Reweighted−Learned contrasts under the same protocol (Table 13), assessing local update quality rather than benchmark accuracy.

Input restrictionSpearmanSign agreementTop-20% Jaccard103ΔLReweighted−Learned10^3 \Delta L_{\mathrm{Reweighted-Learned}}
Position only0.9780.9940.962−3.56
Teacher entropy0.9780.9940.961−3.92
Log-prob. gap0.9790.9930.959−3.84
Top-32 profiles0.9750.9920.960−3.30

Table 13. Loss-derivative agreement and update comparisons for restricted-input variants (1.7B), all at student step 696. Agreement uses ci,toc^o_{i,t} computed from 32-example reference batches; ΔLReweighted−Learned\Delta L_{\mathrm{Reweighted-Learned}} uses equally weighted eight-example reference banks at reference rate 3×10−63 \times10^{-6}. Point estimates; negative contrasts favor Reweighted.

Out-of-Domain Generalization

We evaluate the Qwen3-1.7B-Base checkpoints from the MATH main experiment on GPQA-Diamond ([22]), MMLU-Pro ([27]), and AlpacaEval 2.0 ([3]), without additional training on these tasks. Distillation methods use the Qwen3-8B teacher. All entries in Table 2 are obtained from local evaluation under a common protocol for each benchmark; Base Model denotes Qwen3-1.7B-Base before MATH training.

Evaluation protocol. Across these benchmarks, we use temperature 1.0, top-pp 0.8, and a maximum response length of 8192 tokens, matching the underlying decoding settings in Table 5. The number of responses and evaluation metric are benchmark-specific.

GPQA-Diamond contains 198 questions, for which we sample eight responses per question. Avg@8 measures average response accuracy, and Pass@8 measures the fraction of questions answered correctly at least once. MMLU-Pro contains 12,032 test questions and uses five-shot chain-of-thought demonstrations matched to the question’s category. We generate one response per question and report accuracy as Pass@1. AlpacaEval 2.0 compares model responses with GPT-4-Turbo reference responses using the weighted_alpaca_eval_gpt4_turbo annotator. We report both raw win rate (WR) and length-controlled win rate (LC-WR); these are preference-based scores, rather than answer-verification accuracy.

Aggregation. All scores are on a 0–100 scale. The Avg. row is the unweighted arithmetic average of the five displayed metric scores:

Avg⁡=15(GPQA⁡Avg@8+GPQA⁡Pass@8+MMLU⁡Pass@1+Alpaca⁡LC−WR+Alpaca⁡WR).\operatorname{Avg} = \frac{1}{5}\left(\operatorname{GPQA}_{\mathrm{Avg@8}} + \operatorname{GPQA}_{\mathrm{Pass@8}} + \operatorname{MMLU}_{\mathrm{Pass@1}} + \operatorname{Alpaca}_{\mathrm{LC-WR}} + \operatorname{Alpaca}_{\mathrm{WR}}\right).

This descriptive summary assigns 40%, 20%, and 40% of its weight to GPQA-Diamond, MMLU-Pro, and AlpacaEval, respectively. It is distinct from the six-benchmark mathematical-reasoning averages in Table 1; individual metrics remain necessary to interpret the transfer profile.

Results. MetaOPD has the highest reported scores on both GPQA-Diamond metrics and MMLU-Pro Pass@1. Its AlpacaEval scores are close to OPD’s and below TIP’s, showing that the observed advantage varies across the evaluated tasks. MetaOPD also has the highest descriptive average across the five reported metrics.

References

  1. [1]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.
  2. [2]Mislav Balunović, Jasper Dekoninck, Ivo Petrov, Nikola Jovanović, and Martin Vechev. Matharena: Evaluating llms on uncontaminated math competitions. Advances in Neural Information Processing Systems, 38, 2025.
  3. [3]Yann Dubois, Balázs Galambosi, Percy Liang, and Tatsunori B Hashimoto. Length-controlled alpacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475, 2024.arxiv.org/abs/2404.04475
  4. [4]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.
  5. [5]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.
  6. [6]Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.arxiv.org/abs/1503.02531
  7. [7]Nathan Hu, Eric Mitchell, Christopher D Manning, and Chelsea Finn. Meta-learning online adaptation of language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 4418–4432, 2023.arxiv.org/abs/2305.15076
  8. [8]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.arxiv.org/abs/2603.07079
  9. [9]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.arxiv.org/abs/1606.07947
  10. [10]Jongwoo Ko, Sungyun Kim, Tianyi Chen, and Se-Young Yun. Distillm: Towards streamlined distillation for large language models. arXiv preprint arXiv:2402.03898, 2024.arxiv.org/abs/2402.03898
  11. [11]Jongwoo Ko, Sara Abdali, Young Jin Kim, Tianyi Chen, and Pashmina Cameron. Scaling reasoning efficiently via relaxed on-policy distillation. arXiv preprint arXiv:2603.11137, 2026.arxiv.org/abs/2603.11137
  12. [13]Mengyang Li, Xudong Zhou, and Pinlong Zhao. Learning temporally-aware sample weights for preference optimization. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 12361–12377, 2026a.DOI
  13. [14]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.arxiv.org/abs/2604.13016
  14. [15]Yuying Li, Leqi Zheng, Yongzi Yu, Wenrui Zhou, Xuchang Zhong, Xing Hu, Jing Jin, Hangjie Yuan, and Tao Feng. Filter, then reweight: Rethinking optimization granularity in on-policy distillation. arXiv preprint arXiv:2606.02684, 2026c.
  15. [16]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, volume 2024, pp. 39578–39601, 2024.arxiv.org/abs/2305.20050
  16. [17]Alexander Lin, Jeremy Wohlwend, Howard Chen, and Tao Lei. Autoregressive knowledge distillation through imitation learning. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6121–6133, 2020.
  17. [18]Xiaogeng Liu, Xinyan Wang, Yingzi Ma, Yechao Zhang, and Chaowei Xiao. When are teacher tokens reliable? position-weighted on-policy self-distillation for reasoning. arXiv preprint arXiv:2605.21606, 2026.
  18. [19]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.arxiv.org/abs/1711.05101
  19. [20]Rui Pan, Dylan Zhang, Hanning Zhang, Xingyuan Pan, Minrui Xu, Jipeng Zhang, Renjie Pi, Xiaoyu Wang, and Tong Zhang. ScaleBio: Scalable bilevel optimization for LLM data reweighting. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 31959–31982, 2025.
  20. [22]David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanze Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.arxiv.org/abs/2311.12022
  21. [23]Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. In International conference on machine learning, pp. 4334–4343. PMLR, 2018.
  22. [24]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.
  23. [25]Jun Shu, Qi Xie, Lixuan Yi, Qian Zhao, Sanping Zhou, Zongben Xu, and Deyu Meng. Meta-weight-net: Learning an explicit mapping for sample weighting. Advances in neural information processing systems, 32, 2019.arxiv.org/abs/1902.07379
  24. [26]Yuanyi Wang, Su Lu, Yanggan Gu, Pengkai Wang, Yifan Yang, Zhaoyi Yan, Congkai Xie, Jianmin Wu, and Hongxia Yang. Not all disagreement is learnable: Token teachability in on-policy distillation. arXiv preprint arXiv:2605.26844, 2026.arxiv.org/abs/2605.26844
  25. [27]Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, et al. Mmlu-pro: A more robust and challenging multi-task language understanding benchmark. Advances in Neural Information Processing Systems, 37: 95266–95290, 2024.arxiv.org/abs/2406.01574
  26. [28]Yuqiao Wen, Zichao Li, Wenyu Du, and Lili Mou. F-divergence minimization for sequence-level knowledge distillation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 10817–10834, 2023.arxiv.org/abs/2307.15190
  27. [29]Yan Xie, Sijie Zhu, Tiansheng Wen, Bo Chen, and Yifei Wang. On the position bias of on-policy distillation. arXiv preprint arXiv:2606.22600, 2026.arxiv.org/abs/2606.22600
  28. [30]Haolei Xu, Xiaowen Xu, Haiwen Hong, Zixuan Ni, Hongxing Li, Yiwen Qiu, Weiming Lu, and Yongliang Shen. Pass the baton: Trajectory-relayed on-policy distillation. arXiv preprint arXiv:2607.26057, 2026a.arxiv.org/abs/2607.26057
  29. [31]Yuanda Xu, Hejian Sang, Zhengze Zhou, Ran He, Zhipeng Wang, and Alborz Geramifard. Tip: Token importance in on-policy distillation. arXiv preprint arXiv:2604.14084, 2026b.arxiv.org/abs/2604.14084
  30. [32]An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024.arxiv.org/abs/2407.10671
  31. [33]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chenghen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  32. [34]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, 2026.arxiv.org/abs/2602.12125
  33. [35]Yang Yu, Kai Han, Hang Zhou, Yehui Tang, Kaiqi Huang, Yunhe Wang, and Dacheng Tao. LLM data selection and utilization via dynamic bi-level optimization. arXiv preprint arXiv:2507.16178, 2025.arxiv.org/abs/2507.16178
  34. [36]Zichao Yu, Chengzhi Yu, Shengze Xu, Yujin Han, Bingqing Jiang, Xu Wang, and Difan Zou. Mismatch matters: On-policy distillation beyond token agreement. arXiv preprint arXiv:2608.09836, 2026.arxiv.org/abs/2608.09836
  35. [37]Rongzhi Zhang, Chenwei Zhang, Xinyang Zhang, Liang Qiu, Haoming Jiang, Yuchen Zhuang, Qingru Zhang, Hyokun Yun, Xian Li, Bing Yin, et al. DORM: Preference data weights optimization for reward modeling in LLM alignment. In EMNLP (Findings), pp. 22721–22739, 2025.DOI
  36. [38]Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2024, 2024.
  37. [39]Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime). Mathematical Association of America (MAA), 2025.

Paper details

vlnc:W_nm7nrfsz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Codex

View statement
Looking for related papers…
Contents