Adaptive Multi-Teacher Knowledge Distillation with Meta-Learning

Hailin Zhang, Defang Chen, Can Wang

Abstract

Traditional multi-teacher knowledge distillation (KD) methods prioritize the construction of high-accuracy ensemble signals. However, these complex signals often exceed the learning capacity of smaller student networks, leading to a "knowledge compatibility" gap. This paper introduces Adaptive Multi-teacher Knowledge Distillation with Meta-Learning (MMKD), a framework that dynamically weights teacher signals at the instance level. By utilizing a Meta-Weight Network (MWN) and a bi-level optimization strategy, MMKD ensures that the student receives guidance tailored to its current state and receptivity. Experimental results across multiple benchmarks demonstrate that MMKD consistently outperforms state-of-the-art methods, particularly in fine-grained classification tasks.

Introduction

Knowledge Distillation (KD) has become a cornerstone technique for model compression, enabling a compact "student" network to inherit the performance of a larger "teacher" network. In multi-teacher scenarios, the standard practice involves aggregating multiple teacher outputs into a single ensemble signal. While this approach maximizes the accuracy of the teacher ensemble, it often ignores the student's ability to absorb such information.

The authors identify a critical bottleneck: knowledge compatibility. A high-capacity ensemble may produce signals that are too specialized or complex for a low-capacity student to process effectively. MMKD addresses this by reframing multi-teacher distillation as a meta-learning problem, where teacher weights are optimized based on the student's actual performance gains.

Methodology

Meta-Weight Networks (MWN)

MMKD employs two distinct Meta-Weight Networks to handle different levels of knowledge transfer:

  1. Logit Meta-Weight Network: This network processes the concatenated output probabilities (logits) of the student and all teachers. It generates a weight vector ($w_r$) that adaptively blends teacher predictions for the student’s Kullback-Leibler (KL) divergence loss.
  2. Feature Meta-Weight Network: To facilitate intermediate layer distillation, the authors utilize pairwise similarity matrices that capture relational information between samples in the feature space. The MWN generates weights ($w_f$) to prioritize feature-based signals that are most beneficial to the student.

Bi-level Optimization and the Hard Buffer

The training process follows a meta-learning paradigm consisting of an inner and outer loop:

  • Inner Loop: The student network is updated using the weighted knowledge provided by the teachers.
  • Outer Loop: The Meta-Weight Network is updated by evaluating the student’s performance on a "hard buffer."

Because many standard datasets lack a dedicated validation set for meta-updates, the authors maintain a Hard Buffer—a collection of difficult samples the student currently struggles to classify. This buffer acts as a proxy validation set, forcing the MWN to select teacher weights that specifically help the student overcome its current learning obstacles.

Experimental Results

Performance Benchmarks

MMKD was evaluated on CIFAR-100, Stanford Dogs, and Tiny-ImageNet using various architecture combinations (e.g., VGG, ResNet, MobileNetV2). The framework consistently outperformed existing multi-teacher methods:

  • CIFAR-100: MMKD achieved a Top-1 accuracy of 74.86% with a VGG8 student, surpassing the previous state-of-the-art (CA-MKD) by 0.59%.
  • Fine-Grained and Large-Scale Datasets: On Stanford Dogs and Tiny-ImageNet, MMKD showed an Average Relative Improvement (ARI) of 17.23% and 26.23%, respectively, compared to CA-MKD.

Visual Analysis

Grad-CAM visualizations indicate that MMKD-trained students exhibit superior localization. While students trained with standard averaging (AVER) often focus on background noise or fail to identify the primary object, MMKD helps the student focus on the discriminative features of the target object, mirroring the attention patterns of the most compatible teachers.

Discussion

Compatibility vs. Power

A central insight of this research is that a more accurate ensemble teacher does not necessarily yield a more accurate student. The empirical evidence suggests that the receptivity of the student is the primary constraint in distillation. By allowing for instance-level adaptation—where teacher weights change for every image—MMKD identifies which teacher is most "competent" for specific data points (e.g., one teacher may excel at identifying specific breeds in the Stanford Dogs dataset).

The Importance of Features

Ablation studies highlight that feature-level meta-weights contribute more significantly to performance gains than logit-level weights. This suggests that the internal representations (the "how") are more critical for bridging the compatibility gap than the final predictions (the "what").

Conclusion and Future Work

MMKD provides a robust solution to the compatibility problem in multi-teacher distillation through adaptive meta-learning. While the method introduces some computational overhead due to second-order derivative calculations, its performance gains across diverse architectures make it a compelling choice for model compression. Future research may explore scaling MMKD to the full ImageNet-1K dataset and applying these adaptive weighting techniques to accelerate the sampling processes of diffusion models.

Summary updated

BibTeX
@inproceedings{zhang2023adaptive,
  author = {Hailin Zhang and Defang Chen and Can Wang},
  title = {{Adaptive Multi-Teacher Knowledge Distillation with Meta-Learning}},
  booktitle = {ICME},
  year = {2023},
  doi = {10.1109/icme55011.2023.00333},
}
Figure