P² FlashPapers Deep Dive
arXiv Preprint • November 2026

P²-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 StepFun, Adelaide University (AIML), SJTU, SUTD, MBZUAI
TL;DR

“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%.”

STEPS TO FINAL BASELINE
≤25 / ≤50 Steps
Exceeds MOPD (TA init) final average: at most 25 steps (4B), 50 steps (1.7B), of its 100 steps.
WORST DOMAIN
88.0% – 89.4%
Vs. 32.0% – 47.2% for MOPD (TA init).
WALL-CLOCK GAIN
0.31× – 0.55×
Upper bounds to exceed final MOPD (TA init) average: 4B ≤0.31×; 1.7B ≤0.55×.
ZERO INFERENCE COST
Standard ckpt
Learned α folds into weights $W$; standard forward.

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.

Context & Motivation

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:

Paradigm 1: Task Arithmetic (Weight Merging)

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.

Paradigm 2: Multi-Teacher On-Policy Distillation (MOPD)

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 Conceptual Leap

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.

Method & Architecture

Dual-Channel Joint Optimization

Hover / Tap Blocks to Inspect Flow

Each linear projection module $m \in \mathcal{M}$ (attention $Q, K, V, O$ and MLP gate, up, down) is parameterized as:

$$W_m(B, \alpha) = B_m + \sum_{k=1}^K \alpha_{k,m} \tau_{k,m}, \quad \text{where } \tau_{k,m} = W_m^{(k)} - W_m^{(0)}$$
Parameter Prior & Composition Frozen Expert Bank $\{\tau_{k,m} = W_m^{(k)} - W_m^{(0)}\}$ Medical, Law, Finance, Instruction Following • NO GRAD to experts • Frozen task vectors Learnable α Scalar mixing weights Adam (decay 0, lr 1e-2) Student Base $B$ Full-param unconstrained AdamW (decay 0, lr 1e-5) + Composed $W_m$ Forward (Single Model) Student Rollouts Prompt $x \sim \mathcal{D}$ Sample tokens $y \sim \pi_{\theta_t}$ Routed Teacher $\pi_{\theta_{d(x)}}$ Teacher-forcing scoring Logits $q(v)$ on student support $\mathcal{V}_i$ MOPD Objective $\mathcal{L}_t(\theta)$ Reverse-KL surrogate reward $r_i(v) = -w_i[\log p - \log q]$ G = ∂L/∂W ⟨G, τ_k⟩ directional derivative
Architecture Inspector

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.

Mathematical Rigor

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:

$$\Delta b = -\eta_W g, \quad \Delta \alpha = -\eta_\alpha D^\top g$$ $$w^+ = w - \left(\eta_W I + \eta_\alpha D D^\top\right) g$$

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.

Critical Equivalence Condition: Zero Weight Decay

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!

Interactive Simulation

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.

0 → 100
Conceptual channels (Eq. 4/7): coefficients change weights along frozen task vectors; full-weight updates may leave that span. No projected path or intermediate recovery is reconstructed here.
Path Medical Axis Extra-Span Adaptation
Avg Recovery 94.7%
Worst Domain 88.0% (MedQA)
Span Energy Share 90.0% inside / 10.0% out
MedQA (Medicine) 88.0%
CaseHOLD (Law) 96.0%
FinQA (Finance) 94.1%
IFBench (Instruction Following) 100.9%
The coefficient channel follows frozen task-vector directions; the full-weight channel can leave the span (Eq. 7).

Benchmark Performance Matrix (Table 1)
Method MedQA CaseHOLD FinQA IFBench Avg Rec. Worst
Avg Rec: normalized recovery $(s - s_{\text{base}})/(s_{\text{teacher}} - s_{\text{base}})$. Base = 0%, Teacher = 100%. Bold row = proposed method

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.

Qwen3-4B Time to Exceed Final MOPD (TA init)
≤ 0.31×

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.

Qwen3-1.7B Time to Exceed Final MOPD (TA init)
≤ 0.55×

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.

Mechanistic Interpretation

Conflict Resolution in α Space

Why does MOPD fail to recover medicine when trained jointly? The authors perform per-domain gradient decomposition:

$$\langle G_m, \tau_{k,m} \rangle = \sum_{d \in \{\text{med, law, fin, if}\}} \langle G_m^{(d)}, \tau_{k,m} \rangle$$

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.
α Medicine (Qwen3-1.7B)
0.65
from 0.25 (+160%)
α Law
0.46
from 0.25
α Finance
0.36
from 0.25
α Instruction
0.33
from 0.25

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.

Critical Appraisal

Limitations & Open Questions

While P²-MOPD delivers significant speedups and fixes lagging capabilities, an objective engineering assessment reveals important caveats:

  1. 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.
  2. 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.
  3. 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%.
  4. 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.
Reference Index

Glossary of Key Terms

On-Policy Distillation (OPD / MOPD)

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.

Task Arithmetic (TA)

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$.

Normalized Recovery

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}})$.

Riemannian Preconditioning

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.

Academic Reference

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}
}
Made with Flash Papers — make your own ↗