MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training
Read first: On-policy distillation: a map · On-Policy Distillation (Thinking Machines) · DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
TL;DR. Multi-Teacher On-Policy Distillation (MOPD) is a three-stage post-training recipe. (1) SFT gives one shared checkpoint. (2) Independent RL runs from that checkpoint produce one specialist teacher per domain. (3) A student, also initialised from SFT, samples responses; each prompt’s domain teacher grades every token, and the student minimises per-token reverse KL to that teacher. The result is one model that recovers most of each specialist’s gain without the see-saw of mixed RL or the forgetting of cascaded RL.
Where it comes from. Xiaomi introduced the name and recipe in the MiMo-V2-Flash technical report (arXiv 2601.02780, §4.1 and §4.4), which calls it “a new post-training paradigm”. A later standalone paper by the same group (arXiv 2606.30406, this page’s main source) gives controlled experiments on Qwen3-30B-A3B. DeepSeek-V4 also uses multi-teacher OPD (without the MOPD name) to replace its mixed-RL stage. Start with the OPD map if single-teacher OPD is new to you.
Why it matters now. Frontier labs now train capabilities in separate RL pipelines: search agents, SWE agents, math, instruction following, safety. MOPD is the step that puts them back into one deployable model, and it turns the specialists into services: each teacher only needs to answer prefill requests, like a reward model. For an IR group this is the natural way to combine a search-agent teacher with other skills without rerunning agentic RL in one giant mixed job.
Key idea
Section titled “Key idea”Three stages. Stage 1 is general SFT. Stage 2 trains domain teachers from the SFT checkpoint, each with its own RL recipe and data, in parallel. In MiMo-V2-Flash the domains are agentic (search, coding, general tool use) and non-agentic (math, general reasoning, safety), and a teacher may also be a different SFT model or the student itself. Stage 3 is MOPD. Each prompt has a domain, and the student is pulled toward that domain’s teacher on its own samples:
Policy-gradient form (the default). Grade only the sampled token, stop the gradient through the grade, and clip it:
with by default. Here (stop-gradient) means the bracketed value is treated as a fixed number: it weights the usual term, but no gradient flows through the student log-probability inside it. replaces the GRPO/PPO advantage, so existing RL code runs unchanged.
A worked token. The student samples a token it gives probability 0.3. If the routed teacher gives it 0.6, and the token is pushed up; if the teacher gives it 0.1, and it is pushed down. The grade measures how much more or less the teacher likes the token than the student does, not whether it is correct.
This is the fixed-prefix (discount 0) form: it averages per-prefix reverse-KL gradients and omits the term that credits a token for changing later prefixes (see the OPD map).
Loss reduction matters for domain balance. The in the loss above is a per-sequence mean, , under which a long response does not automatically get more total weight. Many RL codebases instead use a global token mean, , under which it does. Open-MOPD diagnoses the token-mean case; inspect which reduction your trainer uses before adding token-share balancing, because inverse-length weighting on top of sequence normalisation can over-correct.
Top-k form. With the teacher’s top- tokens (), minimise
The last two terms make this retained-token generalised KL minimised at the teacher’s probabilities on the kept tokens; without them the minimum would not sit at there. They do not reconstruct the full KL: the omitted vocabulary tail is still omitted. The payload per position is small, similar to a reward signal.
MiMo-V2-Flash’s production variant (report Eq. 7–9). Rollouts come from the inference engine , so each token gets a training–inference importance weight , set to 0 when the ratio leaves (discarding tokens with large mismatch). The final advantage adds an outcome-reward term, , for example GRPO’s group-normalised outcome reward. So MOPD can still push past a teacher where a verifier exists.
Systems view. Each teacher is a stand-alone, asynchronous prefill service, like a reward service. The paper reports nearly no measurable wall-clock overhead. The paper’s §5 lists three organisational benefits: teams develop domains in parallel, each domain keeps its own recipe, and a failed RL run stays isolated in its domain.
Iterative co-evolution. The distilled student can re-enter Stage 2 to produce stronger teachers, then be distilled again. MiMo-V2-Flash describes this cycle, and the paper tests one extra round.
Key results
Section titled “Key results”Controlled study (paper Table 2, Qwen3-30B-A3B; math = AIME25/26 avg@32, IF = IFBench and IFEval, SWE = SWE-bench Verified). Normalised score per domain is , averaged over domains.
| Method | AIME25 | AIME26 | IFBench | IFEval | SWE-V | Normalised |
|---|---|---|---|---|---|---|
| SFT student | 45.42 | 54.48 | 42.69 | 84.17 | 35.80 | 0 |
| RL teachers (one per domain) | 54.79 | 63.65 | 78.40 | 95.50 | 51.20 | 1 |
| Mixed-domain RL | 52.71 | 63.75 | 75.00 | 94.58 | 48.80 | 0.882 |
| Cascaded RL | 48.54 | 61.88 | 77.11 | 95.80 | 47.80 | 0.775 |
| Off-policy fine-tune on teacher outputs | 51.56 | 63.44 | 80.95 | 93.35 | 45.80 | 0.824 |
| Parameter merge (average) | 47.81 | 59.58 | 53.74 | 88.79 | 39.60 | 0.328 |
| Parameter merge (task arithmetic) | 49.38 | 63.96 | 78.23 | 95.81 | 48.80 | 0.857 |
| MOPD | 51.46 | 65.31 | 77.89 | 93.84 | 50.40 | 0.937 |
- Balance. MOPD’s per-domain scores lie between 0.91 and 0.95. Cascaded RL spans 0.57 to 0.98 (IF first, then math degrades during the SWE stage); off-policy fine-tuning spans 0.65 to 1.01. The paper’s Table 1 frames this as MOPD being the only method that is dense, on-policy and parallelisable.
- Sample efficiency. MOPD reaches the teacher’s plateau within about 25K IF samples and 30K SWE samples; mixed RL needs 150–180K.
- Second round (Table 4). Round-2 RL teachers reach 1.030 normalised; round-2 MOPD reaches 0.986, up from 0.937.
- Loss form (§4.4.1). Policy-gradient 0.937 versus top-k 0.909; initial per-token KL about 0.04, entropy stays near 0.30.
- External teacher (§4.4.2). Replacing the math teacher with Qwen3-235B-A22B degrades math under both forms. Initial KL is about 0.19; under the PG form entropy falls from 0.30 to 0.21, and the top-k form diverges around step 18.
At scale (MiMo-V2-Flash, report Table 7, student before MOPD → best teacher → after). AIME25 89.3 → 93.9 → 94.1; HMMT Feb25 76.9 → 82.6 → 84.4; LiveCodeBench 77.5 → 82.6 → 83.2; τ²-Bench 75.9 → 79.6 → 80.3; Arena-Hard hard prompts 50.0 → 54.1 (the student was its own best teacher). Below the best teacher: SWE-bench Verified 67.8 → 74.2 → 73.4 and BrowseComp 42.5 → 51.7 (an SFT teacher) → 45.4. Below the starting student, where the student was its own teacher: Arena-Hard creative writing 90.1 → 86.2 and GPQA-Diamond 84.9 → 84.3.
Variants and follow-ups
Section titled “Variants and follow-ups”- DeepSeek-V4 (full-vocabulary, weighted). over more than ten specialists (math, coding, agent, instruction following; separate specialists per reasoning-effort mode). It states that the sampled-token simplification gives high-variance gradients and often unstable training, so it distils full-vocabulary logits. To make that feasible it caches only teachers’ last-layer hidden states, rebuilds logits through the prediction head, and orders samples by teacher so one teacher head is resident at a time. DeepSeek-V4.1-Flash scales this to more than 40 teachers, which may differ in architecture from each other and from the student.
- Open-MOPD (arXiv 2608.19098, project page). A controlled, oracle-routed benchmark on SmolLM3-3B-Base with math, code and instruction-following teachers. Standard multi-teacher OPD recovers only 35.6% of the improvement from mixed-domain SFT to routed RL. The cause is budget, not conflict: only 0.62% of tokens show high teacher disagreement, but math and code responses average about 10,500 tokens versus 409 for IF, so IF gets about 1% of gradient tokens from about 20% of prompts. Three fixes (token-share balancing of domain loss weights, gap-following allocation toward domains with the largest remaining gap, and recomputing student log-probabilities at each PPO inner step) raise recovery to 83.4%. The authors release the recipe for an 8×A100-80GB academic setup.
- More variants. The OPD survey (arXiv 2604.00626, §6) lists TrustMOPD, Δ-MOPD, CaMOPD and D³-MOPD, and notes that forward KL combines teachers as an arithmetic mixture while reverse KL gives a normalised geometric one. Not covered on this site.
Limitations & open questions
Section titled “Limitations & open questions”- No uncertainty estimates. All numbers come from the authors with no seeds or intervals reported, so differences under a point cannot be judged reliable.
- Normalised scores hide benchmark-level losses. In Table 2 MOPD is 3.33 points below the math teacher on AIME25 while above it on AIME26.
- Teacher compatibility. The method relies on same-origin teachers. How to use a stronger but differently trained teacher is open (see the external-teacher ablation).
- Long or fuzzy domains lag. In MiMo-V2-Flash, BrowseComp ends 6.3 below its best teacher (though 2.9 above the starting student) and creative writing drops 3.9 below the student; Open-MOPD’s token-share analysis is one candidate explanation.
- Routing is assumed. Both the paper and Open-MOPD use known domains per prompt. Mixed or ambiguous prompts (a search task that needs math) are not studied.
- Teacher-bound target. Without an outcome-reward term the distributional optimum is the routed teacher, and the second round needs new RL runs to raise it. This is not a strict benchmark ceiling: in Table 2 MOPD scores 65.31 on AIME26 against the math teacher’s 63.65.
Connections
Section titled “Connections”- Start here: On-policy distillation: a map for the single-teacher core and the rest of the family.
- Single-teacher ancestors: GKD, MiniLLM and the Thinking Machines OPD recipe, whose per-token advantage MOPD reuses.
- Reports using it: MiMo-V2-Flash (origin of the name), DeepSeek-V4, DeepSeek-V4.1-Flash, and Qwen3 for single-teacher strong-to-weak OPD. GLM-4.5 also merges experts by self-distillation.
- Training loop: GRPO is what the teachers are trained with and what MOPD’s advantage plugs into.
- Contrast: parameter-space merging (averaging, task arithmetic) is the baseline MOPD beats in Table 2; LUFFY mixes off-policy teacher traces into RL instead of grading the student’s own tokens.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
In the MOPD paper's Qwen3-30B-A3B experiment, the SFT student scores AIME25 45.42, AIME26 54.48, IFBench 42.69, IFEval 84.17, SWE-bench Verified 35.80; the RL teachers score 54.79, 63.65, 78.40, 95.50, 51.20; MOPD scores 51.46, 65.31, 77.89, 93.84, 50.40. Using the paper's metric (average each domain's benchmarks, normalise as (s − s_SFT)/(s_teacher − s_SFT), then average the three domains), compute the per-domain and overall scores. What does the summary number hide?
What a strong answer covers
- Math: student 49.95, teacher 59.22, MOPD 58.39, so (58.39 − 49.95)/(59.22 − 49.95) ≈ 0.91. IF: 63.43, 86.95, 85.87, so ≈ 0.95. SWE: 35.80, 51.20, 50.40, so ≈ 0.95.
- Average ≈ 0.937, matching the paper's reported 0.9373. Mixed-domain RL computed the same way gives ≈ 0.88.
- Hidden: averaging AIME25 and AIME26 masks that MOPD is 3.33 points below the math teacher on AIME25 but 1.66 above it on AIME26. Benchmark-level gaps can be larger than the domain average suggests.
- The ratio also depends on the denominator: a domain where RL barely beat SFT gives a noisy normalised score. Report absolute scores, per-benchmark differences and seeds alongside it.
- Mechanism
Explain, at the level of what gradient the student receives, why MOPD avoids the see-saw of mixing all domains into one RL run and the forgetting of cascaded RL, and why it can use a single rollout per prompt (N = 1) with no dynamic sampling when the per-domain GRPO teachers needed groups and dynamic sampling.
What a strong answer covers
- Mixed RL: one policy, one outcome reward per answer, all domains competing for the same updates; improving one domain can push another down (the "see-saw"). Cascaded RL trains domains in sequence, so later stages overwrite earlier skills (the paper shows math degrading during the SWE stage).
- MOPD: every domain's teacher is frozen and only grades the student on that domain's prompts, so each skill keeps a fixed target throughout; the student is pulled toward all targets at once.
- The advantage is per token, log π_teacher − log π_θ (clipped), a signed grade for every sampled token. It does not need a group of rollouts to estimate a baseline, which is why GRPO-style groups and dynamic sampling (filtering prompts whose group has no reward variance) become unnecessary.
- All teachers start from the same SFT checkpoint as the student, so the initial per-token KL is small (about 0.04 in the paper) and the grades are informative rather than mostly punitive.
- What if…
Two ablations in the MOPD paper: (1) the sampled-token policy-gradient loss and the top-k (k = 64) corrected loss give normalised scores of 0.937 and 0.909; (2) swapping the same-origin math teacher for the stronger external Qwen3-235B-A22B raises initial per-token KL from about 0.04 to about 0.19 and makes math worse under both losses. Explain what each result says about the loss and about teacher choice, including the entropy observation.
What a strong answer covers
- PG versus top-k: with a same-origin teacher the two signals are comparable, so the cheaper sampled-token form is a sound default. Top-k needs the correction term (−π_θ + π_T summed over the top-k) so the truncated objective is still minimised at π_θ = π_T on those tokens.
- External teacher: about 5× higher initial KL means the student's samples sit where the teacher assigns low probability. Most sampled-token advantages are negative, a predominantly punitive signal.
- Under the PG loss, entropy fell from about 0.30 to about 0.21: the student was pushed to narrow its distribution rather than learn the teacher's reasoning. Under top-k, training diverged around step 18.
- Conclusion: teacher compatibility (same origin, similar style) matters more than teacher strength for this recipe. A raw benchmark lead does not make a teacher a good OPD teacher.
- Critique
In the MiMo-V2-Flash report (Table 7), MOPD matches or beats the best teacher on most benchmarks, but BrowseComp ends at 45.4: above the 42.5 pre-MOPD student, yet 6.3 below its best teacher (a separate SFT model, 51.7). Where the student itself was the best teacher, Arena-Hard creative writing falls from 90.1 to 86.2 and GPQA-Diamond from 84.9 to 84.3. The MOPD paper's Table 3 reports a different subset of the same run. What are the threats to the report's claim that MOPD lets the student "perfectly master teacher expertise", and what evidence would test it?
What a strong answer covers
- The largest shortfalls are in an agentic search benchmark (a gap to the teacher) and creative writing (a true drop below the student), where trajectories are long or the reward is fuzzy. This fits Open-MOPD's token-budget and convergence-rate imbalance explanation and argues against lossless merging.
- Benchmark selection: the standalone paper reports seven benchmarks for MiMo-V2-Flash, all near or above their teachers except IFBench (−2.2) and SWE-bench Verified (−0.8). The regressing BrowseComp and creative-writing rows appear only in the report.
- Vendor-reported with no seeds or confidence intervals, so differences under 1 point cannot be separated from run-to-run variation on the evidence given.
- Test: per-domain learning curves against each teacher, several seeds, a fixed held-out suite chosen before training, and a token-share-balanced variant. If BrowseComp recovers with balancing, the regression is an allocation problem rather than a limit of MOPD.
- Design
You have a 30B-A3B MoE SFT checkpoint and want one model that does (a) multi-hop deep-research search with tools (trajectories about 8,000 tokens), (b) listwise reranking with short rationales (about 300 tokens), and (c) math. You can afford three RL runs and one distillation run on an academic cluster. Design the MOPD pipeline: teachers, routing, per-token loss, domain weighting, outcome rewards, and evaluation.
What a strong answer covers
- Train three teachers from the same SFT checkpoint (search agent with outcome reward, reranker with nDCG-style reward on judged queries, math with verifiable answers), each with its own recipe; same origin keeps initial KL low.
- Route by prompt type (oracle routing is easy here since each task has its own template). Use the sampled-token clipped reverse-KL advantage: cheap teacher prefill, drop-in to the existing GRPO code. Tool outputs are not model tokens, so mask them out of the loss.
- Check the loss reduction before re-weighting. Under a global token mean, 8,000-token search and 300-token reranking responses with an equal prompt mix give reranking only a few per cent of the gradient weight, so apply Open-MOPD-style token-share balancing. Under the per-sequence 1/|y| mean in this page's loss, long responses do not automatically dominate, and inverse-length weighting on top would over-correct: measure effective per-domain weight first.
- Optionally add a small outcome advantage (MiMo-V2-Flash Eq. 9) for search, where exceeding the teacher matters; keep it off for reranking if the teacher is already strong.
- Evaluate each domain against its own teacher on held-out data: BrowseComp-style accuracy and tool-call counts, nDCG@10 on BEIR-style test sets, and AIME. Gate on no domain regressing more than a preset margin.
- Research idea
Open-MOPD reports that a standard multi-teacher OPD baseline on SmolLM3-3B recovers only 35.6% of the improvement from mixed-domain SFT to routed RL, mainly because instruction following gets about 1% of gradient tokens despite about 20% of prompts, and that only 0.62% of tokens show high teacher conflict. Propose a follow-up study that tests whether token budget is the main bottleneck at scale, and what would falsify it.
What a strong answer covers
- Explain the arithmetic: math and code responses average about 10,500 tokens versus about 409 for IF, so a prompt mix of 39.8/39.8/20.3% becomes 49.7/49.3/0.99% of tokens. Oversampling IF to reach a third of tokens would need about 33.6× more IF prompts and squeeze out math and code.
- Study: at two or three scales (3B, 30B MoE), vary only the domain loss weights (prompt-balanced, token-balanced, gap-following) with identical data and teachers; measure per-domain recovery and IF learning curves.
- Falsifier: if token-balancing does not close most of the IF gap at larger scale, or if the high-conflict token rate rises sharply with more domains, then gradient conflict rather than budget is the bottleneck.
- Extend to agentic domains (search, SWE) where length varies by orders of magnitude within one domain, and check whether per-trajectory rather than per-domain balancing is needed.
- Report student reward refresh separately (recomputing student log-probs at each PPO inner step), since stale student terms could confound the balancing result.