[Paper Review] Weakly Supervised Semantic Segmentation using Out-of-Distribution Data
This paper proposes W-OoD, a weakly supervised semantic segmentation method that leverages hard out-of-distribution (OoD) images—such as rail-only images for the 'train' class—to suppress spurious background correlations. By training a classifier to reject these OoD samples, the method improves localization accuracy, achieving state-of-the-art performance on Pascal VOC 2012 with minimal additional annotation cost.
Weakly supervised semantic segmentation (WSSS) methods are often built on pixel-level localization maps obtained from a classifier. However, training on class labels only, classifiers suffer from the spurious correlation between foreground and background cues (e.g. train and rail), fundamentally bounding the performance of WSSS. There have been previous endeavors to address this issue with additional supervision. We propose a novel source of information to distinguish foreground from the background: Out-of-Distribution (OoD) data, or images devoid of foreground object classes. In particular, we utilize the hard OoDs that the classifier is likely to make false-positive predictions. These samples typically carry key visual features on the background (e.g. rail) that the classifiers often confuse as foreground (e.g. train), so these cues let classifiers correctly suppress spurious background cues. Acquiring such hard OoDs does not require an extensive amount of annotation efforts; it only incurs a few additional image-level labeling costs on top of the original efforts to collect class labels. We propose a method, W-OoD, for utilizing the hard OoDs. W-OoD achieves state-of-the-art performance on Pascal VOC 2012.
Motivation & Objective
- Address the fundamental limitation in weakly supervised semantic segmentation (WSSS) where classifiers learn spurious correlations between foreground objects and background cues (e.g., train and rail).
- Identify and utilize out-of-distribution (OoD) data—images devoid of foreground classes but containing confusing background cues—as a novel source of supervision.
- Minimize annotation cost by leveraging OoD data that are natural by-products of standard dataset collection pipelines, requiring only a few additional image-level labels.
- Improve pseudo-segmentation map quality by training the classifier to distinguish in-distribution foregrounds from hard OoD samples using a metric-learning objective.
- Demonstrate that even a small number of hard OoD samples (e.g., 1 per class) can yield significant performance gains, making OoD data a cost-effective alternative to dense annotations.
Proposed method
- Collect candidate OoD images from the pool of images not selected during the original dataset curation process, which naturally excludes foreground classes.
- Identify hard OoD samples by selecting images where the pre-trained classifier falsely assigns high confidence to a foreground class (e.g., 'train' on rail-only images).
- Apply a human-in-the-loop pruning step to remove any OoD images that accidentally contain foreground objects, ensuring clean negative supervision.
- Train the classifier using a metric-learning loss that increases the feature distance between in-distribution and OoD samples, encouraging the model to reject spurious background cues.
- Integrate the refined classifier into a two-stage WSSS pipeline: first generate pseudo-segmentation masks via CAM variants, then train the segmentation network using these improved masks.
- Use a dual-loss strategy: a standard cross-entropy loss on in-distribution data and a contrastive distance loss ($\mathcal{L}_{\text{d}}$) on both in-distribution and hard OoD data to stabilize and improve feature discrimination.
Experimental results
Research questions
- RQ1Can out-of-distribution (OoD) data be effectively used as a source of supervision to reduce spurious correlations in weakly supervised semantic segmentation?
- RQ2How does the inclusion of hard OoD samples—images that mislead classifiers into predicting a foreground class—impact the quality of pseudo-segmentation masks?
- RQ3What is the minimal annotation cost required to achieve significant performance gains in WSSS, and can OoD data be collected at scale with low labeling overhead?
- RQ4Does the use of OoD data improve generalization across diverse object classes, especially those with strong background correlations (e.g., train-rail, bird-tree)?
- RQ5Can metric-learning on OoD data stabilize training and improve feature disentanglement between in-distribution and spurious background patterns?
Key findings
- W-OoD achieves state-of-the-art performance on Pascal VOC 2012, outperforming existing image-level label-based WSSS methods.
- Adding just one hard OoD image per class boosts mean Intersection over Union (mIoU) by 2.0 percentage points, demonstrating high sample efficiency.
- The method reduces spurious background activation: t-SNE visualization shows that features for in-distribution and OoD images become increasingly separable during training.
- The metric-learning loss $\mathcal{L}_{\text{d}}$ on OoD data significantly improves performance, with mIoU increasing from 58.1% to 60.1% when applied to hard OoDs.
- The standard deviation of mIoU across runs decreases from 0.82 to 0.33 when $\mathcal{L}_{\text{d}}$ is applied to in-distribution data, indicating improved training stability.
- Performance gains are most pronounced for classes with strong spurious correlations (e.g., 'train', 'airplane', 'boat'), while 'dining table' shows a drop, likely due to noisy ground-truth masks including table-top objects.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.