Skip to main content
QUICK REVIEW

[Paper Review] Semi-supervised Image Classification with Grad-CAM Consistency

Juyong Lee, Seunghyuk Cho|arXiv (Cornell University)|Aug 31, 2021
Domain Adaptation and Few-Shot LearningComputer Science17 references6 citations
TL;DR

This paper proposes a semi-supervised image classification method that enforces consistency in Grad-CAM attention maps across data augmentations, improving model generalization and adaptability. By adding a Grad-CAM consistency loss to standard consistency training, the method achieves up to 1.44% accuracy gain on CIFAR-10 and outperforms baseline pseudo-labeling, especially when targeting deeper network layers for better feature-level alignment.

ABSTRACT

Consistency training, which exploits both supervised and unsupervised learning with different augmentations on image, is an effective method of utilizing unlabeled data in semi-supervised learning (SSL) manner. Here, we present another version of the method with Grad-CAM consistency loss, so it can be utilized in training model with better generalization and adjustability. We show that our method improved the baseline ResNet model with at most 1.44 % and 0.31 $\pm$ 0.59 %p accuracy improvement on average with CIFAR-10 dataset. We conducted ablation study comparing to using only psuedo-label for consistency training. Also, we argue that our method can adjust in different environments when targeted to different units in the model. The code is available: https://github.com/gimme1dollar/gradcam-consistency-semi-sup.

Motivation & Objective

  • To improve semi-supervised image classification by leveraging Grad-CAM attention map consistency as a regularization signal.
  • To enhance model generalization beyond standard pseudo-labeling by incorporating gradient-based saliency map consistency.
  • To increase training adaptability by allowing the Grad-CAM consistency loss to be applied at different network layers.
  • To investigate whether attention map consistency leads to better performance than label consistency alone.
  • To evaluate the impact of target layer selection on model performance across different datasets and label distributions.

Proposed method

  • The method introduces a Grad-CAM consistency loss that minimizes the L2 distance between Grad-CAM maps of original and augmented inputs at a specified target layer.
  • The loss is combined with standard supervised cross-entropy loss and pseudo-label consistency loss to form a multi-objective training objective.
  • Grad-CAM maps are computed using gradients of the final class scores with respect to activation maps at the target layer.
  • The target layer for Grad-CAM computation can be selected flexibly, enabling layer-specific guidance during training.
  • The model is trained using standard data augmentation (crop, rotation, color jitter) and consistency is enforced on both predictions and Grad-CAM attention maps.
  • The training procedure uses a weighted combination of three losses: supervised loss, pseudo-label consistency loss, and Grad-CAM consistency loss with hyperparameters α, β, γ.

Experimental results

Research questions

  • RQ1Does enforcing Grad-CAM consistency across data augmentations improve semi-supervised image classification performance compared to standard consistency training?
  • RQ2How does the choice of target layer for Grad-CAM consistency affect model accuracy and generalization?
  • RQ3Can Grad-CAM consistency alone improve model performance when used without pseudo-labeling?
  • RQ4How does the amount of unlabeled data influence the effectiveness of Grad-CAM consistency loss?
  • RQ5Is Grad-CAM consistency more effective for fine-grained or coarse classification tasks based on layer targeting?

Key findings

  • The proposed method achieved a maximum accuracy improvement of 1.44% over the baseline ResNet model on CIFAR-10 with 2500 labeled images and 10,000 unlabeled images.
  • On average, the method improved accuracy by 0.31% ± 0.59% across different data ratios, demonstrating consistent gains.
  • The ablation study showed that Grad-CAM consistency loss alone improved performance over baseline pseudo-labeling, with a 0.70% improvement at 0.5 ratio and 0.85% at 2.0 ratio.
  • Best performance was achieved when targeting the third residual block (Layer 3), with 90.41% accuracy at 1.0 unlabeled-to-labeled ratio.
  • The method showed improved generalization with more unlabeled data, indicating that Grad-CAM consistency acts as a strong regularizer.
  • Targeting deeper layers (e.g., Layer 4) yielded better performance than earlier layers, suggesting that global feature alignment is more beneficial for classification.

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.