Abstract
Knowledge Distillation (KD) is a cornerstone of model compression, yet its effectiveness is often limited by the "capacity gap" between teacher and student models and the presence of noise in teacher outputs. This paper introduces Continuation KD, a novel framework that treats distillation as a continuation optimization problem. By smoothing the teacher's knowledge early in training and employing an annealed hinge loss, the method allows the student to learn simplified features before tackling complex details. Empirical results across CV and NLU benchmarks demonstrate that Continuation KD consistently outperforms existing state-of-the-art distillation techniques.
Introduction
Knowledge Distillation typically involves a large "teacher" model guiding a smaller "student" model to mimic its output distributions. However, two primary challenges hinder this process. First, the capacity gap occurs when a teacher is so complex that the student lacks the parameters to replicate its behavior, leading to poor convergence. Second, noisy teacher outputs—artifacts or errors in the teacher's predictions—can cause the student to overfit on mistakes rather than learning underlying patterns.
Existing approaches like Teacher Assistant KD (TAKD) or Annealing-KD attempt to mitigate these issues but often require multi-stage training or remain sensitive to noise. Continuation KD addresses these by transforming the difficult, non-convex KD objective into a sequence of progressively more challenging optimization tasks.
Methodology
Continuation KD is inspired by mathematical continuation methods, where a complex problem is solved by first solving a smoothed, simplified version.
Key Components
- Dynamic Loss Weighting: The total loss $\mathcal{L}$ is a combination of Cross-Entropy (CE) from ground-truth labels and the specialized KD loss. A dynamic factor, $\psi(i)$, shifts the student’s focus from the teacher’s guidance to the ground-truth labels as training progresses.
- Annealed Hinge Loss ($L_{CNT}$): Instead of exact logit matching, the method uses a hinge loss. This creates a "margin" where minor discrepancies between student and teacher are ignored, preventing the student from wasting capacity on teacher noise.
- Smoothing Factor ($\phi$): This factor "softens" the teacher's outputs at the start of training. As the student improves, $\phi$ scales down the hinge margin and "sharpens" the teacher's output, gradually introducing higher-frequency details.
Experimental Results
The researchers evaluated Continuation KD across two domains: Natural Language Understanding (GLUE benchmark with DistilRoBERTa and BERT-small) and Computer Vision (CIFAR-10/100 with ResNet-8 and ResNet-110).
Performance Gains
Continuation KD consistently outperformed Vanilla KD, TAKD, and Annealing-KD. In CIFAR-10 experiments, the student reached 90.21% accuracy, a significant improvement over the 88.45% achieved by Vanilla KD. On the GLUE benchmark, DistilRoBERTa achieved an average score of 85.64, notably improving linguistic acceptability (CoLA) scores from 60.97 to 63.75.
Robustness to Noise
Controlled experiments with synthetic noise demonstrated that while Vanilla KD "chases" teacher errors, Continuation KD remains robust. The hinge loss acts as a filter, allowing the student to ignore negligible differences and focus on meaningful feature extraction.
Discussion and Conclusion
Continuation KD provides a unified framework for model distillation that naturally bridges the capacity gap. By showing that previous methods like Annealing-KD are specific instances of this broader continuation lens, the authors offer a more general and stable approach to model compression. Future work may involve exploring alternative smoothing functions and providing a more rigorous theoretical proof for the observed noise robustness. Despite the need for hyperparameter tuning (e.g., margin factor $m$), the method's ability to handle the teacher-student transition in a single training run makes it a highly practical solution for modern AI deployment.
Summary updated