On-Policy Distillation Explained: How MiniMax M4 and MiniCPM5 Merge Experts

Cover image for On-Policy Distillation Explained: How MiniMax M4 and MiniCPM5 Merge Experts: Thinking Machines Lab (official image)

Key facts

Sources checked Dec 5, 2026

  • On-policy distillation (OPD) trains a student model on text it writes itself, while a stronger teacher scores every token. It combines RL’s “learn from your own attempts” with distillation’s detailed, token-by-token feedback.
  • Multi-teacher OPD (MOPD) goes one step further. You train many domain specialists separately, then merge them into one model by letting each specialist grade the student on its own domain. MiniMax M4 merged 28 specialists this way, and MiniCPM5-15B-A2.5B merged 22.
  • MiniMax’s Forge V2 write-up (December 4, 2026) says MOPD turned over 97% of generated tokens into useful training signal, and that starting on short 32K-token prefixes closed over 80% of the gap to each expert with 10–15% of the full-length compute.
  • In Thinking Machines Lab’s 2025 experiments, OPD reached the same math score as RL or more supervised training at roughly 9–30 times lower cost, depending on what you count.

Two of this week’s most talked-about models, MiniMax’s 2.74-trillion-parameter M4 and OpenBMB’s laptop-sized MiniCPM5, describe the same final training step: multi-teacher on-policy distillation. This explainer covers what that is, why labs use it instead of (or after) plain reinforcement learning, and what MiniMax’s new engineering post reveals about running it at scale. You don’t need any math background.

Three ways to teach a model after pre-training

After pre-training, a model knows a lot but isn’t yet good at specific jobs like coding, tool use or careful math. Labs use three main tools to fix that. Thinking Machines Lab’s on-policy distillation post (October 27, 2025) frames them with a chess analogy that’s worth borrowing:

Method What the student trains on Feedback Chess analogy
Supervised fine-tuning (off-policy distillation) The teacher’s answers Every token, but in situations the teacher chose Watching a grandmaster play
Reinforcement learning (RL) Its own answers One score per answer (right or wrong) Playing games and only learning the final result
On-policy distillation Its own answers Every token, graded by a teacher Playing your own games while a coach rates every move

Each of the first two has a known weakness. With off-policy distillation, the student only sees situations the teacher gets into. When the student makes an early mistake the teacher never would, it ends up somewhere it has never seen, and errors compound. With RL, the student learns from its own mistakes, but the feedback is sparse. A wrong final answer says nothing about which step went wrong.

On-policy distillation fixes both. The student writes a full answer. The teacher reads that same answer and, for every token, reports how likely it would have been to write that token. Where the teacher strongly disagrees, the student gets pushed away. Where the teacher agrees, it gets reinforced. Thinking Machines uses the per-token reverse KL divergence as the penalty, which is simply a measure of how far the student’s choices are from the teacher’s, measured on the student’s own text.

Image from the official model card for openbmb/MiniCPM5-15B-A2.5B on Hugging Face
Image from the official model card: openbmb/MiniCPM5-15B-A2.5B on Hugging Face.

Why it’s cheap

Grading a finished answer only needs one forward pass through the teacher: it reads the text in parallel, the same way a model reads a prompt. There’s no slow token-by-token generation on the teacher side, and you don’t need an answer key or a test harness to check results.

Thinking Machines measured this on a math task. Starting from a Qwen3-8B-Base student that already scored 60% on AIME’24 after supervised training, on-policy distillation reached 70% in about 150 training steps. Getting there with more supervised data would have taken an estimated 2 million prompts, and the Qwen3 technical report reached 67.6% with 17,920 GPU hours of RL. Thinking Machines put the cost saving at about 9× when the supervised dataset already exists, and about 30× when you also count generating it with the teacher.

From one teacher to many: MOPD

Big general models need many skills at once: coding, agents, math, writing, long documents, safety. Training all of them in one RL run is messy. Tasks have different answer lengths, different test environments and different reward scales, and they interfere with each other.

Multi-teacher OPD splits the problem:

  1. Start from one shared checkpoint after supervised fine-tuning.
  2. Train specialists. Run a separate RL (or fine-tuning) track for each domain, producing an expert in coding, one in search, one in long-horizon agents, and so on.
  3. Merge. Train one student on prompts from every domain. For each prompt, the matching specialist grades the student’s answer token by token.

MiniMax’s Forge V2 post says M4’s final shipping set had 28 experts, with many more trained and swapped out along the way, and that a single MOPD run can have 40+ domain experts grading at once. OpenBMB’s MiniCPM5 model card describes the same pattern: long-horizon RL with its JustRL-II method, then large-scale MOPD to consolidate 22 specialized teachers into the release model.

The approach is spreading. DeepSeek’s V4.1-Flash card describes consolidating experts through multi-teacher OPD, Sber’s GigaChat 4 uses an SFT → RL → OPD pipeline, and Thinking Machines’ Inkling 2 Mini card mentions an extra alignment phase using on-policy distillation.

MiniMax’s main argument for this split isn’t only cleaner training. It’s speed of iteration. When one track produces a better specialist, it simply replaces the old one in the next merge, and a new domain can join without restarting everything.

What Forge V2 adds at scale

The Forge V2 write-up is an engineering report on training a roughly 3-trillion-parameter model across a 10,000-accelerator cluster. Four details explain MOPD’s practical appeal:

  • The loss is the same as RL’s. MiniMax uses its in-house CISPO objective for both expert RL and MOPD. For MOPD, it replaces the reward-based “advantage” with the clipped gap between the expert’s and the student’s log-probability of each sampled token. One training system serves both stages.
  • Sampled tokens are enough. Sending full probability tables over a vocabulary of about 200,000 tokens is expensive at this scale. MiniMax scores only the token the student actually picked and found that tricks like top-k logit matching added little in its tests.
  • Almost no wasted work. MOPD needs no task-level answer checking during rollout, so every trajectory that finishes without an error goes straight into training. MiniMax reports over 97% of generated tokens turned into gradient updates.
  • Short first, then long. Running full 192K or 512K-token agent sessions from step one lets small early differences snowball, so the second half of a session drifts into territory the expert doesn’t know well. MiniMax calls this context drift. Its fix, Staged Horizon Expansion, trains on 32K-token prefixes first and only extends to 64K or 128K where needed. On DeepSWE v1.1, ProgramBench and AutomationBench, the prefix stage closed over 80% of the gap to the expert with 10–15% of the full-length compute. The full schedule matched or slightly beat the experts in under 40% of the compute, while training full-length from scratch still lagged after more than 2.5 times the compute, by MiniMax’s estimate.

There’s also a systems trick. Dozens of experts can’t each have their own servers sitting idle, so Forge V2 swaps experts in and out of shared inference machines. Because all experts were fine-tuned from the same base, MiniMax stores only the compressed differences between them (1–10% of a full checkpoint), which brings switching time under 10 seconds even at the 3T scale.

What this means if you use these models

  • Small models get specialist skills. MOPD is one reason a 15B model like MiniCPM5 can score well on math, code and tool use at the same time. We compare it with its rivals in MiniCPM5 vs Qwen4-35B-A3B vs Inkling 2 Mini vs Gemma 4.
  • A student is capped by its teachers. Distillation copies the teachers’ behavior, so the student rarely beats them on their own domain. MiniMax’s “matches or slightly beats” result is the best case.
  • Updates may come faster. Because specialists can be swapped in one at a time, a lab can improve one skill and re-merge without redoing every RL run.
  • It’s a training technique, not a runtime setting. You don’t turn MOPD on in llama.cpp. It’s already baked into the weights you download. If you fine-tune your own models, Thinking Machines’ post includes a short recipe you can try.

For related background, see our explainers on reasoning effort and thinking levels and mixture-of-experts models.

Sources (checked December 5, 2026): MiniMax: Forge V2.0 on Hugging Face, MiniMax: M4 launch post, MiniCPM5-15B-A2.5B model card, Thinking Machines Lab: On-Policy Distillation, DeepSeek-V4.1-Flash model card, GigaChat4-708B-A41B model card, Inkling 2 Mini model card.

Cover image: Thinking Machines Lab (official image)