arXiv:2610.21234cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21234

Compatibility Matters: A Framework for Token-Level Teacher Selection in On-Policy Distillation

Stanley Wei, Jiin Woo, Kaan Ozkara, Youngsuk Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

On-policy distillation (OPD) has recently been introduced as a promising paradigm for continual learning, where a student policy can be supervised at the token-level. Typically, OPD is performed using a single teacher per prompt rollout (or even per training run). However, this ignores a whole other axis of flexibility that is available due to the on-policy nature — token-level teacher selection during rollouts. Building on this insight, we theoretically explore what makes a teacher and a student compatible for OPD, and leverage our findings to derive several empirical heuristics for teacher selection. In particular, our framework captures several desiderata for OPD: compatible teacher-student reasoning patterns, teacher competence, and induced student diversity. Theoretically, we categorize several types of teacher routing schemes, and we prove that under different scenarios, different routing schemes are likely to be beneficial for optimization and student diversity. We back up our findings with extensive experimental results in domains such as math, coding, kernel generation, and visual reasoning, where we find upwards of 10 percentage points of improvement on pass@k when compared to vanilla OPD and the teacher experts on certain tasks, indicating both capability improvement and diversity over high-quality responses.

1 Introduction

Modern LLM training generally follows the framework of a large-scale pretraining phase on corpora from the real world [Brown et al., 2020, Olmo et al., 2026], such as internet and human-curated data, followed by a post-training phase, in which a base pretrained LLM is fine-tuned to elicit domain-specific gains in capability, most notably in domains such as mathematical reasoning [Shao et al., 2024], instruction following [Ouyang et al., 2022], and software engineering [Wei et al., 2025]. In particular, reinforcement learning (RL) [Christiano et al., 2023, DeepSeek-AI et al., 2025] has recently emerged as a popular paradigm for improving LLM capabilities during post-training. This approach has been well-demonstrated to bring about scalable gains over the initial pre-training phase of LLMs, and has been widely adopted amongst both open- and closed-source models. On-policy distillation [Hinton et al., 2015, Agarwal et al., 2024] has been proposed as a promising alternative. The difference, however, is that the teacher provides dense, token-level feedback to the student rather than in RL where the single reward scalar signal guides the gradient updates. Recently, specialized versions of OPD such as on-policy self-distillation (OPSD) as well as other variants have been proposed [Zhao et al., 2026, Li et al., 2026c]. Separately, there have also been works inspired from classical RL literature which train a separate critic model to give an estimate of the process reward [Bai et al., 2022, Venkatraman et al., 2026].

In this paper, we aim to give a rigorous characterization of what makes a teacher and student compatible for OPD-style training. Informally speaking, the student and teacher should not have too much distributional mismatch [Fu et al., 2026a, Li et al., 2026b]; otherwise, as we prove, the optimization landscape will be very unfavorable. Moreover, the teacher should be somewhat competent, which we will quantify later. Finally, the teacher's supervision should induce good diversity over good responses for the student. We formalize all of these concepts in a unified manner in Section 4.

∗^{*}Work done during internship at Amazon Annapurna Labs.

Importantly, we make an additional observation that is unique to the on-policy setting: not only can we do teacher selection for a given prompt (i.e. as in MOPD [Ma et al., 2026] where prompts of a given domain are routed to the corresponding domain expert), we can actually also do teacher selection token-wise during a student rollout. The intuition for this is that different teachers may be more suitable for different parts of a student rollout (for instance, in algorithmic coding it may be useful to have a math teacher guide the mathematical reasoning prior to implementation).

Overall, we summarize our contributions as follows.

• First, we give a theoretical framework to ground the analysis of token-level teacher selection, in which we can decouple the contribution of teacher competence and of the teacher-student gap.

• Then, within this framework, we give a unified mathematical interpretation of the confidence-based routing scheme from Yin et al. [2026] and a newly proposed representation-based routing scheme. In particular, we show in different scenarios one or the other could prove more useful as a routing scheme. Importantly, we also prove that the representation-based routing has the potential to yield more diverse student generations.

• We back up our theoretical insights with experiments across many domains, including code, Triton kernel generation, math, and visual reasoning. These demonstrate the clear potential of token-level teacher selection over vanilla OPD via improvements across pass@k, indicating student learning of high quality and diverse responses. More importantly, we are able to have principled predictions of when a family of routing schemes is likely to be effective in practical setups.

We discuss related work in Appendix A.