Distilling Knowledge via Knowledge Review

Pengguang Chen, Shu Liu, Hengshuang Zhao, Jiaya Jia

Introduction

Knowledge Distillation (KD) has emerged as a cornerstone technique for model compression, enabling the transfer of complex patterns from a large, high-performing "teacher" network to a compact "student" network. While research has extensively explored how to transfer this knowledge—through various loss functions or attention mechanisms—the question of where the information originates has remained largely static. Traditional KD frameworks typically rely on a rigid, one-to-one stage mapping: the teacher’s first stage supervises the student’s first stage, the second supervises the second, and so on.

This paper argues that this same-level supervision pattern creates a structural bottleneck. Drawing an analogy to human learning, where students frequently review foundational concepts to master advanced topics, the authors propose a "Knowledge Review" mechanism. This framework breaks the traditional mapping by allowing deeper student layers to learn from multiple levels of teacher features simultaneously.

Comparison of information transfer paths in knowledge distillation: (a) traditional same-level, (b) single cross-level, (c) multiple same-level, and (d) the proposed cross-levels information transfer.

The Knowledge Review Framework

The proposed Knowledge Review (KR) framework introduces a cross-stage connection path where the student’s $i$-th stage is supervised by all of the teacher’s stages from $1$ to $i$. This multi-level supervision allows the student to "review" earlier, more concrete information as it develops more abstract features in its deeper layers.

To implement this without the quadratic computational complexity of comparing every possible stage pair, the authors utilize a recursive residual learning framework. By aggregating student features from deep to shallow, the complexity is reduced to $n$ pairs of distances. This approach mimics residual learning, where the student focuses on learning the specific "residual" information that distinguishes the teacher's superior performance.

Evolution of distillation frameworks from (a) simple stage-wise mapping to (d) the proposed Knowledge Review framework incorporating Attention-Based Fusion (ABF) and Hierarchical Context Loss (HCL).

Key Components

The framework is supported by two novel modules designed to handle the complexities of multi-level feature fusion:

  1. Attention-Based Fusion (ABF): Features from different stages naturally vary in spatial resolution and semantic depth. ABF employs attention maps to dynamically weight and aggregate these disparate features, ensuring that the most relevant information is prioritized during the fusion process.
  2. Hierarchical Context Loss (HCL): Recognizing that standard $L_2$ distance metrics are often insufficient for capturing complex multi-level information, the authors introduced HCL. This loss function utilizes spatial pyramid pooling to distill knowledge across multiple scales and levels of abstraction, providing a more nuanced supervisory signal.

Key Insights and Results

A central finding of this research is the high capacity of deep student stages to benefit from low-level teacher features. The authors demonstrate that breaking the structural bottleneck of same-level supervision consistently improves performance across various architectures and tasks without changing the underlying network capacity.

The Knowledge Review framework achieved state-of-the-art results on several benchmarks:

  • ImageNet Classification: Distilling from a ResNet50 teacher to a MobileNet student improved Top-1 accuracy from a baseline of 68.87% to 72.56%, surpassing previous methods like CRD by over 1%.
  • Object Detection and Segmentation: On the COCO 2017 dataset, using a ResNet101 teacher to train a ResNet18 student resulted in a +3.49 mAP gain, significantly outperforming specialized detection distillation methods.
  • Efficiency: Crucially, because the review mechanism and fusion modules are only utilized during the training phase, the final student model incurs zero additional computational overhead during inference.

Conclusion

By rethinking the connectivity between teacher and student networks, "Knowledge Review" provides a more flexible and effective path for knowledge transfer. The success of this multi-level, residual-based approach suggests that structural innovations in distillation paths are just as critical as the refinement of loss functions. Future work will explore applying these cross-stage connections to intra-stage features and extending the mechanism to domains such as Natural Language Processing.

Summary updated

BibTeX
@inproceedings{chen2021distilling,
  author = {Pengguang Chen and Shu Liu and Hengshuang Zhao and Jiaya Jia},
  title = {{Distilling Knowledge via Knowledge Review}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00497},
}
Figure