Skip to main content
QUICK REVIEW

[Paper Review] Be Your Own Teacher: Improve the Performance of Convolutional Neural Networks via Self Distillation

Linfeng Zhang, Jiebo Song|arXiv (Cornell University)|May 17, 2019
Advanced Neural Network ApplicationsComputer Science40 references83 citations
TL;DR

Introduces self distillation, a training framework where deeper network sections teach shallower ones within the same model, improving accuracy without increasing inference cost. It yields about 2.65% average accuracy gain on CIFAR100 and enables depth-adaptive inference.

ABSTRACT

Convolutional neural networks have been widely deployed in various application scenarios. In order to extend the applications' boundaries to some accuracy-crucial domains, researchers have been investigating approaches to boost accuracy through either deeper or wider network structures, which brings with them the exponential increment of the computational and storage cost, delaying the responding time. In this paper, we propose a general training framework named self distillation, which notably enhances the performance (accuracy) of convolutional neural networks through shrinking the size of the network rather than aggrandizing it. Different from traditional knowledge distillation - a knowledge transformation methodology among networks, which forces student neural networks to approximate the softmax layer outputs of pre-trained teacher neural networks, the proposed self distillation framework distills knowledge within network itself. The networks are firstly divided into several sections. Then the knowledge in the deeper portion of the networks is squeezed into the shallow ones. Experiments further prove the generalization of the proposed self distillation framework: enhancement of accuracy at average level is 2.65%, varying from 0.61% in ResNeXt as minimum to 4.07% in VGG19 as maximum. In addition, it can also provide flexibility of depth-wise scalable inference on resource-limited edge devices.Our codes will be released on github soon.

Motivation & Objective

  • Motivate reducing computation while boosting accuracy in CNNs for accuracy-critical applications.
  • Propose a self distillation framework that distills knowledge inside a single network by partitioning it into shallow sections with classifiers.
  • Show that self distillation improves accuracy across multiple architectures and datasets without extra inference cost.
  • Demonstrate the method's benefits for scalable, depth-wise adaptive inference on resource-constrained devices.

Proposed method

  • Divide the target CNN into multiple shallow sections corresponding to depth.
  • Attach a bottleneck and fully connected classifier after each section (training only).
  • Train all shallow classifiers as students under distillation from the deepest classifier (teacher).
  • Use three loss sources for each shallow classifier: (1) cross-entropy with labels, (2) KL divergence between the shallow and deepest classifiers, (3) L2 hint loss aligning shallow and deepest feature maps via bottleneck layers.
  • Optimize the sum of per-classifier losses, with alpha and lambda balancing the three supervision signals; the deepest classifier relies only on label supervision.

Experimental results

Research questions

  • RQ1Does self distillation improve accuracy across different CNN architectures and datasets without increasing inference cost?
  • RQ2Can shallow classifiers benefit from distillation of the deepest classifier, and how does this affect overall model performance and training efficiency?
  • RQ3How does self distillation compare with traditional distillation and deeply supervised nets in terms of accuracy, training time, and practicality for edge devices?
  • RQ4Does the approach enable scalable, depth-aware inference suitable for resource-constrained environments?

Key findings

  • Self distillation yields an average 2.65% accuracy improvement on CIFAR100 across tested networks, with a range from 0.61% (ResNeXt) to 4.07% (VGG19).
  • On ImageNet, average accuracy improvement is 2.02% across evaluated networks.
  • Deeper networks tend to gain more from self distillation (e.g., larger gains for ResNet101/152).
  • Self distillation supports scalable depth-based inference, achieving meaningful acceleration with modest accuracy trade-offs when using shallower classifiers for inference.
  • Compared with traditional distillation, self distillation often provides equal or better accuracy boosts without requiring a separate teacher model, and offers faster training (e.g., 4.6x faster in CIFAR100 experiments).
  • Shallow classifiers trained via self distillation outperform those trained via deep supervision in all reported cases.

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.