Seedlabs
Source research

Speculative Knowledge Distillation: Bridging the Teacher-Student Gap Through Interleaved Sampling

Xu, Wenda, Han, Rujun, Zifeng Wang, Long Tan Le, Dhruv Madeka, Lei Li et al. · 2024 · 47 citationsRead the paper

All 10 authors

William Yang Wang, Rishabh Agarwal, Chen-Yu Lee, Tomas Pfister

Recent advances in knowledge distillation (KD) have enabled smaller student models to approach the performance of larger teacher models. However, popular methods such as supervised KD and on-policy KD, are adversely impacted by the knowledge gaps between teacher-student in practical scenarios. Supervised KD suffers from a distribution mismatch between training with a static dataset and inference over final student-generated outputs. Conversely, on-policy KD, which uses student-generated samples for training, can suffer from low-quality training examples with which teacher models are not familiar, resulting in inaccurate teacher feedback. To address these limitations, we introduce Speculative Knowledge Distillation (SKD), a novel approach that leverages cooperation between student and teacher models to generate high-quality training data on-the-fly while aligning with the student's inference-time distribution. In SKD, the student proposes tokens, and the teacher replaces poorly ranked ones based on its own distribution, transferring high-quality knowledge adaptively. We evaluate SKD on various text generation tasks, including translation, summarization, math, and instruction following, and show that SKD consistently outperforms existing KD methods across different domains, data sizes, and model initialization strategies.

What the full text shows

Shown in the lab
  • SKD outperforms supervised and on-policy KD across multiple tasks including translation, summarization, and arithmetic reasoning. (Gemma-7B to Gemma-2B and Qwen2-7B to Qwen2-0.5B)
  • SKD achieves substantial gains over supervised fine-tuning (SFT) for Gemma-7B to Gemma-2B distillation. — 41.8% in translation, 230% in summarization, 160% in arithmetic reasoning (Gemma-7B to Gemma-2B)
  • SKD trained on instruction-following data shows significant improvement on held-out math testing suites. — 198% on MATH, 360% on GSMplus (Instruction-following data)
  • SKD outperforms all baselines in 5 out of 6 test settings across two model families. (Task-specific distillation)
Setup
Teacher models: Gemma-7B-IT, Qwen2-7B-IT; Student models: Gemma-2B-IT, Qwen2-0.5B-IT. Datasets include Flores-200 (translation), DialogSum (summarization), and GSM8K (arithmetic reasoning), with training sizes of 100 to 10,000 samples.
How
The authors introduce Speculative Knowledge Distillation (SKD), which uses interleaved sampling where the student proposes tokens and the teacher replaces those poorly ranked (outside top-K) based on its own distribution. This approach adaptively shifts from supervised-like distillation to on-policy distillation as the student improves.

Summarized by Gemma 4 from the open-access full text · 16 Nov 2026. Read it