P²-MOPD: Accelerating Multi-Teacher On-Policy Distillation via Parameter Priors
“Consolidating specialized domain LLMs via standard multi-teacher on-policy distillation is slow and regularly strands one lagging capability behind. By formulating the student as a linear combination of trainable base weights and frozen expert task vectors, P²-MOPD jointly trains both mixing coefficients and full weights under a single distillation loss—exceeding MOPD (TA init)'s final average recovery within 25 steps at 4B and 50 steps at 1.7B, and lifting worst-domain recovery from below 50% to nearly 90%.”
Table 1 normalized recovery means (not accuracy): 1.7B average 94.74% vs MOPD (TA init) 80.93%; 4B average 94.85% vs 83.13%; 1.7B worst-domain 88.01% vs 32.03%; 4B worst-domain 89.42% vs 47.22%. These are three-seed means; see Table 1 for uncertainty.
Why This Matters
The modern recipe for building frontier artificial intelligence is modular: instead of forcing one model to master advanced mathematics, multi-jurisdiction law, clinical diagnostics, and nuanced instruction following all at once, teams train separate domain experts via reinforcement learning (RL). Once these specialized teachers are perfected, the engineering grand challenge is capability integration—fusing them into a single, cohesive generalist model without catastrophic forgetting or domain dilution.
Two primary paradigms have emerged to achieve this consolidation:
Add up the parameter displacements (“task vectors”) of the teachers with fixed scalar coefficients without training. It is computationally free, but completely unsupervised: conflicting parameters interfere destructively, recovering less than half the performance gap.
The student model generates text rollouts, and each prompt is scored token-by-token by its respective domain teacher. It aligns behavioral outputs directly, but requires massive compute and persistently leaves certain domains behind.
The fundamental pathology of standard MOPD is severe capability imbalance. When standard MOPD updates student weights directly, gradient optimization moves easily along dominant directions (like law, finance, and instruction following) but barely advances along lagging domains (like medical reasoning on MedQA). In fact, even when initialized from a merged checkpoint, standard MOPD can actively erode capabilities the merge already possessed, ending with worst-domain recoveries as low as 32%.
The Big Idea
Rather than viewing weight merging and on-policy distillation as disconnected steps—or treating merged weights as an immutable static initialization—P²-MOPD expresses the student model as a single differentiable composition of trainable base weights plus a learnable linear combination of frozen expert parameters.
In doing so, the domain experts act as continuous parameter priors. The student receives dual guidance under one unified objective: teacher logits supervise behavioral rollouts, while the distillation gradients continuously update both the full weights and the mixing coefficients. Because the base weights remain fully unconstrained, the model is never trapped within the low-dimensional affine span of the task vectors; meanwhile, because the mixing coefficients can pivot with a single scalar step, expert-aligned directions that student weight updates normally miss become instantly reachable.
Dual-Channel Joint Optimization
Each linear projection module $m \in \mathcal{M}$ (attention $Q, K, V, O$ and MLP gate, up, down) is parameterized as:
Hover or click on components in the architecture diagram above to explore how data and gradients flow through the parameter prior and distillation pipeline without computing gradients for the teachers.
Why Does Joint Optimization Work?
Why does introducing mixing coefficients $\alpha_{k,m}$ accelerate training so radically if the model class itself is unaltered? Under plain SGD, Eq. 8 interprets the two channels as a preconditioned step. This interpretation does not make Adam identical to natural-gradient optimization.
Consider a single module flattened into a vector: $w = b + D\alpha$, where $D = [\text{vec}(\tau_1), \dots, \text{vec}(\tau_K)] \in \mathbb{R}^{d \times K}$ is the matrix of frozen task vectors. If both channels were updated with plain SGD (learning rates $\eta_W$ and $\eta_\alpha$), the per-step parameter update becomes:
Notice the structure of $\left(\eta_W I + \eta_\alpha D D^\top\right)$: it is an identity metric plus a positive semidefinite matrix of rank at most $K$ formed by the outer products of the expert task vectors. The parameter prior literally acts as a preconditioner, biasing movement along expert directions; the plain-SGD interpretation does not specify the magnitude of Adam updates.
In Algorithm 1, the implementation never stores the intermediate base weights $B$; it tracks materialized weights $W$ and folds in $\Delta \alpha_k \tau_k$. The authors prove this update is strictly mathematically identical to tracking $B$ if and only if weight decay is set to 0. Nonzero weight decay would penalize $-\eta \lambda_{wd} W_t$, artificially shrinking the task-vector component!
Vector Span & Trajectory Explorer
Visualize why learning mixing coefficients $\alpha$ alone is trapped on the affine hyperplane, why standard MOPD fails to move along $\tau_{\text{med}}$, and how P²-MOPD splits the displacement.
| Method | MedQA | CaseHOLD | FinQA | IFBench | Avg Rec. | Worst |
|---|
Wall-Clock Training Efficiency Analysis
Each step in P²-MOPD streams frozen task vectors to calculate the inner-product directional derivatives $\langle G_m, \tau_{k,m} \rangle$. While this lengthens the pure actor update from 14.7s to 73.8s at 4B, rollout generation strongly dominates each step. Consequently, full 100 steps take only $1.24\times$ (4B) and $1.09\times$ (1.7B) the clock time of baseline MOPD.
Exceeds MOPD (TA init) final average (83.13%) within 25 of its 100 steps (85.4% recovery), requiring less than a third of the wall-clock time.
Exceeds MOPD (TA init) final average (80.93%) within 50 of its 100 steps (90.5% recovery) in barely over half the total compute time.
Conflict Resolution in α Space
Why does MOPD fail to recover medicine when trained jointly? The authors perform per-domain gradient decomposition:
The decomposition reveals a striking geometric contest:
- Gradient conflict is local to $\alpha_{\text{med}}$: 98% of the medical gradient lies along $\alpha_{\text{med}}$. Meanwhile, the finance and instruction following gradients point sharply in the opposite direction (cosine similarity of $-0.78$ and $-0.63$ at 4B; $-0.85$ and $-0.81$ at 1.7B).
- The gradient settles the contest: At every training step, the medical gradient vigorously pushes $\alpha_{\text{med}}$ upward, while finance and IF push down. Their sum follows medicine, steadily driving the mean medical mixing coefficient from the initial $0.25$ up to $0.63$ (4B) and $0.65$ (1.7B).
- Division of labor: With the weights $B$ free to adjust, $B$ adapts to absorb the needs of finance and law outside the task vectors, allowing $\alpha$ to specialize on rescuing the lagging medical domain.
Isolating the Prior: Controlled Counterfactuals
Does the gain truly come from the expert direction $\tau_{\text{med}}$, or simply from adding extra parameters to the model? The authors performed controlled ablation interventions on Qwen3-1.7B (Table 3):
| Intervention | αmed active? | Med KL ↓ | MedQA Rec. ↑ | Avg Rec. ↑ |
|---|---|---|---|---|
| Standard MOPD (TA init) | × | 0.115 | 22.1% | 78.1% |
| P²-MOPD (All channels) | ✓ | 0.032 | 87.2% | 95.8% |
| Random Directions instead of τ | × | 0.111 | 1.4% | 70.2% |
| Learn ONLY αmed (1 scalar/module) | ✓ | 0.028 | 94.1% | 95.0% |
| Freeze αmed, learn all other α | × | 0.112 | 24.2% | — |
Key finding: Replacing task vectors with random directions collapses MedQA recovery to 1.4%, supporting the benefit of the expert parameter prior, not mere parameter over-specification.
Limitations & Open Questions
While P²-MOPD delivers significant speedups and fixes lagging capabilities, an objective engineering assessment reveals important caveats:
- Shared Ancestry Dependency: The entire formulation rests on well-defined linear task vectors $\tau_k = \theta_k - \theta_0$. All expert teachers must be fine-tuned from the exact same pre-trained or SFT base model with identical architectures. It cannot merge heterogeneous models (e.g., Llama-3 with Mistral) or experts initialized from divergent weight trees.
- Task Vector Memory Streaming: Although GPU accelerator memory stores only the composed weights and 10³ scalars of $\alpha$, streaming all $K$ task vectors from memory-mapped host RAM at each training step increases actor step computation (e.g. from 14.7s to 73.8s at 4B). On setups with slower host-to-device interconnects or tiny rollout batch sizes, this overhead could dampen the wall-clock speedup.
- Hyperparameter Sensitivity ($\eta_\alpha$): As demonstrated in the coefficient LR sweep (Figure 6), setting $\eta_\alpha$ too high ($3 \times 10^{-2}$) falls below MOPD (TA init) from step 50; FinQA stays near the TA start, with final recovery 69.5%.
- Scaling to Massive Expert Counts: The paper validates 4 domains at 1.7B and 4B scale. It remains an open empirical question whether scaling to dozens of specialized MoE-style domain experts leads to chaotic scalar competition among dozens of cross-domain gradient inner products.
Glossary of Key Terms
A post-training technique where the student generates tokens from its own policy ($y \sim \pi_\theta$), and teachers evaluate those student rollouts using teacher-forcing log-probabilities, serving as a dense reverse-KL reward.
A training-free model merging technique introduced by Ilharco et al., which creates a new model by linearly adding task vectors $\tau_k = \theta_k - \theta_0$ to the base checkpoint $\theta_0$.
Metric measuring the percentage of the gap between the base model ($s_{\text{base}}$) and expert teachers ($s_{\text{teacher}}$) recovered by the student: $(s - s_{\text{base}})/(s_{\text{teacher}} - s_{\text{base}})$.
Multiplying the raw loss gradient by a positive semidefinite matrix that warps parameter updates toward promising subspaces, here geometrically mirroring natural gradient descent along expert vectors.
Citation
@article{wang2026p2mopd,
title={P$^2$-MOPD: Accelerating Multi-Teacher On-Policy Distillation via Parameter Priors},
author={Wang, Sinuo and Lu, Jiacheng and Zhang, Zeyu and Song, Maojia and Sun, Rui and Luan, Beidi and Xie, Yutong and Li, Jing and Jiang, Daxin and Wu, Qi and Bai, Zuo},
journal={arXiv preprint arXiv:2611.03953},
year={2026}
}