Introduction
Weakly Supervised Semantic Segmentation (WSSS) aims to train segmentation models using only image-level labels, significantly reducing the cost of pixel-level annotation. However, a persistent challenge in WSSS is confounding bias. Models often learn to associate objects with their typical backgrounds—for instance, identifying "sky" as a feature of "aeroplanes" or "water" as a feature of "boats." This leads to Class Activation Maps (CAMs) that bleed into the background, resulting in imprecise segmentation boundaries.
The Problem with Conventional Augmentation
Standard data augmentation techniques, such as rotation, scaling, or color jittering, transform the entire image. While these methods increase data variety, they do not break the correlation between an object and its context. If a boat is rotated, it remains on the water. Consequently, the network continues to rely on contextual cues rather than the intrinsic features of the object itself.
Context Decoupling Augmentation (CDA)
To address this, the authors propose Context Decoupling Augmentation (CDA). This method explicitly breaks the dependency between objects and their environments by "decoupling" them through a two-stage process.
Stage I: Object Instance Collection
The first stage involves generating initial pseudo-masks using an existing WSSS method (e.g., IRNet). The system identifies "easy" examples—images containing a single class where the model exhibits high confidence—to extract clean object instances.
Stage II: Online Augmentation and Pairwise Training
During the training phase, CDA performs the following:
- The "Copy-Paste" Trick: An extracted object instance is randomly selected and pasted into a different training image. This creates "impossible" scenes, such as a sofa appearing on a road or a cat in the sky, forcing the network to ignore the background context.
- Pairwise Training: The model is trained on pairs consisting of the original "raw" image and the newly "augmented" image. This setup encourages the network to perform a "spot the difference" task, sharpening its ability to distinguish object boundaries from the background.
- Blending and Variation: To prevent the network from learning "edge artifacts" as shortcuts, pasted objects undergo random rescaling, rotation, and Gaussian smoothing.
Experimental Results
The effectiveness of CDA was evaluated on the PASCAL VOC 2012 and MS COCO datasets.
- PASCAL VOC 2012: CDA achieved a state-of-the-art 66.1% mIoU on the validation set and 66.8% on the test set.
- MS COCO: The method reached 33.7% mIoU, outperforming previous benchmarks by 1.1%.
Ablation studies confirmed that CDA improves the quality of pseudo-masks by approximately 2.5% to 3.0% mIoU over baseline models like IRNet, AffinityNet, and SEAM.
Key Insights
- Context as a Distractor: While context is useful for human recognition, it acts as a crutch for WSSS models. Intentionally creating nonsensical scenes removes this crutch.
- Self-Supervised Instances: CDA does not require manual pixel-level labels for the "copy-paste" stage; it successfully leverages the model's own imperfect predictions.
- Optimal Density: Interestingly, pasting a single object per image proved more effective than multiple objects, as excessive noise can confuse the classifier.
Conclusion
Context Decoupling Augmentation provides a simple yet powerful framework for overcoming confounding bias in WSSS. By forcing the network to recognize objects in "impossible" contexts through pairwise training, CDA achieves significant performance gains and sets new state-of-the-art benchmarks on standard datasets.
Summary updated