Skip to main content
QUICK REVIEW

[Paper Review] Multi-head Knowledge Distillation for Model Compression

Huan Wang, Suhas Lohit|arXiv (Cornell University)|Dec 5, 2020
Advanced Neural Network ApplicationsComputer Science24 references5 citations
TL;DR

This paper proposes Multi-Head Knowledge Distillation (MHKD), a simple yet effective method for model compression that adds auxiliary classifier heads at intermediate layers of both teacher and student networks. By minimizing KL divergence between the outputs of these heads, MHKD improves student performance across diverse architectures and datasets, consistently outperforming prior knowledge distillation methods and achieving state-of-the-art results when combined with contrastive learning.

ABSTRACT

Several methods of knowledge distillation have been developed for neural network compression. While they all use the KL divergence loss to align the soft outputs of the student model more closely with that of the teacher, the various methods differ in how the intermediate features of the student are encouraged to match those of the teacher. In this paper, we propose a simple-to-implement method using auxiliary classifiers at intermediate layers for matching features, which we refer to as multi-head knowledge distillation (MHKD). We add loss terms for training the student that measure the dissimilarity between student and teacher outputs of the auxiliary classifiers. At the same time, the proposed method also provides a natural way to measure differences at the intermediate layers even though the dimensions of the internal teacher and student features may be different. Through several experiments in image classification on multiple datasets we show that the proposed method outperforms prior relevant approaches presented in the literature.

Motivation & Objective

  • To improve knowledge distillation in model compression by leveraging intermediate-layer supervision.
  • To address the challenge of feature dimension mismatch between student and teacher networks during distillation.
  • To develop a simple, plug-and-play method that enhances student performance without introducing complex knowledge definitions or architectures.
  • To ensure robustness across diverse network architectures and datasets, including cross-architecture pairs.
  • To provide a method compatible with other distillation techniques, such as contrastive learning, for further performance gains.

Proposed method

  • The method introduces auxiliary classifier heads at multiple intermediate layers of both teacher and student networks.
  • For each intermediate layer, the outputs of the student and teacher auxiliary heads are compared using KL divergence loss.
  • The KL divergence loss is combined with standard cross-entropy loss during student training to guide feature learning.
  • The method naturally handles feature dimension mismatches because the auxiliary heads are trained to produce comparable outputs regardless of input dimension.
  • The auxiliary heads are trained during distillation but removed at inference time, leaving only the student’s main classifier.
  • The approach is compatible with other distillation techniques, such as contrastive learning with memory banks, enabling further performance gains.

Experimental results

Research questions

  • RQ1Can intermediate-layer supervision via auxiliary classifiers improve knowledge distillation performance in model compression?
  • RQ2How does MHKD perform across diverse teacher-student architectures, including cross-architecture pairs?
  • RQ3Does MHKD outperform existing distillation methods like FitNet, RKD, and CC in terms of accuracy and robustness?
  • RQ4Can MHKD be effectively combined with other distillation techniques, such as contrastive learning with negative pairs?
  • RQ5How sensitive is MHKD to the choice of intermediate layer(s) for auxiliary heads, and does using multiple heads improve performance?

Key findings

  • MHKD consistently outperforms standard knowledge distillation (KD) across all evaluated datasets and network pairs.
  • On CIFAR-100, MHKD achieves a 96.68% top-1 accuracy with a ResNet32x4 teacher and ShuffleNetV2 student, surpassing KD by up to 1.2 percentage points.
  • For the VGG13/MobileNetV2 pair, MHKD improves accuracy by over 1% compared to FitNet, RKD, and CC.
  • The ablation study confirms that using multiple auxiliary heads (e.g., Heads 1–3) yields better performance than any single head, eliminating the need for manual head selection.
  • MHKD achieves state-of-the-art performance when combined with CRD, demonstrating compatibility and synergy with contrastive learning.
  • The method shows robustness across datasets: it outperforms all baselines on both CIFAR-100 and SVHN, even when performance trends of other methods differ between datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.