Manuscript Offprint

arXiv:2610.23042

GR-OPD: Group-Relative Sequence Credit for On-Policy Distillation

Yushu Wang, Renkai Yang, Jingcao Xu, Zili Geng, Haihong Tang, Yaohui Jin, Hao He

Yushu Wang 1^{1}

booker@sjtu.edu.cn

Renkai Yang 2,†^{2,\dagger}

renkai.yrk@taobao.com

Jingcao Xu 2,∗^{2,*}

xujingcao.xjc@taobao.com

Zili Geng 2,∗^{2,*}

gengzili.gzl@taobao.com

Haihong Tang 2^{2}

piaoxue@taobao.com

Yaohui Jin 1^{1}

jinyh@sjtu.edu.cn

Hao He 1,†^{1,\dagger}

hehao@sjtu.edu.cn

1^{1}Shanghai Jiao Tong University, Shanghai, China

2^{2}Alibaba Group, Hangzhou, China

ABSTRACT

On-policy distillation (OPD) provides token-level teacher feedback, yet common sampled-token updates assign credit locally and omit the effects of earlier actions on subsequent feedback. We introduce GR-OPD (Group-Relative On-Policy Distillation), which decouples feedback computation from credit assignment by aggregating token feedback into calibrated sequence-level credit. We establish a theoretical basis for this approach by showing that, under ideal on-policy assumptions, broadcasting raw summed feedback to every response token yields an unbiased estimate of the negative gradient of the sequence-level reverse-KL objective. To support effective learning in practice, GR-OPD discounts later feedback that may become less reliable under distribution shift and uses same-prompt rollout groups to calibrate teacher guidance. It preserves relative response preferences while retaining a controlled fraction of the group mean, which we term collective teacher pressure. Across five Qwen3 teacher–student settings and six mathematical reasoning benchmarks, GR-OPD outperforms vanilla OPD in macro Avg@K in every setting, including gains of 10.9 and 11.5 percentage points in two settings with matched thinking patterns. It also maintains stable training under mismatched thinking patterns, where vanilla OPD collapses. Ablations show that retaining an appropriate amount of collective teacher pressure can improve learning, while excessive collective teacher pressure or an unrestricted feedback horizon can destabilize training.

1 INTRODUCTION

On-policy distillation (OPD) has become a common method for post-training large language models (LLMs). Recent frontier LLMs including DeepSeek-V4, MiMo-V2-Flash, and Kimi K3 use OPD to transfer or integrate reasoning capabilities (DeepSeek-AI, 2026; Xiaomi LLM-Core Team, 2026; Kimi Team, 2026). OPD samples responses from the student policy and trains the student to match the teacher's next-token distributions along the generated trajectories. A widely used lightweight variant uses the teacher–student log-probability difference of each student-sampled token as its token-level advantage in a policy-gradient update, avoiding the memory cost of retaining full-vocabulary distributions at every position. Beyond computational efficiency, this sampled-token formulation supports strong post-training gains and provides dense teacher supervision throughout generation, helping to alleviate the credit assignment problem.

Recent work has explored how to make dense teacher supervision more effective in OPD. These efforts include reducing the variance of sampled-token updates (Oh et al., 2026) and addressing the declining reliability of teacher feedback along student-generated trajectories (Liu et al., 2026b). TOPD also addresses limitations of isolated token-level updates by incorporating near-future trajectory guidance (Jiang & Ferraro, 2026). Other approaches refine the transferred signal by isolating changes

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

induced by teacher post-training (Heo et al., 2026) or correcting systematic discrepancies associated with model families and styles (Gu et al., 2026; Wu et al., 2026). These studies suggest that dense teacher feedback is not uniformly beneficial: useful guidance can coexist with teacher-specific preferences that the student cannot readily absorb. Effective distillation therefore calls for considering both how dense teacher feedback is organized into learning signals and how these signals are adapted to the student's current capabilities and reasoning patterns.

Our key insight is that the granularity of teacher feedback computation and the granularity of credit assignment are separate design choices. OPD can compute teacher feedback for every token, but this does not require assigning each action credit only from the feedback computed for that token. We therefore investigate how to aggregate token-level teacher feedback across a response into a trajectory-level signal and use it to assign credit to the actions that produced that response. This allows later teacher feedback to inform earlier decisions while retaining dense token-level scoring. Evidence supports the informativeness of response-level scores: Rethinking OPD finds that averaging teacher feedback over a response distinguishes correct from incorrect answers even when OPD training fails under mismatched thinking patterns (Li et al., 2026a). We observe the same phenomenon in our teacher–student settings with both matched and mismatched thinking patterns.

To understand how aggregation changes credit assignment, we revisit the gradient of the reverse-KL objective underlying OPD. An early action affects both the immediate teacher–student agreement and the later prefixes visited by the student. Building on MiniLLM and Distributional DAgger (Gu et al., 2024; Agrawal et al., 2026), we separate this gradient into local action matching and future state-visitation credit. The common sampled-token update retains only the local term. We show that, under ideal on-policy assumptions, broadcasting the sequence credit obtained by summing teacher feedback to every token yields an unbiased estimate of the negative gradient of OPD's reverse-KL objective. This result establishes the credit-assignment basis for trajectory aggregation and motivates the practical estimator developed below.

Building on this analysis, we propose GR-OPD (Group-Relative On-Policy Distillation), which converts token-level teacher feedback into sequence-level credit that supports stable and effective learning. Our observation that directly broadcasting uncalibrated trajectory-level signals can lead to training collapse motivates two complementary controls. To reduce the influence of later feedback that may become less reliable under distribution shift, GR-OPD applies exponential discounting with parameter γ\gamma. To adapt teacher guidance to the student, GR-OPD uses the same-prompt group mean as a reference for separating relative response preferences from a shared score component. This shared component shifts the credit assigned to all responses in the group together; we refer to it as collective teacher pressure. GR-OPD preserves the relative preference term and adds a fraction λ\lambda of collective teacher pressure before applying a common group normalization. We evaluate GR-OPD across five Qwen3 teacher–student settings and six mathematical reasoning benchmarks. GR-OPD substantially outperforms vanilla OPD in macro Avg@K across all five settings.

Our contributions are threefold:

• Recasting OPD through sequence-level credit. We develop a principled sequence-credit formulation of OPD that transforms dense token-level teacher feedback into a response-level signal. By allowing subsequent feedback to inform earlier actions, this formulation captures trajectory-wide effects beyond local token matching. Under ideal on-policy assumptions, broadcasting summed teacher–student log-ratios recovers the full reverse-KL descent gradient in expectation, grounding sequence-level credit in OPD’s original objective.

• Calibrating sequence credit with GR-OPD. We propose the GR-OPD estimator to calibrate sequence credit by combining feedback-horizon control with collective teacher pressure calibration. Same-prompt groups provide a reference for relative response preferences and collective teacher pressure. The estimator preserves the relative preference term while regulating how much of the shared component enters the student update.

• Strong long-reasoning performance and stable training. GR-OPD outperforms vanilla OPD in macro Avg@K across all five teacher–student settings, including gains of 10.9 and 11.5 percentage points in two settings with matched thinking patterns. It also maintains stable training under mismatched thinking patterns, where vanilla OPD collapses. Ablations show that retaining appropriate collective teacher pressure can improve learning, whereas excessive pressure or a full feedback horizon can destabilize training.

References (51)