Abstract
Weakly-supervised semantic segmentation is a challenging task as no pixel-wise label information is provided for training. Recent methods have exploited classification networks to localize objects by selecting regions with strong response. While such response map provides sparse information, however, there exist strong pairwise relations between pixels in natural images, which can be utilized to propagate the sparse map to a much denser one. In this paper, we propose an iterative algorithm to learn such pairwise relations, which consists of two branches, a unary segmentation network which learns the label probabilities for each pixel, and a pairwise affinity network which learns affinity matrix and refines the probability map generated from the unary network. The refined results by the pairwise network are then used as supervision to train the unary network, and the procedures are conducted iteratively to obtain better segmentation progressively. To learn reliable pixel affinity without accurate annotation, we also propose to mine confident regions. We show that iteratively training this framework is equivalent to optimizing an energy function with convergence to a local minimum. Experimental results on the PASCAL VOC 2012 and COCO datasets demonstrate that the proposed algorithm performs favorably against the state-of-the-art methods.
Introduction
Deep learning has revolutionized semantic segmentation, but its success typically relies on massive datasets with pixel-perfect annotations. Creating these masks is labor-intensive and expensive. Weakly-supervised semantic segmentation (WSSS) seeks to alleviate this burden by training models using only image-level tags (e.g., "dog," "car").
The standard starting point for WSSS is the Class Activation Map (CAM), which identifies discriminative regions used by a classifier. However, CAMs are notoriously sparse; they might highlight a dog's face but ignore its body. This paper addresses the challenge of expanding these sparse "seeds" into dense, accurate segmentation masks by leveraging the inherent pairwise relationships between pixels in natural images.
The Iterative Affinity Learning Framework
The core of the proposed method is an iterative framework that alternates between predicting pixel-wise labels and learning how those pixels relate to one another. The architecture consists of two primary components:
- Unary Segmentation Network: This is a standard segmentation model (specifically DeepLab) that predicts the probability of each pixel belonging to a specific class.
- Pairwise Affinity Network: This branch utilizes a Spatial Propagation Network (SPN) to learn an affinity matrix. This matrix describes the similarity between neighboring pixels, allowing the model to propagate labels from high-confidence regions to adjacent, similar-looking pixels.
The EM-like Iterative Loop
The training process follows an Expectation-Maximization (EM) logic. It begins with coarse seeds generated by CAMs and then enters a refinement loop:
- E-step (Refinement): The pairwise affinity network takes the probability maps from the unary network and applies the learned pixel affinities to smooth and refine the boundaries.
- M-step (Learning): The refined, denser maps are treated as pseudo-ground truth to retrain the unary segmentation network.
This iterative cycle allows the model to progressively improve its predictions, moving from sparse seeds to dense masks. The authors demonstrate that this process is mathematically equivalent to optimizing an energy function, ensuring the model converges to a stable local minimum.
Mining Confident Regions
A significant challenge in learning pixel affinities is the "garbage in, garbage out" problem: if the initial labels are noisy, the affinity network will learn incorrect relationships. To combat this, the authors introduce a strategy to mine confident regions.
Instead of training on the entire noisy CAM, the system segments the image into superpixels. A region confidence network (a variant of Fast R-CNN) then scores these superpixels. Only regions with a confidence score above 0.7 are used to supervise the affinity network, while ambiguous regions are ignored. Furthermore, a region smoothness loss is applied to ensure that pixels within the same coherent object part maintain consistent affinities. This selective learning ensures that the model only propagates labels across boundaries it is certain about.
Experimental Results
The framework was evaluated on two major benchmarks: PASCAL VOC 2012 and MS COCO.
PASCAL VOC 2012
Using a ResNet backbone, the proposed method achieved state-of-the-art performance for its time:
- Validation Set: 64.3% mIoU
- Test Set: 65.4% mIoU
These results significantly outperformed contemporary methods such as PSA (61.7%) and DSRG (61.4%). Ablation studies highlighted the importance of the confidence mining step; without it, the training mIoU dropped from 63.1% to 56.4%, as the model was unable to recover from the noise in the initial seeds.
MS COCO
On the more complex MS COCO dataset, which features 80 object classes and more intricate scenes, the model (using a VGG16 backbone) achieved 27.7% mIoU, surpassing the previous state-of-the-art DSRG (26.0%).
Conclusion and Limitations
This research demonstrates that iterative affinity learning is a powerful tool for bridging the gap between image-level labels and pixel-level segmentation. By mining confident regions and alternating between unary and pairwise learning, the model effectively "fills in the blanks" left by standard activation maps.
However, the approach is not without limitations. The framework remains dependent on the quality of the initial CAM; if the initial seeds miss an object entirely, the iterative process cannot recover it. Additionally, the multi-stage pipeline—involving superpixel generation, a confidence network, and two separate segmentation branches—is computationally complex compared to more recent end-to-end approaches. Future work may focus on simplifying this pipeline while maintaining the robustness provided by iterative refinement.
Summary updated