Abstract
Existing studies in weakly supervised semantic segmentation (WSSS) have utilized class activation maps (CAMs) to localize the class objects. However, since a classification loss is insufficient for providing precise object regions, CAMs tend to be biased towards discriminative patterns (i.e., sparseness) and do not provide precise object boundary information (i.e., impreciseness). To resolve these limitations, we propose a novel framework (composed of MainNet and SupportNet) that derives pixel-level self-supervision from given image-level supervision. In our framework, with the help of the proposed Regional Contrastive Module (RCM) and Multi-scale Attentive Module (MAM), MainNet is trained by self-supervision from the SupportNet. The RCM extracts two forms of self-supervision from SupportNet: (1) class region masks generated from the CAMs and (2) class-wise prototypes obtained from the features according to the class region masks. Then, every pixel-wise feature of the MainNet is trained by the prototype in a contrastive manner, sharpening the resulting CAMs. The MAM utilizes CAMs inferred at multiple scales from the SupportNet as self-supervision to guide the MainNet. Based on the dissimilarity between the multi-scale CAMs from MainNet and SupportNet, CAMs from the MainNet are trained to expand to the less-discriminative regions. The proposed method shows state-of-the-art WSSS performance both on the train and validation sets on the PASCAL VOC 2012 dataset.
Introduction
Semantic segmentation—assigning a class label to every pixel in an image—is traditionally a data-hungry task requiring expensive pixel-level annotations. Weakly Supervised Semantic Segmentation (WSSS) attempts to bridge this gap by using simpler image-level labels. The standard tool for this is the Class Activation Map (CAM), which identifies the regions a classifier focuses on to make a decision. However, CAMs suffer from two major flaws: sparseness (highlighting only the most discriminative parts) and impreciseness (failing to respect object boundaries).
Methodology
We propose a dual-network architecture consisting of a MainNet (the model being trained) and a SupportNet (a stable teacher updated via Exponential Moving Average). To address the limitations of CAMs, we introduce two novel self-supervision modules:
- Regional Contrastive Module (RCM): This module addresses impreciseness by generating "class-wise prototypes" (representative feature vectors). It uses contrastive learning to force every pixel's feature to be close to its corresponding class prototype and far from others, effectively sharpening object boundaries.
- Multi-scale Attentive Module (MAM): This module addresses sparseness by comparing CAMs across multiple scales. Since networks capture different details at different scales, MAM uses an attention mechanism to guide the MainNet to expand its focus to less-discriminative regions that might otherwise be ignored.
Experimental Results
The framework was evaluated on the PASCAL VOC 2012 dataset using 10,582 images for training with only image-level labels. The method achieved state-of-the-art performance, reaching a mean Intersection over Union (mIoU) of 69.7% on the validation set and 70.9% on the test set.
As shown in the ablation study, the combination of RCM and MAM provided a massive boost, increasing the baseline mIoU from 48.4% to 63.7% (a +15.3% gain) before applying standard post-processing techniques. Qualitatively, the results show much sharper segmentations that cover entire objects rather than just small discriminative patches.
Discussion and Conclusion
This research demonstrates that pixel-level self-supervision can be effectively derived from image-level labels by enforcing consistency and contrast. By using prototypes as anchors and leveraging scale dissimilarity, the model learns to supervise itself, significantly closing the gap with fully supervised methods.
A primary limitation remains the dependency on the initial classifier; if the classifier consistently confuses similar classes, the self-supervision may reinforce these errors. Future work will focus on decoupling class confusion during prototype generation and testing the framework on more complex, multi-object datasets.
Summary updated