Introduction
Semantic segmentation is a fundamental task in computer vision that involves assigning a categorical label to every pixel in an image. While fully supervised methods have achieved remarkable success, they rely on dense, pixel-level annotations that are labor-intensive and expensive to produce. To mitigate these costs, researchers have turned to Weakly Supervised Semantic Segmentation (WSSS), which utilizes cheaper forms of supervision such as image-level tags, points, scribbles, or bounding boxes.
Bounding Box Supervised Semantic Segmentation (BSSS) is particularly promising because bounding boxes are widely available in existing datasets and provide significant spatial information. However, a major challenge remains: the "gap" between the coarse bounding box and the precise object boundary. Bounding boxes inevitably contain background pixels, and traditional methods often struggle to distinguish between the target object and its surroundings. This paper introduces the Affinity Attention Graph Neural Network (A2GNN), a framework designed to bridge this gap by effectively propagating sparse labels while filtering out noise.
Methodology
The A2GNN framework addresses the limitations of previous Graph Convolutional Network (GCN) approaches, which often relied on unweighted graphs and were highly susceptible to label noise. The proposed system consists of several integrated components:
1. Affinity CNN and Weighted Graph Construction
Unlike traditional GCNs that treat connections between nodes as binary (0 or 1), A2GNN employs an Affinity CNN. This module is trained to predict the "affinity" or similarity between pixels, resulting in a weighted graph. In this graph, edges represent the probability that two pixels belong to the same semantic category, allowing for more nuanced information propagation.
2. Affinity Attention Layer
The core of the architecture is the Affinity Attention Layer. This layer utilizes a self-attention mechanism that simultaneously considers predicted edge weights and feature similarity between nodes. By "double-checking" the relationships between pixels, the network can suppress label propagation across edges that are likely to be noisy or incorrect, acting as a dynamic denoising filter.
3. Multi-Point (MP) Loss
To overcome the scarcity of initial labeled pixels (seeds), the authors introduce the Multi-Point (MP) Loss. This loss function exploits the "tightness" prior of bounding boxes—the assumption that a box is drawn to touch the outermost boundaries of an object. The MP loss mines additional supervision by selecting the most confident pixels in every row and column of the bounding box to serve as auxiliary labels.
4. Consistency-Checking Mechanism
To further ensure label purity, a consistency-checking mechanism compares selected seed labels against a "prototype" feature representing the object category. If a seed's features deviate significantly from the average object feature, it is discarded, preventing the model from learning from erroneous background pixels.
Experimental Evaluation
The A2GNN model was evaluated on two primary benchmarks:
- Pascal VOC 2012: A standard semantic segmentation dataset, including the augmented SBD set (approximately 10,582 training images).
- MS COCO: A large-scale dataset used to evaluate the robustness and scalability of the approach in more complex scenes.
Key Results
A2GNN achieved state-of-the-art performance on the Pascal VOC 2012 benchmark, reaching a 76.5% mIoU on the validation set and 75.2% on the test set. This performance is approximately 96% of the accuracy achieved by fully supervised models, demonstrating that A2GNN can nearly close the performance gap using only bounding box annotations.
Furthermore, the method proved versatile; when adapted to other weak labels such as scribbles or points, it continued to deliver competitive or superior results. The framework also excelled in Bounding Box Supervised Instance Segmentation (BSIS), significantly outperforming existing baselines like BBTP.
Discussion and Conclusion
The success of A2GNN highlights the importance of moving beyond static, unweighted graphs in weakly supervised learning. By treating individual pixels as nodes and employing attention-based denoising, the model preserves fine-grained details that are often lost in superpixel-based methods. The exploitation of the bounding box "tightness" prior via MP Loss provides a clever solution to the problem of sparse supervision.
While A2GNN significantly reduces the impact of noise, it remains somewhat dependent on the quality of initial seeds generated by methods like Class Activation Maps (CAM). Future research may focus on improving initial seed generation and refining graph construction techniques to further enhance the robustness of the system against complex backgrounds.
Summary updated