On-Policy Knowledge Distillation for Language Models

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 128 papers28 conceptsfrozen 2026-10-04

In traditional knowledge distillation, a small "student" model learns to mimic a large "teacher" model by looking at the teacher's predictions on a fixed dataset. While straightforward, this approach suffers from a fundamental flaw: the student only learns what to do when it is on the "correct" path defined by the teacher. Once the student makes a small mistake during independent generation, it enters a state it never saw during training, leading to compounding errors—a phenomenon known as exposure bias.

To solve this, researchers have moved toward on-policy distillation, where the student is trained on its own generated sequences. By receiving feedback from the teacher on its own mistakes, the student learns to remain robust even when it deviates from the teacher's ideal path.

The Distribution Mismatch Problem

Standard distillation is typically "off-policy." The student is trained on the teacher's distribution ($P_{teacher}$), but at inference time, it must generate from its own distribution ($P_{student}$). As Yuxian Gu and Li Dong argue in Knowledge Distillation of Large Language Models, this creates a distribution mismatch.

When we use standard Maximum Likelihood Estimation (MLE), we are essentially minimizing the Forward KL Divergence. This objective is "mode-covering": it forces the student to assign high probability to every token the teacher likes. However, a small student often lacks the capacity to cover the teacher's entire broad distribution. This results in a "jack of all trades, master of none" model that assigns low probability to everything, leading to hallucinations and poor calibration.

Mode-Seeking via Reverse KL

The breakthrough in on-policy distillation, exemplified by Generalized Knowledge Distillation (GKD), is the shift toward the Reverse KL Divergence. Unlike the forward version, Reverse KL is "mode-seeking." It encourages the student to focus its limited capacity on the teacher's most probable outputs.

In this framework:

  1. The student generates a sequence (on-policy sampling).
  2. The teacher evaluates that specific sequence.
  3. The student is updated to prefer sequences that the teacher ranks highly.

By training on its own "rollouts," the student learns the consequences of its own choices. Bowen Tan and Zhiting Hu show in Connecting the Dots Between MLE and RL for Sequence Generation that this effectively bridges the gap between supervised learning and Reinforcement Learning (RL), treating the teacher's log-probabilities as a reward signal.

Overcoming the Computational Bottleneck

The primary reason on-policy distillation isn't the universal default is its massive computational cost. Generating sequences from a model during the training loop is significantly slower than simply reading from a static dataset. Jongwoo Ko notes in DistiLLM that auto-regressive decoding can account for the vast majority of training time, often making on-policy methods 2–10x slower than offline alternatives.

Recent research focuses on making this process efficient through several strategies:

  • Interpolation and Re-weighting: Instead of full on-policy sampling, TAID by Makoto Shing dynamically interpolates between student and teacher distributions. Similarly, Hybrid Policy Distillation (HPD) uses token-level re-weighting to get the benefits of Reverse KL without the full cost of sequence rollouts.
  • Simulating Errors: Qihuang Zhong and colleagues introduced KID, which simulates inference-time errors using a fast one-pass forward approach, achieving on-policy performance at off-policy speeds.
  • Selective Supervision: TSD-KD by Minsang Kim suggests that we don't need to supervise every token. By focusing only on critical "branching points" where the student is likely to stray, we can reduce the overhead of teacher feedback.

Why It Works: The Bridge-Garden Intuition

A helpful intuition for why mixing these methods works is the Bridge-Garden Decomposition proposed by Guanghui Wang in The Bridge-Garden Dilemma in LLM Distillation.

In any generation task, there are "Bridge" tokens (like mathematical operators or logic steps) where there is only one correct path, and "Garden" tokens (like creative adjectives) where many paths are acceptable. On-policy methods excel in the "Garden" by allowing the student to find its own voice, while traditional hard-label supervision is essential for the "Bridge" to prevent catastrophic logical failures. By balancing these two, modern distillation frameworks allow 1B-7B parameter models to punch far above their weight class, often rivaling teachers ten times their size.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_on_policy_knowledge_distillation_for_lan_01f8bf67,
  title = {On-Policy Knowledge Distillation for Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/on-policy-knowledge-distillation-for-language-models/rdr_01f8bf67387f4453b5aae7763caf24c8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_on_policy_knowledge_distillation_for_lan_01f8bf67_v1,
  title = {On-Policy Knowledge Distillation for Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/on-policy-knowledge-distillation-for-language-models/rdr_01f8bf67387f4453b5aae7763caf24c8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}