Skip to main content
QUICK REVIEW

[Paper Review] Class Re-Activation Maps for Weakly-Supervised Semantic Segmentation

Zhaozheng Chen, Tan Wang|arXiv (Cornell University)|Mar 2, 2022
Advanced Neural Network ApplicationsComputer Science12 citations
TL;DR

This paper proposes ReCAM, a simple yet effective method to improve weakly-supervised semantic segmentation by reactivating class activation maps (CAMs) using softmax cross-entropy (SCE) loss instead of binary cross-entropy (BCE). By fine-tuning the converged BCE-trained model with SCE on CAM-extracted features, ReCAM reduces false positives and false negatives, achieving state-of-the-art performance with minimal computational overhead and plug-and-play compatibility across CAM variants.

ABSTRACT

Extracting class activation maps (CAM) is arguably the most standard step of generating pseudo masks for weakly-supervised semantic segmentation (WSSS). Yet, we find that the crux of the unsatisfactory pseudo masks is the binary cross-entropy loss (BCE) widely used in CAM. Specifically, due to the sum-over-class pooling nature of BCE, each pixel in CAM may be responsive to multiple classes co-occurring in the same receptive field. As a result, given a class, its hot CAM pixels may wrongly invade the area belonging to other classes, or the non-hot ones may be actually a part of the class. To this end, we introduce an embarrassingly simple yet surprisingly effective method: Reactivating the converged CAM with BCE by using softmax cross-entropy loss (SCE), dubbed extbf{ReCAM}. Given an image, we use CAM to extract the feature pixels of each single class, and use them with the class label to learn another fully-connected layer (after the backbone) with SCE. Once converged, we extract ReCAM in the same way as in CAM. Thanks to the contrastive nature of SCE, the pixel response is disentangled into different classes and hence less mask ambiguity is expected. The evaluation on both PASCAL VOC and MS~COCO shows that ReCAM not only generates high-quality masks, but also supports plug-and-play in any CAM variant with little overhead.

Motivation & Objective

  • To address the poor-quality pseudo masks generated by conventional CAMs in weakly-supervised semantic segmentation (WSSS), particularly due to the limitations of binary cross-entropy (BCE) loss.
  • To investigate whether replacing BCE with softmax cross-entropy (SCE) loss in CAM generation can reduce class confusion and improve mask accuracy.
  • To develop a plug-and-play method that enhances any existing CAM-based WSSS pipeline with minimal computational cost.
  • To empirically validate that SCE-based reactivation disentangles class responses and improves mIoU on standard benchmarks.

Proposed method

  • After training a multi-label classifier with BCE loss, ReCAM extracts class-specific feature maps (CAMs) from the final convolutional layer.
  • For each image and its labeled class, ReCAM isolates the CAM pixels corresponding to that class and uses them as support features.
  • A new fully connected layer is trained on these support features using SCE loss with the corresponding class label, effectively reactivating the model for that class.
  • The resulting activation map from this retrained layer is termed ReCAM, which benefits from SCE’s class-exclusive learning and contrastive regularization.
  • ReCAM is applied in a plug-and-play manner to any CAM variant, with minimal inference overhead.
  • The method is evaluated with and without additional refinement modules (e.g., IRN, AdvCAM), demonstrating its generality and efficiency.

Experimental results

Research questions

  • RQ1Does replacing BCE with SCE loss in CAM generation reduce false positive and false negative pixels in weakly-supervised semantic segmentation?
  • RQ2Can a simple reactivation step using SCE on BCE-trained CAM features significantly improve pseudo mask quality without architectural changes?
  • RQ3How sensitive is ReCAM to hyperparameters such as the loss balancing weight λ?
  • RQ4Does ReCAM maintain performance gains across different backbone architectures and segmentation models?
  • RQ5Can ReCAM be effectively combined with existing refinement methods like IRN or AdvCAM, and does it improve their performance?

Key findings

  • ReCAM achieves a 6% mIoU improvement over vanilla CAM on the PASCAL VOC 2012 validation set, with 6.1% gain on UperNet-Swin and 4.7% on DeepLabV2.
  • On MS COCO, ReCAM outperforms baseline CAM by 5.5% mIoU, demonstrating consistent gains across datasets.
  • ReCAM is robust to hyperparameter λ, with optimal performance at λ=1 and minimal degradation across other values, indicating low sensitivity.
  • When combined with IRN, ReCAM achieves 70.9% mIoU on VOC, surpassing AdvCAM by 1% while being 160× faster than AdvCAM and 8.2× faster than IRN alone.
  • ReCAM maintains superior performance on both single-label and multi-label images, reducing false negatives and false positives respectively.
  • ReCAM supports plug-and-play integration with saliency-based methods, achieving 71.6% mIoU with EPS* and 72.2% with EDAM* on VOC, outperforming all baselines.

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.