arXiv(opens in a new tab)cs.LGJan 2026Cited by 164 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2601.18734

Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Models

Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, Aditya Grover

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

Abstract

Knowledge distillation improves large language model (LLM) reasoning by compressing the knowledge of a teacher LLM to train smaller LLMs. On-policy distillation advances this approach by having the student sample its own trajectories while a teacher LLM provides dense token-level supervision, addressing the distribution mismatch between training and inference in off-policy distillation methods. However, on-policy distillation typically requires a separate, often larger, teacher LLM and does not explicitly leverage ground-truth solutions available in reasoning datasets. Inspired by the intuition that a sufficiently capable LLM can rationalize external privileged reasoning traces and teach its weaker self, we introduce On-Policy Self-Distillation (OPSD), a learning algorithm where a single LLM acts as both teacher and student with different contexts. The teacher policy conditions on privileged information (e.g., verified reasoning traces) while the student policy sees only the question; training minimizes the per-token divergence between these distributions over the student's own rollouts. We demonstrate the efficacy of our method on multiple mathematical reasoning benchmarks, achieving superior token efficiency compared to reinforcement learning methods and better performance over off-policy distillation methods. Code repo: https://github.com/siyan-zhao/OPSD.

1. Introduction

Recent advances in large language models (LLMs) have demonstrated impressive capabilities in reasoning and instruction following. Achieving these capabilities during

post-training typically relies on reinforcement learning methods such as Reinforcement Learning with Verifiable Rewards (RLVR) (e.g., GRPO (Shao et al., 2024; Guo et al., 2025; Team et al., 2025; Rastogi et al., 2025; Yu et al., 2025)), supervised fine-tuning (SFT) on high-quality reasoning datasets (Guha et al., 2025; Team et al., 2025; Xiaomi, 2026), or knowledge distillation, where recent work has shown that distillation from advanced teacher models can outperform RL in both performance and training efficiency (Yang et al., 2025; Xiaomi, 2026; Lu & Lab, 2025).

Despite their respective successes, each approach has inherent limitations. RLVR suffers from inefficiencies including: (1) sampling a group of responses per prompt is computationally expensive and can introduce high variance in estimating the true value function; moreover, when all samples are either correct or incorrect, the gradient signal vanishes (Yu et al., 2025; Zhao et al., 2025); and (2) the reward signal is sparse and uniformly applied across all tokens in the generated output, neglecting fine-grained token-level feedback. Supervised fine-tuning suffers from exposure bias and weaker generalization (Agarwal et al., 2024; Chu et al., 2025). Traditional knowledge distillation provides dense token-level supervision from a teacher model but relies on off-policy data (Hinton et al., 2015). Recent advances in on-policy distillation—where a student model samples its own trajectories while a teacher policy provides dense token-level supervision—have demonstrated superior sample efficiency by combining the distributional realism of on-policy training with dense feedback (Agarwal et al., 2024; Lu & Lab, 2025).

While on-policy distillation has shown strong performance, it relies on a distinct teacher model to supervise the student. Given that modern LLMs already exhibit strong reasoning capabilities, we ask this research question: can a model effectively serve as its own teacher through self-distillation? Our approach is inspired by human learning: after solving a problem incorrectly, a student can examine the correct solution, rationalize its steps, and identify where their reasoning failed. Prior work has shown that for LLMs, evaluation is often easier than generation (Sun et al., 2024; Naor, 1996). We hypothesize that rationalization—explaining a given correct answer—is similarly easier than generation. Motivated

*Equal advising,† Work done at UCLA and during Siyan's part-time internship at Meta.,‡ Work done at Meta. ¹UCLA ²HKU ³Meta Superintelligence Labs. Correspondence to: Siyan Zhao siyanz@g.ucla.edu.

Preprint.

Figure

Figure 1. Overview of On-Policy Self-Distillation (OPSD): Given a reasoning dataset S={(xi,yi∗)}i=1N\mathcal{S} = \{(x_i, y_i^*)\}_{i=1}^N, we instantiate two policies from the same LLM: a student policy pS(⋅∣x)p_S(\cdot \mid x) and a teacher policy pT(⋅∣x,y∗)p_T(\cdot \mid x, y^*). The student generates an on-policy response y^∼pS(⋅∣x)\hat{y} \sim p_S(\cdot \mid x). Both policies then evaluate this trajectory to produce next-token distributions pS(⋅∣x,y^<n)p_S(\cdot \mid x, \hat{y}_{<n}) and pT(⋅∣x,y∗,y^<n)p_T(\cdot \mid x, y^*, \hat{y}_{<n}) at each step nn. The learning objective minimizes the per-token divergence D(pT∥pS)D(p_T \| p_S) along the student's rollout. The divergence here can be forward KL, reverse KL or JSD. Crucially, gradients backpropagate only through the student's logits, allowing the model to self-distil.

by this, we instantiate both the teacher and student policies from a single LLM. The teacher policy is provided with privileged information y∗y^*, such as the ground-truth answer or a reference chain-of-thought, while the student policy conditions only on the problem xx. Concretely, the teacher policy pT(⋅∣x,y∗)p_T(\cdot \mid x, y^*) conditions on both the problem and the privileged answer, whereas the student policy pS(⋅∣x)p_S(\cdot \mid x) observes only the problem. We preserve the on-policy training paradigm by sampling trajectories y^\hat{y} exclusively from the student policy, which then receives dense, token-level supervision from the privileged teacher policy.

We therefore propose On-Policy Self-Distillation (OPSD), a framework in which a single model plays both teacher and student roles. The student samples its own trajectories y^∼pS(⋅∣x)\hat{y} \sim p_S(\cdot \mid x); we then compute the per-token divergence between the student and teacher distributions and minimize it over the student's own rollouts. This formulation (i) uses on-policy supervision (the student's own trajectories), (ii) provides dense per-token feedback, (iii) exploits ground-truth solutions y∗y^*, and (iv) requires no separate teacher model. The learning process is captured by the loss

LOPSD(θ)=E(x,y∗)∼SEy^∼pS(⋅∣x)∑n=1∣y^∣D(pT(⋅∣x,y∗,y^<n)∥pS(⋅∣x,y^<n)).(1)\begin{aligned}\mathcal{L}_{\mathrm{OPSD}}(\theta)&=\mathbb{E}_{(x,y^{*})\sim\mathcal{S}}\mathbb{E}_{\hat{y}\sim p_{S}(\cdot\mid x)}\sum_{n=1}^{|\hat{y}|}\\&D\Big(p_{T}(\cdot\mid x,y^{*},\hat{y}_{<n})\parallel p_{S}(\cdot\mid x,\hat{y}_{<n})\Big).\end{aligned} \tag{1}

In summary, our contributions are as follows:

  • We introduce On-Policy Self-Distillation (OPSD), a novel framework that enables a single model to act as both teacher and student, leveraging ground-truth answers to provide dense token-level supervision on student rollouts.

  • We introduce a per-token pointwise KL clipping mechanism that stabilizes training and improves performance as

we find stylistic tokens can dominate the training signal of math tokens.

  • We evaluate OPSD on three competition-level mathematical reasoning tasks, demonstrating that it matches the performance of GRPO with significantly improved token efficiency and outperform supervised fine-tuning.

  • We analyze the impact of different divergence objectives, the effect of student generation length, and student-teacher generation styles.

References (59)

Cited by (164)