A single reinforcement-learning run is asked to teach too many things at once. Math wants one kind of feedback, coding another, and instruction-following often competes for the same update budget. Multi-Teacher On-Policy Distillation, or MOPD, takes a different route: let specialists learn separately, then let one student absorb their behavior.

The Hugging Face walkthrough describes a three-stage recipe. Start from one shared supervised checkpoint, train one reinforcement-learning expert per domain, and then fuse the experts by having the student generate its own tokens while the relevant teacher provides on-policy feedback. The student becomes the deployable model; the specialist runs become teachers rather than separate products.

Distillation is a scheduling problem

The TRL implementation matters because the method is not just a diagram. AsyncDistillationTrainer can run teacher servers separately, route examples to the right expert, and use distributed jobs for the training loop. The source also points to Open-MOPD experts, checkpoints, and data, giving builders something concrete to inspect instead of a purely conceptual recipe.

There is a sharp caveat. Long math or code answers contain more tokens than short instruction-following answers, so a naive fusion can let one domain dominate the learning signal. The walkthrough's 60-step example is useful for understanding the mechanics, not evidence that the balance is solved at production scale.

The value of multiple teachers is not that every domain gets equal space by default. It is that the builder can finally see where the trade-off is being made.

Keep the experts visible

For a small team, the experiment is to keep the specialists as evaluation baselines. Fuse a student, then test each domain separately and together. If one skill improves while another quietly regresses, the training system should make that visible before the student becomes the only artifact anyone measures.

↗
PRIMARY SOURCE

The article explains Multi-Teacher On-Policy Distillation and shows an AsyncDistillationTrainer implementation in TRL, including an HF Jobs example and Open-MOPD artifacts. It also notes token-imbalance risks and uses a short 60-step example, so the walkthrough is not a production benchmark or a guarantee that every expert fusion improves a model.

Hugging Face · MOPD with TRL ↗