Why does Knowledge Distillation Work? Rethink its Attention and Fidelity Mechanism
Chenqi Guo, Shiwei Zhong, Xiaofeng Liu, Qianli Feng, Yinglong Ma
TL;DR
This work addresses why Knowledge Distillation (KD) works by challenging the assumption that high fidelity between student and teachers is always beneficial. It introduces the idea that diversity in teacher attentions, promoted by stronger data augmentation, provides a broader supervisory perspective that improves generalization even as fidelity and mutual information decline. By using IoU of attention maps and an Affinity augmentation-strength metric, the paper demonstrates a causal link between attention diversity and improved student performance, and shows that logits-matching optimization mainly aids generalization at the cost of fidelity. The findings suggest practical KD design principles that leverage heterogeneous teacher signals and moderated mimicry to achieve robust generalization in vision tasks, including ensembles and transformers.
Abstract
Does Knowledge Distillation (KD) really work? Conventional wisdom viewed it as a knowledge transfer procedure where a perfect mimicry of the student to its teacher is desired. However, paradoxical studies indicate that closely replicating the teacher's behavior does not consistently improve student generalization, posing questions on its possible causes. Confronted with this gap, we hypothesize that diverse attentions in teachers contribute to better student generalization at the expense of reduced fidelity in ensemble KD setups. By increasing data augmentation strengths, our key findings reveal a decrease in the Intersection over Union (IoU) of attentions between teacher models, leading to reduced student overfitting and decreased fidelity. We propose this low-fidelity phenomenon as an underlying characteristic rather than a pathology when training KD. This suggests that stronger data augmentation fosters a broader perspective provided by the divergent teacher ensemble and lower student-teacher mutual information, benefiting generalization performance. These insights clarify the mechanism on low-fidelity phenomenon in KD. Thus, we offer new perspectives on optimizing student model performance, by emphasizing increased diversity in teacher attentions and reduced mimicry behavior between teachers and student.
