Abstract
Weakly Supervised Semantic Segmentation (WSSS) aims to train segmentation models using only image-level labels, significantly reducing annotation costs. However, standard Class Activation Maps (CAMs) often focus only on the most discriminative object parts, leading to incomplete segmentation masks. We describe the Complementary Patch Network (CPN), which utilizes pairs of images with mutually exclusive hidden regions to force the model to discover more object parts. By ensuring the sum of information from these complementary patches is greater than or equal to the original image, CPN achieves state-of-the-art performance on the PASCAL VOC 2012 benchmark.
Introduction
Semantic segmentation is a fundamental task in computer vision, requiring pixel-level labels for training. Producing these labels is labor-intensive and expensive. WSSS offers a more scalable alternative by using image-level tags. The primary challenge in WSSS is the "completeness gap": classification-trained networks tend to identify only the most salient features (e.g., a bird's head) rather than the entire object. While adversarial erasing has been used to address this, it often leads to information loss or high computational overhead.
Methodology
The proposed Complementary Patch Network (CPN) addresses the completeness gap through a triplet architecture and information-theoretic constraints.
Complementary Patch (CP) Pair Generation
The core idea is to create two versions of an image where the hidden regions are mutually exclusive. Two strategies are employed: Grid Patching, which divides the image into a grid and hides alternating squares, and Super-pixel Patching, which uses image contours to hide regions.
Triplet Architecture and Losses
The CPN processes the original image alongside its two complementary versions. The learning process is guided by two key losses:
- Triplet CP (TCP) Loss: Based on the principle that the information in a complementary pair should exceed that of the original image ($Image_A + Image_B \geq Original\_Image$), this loss encourages the network to find seeds in the partial images that were missed in the original.
- CP Cross Regularization (CPCR): This prevents the network from ignoring hidden regions by regularizing predictions across the triplet.
Pixel-Region Correlation Module (PRCM)
To ensure spatial consistency, a refinement step correlates individual pixels with broader regions, smoothing the final segmentation masks.
Experiments and Results
The CPN was evaluated on the PASCAL VOC 2012 dataset, which includes 20 object categories.
Quantitative Performance
CPN achieved a mean Intersection-over-Union (mIoU) of 67.8% on the validation set and 68.5% on the test set. This represents a significant improvement over previous state-of-the-art methods like SEAM and MCIS.
CAM Quality Improvement
The initial CAMs produced by CPN are notably more complete than baseline methods. On the training set, CPN improved the baseline CAM mIoU from 47.84% to 57.43%. The authors also noted that while Super-pixel patches are more accurate, Grid patches offer a significant speed advantage (0.006s vs 1.45s per image), making them suitable for real-time use.
Conclusion
The Complementary Patch Network effectively bridges the completeness gap in weakly supervised semantic segmentation. By treating object discovery as an information summation problem, the model is forced to look beyond the most discriminative parts. Future work will focus on improving performance for small objects and refining boundary accuracy to further close the gap with fully supervised models.
Summary updated