Self-knowledge distillation via dropout

Hyoje Lee, Yeachan Park, Hyun Seo, Myungjoo Kang

TL;DR

This paper introduces SD-Dropout, a novel and simple self-knowledge distillation method that leverages dropout to create internal "student" models within a single network. By distilling knowledge between these dropout-generated internal models, SD-Dropout enhances generalization, calibration, and robustness without requiring additional parameters or data.

What Problem Does This Paper Address?

Deep neural networks (DNNs) achieve state-of-the-art performance but often require massive computational resources. Knowledge distillation (KD) aims to compress these large models, but traditional KD methods involve training separate teacher and student models, which is computationally expensive and requires careful teacher selection. Self-knowledge distillation (SKD) addresses this by distilling knowledge within a single model, but existing SKD methods often require additional parameters or rely on specific data distributions. This paper tackles the need for a simpler, more efficient, and versatile SKD method that can improve model performance and robustness.

Methods

The core innovation is SD-Dropout. The method works by applying a dropout layer after the feature extraction layers of a standard neural network. This dropout layer stochastically samples different feature representations from the same network. Specifically, two distinct feature vectors are generated by applying dropout with different masks. These two feature vectors are then passed through the final fully connected layer to produce two different posterior probability distributions. The key idea is to minimize the Kullback-Leibler (KL) divergence between these two distributions. This process effectively creates two "internal" models that learn from each other, mimicking a teacher-student setup within a single training pass. The authors also propose a novel approach to KL-divergence by considering both forward and reverse directions, theoretically and empirically showing that the reverse direction can lead to stronger learning.

Datasets

The paper evaluates SD-Dropout on a variety of standard computer vision datasets:

  • Image Classification: CIFAR-100, CUB-200-2011, Stanford Dogs, and ImageNet.
  • Object Detection: MS COCO.
  • Robustness to Distribution Shift: CIFAR-C.
  • Out-of-Distribution Detection: LSUN, iSUN, DTD, and SVHN (as out-of-distribution datasets, with CIFAR-100 as the in-distribution dataset).

No new benchmarks were introduced.

Key Insights and Ideas

  • Dropout as a Distillation Mechanism: The paper demonstrates that dropout, a common regularization technique, can be repurposed for effective self-knowledge distillation. This is a simple yet powerful insight.
  • Internal Model Ensemble: SD-Dropout creates an ensemble of internal models on-the-fly through dropout, allowing a single network to benefit from the diversity of these internal "students."
  • Forward and Reverse KL-Divergence: The authors provide theoretical and empirical evidence that using both forward and reverse KL-divergence is crucial for effective distillation, with the reverse direction offering a stronger learning signal.
  • Model-Agnostic and Method-Agnostic: SD-Dropout is designed to be easily integrated with various backbone architectures and can even collaborate with other existing SKD methods, highlighting its versatility.
  • No Additional Parameters or Data: A significant advantage is that SD-Dropout doesn't require extra trainable parameters or specific data augmentations, making it computationally efficient.

Key Results

  • Improved Accuracy: SD-Dropout consistently improves top-1 accuracy across various datasets and backbone architectures (e.g., +2.2% on CIFAR-100 with ResNet-18, +12.8% on CUB-200-2011).
  • Enhanced Robustness: The method significantly improves robustness against adversarial attacks (e.g., +9.2% accuracy on CIFAR-100) and distribution shifts (e.g., improved mean corruption accuracy on CIFAR-C).
  • Better Calibration: SD-Dropout effectively reduces overconfidence and improves model calibration, as evidenced by lower Expected Calibration Error (ECE).
  • Effective Out-of-Distribution Detection: The method shows superior performance in detecting out-of-distribution samples.
  • Collaboration Benefits: SD-Dropout enhances the performance of existing SKD methods when combined with them.

Limitations and Future Work

  • Dropout Position: While the paper shows that applying dropout at different layers yields improvements, high-level features (deeper layers) seem more suitable for SD-Dropout than low-level features. Further exploration into optimal dropout placement could be beneficial.
  • Hyperparameter Tuning: The paper investigates hyperparameters like dropout rate ($\beta$) and the weight of the distillation loss (ASDD), suggesting optimal values were found through experimentation. However, the sensitivity to these parameters in diverse scenarios might warrant further study.
  • Theoretical Analysis: While the paper provides theoretical backing for the forward and reverse KL-divergence, further theoretical exploration of the interaction between dropout and distillation could be valuable.

The authors suggest that their method can be used as a general regularization technique to improve single-network performance across various domains.

Summary updated

BibTeX
@article{lee2022self,
  author = {Hyoje Lee and Yeachan Park and Hyun Seo and Myungjoo Kang},
  title = {{Self-knowledge distillation via dropout}},
  journal = {Comput. Vis. Image Underst.},
  year = {2022},
}
Figure