Abstract
Transferring knowledge from a teacher neural network pretrained on the same or a similar task to a student neural network can significantly improve the performance of the student neural network. Existing knowledge transfer approaches match the activations or the corresponding hand-crafted features of the teacher and the student networks. We propose an information-theoretic framework for knowledge transfer which formulates knowledge transfer as maximizing the mutual information between the teacher and the student networks. We compare our method with existing knowledge transfer methods on both knowledge distillation and transfer learning tasks and show that our method consistently outperforms existing methods. We further demonstrate the strength of our method on knowledge transfer across heterogeneous network architectures by transferring knowledge from a convolutional neural network (CNN) to a multi-layer perceptron (MLP) on CIFAR-10. The resulting MLP significantly outperforms the-state-of-the-art methods and it achieves similar performance to the CNN with a single convolutional layer.
Introduction
Deep Learning typically requires massive amounts of labeled data to achieve high performance. In domains where data is scarce—such as specialized medical imaging—Knowledge Transfer (KT) becomes essential. KT involves leveraging a large, pre-trained "Teacher" network to guide the training of a smaller or more specialized "Student" network.
Existing KT methods, such as Knowledge Distillation (KD) or FitNets, often rely on matching raw activations or hand-crafted features using Mean Squared Error (MSE). However, these approaches are largely heuristic and can be overly restrictive, forcing the student to mimic the teacher even on features that may be irrelevant to the student's specific task. This paper introduces Variational Information Distillation (VID), a framework that treats knowledge transfer as a principled information-theoretic problem.
The VID Framework
The core objective of VID is to maximize the Mutual Information (MI) between the teacher's activations ($t$) and the student's activations ($s$). Because MI is difficult to calculate directly in high-dimensional spaces, the authors utilize Variational Information Maximization to derive a tractable lower bound.
Variational Lower Bound and Flexible Likelihood
Instead of exact matching, the student learns a variational distribution $q(t|s)$ to predict the teacher’s activations. By modeling $q(t|s)$ as a Gaussian distribution with a learned, per-dimension variance, VID introduces a "filtering" effect. If a teacher's activation is noisy or irrelevant, the student can assign it a high variance, effectively ignoring that information in the loss function. This flexibility allows the student to focus on the most informative features provided by the teacher.
Experimental Results
The authors evaluated VID across several benchmarks, including CIFAR-10/100, CUB-200-2011, and MIT-67. A key strength of VID is its performance in data-scarce scenarios.
As shown in the table above, VID-I (intermediate layer distillation) consistently outperforms baselines like KD, FitNet, and Attention Transfer (AT). In the most extreme case with only 100 samples per class, VID achieved 81.59% accuracy, significantly higher than the student trained from scratch (58.84%) or the next best baseline, AT (73.40%).
Heterogeneous Architecture Transfer
VID also excels at transferring knowledge between different architectures. In a challenging experiment transferring from a Wide ResNet (CNN) to a Multi-Layer Perceptron (MLP) on CIFAR-10, the VID-trained MLP reached 85.18% accuracy. This result significantly surpasses previous state-of-the-art MLP performances (approximately 78%) and approaches the performance of a CNN with a single convolutional layer.
Conclusion
Variational Information Distillation provides a unified theoretical foundation for knowledge transfer. By maximizing mutual information through a variational bound, it offers a more flexible and effective way to guide student networks, particularly when data is limited or when the teacher and student architectures differ significantly. While the training process involves learning additional parameters for the variational distribution, the resulting student models maintain their original inference efficiency while achieving superior accuracy.
Summary updated