Knowledge Distillation via Route Constrained Optimization

Xiao Jin, Baoyun Peng, Yichao Wu, Yu Liu, Jiaheng Liu, Ding Liang, Junjie Yan, Xiaolin Hu · DOI

Abstract

Knowledge Distillation (KD) is a widely used technique for model compression, yet it often struggles when a significant capacity gap exists between a complex teacher and a compact student. This paper introduces Route Constrained Optimization (RCO), which treats distillation as a curriculum learning problem. Instead of targeting a fully converged teacher, RCO guides the student through the teacher’s training trajectory using intermediate "anchor points." This approach significantly narrows the performance gap, enabling small models to achieve state-of-the-art results on benchmarks like CIFAR-100, ImageNet, and MegaFace.

Introduction

Knowledge Distillation has become a cornerstone of model compression, allowing small "student" networks to inherit the performance of large, complex "teacher" models. However, a significant hurdle remains: the capacity gap. When a massive teacher (e.g., ResNet-50) supervises a tiny student (e.g., MobileNet), the student often fails to capture the teacher's nuances. The authors argue that a fully converged teacher is "too hard" for a small student to mimic directly, leading to high congruence loss and suboptimal performance. It is analogous to asking a primary school student to understand a PhD thesis without the intervening years of education.

Route Constrained Optimization (RCO)

To bridge this gap, the authors propose Route Constrained Optimization (RCO). RCO reimagines distillation as a curriculum learning task. Instead of forcing the student to immediately approximate the final, deterministic state of the teacher, RCO provides an "easy-to-hard" learning sequence by utilizing the teacher's training history.

The RCO training process: the student mimics the teacher at various stages (anchor points) along its training route.

The student is trained in stages, mimicking "anchor points" (checkpoints) from the teacher’s own training trajectory. The authors explore two selection strategies: Equal Epoch Interval (EEI), which picks checkpoints at fixed intervals, and Greedy Search (GS), which uses KL-divergence to identify the optimal moments to transition the student to a harder challenge. To improve efficiency, a "One-Stage EEI" variant allows the teacher to evolve during a single training run of the student.

Key Insights: Navigating the Loss Landscape

One of the most compelling findings is how RCO affects the student's optimization path. By following the teacher's route, the student is guided toward more optimal regions of the loss landscape.

Visualization of training paths on the loss landscape using PCA. RCO (red) navigates to a deeper local minimum than standard KD (yellow).

Principal Component Analysis (PCA) of the training paths reveals that RCO helps the student avoid the shallow local minima where standard KD often gets trapped. This gradual guidance allows the student to find deeper, more stable minima. Interestingly, models trained with RCO also proved more robust to input noise, such as Gaussian blur and distortions, suggesting that the gradual learning process creates more stable and reliable features.

Experimental Results

The effectiveness of RCO was validated across multiple scales and tasks:

  • CIFAR-100: RCO improved top-1 accuracy by 2.14% over standard KD.
  • ImageNet-1K: The method yielded a 1.5% improvement in top-1 accuracy and 0.7% in top-5.
  • MegaFace: In large-scale face recognition (1 million distractors), RCO achieved 84.3% accuracy with only 0.8M parameters, a massive jump over standard Softmax (65.9%) and FitNet (81.0%).

Conclusion

Route Constrained Optimization provides a simple yet effective framework for narrowing the capacity gap in knowledge distillation. By treating the teacher's training history as a roadmap, RCO ensures that the student is never overwhelmed by the complexity of the target. While the multi-stage approach can increase training time, the significant gains in accuracy and robustness make it a powerful tool for deploying high-performance models on resource-constrained devices.

Summary updated

BibTeX
@inproceedings{jin2019knowledge,
  author = {Xiao Jin and Baoyun Peng and Yichao Wu and Yu Liu and Jiaheng Liu and Ding Liang and Junjie Yan and Xiaolin Hu},
  title = {{Knowledge Distillation via Route Constrained Optimization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00143},
}
Figure