Skip to main content
QUICK REVIEW

[Paper Review] Residual Knowledge Distillation

Mengya Gao, Yujun Shen|arXiv (Cornell University)|Feb 21, 2020
Advanced Neural Network ApplicationsComputer Science24 references20 citations
TL;DR

This paper proposes Residual Knowledge Distillation (RKD), a novel model compression method that enhances knowledge distillation by introducing an assistant model to learn the residual error between student and teacher feature maps. By splitting a single student model into a student and a lightweight assistant without increasing computational cost, RKD achieves state-of-the-art performance, improving ResNet-18 accuracy by 2.0% on ImageNet compared to prior methods.

ABSTRACT

Knowledge distillation (KD) is one of the most potent ways for model compression. The key idea is to transfer the knowledge from a deep teacher model (T) to a shallower student (S). However, existing methods suffer from performance degradation due to the substantial gap between the learning capacities of S and T. To remedy this problem, this work proposes Residual Knowledge Distillation (RKD), which further distills the knowledge by introducing an assistant (A). Specifically, S is trained to mimic the feature maps of T, and A aids this process by learning the residual error between them. In this way, S and A complement with each other to get better knowledge from T. Furthermore, we devise an effective method to derive S and A from a given model without increasing the total computational cost. Extensive experiments show that our approach achieves appealing results on popular classification datasets, CIFAR-100 and ImageNet, surpassing state-of-the-art methods.

Motivation & Objective

  • To address the performance gap between student and teacher models in knowledge distillation due to limited student capacity.
  • To improve knowledge transfer efficiency by introducing a two-stage distillation process, rather than relying on a single one-to-one mimicry.
  • To develop a model separation technique that allocates computational resources between student and assistant without increasing total FLOPs.
  • To empirically validate that a lightweight assistant model can effectively learn residual errors and significantly improve student performance.
  • To demonstrate the generalization potential of RKD by combining it with other distillation methods like AT.

Proposed method

  • The method introduces an assistant model A that learns the residual error between the feature maps of the student S and the teacher T.
  • The final student output is formed by summing the feature maps of S and A, enabling better alignment with the teacher's output.
  • A model separation technique is proposed to derive S and A from a single model, ensuring the total FLOPs remain unchanged.
  • The assistant model A is trained to minimize the L2 loss between its output and the difference (residual) between T and S feature maps.
  • The approach is compatible with various knowledge types, including feature maps and attention maps, as long as residual error can be defined.
  • The method is evaluated by training S to mimic T, while A learns the residual error, leading to improved generalization and accuracy.

Experimental results

Research questions

  • RQ1Can introducing an assistant model that learns the residual error between student and teacher feature maps improve knowledge distillation performance?
  • RQ2Does the two-stage distillation process in RKD reduce performance degradation caused by the capacity gap between student and teacher models?
  • RQ3Can a lightweight assistant model achieve significant performance gains without increasing the total computational cost?
  • RQ4How does RKD compare to state-of-the-art knowledge distillation methods like KD, FitNets, and AT on diverse datasets?
  • RQ5Can RKD be generalized to work with other distillation strategies, such as attention distillation (AT)?

Key findings

  • RKD achieves a 2.0% top-1 accuracy improvement on ImageNet when transferring knowledge from ResNet-34 to ResNet-18, significantly outperforming the second-best method by 1.2%.
  • On CIFAR-100, RKD improves student accuracy by 2.75% over the baseline KD method, approaching teacher performance closely.
  • Using a lightweight assistant model (ResNet-18-1/4) with only 6.25% of the computational cost of the student, RKD gains 0.87% higher accuracy, demonstrating efficiency.
  • Even when the assistant model is as large as the teacher (ResNet-34), performance does not match the teacher, indicating that a lightweight A is sufficient and optimal.
  • RKD combined with AT achieves 71.54% top-1 accuracy on ImageNet, showing that the residual learning strategy generalizes well to other distillation methods.
  • Visualization on CIFAR-100 shows that RKD produces more discriminative feature maps than baseline methods, especially in earlier blocks, due to effective residual error learning.

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.