Source-linked AI summary
P$^2$-MOPD: Accelerating Multi-Teacher On-Policy Distillation via Parameter Priors
Sinuo Wang, Jiacheng Lu, Zeyu Zhang, Maojia Song, Rui Sun, Beidi Luan, Yutong Xie, Jing Li, Daxin Jiang, Qi Wu, Zuo Bai
TL;DR
MOPD supervises student-generated trajectories to consolidate experts, but recovery can remain uneven, while training-free task arithmetic does not guarantee model quality. P2-MOPD jointly trains a differentiable combination of student and expert parameters, achieving faster and more balanced recovery than MOPD across four domains and two scales.
Problem
MOPD can leave domains under-recovered or erode capabilities, while task arithmetic combines expert parameters without supervision and does not guarantee quality.
Source: §1 · p. 1Method
P2-MOPD treats a linear combination of trainable student weights and frozen expert parameters as one model, jointly optimizing weights and mixing coefficients under the MOPD objective.
Source: §1 · p. 2Results
Across four domains at 1.7B and 4B, P2-MOPD surpasses MOPD’s final average recovery in half the training steps and raises worst-domain recovery from below half to nearly 90%.
Source: §1 · p. 2, §6 · p. 10Takeaways & Limitations
Learnable coefficients make the lagging expert direction reachable, while student weights adapt beyond the task-vector span.
Source: §1 · p. 2, §6 · p. 10
Abstract
from arXiv · showhide
Multi-teacher on-policy distillation consolidates expert capabilities by supervising student-generated trajectories, whereas task arithmetic offers a training-free alternative through linear parameter combinations. We view the linear combination of student and expert parameters as a single differentiable model and propose P$^2$-MOPD, which jointly optimizes the mixing coefficients and the student weights under the same on-policy distillation objective. Unlike task arithmetic, which stays within the span of the frozen student and expert parameters for any choice of merging coefficients, P$^2$-MOPD keeps the student trainable, so the experts act as parameter priors without confining it to this span. Across four domains at 1.7B and 4B scales, P$^2$-MOPD achieves faster and more balanced recovery than MOPD from the same initialization, surpassing its final average recovery in half the training steps. At the end of training, our 1.7B model reaches 94.7% average recovery, versus 80.9% for MOPD.
1. Introduction
P2-MOPD jointly trains student weights and expert-mixing coefficients under the MOPD objective, using expert parameters as priors without confining the student to their span. Across four domains and two scales, it recovers faster and more evenly than MOPD from the same merged start.
1. Introduction
- After half the training steps, P2-MOPD exceeds MOPD (TA init)’s final average recovery and raises worst-domain recovery from below 50% to nearly 90%.The comparison covers four domains at two scales and uses the same merged start.Source: Figure 1 · p. 1, §1 · p. 2
- MOPD can leave a domain far behind or erode a capability already present in the merge, while task arithmetic offers an unsupervised alternative whose quality is not guaranteed.A uniform merge recovers less than half the gap between the base model and teachers.Source: §1 · pp. 1–2
- P2-MOPD treats the student and frozen experts’ linear combination as one differentiable model, jointly training its weights and mixing coefficients under the MOPD objective.Expert logits supervise outputs while expert parameters enter the student weights through learned coefficients.Source: §1 · p. 2
- Learnable coefficients make the lagging expert’s direction reachable, while student weights adapt beyond the task-vector span.MOPD’s weight-only updates barely move along that expert’s direction; P2-MOPD moves an order of magnitude farther, and recovery tracks that movement.Source: §1 · p. 2
2. Related Work
Prior work studies multi-teacher distillation and parameter merging as ways to consolidate domain experts. P2-MOPD instead trains the student–expert combination continuously under the on-policy objective.
Multi-Teacher On-Policy Distillation
- MOPD extends on-policy distillation to multiple RL-trained domain experts by routing each prompt to its domain’s teacher.Follow-up work changes teacher supervision through budget balancing, token routing, or soft-prompt teachers, while retaining a plain student weight set.Source: §2 · p. 2
- IM-MOPD periodically merges task vectors for under-recovered domains using an external validation rule, whereas P2-MOPD learns the combination from the distillation gradient.P2-MOPD treats trainable student and frozen expert parameters as one differentiable model throughout training.Source: §2 · pp. 2–3
Model Merging
- Model-merging methods combine experts offline or between training phases; P2-MOPD incorporates the differentiable combination into MOPD and updates coefficients and student weights together.Prior methods learn merge coefficients from entropy, task data, logits, or activations, among other approaches.Source: §2 · p. 3
3. Method
P2-MOPD treats a linear combination of student and frozen expert parameters as one differentiable model, jointly optimizing student weights and mixing coefficients under the on-policy distillation objective. The method keeps the student unconstrained while using expert task vectors to shape its optimization path.
3.1. Problem Formulation and Preliminaries
- MOPD trains a student on its own sampled responses, scored by the teacher routed to each prompt’s domain, using a clipped policy-gradient surrogate.The task-arithmetic merge is training-free and confined to the affine span of the task vectors.Source: §3.1 · p. 3
3.2. Expert Parameters as Differentiable Priors
- P2-MOPD parameterizes each module as trainable full weights plus a learnable combination of frozen expert task vectors, while leaving the model class unchanged.Each module has its own coefficients in the main experiments; initialization reproduces the task-arithmetic merge exactly.Source: §3.2 · pp. 3–4
- Each coefficient gradient is the loss’s directional derivative along its frozen task vector, so a negative value indicates that increasing that expert’s contribution decreases batch loss to first order.The gradient sums contributions from prompts across domains.Source: §3.2 · p. 4
3.3. Joint Optimization and Its Interpretation
- The update uses one pre-update loss gradient for separate student-weight and coefficient channels, then folds the coefficient increment into materialized weights.The student-weight channel uses no weight decay, and each channel is clipped separately.Source: §3.3 · pp. 4–5
- The coefficient channel moves along task-vector directions while unrestricted student-weight updates can move inside or outside their span, making the prior a preconditioner rather than a model-class constraint.The prior’s positive-semidefinite term has rank at most K, with strength set by the relative channel learning rates.Source: §3.3 · p. 5
4. Experiments
Across four domains and two model scales, P2-MOPD recovers capabilities faster and more evenly than MOPD (TA init). The experiments examine its performance, how learnable coefficients affect movement along task vectors, and the training cost of that approach.
4.1. Experimental Setup
- Experiments use Qwen3-4B and Qwen3-1.7B with medical, law, finance, and instruction-following teachers, evaluating MedQA, CaseHOLD, FinQA, and IFBench.Each batch contains 128 prompts, 32 from each domain; the fifth domain, τ2-bench, is omitted because its user simulator requires a paid commercial LLM API.Source: §4.1 · pp. 5–6
4.2. Main Results
- At step 50, P2-MOPD reaches 92.3 (4B) and 90.5 (1.7B) average recovery, exceeding MOPD (TA init)'s final 83.1 and 80.9 in every seed pair.It leads at all 24 seed-paired comparisons across two scales, three seeds, and four checkpoints.Source: §4.2 · p. 6, Table 1 · p. 7
- Across nearly every checkpoint, MedQA is the lowest-recovery domain for both methods; MOPD (TA init) recovers the other three domains as fast as P2-MOPD but leaves MedQA behind.Source: Figure 3 · p. 6
- P2-MOPD raises MedQA recovery by +29.0 (4B) and +48.2 (1.7B) points on average, while FinQA is slightly lower in most seed pairs and IFBench differences go both ways.P2-MOPD recovers at least 88% of the teacher gap in every domain at the end of training.Source: §4.2 · pp. 6–7, Table 2 · p. 7
4.3. Why Learnable Coefficients Help
- P2-MOPD moves +0.40 (4B) and +0.42 (1.7B) along τmed, 13–15 times as far as MOPD (TA init), while its coefficient channel accounts for 81% and 84% of displacement energy.The student weight channel moves almost entirely outside the task-vector span, with only 1.7% and 4.0% of its displacement inside.Source: §4.3 · p. 7, Figure 4 · p. 7
4.4. Training Cost
- With 100-step MOPD (TA init) wall-clock as the budget, P2-MOPD's step-75 checkpoint reaches 95.7 / 89.3 average recovery at both scales.P2-MOPD exceeds MOPD (TA init)'s final average recovery by step 25 at 4B and step 50 at 1.7B, at 0.31× and 0.55× the wall-clock, respectively; these are upper bounds because checkpoints are 25 steps apart.Source: Table 4 · p. 8, §4.4 · pp. 8–9
5. Ablation Studies
The ablations show that combining learnable coefficients with trainable student weights gives the strongest recovery across domains. They also examine coefficient granularity, initialization, and the learned mixture.
Inside versus beyond the task-vector span
- At 4B / 1.7B, learning coefficients inside the task-vector span improves average recovery by +10.0 / +16.9 points, while P2-MOPD gains +51.9 / +62.3.The coefficients-only variant stays far below P2-MOPD; weight-only MOPD (TA init) gains +40.2 / +48.5 points but leaves MedQA behind, and only the combined channels give the best average and worst-domain recovery.Source: §5 · p. 9, Table 5 · p. 9
Coefficient granularity
- Module-wise granularity combines average recovery of 94.9 / 94.7 with across-domain standard deviation of 4.6 / 4.8 at 4B / 1.7B.At 4B, layer tying ends at 73.4, while model tying's 96.5 falls within the seed range for module granularity; the 1.7B layer run does not show that drop.Source: §5 · p. 9, Table 6 · p. 9
Initialization
- From the base-model initialization, P2-MOPD ends at 61.2 and 66.2 average recovery for coefficient learning rates 10^-2 and 3 × 10^-2, versus −15.7 for MOPD.P2-MOPD leads at every checkpoint and both learning rates tested, so its advantage does not depend on starting from the task-arithmetic merge.Source: §5 · p. 9
Learned coefficients
- The learned medical coefficient rises to 0.63 at 4B and 0.65 at 1.7B, while each teacher's mean coefficient agrees across three seeds within 0.01.With weights frozen, coefficient standard deviation across modules is 0.38–0.40 versus 0.12–0.14 when coefficients and weights are learned jointly.Source: §5 · p. 10
6. Conclusion
P2-MOPD jointly trains the student weights and mixing coefficients, using expert parameters as learnable priors while allowing the student to move beyond their task-vector span. The implemented objective uses student-generated rollouts and teacher feedback, with truncated responses masked from training.
6. Conclusion
- P2-MOPD surpasses MOPD’s final average recovery in half the training steps and raises worst-domain recovery from below half to nearly 90%.The conclusion describes this pattern across four domains at 1.7B and 4B scales.Source: §6 · p. 10
- Jointly learning coefficients and student weights makes the lagging domain’s teacher-aligned direction reachable while letting student updates move beyond the task-vector span.The conclusion identifies expert parameters, retained as learnable priors, as a source of supervision alongside expert predictions.Source: §6 · p. 10
A. The Distillation Objective as Implemented
- The support uses the student’s 16 most probable tokens, retaining tokens in descending order through the one that crosses 0.99 cumulative renormalized mass.The teacher distribution is evaluated on that same support; tokens outside it contribute nothing.Source: A. The Distillation Objective as… · p. 12
- The per-candidate reward combines a support-restricted reverse-KL signal with a penalty when the student assigns more mass to its candidates than the teacher does.The reward is used directly as the advantage, without a baseline or group normalization.Source: A. The Distillation Objective as… · p. 12
- The PPO-style surrogate uses asymmetric clipping and dual clipping, but clipping is inactive in effect when each rollout batch yields one optimizer step.Under that condition, its gradient equals the gradient of the stated distillation objective.Source: A. The Distillation Objective as… · p. 12
- Responses ending at the generation length cap are excluded entirely, prompts are never trained on, and losses are averaged over unmasked response tokens.The objective also recomputes student log-probabilities at learner time and evaluates teacher probabilities on the same prefixes.Source: A. The Distillation Objective as… · p. 12
B. Update Rule: Implementation Details and Equivalence Conditions
The update implementation stores trainable student weights and coefficients while forming task vectors module by module as needed. With zero weight decay, updating the materialized student weights is equivalent to optimizing the combined parameters; measured overhead comes from task-vector streaming in the actor update.
B. Update Rule: Implementation Details and Equivalence Conditions
- The trainable state includes the student’s FP32 master weights and AdamW moments plus the free coefficient table and its Adam moments; task vectors are formed one module at a time.The base and expert checkpoints are memory-mapped, and the task vectors are not stored on the accelerator.Source: B. Update Rule: Implementation Details… · pp. 12–13
- Each step computes coefficient gradients from unclipped sharded gradients, updates weights and coefficients separately, adds the task-vector increments, then synchronizes weights to the rollout engine.If either clipped gradient norm is non-finite, the weight and coefficient updates are skipped for that batch.Source: B. Update Rule: Implementation Details… · p. 13
- With zero weight decay, Adam produces equivalent increments whether applied to the combined parameters or to the materialized student weights.Nonzero decay breaks this equivalence because it shrinks the task-vector component in the materialized-weight form; all reported runs use decay 0.Source: B. Update Rule: Implementation Details… · p. 13
- Checkpoints save the FP32 weights, optimizer states, and coefficient table, while exported inference checkpoints need no coefficient metadata.The coefficient trajectory is stored separately for analysis.Source: B. Update Rule: Implementation Details… · p. 13
- Measured cost comes from task-vector streaming in the actor update; rollout generation is unchanged, and coarser coefficient tying does not reduce the cost.Table 7 reports wall-clock and per-step costs for all coefficient granularities on 8 GPUs.Source: Table 7 · p. 13, B. Update Rule: Implementation Details… · p. 13
C. Experimental Details
Experiments use four domain teachers, domain-balanced training prompts, official test splits, and controlled comparisons that isolate changes to P2-MOPD or MOPD from the same merged start.
C. Experimental Details
- The four 1.7B teachers are trained from the same reference model because IM-MOPD does not release its 1.7B teachers; the 4B experiments use released IM-MOPD teachers.The 1.7B medical and law teachers use filtered-response SFT, while finance and instruction-following use 200-step GRPO.Source: C. Experimental Details · p. 13
- Training uses 65,075 prompts across medicine, law, finance, and instruction following, sampled with 32 prompts per domain in each batch.Evaluation uses official test splits, and none of the methods uses the held-out validation pool for model selection.Source: C. Experimental Details · pp. 13–14
- MOPD (SFT warm-up) starts from 62 SFT steps, while MOPD (TA init) differs from P2-MOPD by freezing the mixing coefficients.The coefficients-only variant additionally freezes the student weights.Source: C. Experimental Details · p. 14
- The four checkpoints within one run are not independent repeats, and evaluation sampling uses seeds 42, 43, and 44 for every checkpoint.The checkpoints are never pooled as independent repeats.Source: C. Experimental Details · p. 14
- Using learned coefficients without the accompanying weight updates reaches 69.8 average recovery, while the learned-α point alone averages 28.8, below the TA merge.Composing final P2-MOPD coefficients onto the base without weight updates keeps MedQA recovery at 85.1 but leaves FinQA at 32%.Source: C. Experimental Details · p. 14
- The random-direction intervention replaces task vectors with norm-matched independent Gaussian tensors while keeping the TA start and teachers fixed.Figure 4’s task-vector projections use least squares; its per-domain coefficient gradients are recorded as inner products of domain loss gradients with task vectors.Source: C. Experimental Details · p. 14
D. Coefficient Learning Rate
At 1.7B, the coefficient learning-rate sweep finds a range of rates that improves on MOPD (TA init), with 10^-2 best among the tested settings. Starting from the base model also changes the recovery pattern across rates and domains.
D. Coefficient Learning Rate
- 10^-2 is best in the sweep, while 3 × 10^-2 falls below MOPD (TA init) from step 50 onward as FinQA stays at the TA-start level.The sweep holds other settings fixed.Source: Figure 6 · p. 14, D. Coefficient Learning Rate · p. 14
- At 3 × 10^-3, the gain over MOPD (TA init) is +10.4 versus +13.8 at the end of training, and this setting leads MOPD (TA init) at every checkpoint.The passage characterizes the smaller rate as achieving three quarters of the main setting’s gain.Source: Figure 6 · p. 14, D. Coefficient Learning Rate · p. 14, Table 8 · p. 15
- From the base-model start, average recovery at step 100 is 61.2 / 66.2 for P2-MOPD at ηα = 10^-2 / 3 × 10^-2, versus −15.7 for MOPD.The corresponding Avg. Score is 51.6 / 52.2 versus 40.4.Source: D. Coefficient Learning Rate · p. 15
E. Learned Coefficients
At both model scales, the medical teacher’s learned coefficient grows the most from its shared 0.25 initialization; the other three coefficients finish between 0.33 and 0.46.
E. Learned Coefficients
- The medical coefficient grows the most at both scales, from 0.25 to above 0.6, while the other three finish between 0.33 and 0.46.Table 9 reports final mean coefficients per teacher, averaged over modules; all coefficients start at 0.25.Source: E. Learned Coefficients · p. 15, Table 9 · p. 15
F. Hyperparameters and Matched Initialization
P2-MOPD and MOPD (TA init) use the same merged checkpoint, formed by applying a 0.25 coefficient for each of four teachers to every model tensor.
F. Hyperparameters and Matched Initialization
- P2-MOPD and MOPD (TA init) load an identical checkpoint formed by applying coefficient 0.25 for each of four teachers to every model tensor.The merge covers embeddings, normalization weights, and the output head, and is performed with the IM-MOPD merge utility in FP32.Source: F. Hyperparameters and Matched… · p. 15
- Table 10 lists the training hyperparameters of P2-MOPD and the MOPD baselines.MOPD starts from θ0.Source: Table 10 · p. 15, F. Hyperparameters and Matched… · p. 15
G. Evaluation Protocol and Endpoints
Seed-paired comparisons show P2-MOPD outperforming MOPD (TA init) at intermediate and final checkpoints; reported recovery uses a four-domain unweighted average under a shared evaluation harness.
G. Evaluation Protocol and Endpoints
- The evaluation harness averages three generations per item at temperature 1.0 using seeds 42, 43, and 44, then reports the mean item score (avg@3).IFBench uses prompt-level loose accuracy; domain generation caps range from 26,624 to 32,768 tokens, subject to the model’s configured 32,768-position context limit.Source: G. Evaluation Protocol and Endpoints · p. 16
- Table 11 supplies the base and teacher endpoints measured with the same harness for calculating each domain’s recovery span.The endpoint span is the denominator of recovery, and one raw point corresponds to 100/span recovery points.Source: Table 11 · p. 16
- Average recovery is the unweighted mean of per-domain (score − baseline score)/span values, which may exceed 1 or fall below 0.Because spans differ, one raw point moves recovery by 9.1 points on 4B MedQA but 3.0 points on 4B IFBench; raw means accompany average-recovery numbers.Source: G. Evaluation Protocol and Endpoints · p. 16
- At 4B and 1.7B, P2-MOPD’s step-50 checkpoint exceeds MOPD (TA init)’s final checkpoint in every seed.The paired gaps are +1.6, +4.5, and +21.3 at 4B and +10.4, +11.3, and +7.1 at 1.7B; at step 25, the average-recovery gap is +6.17 at 4B and +21.5 ± 2.9 at 1.7B.Source: G. Evaluation Protocol and Endpoints · p. 16
- IM-MOPD uses an effective batch of 128, 100 steps, three seeds, and recovery-gated merges at steps 25, 50, and 75.Across merge steps, average recovery changes by −17.2 to +6.8 points, and subsequent steps recover most of the larger drops; seed variation includes differences in merge path.Source: G. Evaluation Protocol and Endpoints · p. 16, Table 12 · p. 16
Related papers
This paper cites
- Editing Models with Task Arithmetic2022
- TIES-Merging: Resolving Interference When Merging Models2023
- MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training2026
- Nemotron-Cascade 2: Post-Training LLMs with Cascade RL and Multi-Domain On-Policy Distillation2026
- Nemotron 3 Ultra: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning2026
- Trust Region On-Policy Distillation2026