arXiv(opens in a new tab)cs.LGOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.02179

From Gradients to Capabilities: Understanding Multi-Teacher On-Policy Distillation

Siqi Zhu, Suozhi Huang, Kaixuan Zhang, Yuheng Yang, Zhanyang Jin, Yihang Sun, Jiaxuan You

ABSTRACT

Multi-teacher on-policy distillation (MOPD) aims to combine the strengths of RL-trained teachers in a single student, but how teacher signals affect parameter changes remains underexplored. We study Qwen3-1.7B with four domain teachers trained with RL from the same initialization as the student, comparing gradients, optimizer updates, and task learning curves, with additional SmolLM3-3B diagnostics. We find that several factors influence teacher signals. First, loss averaging implicitly weights responses: token averaging favors longer responses, and equalizing domain contributions retains this weighting within domains. Second, Adam's first moment reduces differences in parameter updates: the cosine similarity is 0.83 between teachers and 0.96 between averaging rules, despite differences in raw gradients. Third, BF16 rounding hides small changes: about 97% of FP32 master weights differ from initialization, but only 7–11% of BF16 weights do. Finally, the top-64 intersection KL gradient closely matches Qwen's full-vocabulary gradient, but the effect on task performance depends on averaging: mathematics accuracy is 2.6 points higher than with sampled-token policy-gradient (PG) under response averaging and 2.1 points lower under global token averaging.

1 INTRODUCTION

Reinforcement learning produces strong language-model specialists in mathematics, coding, and instruction following, but combining their strengths remains challenging (Ma et al., 2026). Multi-teacher on-policy distillation (MOPD) trains a single student using next-token probabilities from domain teachers on student-generated responses (Team et al., 2026; NVIDIA, 2026; Kimi Team et al., 2026; DeepSeek-AI et al., 2026). Yet strong teachers do not ensure that the student acquires every teacher's strengths (Gao et al., 2026). Because all teachers influence shared student parameters, we study how teacher losses combine and how the optimizer converts their gradients into parameter changes, connecting supervision to updates and task performance.

Existing MOPD recipes average losses within responses (Ma et al., 2026), normalize at the response and domain levels (Bai et al., 2026), or correct unequal domain token shares (Gao et al., 2026). These choices change the weights assigned to teachers and responses, but when does correcting unequal loss weights improve capability integration? Prior work also compares losses computed from sampled tokens and top-k vocabulary (Ma et al., 2026). However, Nemotron 3 Ultra reports no performance advantage from broader vocabulary supervision in its preliminary experiments (NVIDIA, 2026, Section 3.3.5). When does using more vocabulary candidates improve task performance? Separately, parameter analyses show concentrated, sparse changes (Yu et al., 2026; Shen et al., 2026). We therefore also explore how the optimizer and numerical precision affect observed parameter changes.

We use Qwen3-1.7B and RL teachers for mathematics, code, instruction following, and science, with additional diagnostics on SmolLM3-3B. As in existing MOPD recipes, these teachers are trained by RL from the student's initialization (Ma et al., 2026; Gao et al., 2026). To isolate loss choices, we compare gradients and optimizer steps from identical student parameters, responses, and optimizer states. We also track per-task learning curves as training progresses. Three findings show how supervision choices affect parameter updates and task performance (Figure 1):

(a) Loss averaging

Figure

(b) Adam history

Teacher-step cosine on own-domain inputs

Saved Adam

0.83

Reset first moment

≈0\approx 0

Second moment kept

(c) Precision

Figure

(d) Vocabulary supervision

Local comparison: PG → Top-64

Gradient cosine to full KL

0.677 → >0.999

BF16 one step: 0.149% ≈ 0.149%

Math gain vs PG at step 500

DR +2.6 GT -2.1

Percentage points; online training

Figure 1: From supervision choices to parameter updates and task gains. (a) Averaging changes gradients more than Adam updates. (b) Shared momentum aligns teacher updates. (c) BF16 rounding hides widespread FP32 changes. (d) Local gradient fidelity and one-step BF16 changes, followed by mathematics gains in separate 500-step training runs. DR/GT denote domain response/global token averaging.

  1. Loss averaging acts as implicit response weighting, and its effect depends on the task and objective. Global token averaging gives longer-response domains more loss weight. Equalizing domain weights removes this imbalance, but a covariance identity shows that it still shifts each domain's gradient toward longer responses; domain response averaging weights responses equally. No averaging rule performs best on every task, and the distillation loss changes how loss weights translate into task scores.

  2. Adam’s first moment aligns updates, and BF16 rounding hides widespread changes. Updates computed from different teachers’ losses point in similar directions even when their current gradients are nearly orthogonal. Using the PG loss, SGD achieves higher four-task mean scores than Adam with all loss averaging rules. After MOPD training, most student parameters differ from initialization in FP32, but only a small fraction differ after BF16 rounding.

  3. Better gradient approximation does not guarantee larger capability gains. Gradients from shared teacher and student top-64 vocabulary closely match Qwen's full-vocabulary direction. Final mathematics accuracy with the top-64 intersection KL loss is 2.6 points higher than with the PG loss under response averaging, but 2.1 points lower under global token averaging. Although the PG loss is unbiased for the full-vocabulary gradient, a single sampled token gives a noisy estimate, and neither unbiasedness nor closer approximation predicts which tasks improve. In SmolLM, top-64 vocabulary retain most student probability on average but still leave gradient error.

References (53)