On the Impact of Knowledge Distillation for Model Interpretability

Hyeongrok Han, Siwon Kim, Hyun-Soo Choi, Sungroh Yoon

Introduction

Knowledge Distillation (KD) is a cornerstone technique for model compression, typically used to transfer performance from a large "teacher" model to a smaller "student." However, this research highlights a significant secondary benefit: KD dramatically improves model interpretability. By leveraging "dark knowledge"—the semantic class-similarity information embedded in a teacher's soft targets—KD encourages student models to develop more "object-centric" internal representations.

Problem Statement: The Interpretability Gap

Deep neural networks are often criticized as "black boxes," a major hurdle for deployment in high-stakes fields. While KD is known to improve accuracy and efficiency, its impact on a model's internal logic has remained largely unexplored. The authors investigate whether the distillation process helps models learn human-understandable concepts or if they simply become better at memorizing patterns and background noise.

Methodology

To quantify interpretability, the researchers utilized several complementary approaches:

  1. Network Dissection: Measuring the number of "concept detectors"—individual neurons that respond to human-interpretable features (e.g., "dog," "tree").
  2. Comparative Analysis: Contrasting KD with Label Smoothing (LS). While both use soft targets, LS uses a uniform distribution, allowing researchers to isolate the effect of semantic similarity versus simple uncertainty.
  3. Quantitative Saliency: Using synthesized datasets with ground-truth heatmaps to measure alignment between model focus and actual objects.
  4. Cross-Domain Validation: Extending tests to NLP by distilling BERT models and measuring alignment with sentiment-relevant words.
Overview of training paradigms and their impact on performance and interpretability.

Key Insights: Semantic "Dark Knowledge"

The core finding is that the teacher model’s output contains a hierarchy of similarity. For instance, a "Border Collie" image will naturally have a higher secondary probability for "German Shepherd" than for an unrelated class like "Toaster." KD transfers this semantic hierarchy, teaching the student the underlying concept rather than just the label.

A critical "aha moment" in the study is the comparison between KD and Label Smoothing. While both improve accuracy, LS actually degrades interpretability. By treating all incorrect classes as equally likely, LS erases semantic relationships, often forcing the model to rely on irrelevant background features to distinguish classes. In contrast, KD-trained models are significantly more "object-centric," with activation maps that tightly align with the primary object of interest.

Key Results

The quantitative evidence strongly supports the interpretability benefits of KD. On a ResNet-18 architecture, KD increased the number of unique concept detectors to 312, compared to 275 for a baseline model and a mere 219 for a model using Label Smoothing.

Quantitative breakdown of concept detectors across different training methods.

Furthermore, KD was the only method that improved both generalization (accuracy) and interpretability simultaneously. In saliency tests on synthesized data, KD models achieved a pixel accuracy of 0.8974, outperforming the "from scratch" baseline (0.8803). These benefits were also observed in the NLP domain, where distilled BERT models showed superior alignment with sentiment-relevant tokens.

Conclusion and Future Directions

This work demonstrates that Knowledge Distillation is not just a compression tool but a powerful regularizer for model interpretability. Future research directions include exploring these effects in massive foundation models like CLIP or GPT-4 and investigating the link between object-centricity and adversarial robustness. While KD models are demonstrably more interpretable, developing explicit workflows to leverage this for production debugging remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{han2023impact,
  author = {Hyeongrok Han and Siwon Kim and Hyun-Soo Choi and Sungroh Yoon},
  title = {{On the Impact of Knowledge Distillation for Model Interpretability}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=BBvjfKTJLD},
}
Figure