Knowledge Distillation with Training Wheels

Guanlin Liu, Anand Ramachandran, Tanmay Gangwani, Yan Fu, Abhinav SethyarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) present a significant trade-off between inference cost and output quality. While Knowledge Distillation (KD) aims to bridge this gap by training smaller "student" models, these models often hit a performance ceiling. We present a framework where student models learn to strategically invoke a "teacher" model during inference. By framing KD as a constrained reinforcement learning problem, the student identifies difficult tokens and requests expert assistance within a user-defined "teacher use budget." Our approach achieves state-of-the-art quality with significantly lower latency compared to existing speculative decoding methods.

Introduction

The deployment of Large Language Models (LLMs) is often constrained by the high computational cost of massive "teacher" models. Standard Knowledge Distillation (KD) attempts to compress this knowledge into smaller "student" models, but students frequently fail to capture the full reasoning capabilities of their teachers. Existing runtime verification methods, such as Speculative Decoding, require the teacher to verify nearly every token, leading to wasted computation when the student's drafts are rejected.

We propose a novel "training wheels" approach where the student model acts as an active manager of its own uncertainty. Instead of the teacher judging the student after the fact, the student proactively identifies tokens it cannot confidently generate and requests teacher intervention before making an error.

Methodology

Our framework involves a two-phase training process to enable selective teacher invocation.

1. KD as Value Optimization

We reformulate the standard reverse KL-divergence objective of KD as an entropy-regularized value optimization problem. Using Path Consistency Learning (PCL), the student learns from both its own on-policy attempts and the teacher's off-policy expert examples. This approach provides greater stability than traditional policy gradient methods.

2. Constrained Reinforcement Learning

To manage the trade-off between accuracy and cost, we introduce a teacher use budget ($b$). We employ Lagrangian relaxation to penalize the model for exceeding this budget while rewarding it for accuracy. This ensures the student only "asks for help" on the most critical or difficult tokens.

3. Natural Language Control

Rather than hard-coding the budget, we train the model using natural language prompts (e.g., "With light teacher use, summarize..."). This allows a single model to be dynamically adjusted along the efficiency-accuracy curve at inference time simply by modifying the input text.

Experimental Setup

We evaluated our framework using FLAN-T5-SMALL (60M parameters) as the student and FLAN-T5-XL (3B parameters) as the teacher. Testing was conducted on two benchmarks:

  • WMT-19 (German to English): For machine translation.
  • XSum: For extreme summarization.

Results and Discussion

Our method demonstrates superior efficiency compared to speculative decoding baselines like DistillSpec. By avoiding the "rejection sampling" inherent in speculative decoding—where incorrect student tokens are discarded and recalculated—our approach ensures that every generated token is utilized, leading to smoother and lower latency.

Latency vs. Quality (ROUGE-2) comparison between our method and DistillSpec.

As shown in the figure above, our approach unlocks "low-latency" regimes that were previously inaccessible. In translation tasks, we achieved the same quality as DistillSpec with approximately 25% lower latency. Furthermore, the models demonstrated high fidelity to the natural language budget instructions, accurately tracking the requested teacher usage rates.

Conclusion

The "Training Wheels" framework shifts the paradigm of model collaboration from teacher-led verification to student-led arbitration. By learning a "difficulty map" of language, the student model efficiently allocates its limited teacher budget to the most complex parts of a task. Future work will explore multi-agent configurations where a student model coordinates between multiple specialized experts.

Summary updated

BibTeX
@misc{liu2025knowledge,
  author = {Guanlin Liu and Anand Ramachandran and Tanmay Gangwani and Yan Fu and Abhinav Sethy},
  title = {{Knowledge Distillation with Training Wheels}},
  year = {2025},
  eprint = {2502.17717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.17717},
}
Figure