Abstract
This paper presents a method to interpret the success of knowledge distillation by quantifying and analyzing task-relevant and task-irrelevant visual concepts that are encoded in intermediate layers of a deep neural network (DNN). More specifically, three hypotheses are proposed as follows.
- Knowledge distillation makes the DNN learn more visual concepts than learning from raw data.
- Knowledge distillation ensures that the DNN is prone to learning various visual concepts simultaneously. Whereas, in the scenario of learning from raw data, the DNN learns visual concepts sequentially.
- Knowledge distillation yields more stable optimization directions than learning from raw data. Accordingly, we design three types of mathematical metrics to evaluate feature representations of the DNN. In experiments, we diagnosed various DNNs, and above hypotheses were verified.
Introduction
While Knowledge Distillation (KD) is a proven technique for boosting the performance of "student" neural networks, the underlying reasons for its success have remained largely opaque. In a typical KD setup, a large, high-performing "teacher" network guides a smaller "student" network to mimic its outputs. While students often outperform peers trained from scratch, the internal mechanics are often treated as a "black box." This research addresses the lack of formal metrics to measure "knowledge" inside a network—specifically, how many object parts (visual concepts) a network learns and how the presence of a teacher alters this learning process. By quantifying these concepts, the authors aim to provide a mathematical foundation for the observed benefits of KD.
Methodology
The authors propose a novel framework to quantify knowledge based on Information-Bottleneck theory. Instead of relying on human labels, they use conditional entropy to measure how much information from the input image is preserved or discarded by a specific layer. Specifically, if a layer preserves a high amount of information about a specific image region, that region is identified as a "visual concept." This allows for a quantitative analysis of the internal representations without subjective human bias.
The study distinguishes between task-relevant (foreground) and task-irrelevant (background) concepts, positing that a superior network should prioritize the former. Three primary metrics were developed:
- Quantity ($N_{concept}$ and $\lambda$): Measuring the total number of foreground concepts and their discriminative power.
- Learning Simultaneity ($D_{mean}$ and $D_{std}$): Assessing how quickly and uniformly different concepts are acquired across training epochs using weight distance.
- Optimization Stability ($\rho$): Quantifying "detours"—the tendency of a network to learn a feature early on only to discard it later.
These hypotheses were tested across standard benchmarks including ILSVRC-2013 DET (terrestrial mammals), CUB200-2011 (fine-grained birds), and Pascal VOC 2012. The researchers utilized a wide variety of architectures, including AlexNet, VGG (11, 16, 19), and ResNet (50, 101, 152), ensuring the findings were robust across different model depths and designs.
Key Insights and Results
The experimental results across diverse datasets and architectures strongly support the proposed hypotheses, offering three key insights into the KD advantage:
1. The "More is Better" Insight
KD students consistently encode a higher number of foreground visual concepts and fewer distracting background concepts compared to baseline models. Student networks showed significantly higher $\lambda$ values (often 5-10% higher than baselines), indicating a much stronger focus on task-relevant information. This suggests that the teacher network effectively filters out noise, allowing the student to focus on discriminative features.
2. The "All at Once" Insight
Baseline networks tend to learn features sequentially (e.g., learning a bird's head in early epochs and its tail much later). In contrast, KD students learn various visual concepts simultaneously, achieving a holistic understanding of objects much earlier in the training process. This is reflected in lower $D_{mean}$ values for KD students, proving they reach their "richest" knowledge state faster.
3. The "No Detours" Insight
Training from scratch involves significant trial and error, where a network might focus on irrelevant background features before discarding them. KD provides a "stable optimization direction," guiding the student directly to relevant features and avoiding these costly computational detours.
The stability metric $\rho$ was consistently higher for KD students. For instance, in a VGG-16 model trained on the CUB dataset, the student achieved a $\rho$ of 0.66 compared to the baseline's 0.50, indicating significantly less wasted effort on temporary features that are eventually discarded.
Conclusion
This work provides a quantitative explanation for the efficacy of knowledge distillation. By demonstrating that KD leads to more comprehensive, simultaneous, and stable feature acquisition, the authors move beyond "black box" interpretations. While currently focused on image classification and requiring foreground annotations for evaluation, these entropy-based metrics offer a promising path for future research into unsupervised learning or exploring how different distillation losses affect the learning trajectory of student networks.
Summary updated