arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.08398

UP-MOPD: Update Projection in Multi-Teacher On-Policy Distillation

Taojie Zhu, Jing Jin, Yuan Xia, Chenyang Ding, Qunshan He, Wanke Xia, Tao Sun, Yan Chen, Jian Wang, Jinjie Gu, Tao Feng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

On-policy distillation from multiple teachers combines expertise from different domains in a single student, but conflicting gradients can hinder this integration. Gradient corrections directly constrain parameter updates under plain SGD. With optimizers such as AdamW, however, momentum, adaptive scaling, and weight decay can turn a corrected gradient into an update that increases a domain loss to first order. To address this gap, we propose Update Projection for Multi-Teacher On-Policy Distillation (UP-MOPD). UP-MOPD lets the original mixed gradient update the optimizer state and generate a candidate displacement, then projects only violating candidates before they are committed to the parameters. The projection gives the unique feasible update closest to the candidate in Euclidean distance. In experiments combining medical and general domains, UP-MOPD improves IFEval-loose accuracy late in training by 2.96 points over vanilla M-OPD. It achieves an average score of 60.03 across eight metrics, compared with 59.00 for gradient projection and 59.15 for update rejection. On a public benchmark covering mathematics, code, and instruction following, it achieves the best average across six tasks (32.67), leads on LiveCodeBench v5, and ties for the best IFEval result. These results support projecting optimizer updates to reduce interference between domains. Our code is available at: https://anonymous.4open.science/r/UP-MOPD/

1 INTRODUCTION

Large-model post-training commonly produces experts specialized for different capabilities or domains. Two forms of consolidation are particularly useful in practice: combining foundational capabilities such as mathematics, code, and instruction following, and merging such general capabilities with vertical expertise in medicine, finance, or law. Multi-teacher on-policy distillation (M-OPD) provides a direct route to both forms of integration: the student generates its own trajectories, and the corresponding teachers provide dense token-level supervision. MiMo-V2-Flash and subsequent MOPD work adopt the pattern of training domain teachers separately and distilling them into a shared student (Xiaomi LLM-Core Team, 2026; Ma et al., 2026); GLM-5 uses a related on-policy cross-stage distillation procedure to mitigate capability forgetting during sequential post-training (GLM-5 Team, 2026).

Existing M-OPD studies primarily improve the construction and allocation of teacher signals. Open-MOPD corrects effective optimization-budget imbalance arising from sequence length, teacher-student gaps, and reward staleness (Gao et al., 2026); related work organizes multi-task teachers through privileged context (Ma et al., 2026) or studies behavioral drift caused by insufficient supervision of decision-critical tokens (Shen et al., 2026). Yet after routing, supervision, and domain budgets have been fixed, all domain losses still share one parameter vector and one optimizer. M-OPD first forms the mixed gradient g0=∑dqdgdg_0 = \sum_d q_d g_d; AdamW then combines it with historical moments, coordinate-wise scaling, and weight decay to produce a candidate parameter displacement Δθ0\Delta \theta_0,

∗^{*}Equal contribution. This work was completed during internship at Ant Group.

Figure

Figure 1: Overview of UP-MOPD. AdamW forms a candidate parameter displacement from the mixed distillation gradient. UP-MOPD evaluates its first-order effect on each active domain and minimally corrects a violating candidate before commit, while retaining the current-step optimizer state produced by the original mixture.

namely the update proposed by the optimizer before parameter commit. This exposes a stage not covered by gradient-level interventions: even when −g0-g_0 is first-order non-increasing for every domain in gradient space, Δθ0\Delta\theta_0 may still increase the current loss of one domain. This raises a direct question: how can a harmful optimizer-produced displacement be corrected while minimally changing the intended update?

Multi-task learning methods reduce interference by modifying task gradients or adjusting their weights before the optimizer step (Sener and Koltun, 2018; Yu et al., 2020; Wang et al., 2021; Liu et al., 2021; Chen et al., 2018). PCGrad, for example, projects conflicting task gradients before combining them. We formulate Gradient Projection for Multi-Teacher On-Policy Distillation (GP-MOPD), which jointly projects the mixed gradient before the optimizer step. Under plain SGD, correcting the gradient directly controls the parameter update. With AdamW, however, momentum, adaptive scaling, and weight decay can turn a corrected gradient into an update that increases a domain loss to first order (Kingma and Ba, 2015; Loshchilov and Hutter, 2019). To address this mismatch, we propose Update Projection for Multi-Teacher On-Policy Distillation (UP-MOPD), which directly corrects the parameter update produced by AdamW before applying it to the model.

For domain d, the current-batch first-order loss change induced by a candidate displacement Δθ\Delta\theta is

hd(Δθ)=gd⊤Δθ.h_{d}(\Delta\theta)=g_{d}^{\top}\Delta\theta.

Under a loss-minimization convention, hd>0h_d > 0 denotes first-order harm. A constructive counterexample shows that positive diagonal preconditioning can change gradient-space feasibility (Proposition 1; Appendix B.1), while actual training trajectories show that gd⊤(−g0)g_d^\top(-g_0) and gd⊤Δθ0g_d^\top \Delta \theta_0 do not always have the same sign (Section 3.3). Consequently, a gradient-only criterion may either miss an optimizer-induced harmful update or intervene unnecessarily on an update that is safe after optimization.

UP-MOPD minimally corrects AdamW’s candidate update to satisfy all active domains’ first-order constraints while retaining the optimizer state computed from the original mixed gradient.

Motivated by the substantial gap between medical and general domains, we investigate interference when consolidating their capabilities into a shared student. We analyze the intervention through controlled comparisons and evaluate the method on a public benchmark covering mathematics, code, and instruction following.

Our contributions are threefold:

  1. We show that gradient-space feasibility does not guarantee a feasible parameter update in M-OPD. We prove this non-invariance constructively and verify gradient displacement disagreement in AdamW trajectories.

  2. We formulate GP-MOPD in gradient space and propose UP-MOPD at the optimizer output. UP-MOPD gives the unique minimum correction satisfying all domain constraints while retaining the current-step optimizer state, with a dual dimension determined only by the active domains.

  3. Across medical–general and public math–code–instruction consolidation, UP-MOPD consistently outperforms GP-MOPD in aggregate, supporting commit-side projection across domain compositions, model families, and M-OPD implementations.

References (53)