Abstract
Traditional Knowledge Distillation (KD) methods primarily focus on matching individual data point outputs or feature maps between a teacher and student network. This approach often overlooks the relational structure within a dataset—how different images relate to one another in the embedding space. We present Multi-head Graph Distillation (MHGD), a novel framework that uses multi-head attention to capture these intra-data relations as a graph. By distilling this "relational inductive bias," the student network learns the teacher's complex embedding logic. Experimental results on CIFAR100 and TinyImageNet demonstrate that MHGD consistently outperforms state-of-the-art KD methods, achieving up to a 7.05% accuracy increase for VGG architectures.
Introduction
The goal of Knowledge Distillation (KD) is to transfer the performance of a large, high-capacity Teacher Network (TN) to a smaller, efficient Student Network (SN). Standard KD techniques treat data units in isolation, attempting to align the student's response to a single input with the teacher's. However, a critical component of a Convolutional Neural Network's effectiveness is its ability to embed data—clustering similar samples and separating dissimilar ones. This paper argues that transferring this relational knowledge—the "big picture" of how data points interact—is essential for training more robust student models.
Methodology: Multi-head Graph Distillation (MHGD)
The MHGD framework shifts the focus from individual samples to the relationships between them, represented as a graph ($G$). The process involves two primary phases.
1. Feature Compression and Graph Construction
To handle high-dimensional feature maps efficiently, Singular Value Decomposition (SVD) is employed to compress them into frontend and backend feature vectors. A Multi-head Attention (MHA) network then models the similarities between these vectors. By using multiple attention heads, the model captures diverse relational patterns simultaneously. The attention network is first trained to ensure the resulting graph accurately reflects the teacher's internal embedding logic.
2. Relational Knowledge Transfer
Once the teacher's graph is established, the student network is trained using a multi-task objective. It minimizes a standard classification loss while simultaneously minimizing the Kullback-Leibler (KL) divergence between its own attention-based graph and the teacher's. To ensure the teacher's knowledge does not over-constrain the smaller student, a $tanh$ function is used to smooth the attention values.
Experimental Results
The researchers evaluated MHGD on the CIFAR100 and TinyImageNet datasets across various architectures, including VGG, WResNet, MobileNet, and ResNet.
As shown in the validation curves, MHGD consistently achieves higher accuracy and faster convergence than baseline students and competing KD methods like FitNet (AB) or FSP. Notably, on CIFAR100 with a VGG architecture, MHGD improved student accuracy from 59.97% to 67.02%, a significant 7.05% gain. On TinyImageNet, the method showed a steady ~1% improvement over baseline students, demonstrating its robustness across different data scales and network depths.
Conclusion
Multi-head Graph Distillation represents a significant conceptual shift in knowledge transfer, moving from point-wise matching to relational modeling. By inheriting the teacher's relational inductive bias, student networks develop a more sophisticated understanding of data structure. While the two-phase training adds some computational complexity, the consistent accuracy gains and avoidance of "negative transfer" make MHGD a powerful tool for model compression. Future work will focus on making these distilled graphs more dataset-independent to improve generalization.
Summary updated