Skip to main content
QUICK REVIEW

[Paper Review] Weakly Supervised Semantic Segmentation by Pixel-to-Prototype Contrast

Ye Du, Zehua Fu|arXiv (Cornell University)|Oct 14, 2021
Advanced Neural Network ApplicationsComputer Science74 references11 citations
TL;DR

This paper proposes a weakly supervised semantic segmentation method using pixel-to-prototype contrastive learning to narrow the supervision gap between image-level classification and pixel-level segmentation. By enforcing cross-view feature consistency and intra-class compactness via prototype-based contrastive learning, the method improves seed mask quality and boosts segmentation mIoU by up to 6.13% on PASCAL VOC 2012 without modifying base networks or adding inference cost.

ABSTRACT

Though image-level weakly supervised semantic segmentation (WSSS) has achieved great progress with Class Activation Maps (CAMs) as the cornerstone, the large supervision gap between classification and segmentation still hampers the model to generate more complete and precise pseudo masks for segmentation. In this study, we propose weakly-supervised pixel-to-prototype contrast that can provide pixel-level supervisory signals to narrow the gap. Guided by two intuitive priors, our method is executed across different views and within per single view of an image, aiming to impose cross-view feature semantic consistency regularization and facilitate intra(inter)-class compactness(dispersion) of the feature space. Our method can be seamlessly incorporated into existing WSSS models without any changes to the base networks and does not incur any extra inference burden. Extensive experiments manifest that our method consistently improves two strong baselines by large margins, demonstrating the effectiveness. Specifically, built on top of SEAM, we improve the initial seed mIoU on PASCAL VOC 2012 from 55.4% to 61.5%. Moreover, armed with our method, we increase the segmentation mIoU of EPS from 70.8% to 73.6%, achieving new state-of-the-art.

Motivation & Objective

  • Address the supervision gap between image-level classification and pixel-level segmentation in weakly supervised semantic segmentation (WSSS).
  • Improve the quality of initial CAM-based pseudo masks by introducing pixel-level supervisory signals.
  • Enable consistent performance gains across strong baselines like SEAM and EPS without modifying base networks.
  • Develop a contrastive learning framework that enforces feature consistency across views and compactness within classes.

Proposed method

  • Propose a unified pixel-to-prototype contrastive learning formulation that pulls pixels toward their positive prototypes and pushes them from negative ones.
  • Define prototypes as representative embeddings of each class, estimated from top-activating pixels in CAMs.
  • Perform contrastive learning simultaneously across views (cross-view) and within each view (intra-view) to regularize feature space consistency and compactness.
  • Introduce semi-hard prototype mining and hard pixel sampling to reduce noisy contrasts from over- or under-activated CAM regions.
  • Integrate the method into existing WSSS frameworks via lightweight projectors, requiring no changes to base networks and no extra inference cost.
  • Use spatial transformations (rescaling, flipping, rotation, translation) to generate multiple views for cross-view contrast.

Experimental results

Research questions

  • RQ1Can pixel-to-prototype contrastive learning effectively narrow the supervision gap in image-level WSSS?
  • RQ2How does cross-view and intra-view contrastive learning jointly improve pseudo mask quality and segmentation performance?
  • RQ3To what extent can the proposed method improve state-of-the-art WSSS models like SEAM and EPS without architectural changes?
  • RQ4How robust is the method to hyperparameter choices such as the number of prototypes (K)?

Key findings

  • The method improves the initial seed mIoU of SEAM on PASCAL VOC 2012 from 55.4% to 61.5%, a gain of 6.13%.
  • When applied to EPS, the method increases segmentation mIoU from 70.8% to 73.6%, achieving new state-of-the-art performance.
  • Ablation studies confirm that each component—cross-prototype contrast, cross-CAM contrast, intra-view contrast, prototype mining, and hard pixel sampling—contributes significantly to performance gains.
  • The method is robust to the choice of K, with optimal performance at K=32, achieving 61.54% mIoU on the training set.
  • The inclusion of multiple spatial transformations (rescaling, flipping, rotation, translation) yields marginal gains, with the best result at 61.63% mIoU when all are used.

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.