Skip to main content
QUICK REVIEW

[Paper Review] Quantifying the Knowledge in a DNN to Explain Knowledge Distillation for Classification

Quanshi Zhang, Xu Cheng|arXiv (Cornell University)|Aug 18, 2022
Domain Adaptation and Few-Shot LearningComputer Science7 citations
TL;DR

This paper introduces a novel information-theoretic framework to quantify knowledge points—discriminative input units preserved across DNN layers—explaining why knowledge distillation (KD) outperforms training from scratch. By measuring knowledge point quantity, quality, learning simultaneity, and optimization stability, the authors demonstrate KD enables DNNs to encode more task-relevant knowledge points, learn them concurrently, and optimize more stably across image, NLP, and 3D point cloud classification tasks.

ABSTRACT

Compared to traditional learning from scratch, knowledge distillation sometimes makes the DNN achieve superior performance. This paper provides a new perspective to explain the success of knowledge distillation, i.e., quantifying knowledge points encoded in intermediate layers of a DNN for classification, based on the information theory. To this end, we consider the signal processing in a DNN as the layer-wise information discarding. A knowledge point is referred to as an input unit, whose information is much less discarded than other input units. Thus, we propose three hypotheses for knowledge distillation based on the quantification of knowledge points. 1. The DNN learning from knowledge distillation encodes more knowledge points than the DNN learning from scratch. 2. Knowledge distillation makes the DNN more likely to learn different knowledge points simultaneously. In comparison, the DNN learning from scratch tends to encode various knowledge points sequentially. 3. The DNN learning from knowledge distillation is often optimized more stably than the DNN learning from scratch. In order to verify the above hypotheses, we design three types of metrics with annotations of foreground objects to analyze feature representations of the DNN, extit{i.e.} the quantity and the quality of knowledge points, the learning speed of different knowledge points, and the stability of optimization directions. In experiments, we diagnosed various DNNs for different classification tasks, i.e., image classification, 3D point cloud classification, binary sentiment classification, and question answering, which verified above hypotheses.

Motivation & Objective

  • To explain the success of knowledge distillation beyond regularization or label smoothing by analyzing intermediate-layer representations.
  • To address the lack of quantitative understanding of how knowledge is encoded and preserved in deep neural networks during training.
  • To propose a new theoretical lens—knowledge point quantification—based on information theory to analyze representation learning dynamics.
  • To verify that knowledge distillation enhances knowledge encoding efficiency, simultaneity, and optimization stability compared to training from scratch.

Proposed method

  • Define a knowledge point as an input unit (e.g., pixel, word embedding) whose information is discarded less than others during forward pass through a DNN.
  • Propose three metrics: (1) knowledge point quantity and quality (via foreground annotation), (2) learning simultaneity via $D_{\textrm{mean}}$ and $D_{\textrm{std}}$, and (3) optimization stability via $\rho$ measuring direction consistency.
  • Use information-theoretic signal processing to model DNNs as layer-wise information discarding systems, identifying preserved input units as knowledge points.
  • Apply metrics to intermediate features of DNNs across diverse tasks: image classification (CUB200-2011, Tiny ImageNet), 3D point cloud (ModelNet40), NLP (SST-2, QNLI).
  • Compare student networks trained via KD against baseline networks trained from scratch using the same metrics.
  • Use foreground annotations to compute the ratio of task-relevant knowledge points, evaluating quality of representation.

Experimental results

Research questions

  • RQ1Does knowledge distillation lead to a higher number of preserved, discriminative knowledge points compared to training from scratch?
  • RQ2Does knowledge distillation enable the student network to learn multiple knowledge points simultaneously, rather than sequentially?
  • RQ3Does knowledge distillation result in more stable optimization trajectories compared to training from scratch?
  • RQ4Can knowledge point quantification explain the performance gains in diverse classification tasks, including vision, NLP, and 3D learning?

Key findings

  • Knowledge distillation leads to a higher number of preserved knowledge points: for example, VGG-16 distilling from VGG-19 achieved 19.88 knowledge points (vs. 15.29 from scratch) on CUB200-2011.
  • The ratio of task-relevant knowledge points correlates positively with classification accuracy: DNNs with higher foreground knowledge point ratios achieved better performance, e.g., 0.71 for distillation vs. 0.65 for training from scratch on VGG-19.
  • Knowledge distillation enables simultaneous learning of knowledge points: student networks showed lower $D_{\textrm{mean}}$ and $D_{\textrm{std}}$ (0.85 and 0.93) than baselines (3.46 and 40.31) on VGG-16, indicating more balanced learning.
  • Knowledge distillation improves optimization stability: student networks exhibited higher $\rho$ values (e.g., 0.32 vs. 0.27) than baselines, indicating fewer optimization detours.
  • Fine-tuning also benefits from knowledge point dynamics: fine-tuned VGG-16 learned new foreground knowledge points faster and with fewer temporary discards than training from scratch.
  • Failure cases occurred in shallow networks (e.g., AlexNet, VGG-11) and highly discriminative models (e.g., PointNet++), where knowledge point dynamics were less distinguishable.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.