TL;DR — Reinforcement learning turns one base model into specialists, each strong in one domain and behind in the others. Putting them back into one model has meant training again: on-policy distillation costs rollouts, teacher passes and gradient steps for every teacher. We show that this step does not need training. When the specialists share a base model, distillation has an exact layer-wise solution: one forward pass over a few hundred of each specialist’s own answers, then a least-squares solve per layer. The fused model is, on average, more accurate than either specialist.
WATCH THE FILM
The problem: one model again means training again
A family of specialists that share a base model is now the usual result of reinforcement learning: one is strong at mathematics, another at code, and each falls far behind in the other’s domain. Getting one model that does both has meant another round of training, through multi-domain RL or on-policy distillation.
On-policy distillation
The student generates, every teacher scores the text, and gradients flow: rollouts, teacher passes and a backward pass at every update, for every teacher.
TF-OPD
Ask each layer of the fused model to reproduce each teacher on the inputs that teacher sees while reading its own answers. That is least squares, solved exactly. Forward passes and linear algebra only.
Method: four steps, no gradient
Each linear layer of the fused model must reproduce every specialist’s output on the inputs that specialist receives while it reads its own answers. That is a least-squares problem, and its solution needs only the second moments Gd of those inputs:
W★ = Wb + (Σd Δd Gd)(Σd Gd)−1
Here Δd is specialist d’s update to the base weight Wb (the paper also shrinks the off-diagonal second moments slightly). Task arithmetic applies every specialist’s update to every input, including inputs only another specialist ever sees; TF-OPD minimizes exactly that error, weighted by how often each input direction occurs.
The statistics are on-policy: they come from each specialist reading its own answers, which are the inputs a layer actually sees in use, not from reference solutions the model never wrote. The procedure keeps no optimizer state and has no learning rate to tune; for two specialists it takes about 10 GPU-hours of forward computation in total, on 48 GB GPUs.
Results
On Olmo 3 7B, with a mathematics specialist and a code specialist trained by RL from the same base, the fused model has the highest mean accuracy of the four models: built without a gradient step, it is on average better than either specialist it was built from.
Each specialist is far ahead in its own domain and far behind in the other. TF-OPD stays close to the specialist of the domain on every benchmark and keeps most of what reinforcement learning added on each, so it is the only model that is never far from the best score.
| Model | MATH-500 | OlympiadBench | AIME24 | AIME25 | HMMT25 | HumanEval+ | MBPP+ | Mean |
|---|---|---|---|---|---|---|---|---|
| Base model | 63.4 | 33.4 | 15.8 | 10.0 | 8.3 | 45.7 | 44.2 | 31.6 |
| Math specialist | 91.8 | 68.7 | 50.0 | 43.3 | 30.8 | 71.3 | 62.4 | 59.8 |
| Code specialist | 85.6 | 62.5 | 26.7 | 30.0 | 15.0 | 86.0 | 69.3 | 53.6 |
| TF-OPD (ours) | 90.8 | 69.4 | 50.0 | 38.3 | 27.5 | 84.1 | 67.5 | 61.1 |
The released specialists are scored in bfloat16, their native format. Scored in the same format (float16), the fused model is within a point of the mathematics specialist on AIME25.
The surprise: the data matters more than the solver
Most of a specialist’s answers are ordinary reasoning that ends with a result. A few never end: the model starts repeating itself and continues to the length limit. For the mathematics specialist these are a small share of the answers but, being the longest, a large share of the tokens, and every token counts equally in the statistics.
Remove them, and the fused model goes from task arithmetic’s level on AIME25 to the specialist’s own level in the same format. The damage does not show token by token: built from all answers, the fused model already predicts almost the same next token as the specialist, yet a long derivation is decided at a few of its steps.
Case study: where the specialist loops
The fused model is not only a compromise between its sources: on some problems it succeeds where every sample of that domain’s specialist fails.
HMMT25: In a two-dimensional cave with a parallel floor and ceiling, two stalactites of lengths 16 and 36 hang perpendicularly from the ceiling, while two stalagmites of heights 25 and 49 grow perpendicularly from the ground. If the tips of these four structures form the vertices of a square in some order, compute the height of the cave. (Answer: 63)
TF-OPD · 3 of 4 samples correct
“Suppose that the four points form a square. Therefore, the midpoints of the diagonals must coincide.” … “their y-coordinates must satisfy H − 26 = 37 ⇒ H = 63.”
63 ✓
Math specialist · 0 of 4 samples correct
“… which implies 400 = 576, which is impossible.” … “I think I have to concede and say the answer is 61.” (the same opening then returns in later steps)
61 ✗
The specialist’s failure has the shape of the looping answers found among its training rollouts; the fused model, built without those answers, does not follow it there.
When to use it
For specialists that share a base model, the consolidation step after reinforcement learning may not need training. Adding a specialist costs its rollouts and one more term in each layer’s sums; nothing is retrained. When the teachers differ from the student in architecture or size, training-based distillation remains the tool.
BibTeX
@article{yang2026tfopd,
title = {Training-Free On-Policy Distillation},
author = {Yang, Bangji and Fan, Jiajun and Zhu, Zhaoyu and
Ma, Hongbo and Liu, Ge},
journal = {arXiv preprint arXiv:2610.22236},
year = {2026}
}