Skip to main content
QUICK REVIEW

[Paper Review] An Embarrassingly Simple Approach for Knowledge Distillation

Mengya Gao, Yujun Shen|arXiv (Cornell University)|Dec 5, 2018
Advanced Neural Network ApplicationsComputer Science40 references12 citations
TL;DR

This paper proposes Stage-by-Stage Knowledge Distillation (SSKD), a simple yet effective method that decouples knowledge distillation into two phases: first, distilling intermediate feature representations from a teacher to a student backbone without using labels, and second, fine-tuning only the task-specific head with ground-truth labels. SSKD eliminates the need for loss weight hyperparameter tuning and achieves state-of-the-art performance on ImageNet, CIFAR-100, COCO object detection, and IJB-A face recognition benchmarks, with gains up to 2.8% AP on COCO and 1.8% accuracy on ImageNet.

ABSTRACT

Knowledge Distillation (KD) aims at improving the performance of a low-capacity student model by inheriting knowledge from a high-capacity teacher model. Previous KD methods typically train a student by minimizing a task-related loss and the KD loss simultaneously, using a pre-defined loss weight to balance these two terms. In this work, we propose to first transfer the backbone knowledge from a teacher to the student, and then only learn the task-head of the student network. Such a decomposition of the training process circumvents the need of choosing an appropriate loss weight, which is often difficult in practice, and thus makes it easier to apply to different datasets and tasks. Importantly, the decomposition permits the core of our method, Stage-by-Stage Knowledge Distillation (SSKD), which facilitates progressive feature mimicking from teacher to student. Extensive experiments on CIFAR-100 and ImageNet suggest that SSKD significantly narrows down the performance gap between student and teacher, outperforming state-of-the-art approaches. We also demonstrate the generalization ability of SSKD on other challenging benchmarks, including face recognition on IJB-A dataset as well as object detection on COCO dataset.

Motivation & Objective

  • To address the challenge of hyperparameter sensitivity in knowledge distillation, particularly the difficulty of tuning the loss weight balancing task loss and KD loss.
  • To improve the generalization and stability of knowledge distillation across diverse datasets and tasks by decoupling the training process into two distinct phases.
  • To demonstrate that progressive, stage-wise distillation of intermediate features leads to better knowledge transfer than single-step distillation.
  • To extend knowledge distillation to non-classification tasks, such as object detection and face recognition, where prior methods were not directly applicable.
  • To establish new benchmarks for knowledge distillation in object detection by applying SSKD to FPN and RetinaNet on COCO.

Proposed method

  • Decompose student training into two phases: (1) knowledge distillation of intermediate features from teacher to student backbone without using ground-truth labels, and (2) training only the task-specific head with labeled data while keeping the backbone fixed.
  • Implement Stage-by-Stage Knowledge Distillation (SSKD), where distillation is performed sequentially across network stages, mimicking features one sub-network at a time.
  • Use feature-level distillation loss (e.g., MSE or KL divergence) between corresponding layers of teacher and student networks during the first phase.
  • Fix the student backbone after distillation and fine-tune only the task head using cross-entropy or other task-specific loss during the second phase.
  • Apply SSKD to various architectures and tasks, including ResNets on ImageNet and CIFAR-100, and ResNets on FPN and RetinaNet for COCO object detection.
  • Ensure training efficiency by keeping most of the network frozen during each stage, thus avoiding significant increase in training time.

Experimental results

Research questions

  • RQ1Can decoupling knowledge distillation into backbone feature mimicry and task-head fine-tuning eliminate the need for loss weight hyperparameter tuning?
  • RQ2Does stage-wise, progressive distillation of intermediate features lead to better performance than end-to-end joint training with a fixed loss weight?
  • RQ3Can the proposed method generalize across diverse tasks such as image classification, object detection, and face recognition?
  • RQ4How does SSKD compare to state-of-the-art knowledge distillation methods on standard benchmarks like ImageNet and COCO?
  • RQ5Can SSKD be effectively applied to complex detection architectures like FPN and RetinaNet, where KD is less explored?

Key findings

  • On ImageNet with ResNet-18 as student and ResNet-34 as teacher, SSKD improved top-1 accuracy by 1.8% over the second-best method, achieving 80.5% accuracy.
  • On COCO object detection with FPN, SSKD improved ResNet-50's AP from 37.7% to 40.5% when distilling from ResNet-152, a 2.8% gain.
  • On RetinaNet, SSKD boosted ResNet-18's AP from 32.4% to 35.6% when learning from ResNet-152, a 3.2% improvement.
  • On IJB-A face recognition, SSKD demonstrated strong generalization, achieving consistent improvements over baseline methods.
  • SSKD achieved consistent performance gains across all object size categories (AP_S, AP_M, AP_L) on COCO, indicating robustness to scale variation.
  • The ablation study confirmed that stage-wise distillation outperformed single-step distillation, and the two-phase training scheme was more stable and effective than joint optimization.

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.