Abstract
This paper introduces a novel pixel-to-prototype contrastive learning framework designed to bridge the "supervision gap" in weakly supervised semantic segmentation (WSSS). By enforcing alignment between individual pixels and representative class "prototypes" across multiple views of an image, the method significantly enhances the quality of pseudo-masks. The proposed approach achieves a new state-of-the-art mIoU of 73.6% on the PASCAL VOC 2012 benchmark while maintaining zero computational overhead during inference.
The Supervision Gap in WSSS
Semantic segmentation typically requires dense, pixel-perfect annotations, which are costly to obtain. WSSS attempts to circumvent this by training models using only image-level tags. The standard pipeline utilizes Class Activation Maps (CAMs) to generate initial "seeds" or pseudo-masks. However, classification networks are naturally biased toward identifying only the most discriminative parts of an object (e.g., a cat's ears) rather than its entire extent. This fundamental "supervision gap" results in incomplete and noisy training data for the final segmentation model.
Methodology: Pixel-to-Prototype Contrast
The core contribution of this work is a contrastive module that can be integrated into existing WSSS frameworks. The method organizes the feature space by treating high-confidence feature vectors as stable class anchors, or "prototypes."
Key Components:
- Prototype Estimation: The model identifies high-confidence pixels within the CAM and calculates a representative embedding (prototype) via a weighted average of their features.
- Cross-View and Intra-View Contrast: The framework utilizes two augmented views of the same image. It ensures semantic consistency by pulling pixels in one view toward the corresponding prototype in the other (Cross-View) and toward their own class prototype within the same view (Intra-View).
- Robustness to Noise: To account for the inherent noise in pseudo-labels, the authors employ Semi-hard Prototype Mining and Hard Pixel Sampling. These strategies focus learning on challenging, informative samples while filtering out potentially mislabeled boundary pixels.
Importantly, the contrastive projectors are discarded after training, ensuring that the performance gains come with zero extra computational cost at inference time.
Experimental Results
The method was evaluated on the PASCAL VOC 2012 dataset, which includes 21 classes and approximately 10,500 training images. When applied to leading baselines like SEAM and EPS, the pixel-to-prototype contrastive module yielded substantial improvements.
As shown in the results, the method improved the initial seed mIoU for the SEAM baseline from 55.4% to 61.5%. When integrated with the EPS baseline, the model reached a final test set performance of 73.6% mIoU, establishing a new state-of-the-art for image-level supervised WSSS. Qualitative analysis confirms that the resulting CAMs are more comprehensive, covering entire object bodies rather than isolated hotspots.
Discussion and Future Work
The success of this method highlights that prototypes serve as effective anchors in weakly supervised settings where individual pixel labels are unreliable. Contrastive learning encourages the network to learn dense representations, forcing all pixels of a class to cluster together regardless of augmentation.
However, the method remains dependent on the initial CAM quality for prototype estimation. Future research may explore more advanced prototype estimation techniques or the application of this contrastive logic to semi-supervised and fully-supervised domains to improve model robustness.
Summary updated