Collaborative Multi-Teacher Knowledge Distillation for Learning Low Bit-width Deep Neural Networks

Cuong Pham, Tuan Hoang, Thanh-Toan Do

Abstract

Deep Neural Networks (DNNs) face significant deployment challenges on resource-constrained devices due to their high computational and memory demands. This paper presents Collaborative Multi-Teacher Knowledge Distillation (CMT-KD), a novel framework that integrates quantization and knowledge distillation. Unlike traditional methods that use static, full-precision teachers, CMT-KD employs multiple quantized teachers that learn collaboratively with the student. By utilizing learnable importance factors and mutual learning, the framework effectively distills rich, compatible knowledge into low bit-width models. Experiments on CIFAR-100 and ImageNet show that CMT-KD achieves state-of-the-art results, with some 2-bit models even outperforming their full-precision counterparts.

Introduction

The demand for efficient DNNs has led to the development of model compression techniques like quantization and knowledge distillation (KD). Quantization reduces numerical precision to save memory and power, while KD transfers knowledge from a large teacher to a smaller student. However, a significant "accuracy gap" often persists when distilling from high-precision teachers to low-capacity, quantized students. CMT-KD addresses this by proposing a collaborative environment where multiple quantized teachers provide a more accessible "language" of features for the student to mimic.

Methodology

The core of CMT-KD is a collaborative learning paradigm involving multiple teachers and a student model.

  1. Collaborative Teacher Learning: Teachers of varying bit-widths (e.g., 4, 6, and 8-bit) are trained simultaneously. Their intermediate feature maps are aggregated into an importance-aware shared knowledge pool.
  2. Learnable Importance Factors ($\pi$): Instead of simple averaging, the framework learns weights ($\pi$) for each teacher at each layer. This allows the model to dynamically select the most informative teacher throughout the training process.
  3. Mutual Learning and Logit Ensembling: Teachers and students provide mutual feedback. The final outputs (logits) are ensembled to guide the entire group toward a superior global minimum.
The CMT-KD framework architecture showing collaborative teacher learning and feature-based distillation.

Results and Discussion

The authors evaluated CMT-KD on CIFAR-100 and ImageNet using AlexNet and ResNet18 architectures, yielding several key insights:

  • Quantized Teacher Advantage: A major finding is that quantized students benefit more from quantized teachers than from full-precision ones. The structural similarity in feature distributions between low-precision models facilitates more effective knowledge transfer.
  • Dynamic Teacher Influence: The learnable importance factors ($\pi$) reveal that teacher influence is depth-dependent. As shown in the training dynamics, different bit-width teachers dominate at different layers; for instance, in ResNet18, higher-precision teachers often become more critical in deeper layers to capture complex semantic information.
  • State-of-the-Art Performance: On CIFAR-100, a 2-bit ResNet18 achieved 78.3% Top-1 accuracy, surpassing the 32-bit baseline of 75.3%. On ImageNet, a 2-bit AlexNet reached 59.3%, nearing the full-precision accuracy of 61.8% and outperforming existing quantization methods like DoReFa-Net and HWGQ.
Evolution of teacher importance factors across different layers during training, demonstrating dynamic teacher dominance.

Conclusion

CMT-KD represents a significant step forward in training highly efficient, low-bit neural networks. By fostering collaboration among quantized teachers, it overcomes the capacity limitations of traditional distillation. While the method shows remarkable success in matching architecture types, future research will explore cross-architecture distillation and further optimization for extremely low-capacity models.

Summary updated

BibTeX
@inproceedings{pham2023collaborative,
  author = {Cuong Pham and Tuan Hoang and Thanh-Toan Do},
  title = {{Collaborative Multi-Teacher Knowledge Distillation for Learning Low Bit-width Deep Neural Networks}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00637},
}
Figure