Skip to main content
QUICK REVIEW

[Paper Review] Class Attention Transfer Based Knowledge Distillation

Ziyao Guo, Haonan Yan|arXiv (Cornell University)|Apr 25, 2023
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper proposes Class Attention Transfer-based Knowledge Distillation (CAT-KD), a novel knowledge distillation method that enhances student network performance by transferring class activation maps (CAMs) from a teacher to student model. By focusing on transferring interpretable, class-specific attention maps that highlight discriminative image regions, CAT-KD achieves state-of-the-art accuracy on ImageNet and CIFAR benchmarks while offering high interpretability through explicit modeling of feature importance during classification.

ABSTRACT

Previous knowledge distillation methods have shown their impressive performance on model compression tasks, however, it is hard to explain how the knowledge they transferred helps to improve the performance of the student network. In this work, we focus on proposing a knowledge distillation method that has both high interpretability and competitive performance. We first revisit the structure of mainstream CNN models and reveal that possessing the capacity of identifying class discriminative regions of input is critical for CNN to perform classification. Furthermore, we demonstrate that this capacity can be obtained and enhanced by transferring class activation maps. Based on our findings, we propose class attention transfer based knowledge distillation (CAT-KD). Different from previous KD methods, we explore and present several properties of the knowledge transferred by our method, which not only improve the interpretability of CAT-KD but also contribute to a better understanding of CNN. While having high interpretability, CAT-KD achieves state-of-the-art performance on multiple benchmarks. Code is available at: https://github.com/GzyAftermath/CAT-KD.

Motivation & Objective

  • To address the lack of interpretability in existing knowledge distillation methods, especially those based on logits and features.
  • To investigate whether transferring class activation maps (CAMs) can improve student model performance and enhance understanding of CNN classification mechanisms.
  • To develop a knowledge distillation framework that is both highly interpretable and achieves state-of-the-art performance.
  • To demonstrate that the capacity to identify class-discriminative regions is critical for CNNs and can be enhanced via CAM transfer.

Proposed method

  • Convert the final fully connected layer of a CNN to a 1×1 convolutional layer to enable end-to-end generation of class activation maps (CAMs) during inference.
  • Extract CAMs from the teacher network during training, which represent spatial regions of input images that are most relevant for predicting each class.
  • Normalize the CAMs to remove class prediction scores and retain only spatial attention cues, ensuring the student learns to focus on discriminative regions.
  • Train the student network by minimizing the L2 loss between its own CAMs and the teacher’s normalized CAMs, encouraging alignment in attention patterns.
  • Use global average pooling on the student’s CAMs to produce final classification scores, maintaining compatibility with standard classification pipelines.
  • Introduce a distillation loss that emphasizes spatial attention consistency rather than output logits or feature maps, improving interpretability and generalization.

Experimental results

Research questions

  • RQ1Can transferring class activation maps (CAMs) improve the performance of a student network in knowledge distillation?
  • RQ2What role does the ability to identify class-discriminative regions play in CNN classification, and can this capacity be enhanced via knowledge transfer?
  • RQ3How does the interpretability of CAM-based distillation compare to traditional logits- or feature-based distillation?
  • RQ4Does the accuracy of the teacher network directly affect the performance of the student when using CAM transfer?
  • RQ5How does CAT-KD compare in terms of data efficiency, training cost, and transferability to other knowledge distillation methods?

Key findings

  • CAT-KD achieves state-of-the-art top-1 accuracy of 72.24% on ImageNet when using ResNet50 as teacher and MobileNet as student, outperforming all compared methods.
  • On CIFAR-100, CAT-KD maintains high performance even with only 20% of the training data, demonstrating superior data efficiency compared to other KD methods.
  • CAT-KD achieves the highest linear probing accuracy (74.43% on STL-10 and 40.73% on Tiny-ImageNet) in transferability evaluation, indicating highly generalizable knowledge transfer.
  • The method shows minimal performance drop under data scarcity, with only a 1.5% decrease in accuracy when training data is reduced to 20%, outperforming baseline methods.
  • CAT-KD has the highest training efficiency, requiring nearly the same computational cost as logits-based methods and significantly less than feature-based methods that require auxiliary networks.
  • When the teacher model is weak, CAT-KD’s performance degrades, confirming that the quality of transferred CAMs directly influences student performance.

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.