Adaptive Distillation: Aggregating Knowledge from Multiple Paths for Efficient Distillation

Sumanth Chennupati, Mohammad Mahdi Kamani, Zhongwei Cheng, Lin Chen

Abstract

Knowledge Distillation (KD) is a critical technique for model compression, yet the optimal aggregation of multiple distillation paths—such as intermediate features and final logits—remains a manual and sub-optimal process. We present Adaptive Distillation, a framework that treats distillation paths as distinct tasks within a multi-task learning objective. By introducing learnable proxy parameters, the student model automatically determines the importance of each path during training. Our method achieves state-of-the-art performance across various vision tasks, often allowing the student to surpass the teacher's accuracy while maintaining significantly lower computational overhead compared to multiobjective optimization alternatives.

Introduction

The deployment of deep neural networks on edge devices necessitates efficient, lightweight architectures. Knowledge Distillation (KD) facilitates this by transferring knowledge from a high-capacity "teacher" to a compact "student." Modern KD strategies often utilize multiple "paths," comparing various levels of representation. However, naively combining these paths with equal or hand-tuned weights is problematic: some paths may provide redundant or even detrimental information at different stages of training. Adaptive Distillation addresses this by automating the weighting process, replacing heuristic tuning with a dynamic, learnable mechanism.

Methodology

Adaptive Distillation conceptualizes each distillation path as a separate task. The core innovation lies in the adaptive weighting of these tasks.

Comparison of distillation frameworks: (a) Single Distillation, (b) Hyperparameter Optimization, (c) Multiobjective Optimization, and (d) the proposed Adaptive Distillation.

Adaptive Weighting Mechanism

Instead of fixed hyperparameters, the framework introduces proxy parameters $z_i$ for each distillation path $i$. The weight for a specific path is defined as $w_i = e^{-z_i}$, ensuring that all weights remain positive. The total loss function is formulated as a combination of the main task loss and the weighted distillation losses, including a regularization term to prevent the model from trivializing the loss by driving weights to zero. During backpropagation, the student updates both its weights and the proxy parameters, effectively learning which teacher "lessons" are most beneficial at any given epoch.

Experimental Results

We evaluated Adaptive Distillation across diverse benchmarks, including ImageNet-1K for classification, COCO for object detection, and Cityscapes for semantic segmentation.

Performance comparison across CIFAR and ImageNet datasets. Adaptive Distillation consistently achieves the lowest top-1 error rates, frequently outperforming the teacher model.

Classification Performance

On CIFAR-100, the student model using Adaptive Distillation achieved a top-1 error of 20.04%, notably lower than the teacher's 20.10%. This trend of surpassing the teacher was observed across multiple datasets, suggesting that adaptive weighting helps the student filter out noise in the teacher's representations. Across the board, the adaptive method outperformed "Equal Weights," "Hand-tuned," and "Multiobjective" baselines.

Efficiency and Scalability

Compared to Multiobjective Optimization (MOO) baselines, which require solving complex quadratic programs at each step, Adaptive Distillation is approximately 2.5x faster per iteration. This efficiency makes it highly suitable for large-scale industrial applications where training time is a bottleneck.

Discussion and Conclusion

Our findings confirm that the importance of distillation paths is dynamic; intermediate features are often prioritized early in training, while logits gain importance later. Adaptive Distillation successfully captures these temporal shifts. While currently focused on linear combinations of losses, future work may explore non-linear aggregation or multi-teacher ensembles. In conclusion, Adaptive Distillation provides a robust, automated, and efficient "meta-method" that enhances existing KD algorithms by allowing the student to intelligently curate its own learning process.

Summary updated

BibTeX
@inproceedings{chennupati2021adaptive,
  author = {Sumanth Chennupati and Mohammad Mahdi Kamani and Zhongwei Cheng and Lin Chen},
  title = {{Adaptive Distillation: Aggregating Knowledge from Multiple Paths for Efficient Distillation}},
  booktitle = {BMVC},
  year = {2021},
}
Figure