Skip to main content
QUICK REVIEW

[Paper Review] Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning

Zeyuan Allen-Zhu, Yuanzhi Li|arXiv (Cornell University)|Dec 17, 2020
Adversarial Robustness in Machine Learning92 references151 citations
TL;DR

The paper presents a theoretical and empirical study showing that ensembles of identically-architected neural networks trained on the same data can dramatically improve test accuracy under a multi-view data structure, and that this improvement can be distilled into a single model; it also analyzes self-distillation as implicit ensemble+distillation.

ABSTRACT

We formally study how ensemble of deep learning models can improve test accuracy, and how the superior performance of ensemble can be distilled into a single model using knowledge distillation. We consider the challenging case where the ensemble is simply an average of the outputs of a few independently trained neural networks with the SAME architecture, trained using the SAME algorithm on the SAME data set, and they only differ by the random seeds used in the initialization. We show that ensemble/knowledge distillation in Deep Learning works very differently from traditional learning theory (such as boosting or NTKs, neural tangent kernels). To properly understand them, we develop a theory showing that when data has a structure we refer to as ``multi-view'', then ensemble of independently trained neural networks can provably improve test accuracy, and such superior test accuracy can also be provably distilled into a single model by training a single model to match the output of the ensemble instead of the true label. Our result sheds light on how ensemble works in deep learning in a way that is completely different from traditional theorems, and how the ``dark knowledge'' is hidden in the outputs of the ensemble and can be used in distillation. In the end, we prove that self-distillation can also be viewed as implicitly combining ensemble and knowledge distillation to improve test accuracy.

Motivation & Objective

  • Explain why ensemble methods improve test accuracy in deep learning beyond traditional learning theory.
  • Introduce and formalize a multi-view data setting where ensemble benefits can be proven.
  • Show that ensemble improvements can be distilled into a single model trained on the same data.
  • Demonstrate that self-distillation effectively combines ensemble and distillation to boost performance.

Proposed method

  • Theoretical analysis for a two-layer convolutional network with smoothed ReLU activations.
  • Definition of multi-view and single-view data distributions and a corresponding data-generating process.
  • Gradient-descent training results showing a single model achieves perfect training accuracy but near-random test error on D.
  • Proof that an ensemble of independently trained models achieves substantially better test accuracy.
  • Demonstration that training a new model to imitate the ensemble outputs (knowledge distillation) yields similarly improved test accuracy.
  • Argument that self-distillation acts as implicit ensemble+distillation and yields further gains.

Experimental results

Research questions

  • RQ1How does averaging the outputs of independently trained, identically structured neural networks affect test accuracy under a multi-view data setting?
  • RQ2Can the performance gain of an ensemble be replicated by training a single model to mimic the ensemble outputs (knowledge distillation) on the same training data?
  • RQ3What is the mechanism behind dark knowledge and its role in distillation and self-distillation?
  • RQ4How does self-distillation relate to implicit ensemble and distillation in deep learning?

Key findings

  • A single model can achieve perfect training accuracy but only 0.49μ–0.51μ test error under the proposed setup.
  • An ensemble of L independently trained models achieves test error ≤ 0.01μ with high probability.
  • A separate model trained to match the ensemble output (knowledge distillation) also attains test error ≤ 0.01μ.
  • Self-distillation (distilling a model from another model of the same size) can achieve test error ≤ 0.26μ.
  • Knowledge distillation over random features (NTK) does not replicate ensemble benefits, highlighting the difference between NTK/per-feature views and real deep learning feature learning.
  • The results emphasize that ensemble/knowledge distillation in deep learning emerge from feature-learning dynamics under multi-view data, not simply from traditional ensemble theories.

Better researchstarts right now

From reading papers to final review, dramatically reduce your research time.

No credit card · Free plan available

This review was created by AI and reviewed by human editors.