Paper commentary
The Teacher Is a Direction, Not a Destination: Extrapolating RL-Induced Representation Residuals in On-Policy Distillation
RIDE extrapolates RL-induced changes in hidden states to distill student models
- Problem Output-space extrapolation in on-policy distillation makes student training unstable. The language-model head weakens much of the RL change, and sampled-token log-ratios add noise that the extrapolation amplifies.
- Method RIDE extrapolates the RL-induced residual in hidden-state space. Instead of changing outputs, it pushes the student's hidden states toward targets beyond the teacher along that residual.
- Results RIDE scores 56.38 Avg@16 on the R1-Distill-1.5B pair, against 55.30 for its RL teacher. It approaches or exceeds the RL teacher on every pair tested.
Where output-space extrapolation stalls
Output-space extrapolation stalls because the teacher-to-reference log-ratio is read as an implicit reward and scaled only after the language-model head. The head reweights representation changes by its anisotropic singular spectrum, so the RL-induced change reaches the logits only in part. Because the logit target leaves earlier layers unconstrained, the change in those layers receives no direct supervision.
A second problem comes from the sampled token, since the sampled-token log-ratio is length-biased and prone to overoptimization. The authors make this concrete with Proposition 4.1, which splits the variance of the output-space advantage into three terms. The middle term is scaled by (λ-1)^2 times the variance of ρ(v), and it does not vanish as p approaches q unless log q minus log b is constant on the support of q.
So the output-space extrapolated component keeps a noise term however close the student gets to the teacher.
Hidden states keep the change before the head, and feature-level distillation already uses them as supervision. The open question is whether the residual can be extrapolated in that space instead. RIDE answers this by computing the residual between the teacher and its pre-RL checkpoint at every layer and token position.
Extrapolating the residual in hidden space
RIDE computes the RL-induced residual between the teacher and its pre-RL checkpoint, then pushes the student's target further along it. The key idea is that the RL teacher differs from its base, and that difference records what RL added.
On a shared prefix, the residual at layer l and position t is the teacher's hidden state minus the base's. Because the residual is computed from two forward passes, it is deterministic rather than sampled. The RIDE target is the teacher's hidden state plus (λ − 1) times the residual, which equals λ times the teacher state plus (1 − λ) times the base state.
At λ = 1 the target is the teacher itself, and for λ > 1 it lies beyond the teacher along the residual. The training objective regresses the student's hidden states toward this target with a masked squared error over all supervised layers. Setting λ = 1 recovers OPRD, so any difference between the two methods comes from the residual term.
Since the residual is computed rather than sampled, changing λ only moves the destination, not the noise.
How one training step runs
A RIDE training step starts with the student sampling its own responses to prompts drawn from DAPO-Math-17K. The frozen base and the frozen teacher then evaluate the same student prefix, so their hidden-state gap reflects what RL changed on that context. The residual is computed deterministically from two forward passes, so the step needs no sampling of the residual itself.
The student keeps its own hidden states as the only trainable quantity in the regression.
At each layer and position, the RIDE target is the teacher's hidden state plus (λ − 1) times the residual. Equivalently, the target is λ times the teacher's hidden state plus (1 − λ) times the base's hidden state. The loss is a masked squared error between the student's hidden states and these targets, averaged over the supervised layers.
The targets pass through a stop-gradient, so gradients flow only into the student. The main setting uses λ = 1.25 and supervises all layers and the last k = 2,000 response positions. Because the unnormalized loss grows with λ, the authors rescale the loss coefficient by λ −2 instead of changing the loss form. This choice keeps λ = 1 equal to OPRD, so any gap between the two methods comes from the residual term.
The regression also sits inside the same shared-head picture used for output-space extrapolation. Hidden-state supervision reaches every supervised layer, while a logit target would constrain only the final layer. The authors use the same sweep grid for RIDE and the output-space baselines, so the training budgets stay matched.
Why measuring the change before the head matters
The choice of space changes the learning signal because the sampled advantage and the hidden-state target carry the RL residual in very different ways. In output space, extrapolation rewrites the sampled advantage as A_λ(v) = ℓ(v) − (λ−1)ρ(v), with both parts evaluated at one sampled token. Proposition 4.1 splits the conditional variance of this advantage into three terms, with the ρ term scaled by (λ−1)².
The (λ−1)² term does not vanish as p approaches q, unless log q − log b is constant on the support of q. So the noise from the sampled-token log-ratio stays in the output-space signal even when the student is close to the teacher.
The RIDE gradient behaves differently, because the residual is computed from two forward passes rather than sampled. In hidden-state space, λ changes only the destination of the target, and the noise does not grow with the coefficient. Proposition 4.2 gives the same picture as a reward and penalty: the reward weight λ−1 vanishes at λ = 1, where OPRD is recovered.
The authors read the (λ−1)² scaling as the reason output-space extrapolation becomes unstable at large coefficients.
The controls in the ablation test whether the gain comes from the residual direction itself, not from a displaced target alone. The random control replaces the residual with a Gaussian vector of the same norm, and the reversed control uses λ < 1.
The authors also report that ExOPD tolerates coefficients slightly above one, because the covariance term is negative. The variance has a shallow minimum near λ ≈ 1.14 before the (λ−1)² Var[ρ] term takes over. This matches the sweep, where ExOPD degrades at λ = 1.25 and collapses at λ = 2.
RIDE against its teacher and output-space extrapolation
On Qwen3-4B, RIDE scores 66.07, compared to 65.59 for its teacher and 48.75 for ExOPD. On Llama-3.2-3B and Phi-4-mini, RIDE scores 13.33 and 18.30, against teacher scores of 13.01 and 17.96. The authors caution that the Llama-3.2-3B AIME benchmarks sit near the evaluation floor, so that pair rests mainly on AIMO.
OPRD is the cleanest comparison, because RIDE differs from it only in the target. RIDE's margin over OPRD runs from 0.97 to 4.06 points, which isolates the effect of residual extrapolation. The authors note that on three of the four pairs this margin sits within one across-seed standard deviation. ExOPD falls below its teacher on every pair.
On the three pairs where the RL change is only 2.8 to 6.0 points, ExOPD also falls below the untouched student.
Proposition 4.1 explains this pattern, since the extrapolated term scales with (λ-1)^2 whatever signal the log-ratio carries. The coefficient sweep shows the same split, with ExOPD at 52.9 at 0.75 and at 1, and 49.9 at λ = 1.25.
The teacher and untouched student are single fixed-checkpoint evaluations, so their variation is not seed variation. On the smaller pairs, RIDE shows near parity with its teacher rather than a clear gain.
How the coefficient shapes the outcome
The sweep on R1-Distill-1.5B compares RIDE and ExOPD at six values of λ, from 0.5 to 2, with one run per value. At λ = 1 the two methods reduce to OPRD and sampled-token OPD, so each row isolates extrapolation within one space. The neighbouring coefficients λ = 1.15 and 1.35 give 55.2 and 55.3, so every λ between 1.15 and 1.35 improves over OPRD.
That spread suggests the gain doesn't hinge on one exact value of the coefficient.
ExOPD is best at λ up to 1, reaching 52.9 at 0.75 and at 1.
The authors tie this breakdown to Proposition 4.1, where the sampled-advantage noise scales with (λ − 1)^2. Pushing the coefficient further along the RL-induced direction therefore moves ExOPD off the teacher's formatting and below its teacher-matching baseline. The sweep was run on one pair only, so the λ curves for the other three pairs aren't shown here.
The mechanistic analysis at λ = 1.25 supports the same picture for the two learning signals. The RIDE per-position gradient norm stays unchanged across every λ, because the residual is computed rather than sampled.
Whether the RL direction itself carries the gain
A displaced target could help for reasons that have nothing to do with the RL-induced residual, such as acting as a regularizer or enlarging the loss scale. To rule these out, the authors ablate the residual direction on the R1-Distill-1.5B pair while holding the displacement magnitude fixed. The random control replaces the residual with a Gaussian vector of the same norm.
The reversed control uses λ below 1, so the target moves toward the base model instead of past the teacher. The trajectory-mismatched control computes the teacher and base hidden states on separately generated trajectories instead of the identical student prefix.
The authors read this as evidence that the gain follows the RL-induced direction rather than the displacement alone.
Limitations and what remains untested
RIDE needs three things: a pre-RL checkpoint, a shared representation space, and one global coefficient λ. The authors evaluated it only on mathematical reasoning, with one RL recipe. Relaxing these constraints is left for future work. The pre-RL checkpoint must exist for each teacher, which is why the setting stays limited to same-initialization distillation.
The ethics statement names a second concern about the student's targets. Its calibration and safety behavior aren't guaranteed to match those of the teacher. The authors say these properties should be evaluated independently before deployment, and they point back to this limitation in Section 6.
RIDE can also amplify the teacher's biases, because it places targets beyond the teacher. They report the compute used in Table 5 so that the environmental cost of reproduction can be assessed.
The paper's reproducibility steps make the untested parts easier to see. Remaining teachers come from applying the published JustRL recipe to public base models, so they depend on that recipe.
Paper info
- Authors
- Hao Li, MeiJia Chen, Weijie Ren, Donghan Li, Zijun Tian, Jingchun Huang, Naibo Wang
- Venue
- arXiv · Preprint
- First published
- 2026-9-29
- Added
- 2026-10-20
- Updated
- 2026-10-14
- Version
- v2
- arXiv
- 2609.36484
- Category
- cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Hao Li, MeiJia Chen, Weijie Ren, Donghan Li, Zijun Tian, Jingchun Huang, Naibo Wang (2026). The Teacher Is a Direction, Not a Destination: Extrapolating RL-Induced Representation Residuals in On-Policy Distillation. arXiv:2609.36484v2. https://arxiv.org/abs/2609.36484v2
BibTeX
@misc{li2026teacher,
title = {{The Teacher Is a Direction, Not a Destination: Extrapolating RL-Induced Representation Residuals in On-Policy Distillation}},
author = {Hao Li and MeiJia Chen and Weijie Ren and Donghan Li and Zijun Tian and Jingchun Huang and Naibo Wang},
year = {2026},
eprint = {2609.36484},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2609.36484v2}
}