Abstract
Image-level weakly-supervised semantic segmentation (WSSS) aims at learning semantic segmentation by adopting only image class labels. Existing approaches generally rely on class activation maps (CAM) to generate pseudo-masks and then train segmentation models. The main difficulty is that the CAM estimate only covers partial foreground objects. In this paper, we argue that the critical factor preventing to obtain the full object mask is the classification boundary mismatch problem in applying the CAM to WSSS. Because the CAM is optimized by the classification task, it focuses on the discrimination across different image-level classes. However, the WSSS requires to distinguish pixels sharing the same image-level class to separate them into the foreground and the background. To alleviate this contradiction, we propose an efficient end-to-end Intra-Class Discriminator (ICD) framework, which learns intra-class boundaries to help separate the foreground and the background within each image-level class. Without bells and whistles, our approach achieves the state-of-the-art performance of image label based WSSS, with mIoU 68.0% on the VOC 2012 semantic segmentation benchmark, demonstrating the effectiveness of the proposed approach.
The Classification Boundary Mismatch Problem
Standard weakly-supervised semantic segmentation (WSSS) pipelines rely on Class Activation Maps (CAMs) to generate initial object seeds. However, CAMs are fundamentally limited by their objective: image-level classification. To correctly classify an image, a model only needs to identify the most discriminative features (e.g., the head of a bird). Consequently, the resulting activation maps often only cover small, salient parts of an object rather than its entire extent.
As shown in Figure 1, the features of foreground and background pixels within the same class tend to cluster separately in the high-dimensional feature manifold. Standard CAMs focus on the boundary between different classes (inter-class), ignoring the internal structure that separates an object from its background (intra-class). This "classification boundary mismatch" is the primary hurdle to obtaining integral object masks.
Methodology: Intra-Class Discriminator (ICD)
To address this mismatch, the authors propose the Intra-Class Discriminator (ICD) framework. This approach learns to find the boundary between foreground and background pixels sharing the same image-level label. The framework operates in two primary stages integrated into an end-to-end trainable system.
1. Bottom-Up Estimation
The ICD module first performs Bottom-Up Estimation. It learns a directional vector for each class that points from the background cluster toward the foreground cluster in the feature space. By projecting pixel-level features onto this vector, the model can differentiate between the two clusters. To ensure the model correctly identifies which cluster is the foreground, it uses sparse but reliable CAM activations as "anchors."
2. Top-Down Adaptation
Initial estimates are often coarse due to the downsampling inherent in deep neural networks. The framework employs superpixel refinement to align the estimated masks with low-level image boundaries. These refined masks then serve as targets for a Top-Down Adaptation branch. This branch effectively fine-tunes the shared backbone to become more sensitive to pixel-level intra-class differences, leading to more precise and integral object masks.
Experimental Results
The ICD framework was evaluated on the PASCAL VOC 2012 benchmark, which contains 20 foreground object categories. Using only image-level labels for training, the method achieved significant improvements:
- State-of-the-Art Performance: The model reached a 68.0% mIoU on the test set, outperforming previous image-label-based methods.
- Seed Quality: The initial pseudo-masks (seeds) generated by ICD were far more complete than those from standard CAMs, with pixel-level mean Average Precision (mAP) increasing from 46.3% to 57.0%.
- Efficiency: The entire framework is trained end-to-end in a single stage, avoiding the complexity of multi-stage training pipelines common in other WSSS approaches.
Conclusion
The Intra-Class Discriminator (ICD) successfully mitigates the classification boundary mismatch problem by leveraging the inherent manifold structure of deep features. By shifting the focus from inter-class discrimination to intra-class foreground-background separation, the framework produces more integral object masks and achieves state-of-the-art results in weakly-supervised semantic segmentation.
Summary updated