Abstract
Weakly Supervised Semantic Segmentation (WSSS) aims to reduce the heavy reliance on pixel-level annotations by utilizing image-level labels. However, standard Class Activation Mapping (CAM) often fails to capture the full extent of objects, focusing instead on small, discriminative regions. This paper presents a self-training framework that employs Multi-Scale Attention Fusion (SMAF) to bridge this gap. By integrating attention maps from multiple image scales and employing a Teacher-Student architecture with a consistency loss, the proposed method achieves a competitive 72.4% mIoU on the PASCAL VOC 2012 benchmark, demonstrating significant improvements in object coverage and pseudo-label quality.
Introduction
Semantic segmentation—the process of assigning a categorical label to every pixel in an image—is a cornerstone of computer vision, essential for applications ranging from autonomous driving to medical imaging. Despite its utility, the task typically requires "dense" annotations, which are labor-intensive and expensive to produce. Weakly Supervised Semantic Segmentation (WSSS) offers a more scalable alternative by training models on "coarse" labels, such as image-level tags (e.g., "dog," "car").
The primary challenge in WSSS lies in the limitations of Class Activation Mapping (CAM). While CAMs can identify which pixels a network uses to classify an image, they suffer from a "local minimum" problem: the network tends to focus only on the most discriminative parts of an object (such as a bird’s beak or a car's wheel) rather than the entire object body. This discrepancy between sparse attention and the required dense masks remains the central hurdle in the field.
The SMAF Framework
To address the limitations of CAM, this research introduces a self-training framework based on a Teacher-Student architecture. The core of the approach is the Multi-Scale Attention Fusion (SMAF) strategy, which leverages the fact that different image scales reveal different semantic properties.
1. Multi-Scale Attention Fusion
The framework generates attention maps at multiple scales—specifically {0.5, 1, 1.5, 2}. The authors observed a clear scale complementarity: reduced images (0.5x) allow the network to capture the global structure of large objects, while enlarged images (2.0x) help resolve fine-grained details of small or distant objects. By fusing these maps into a single comprehensive representation, the model can capture a more complete view of the object of interest.
2. Denoising and Reactivation
Raw fused maps are often susceptible to noise. To refine these maps, the framework employs two key strategies:
- Inter-channel Denoising: Using the ground-truth image-level labels, the model suppresses activations for classes known to be absent from the image.
- Reactivation Strategy: This boosts regions that may only be visible or strongly activated at specific scales, ensuring that the final pseudo-labels are spatially complete and robust.
3. Self-Training and Consistency
The framework utilizes a Teacher-Student setup. A "Teacher" branch, initialized from a pre-trained WSSS model, generates the refined multi-scale maps. A "Student" branch is then trained to match these maps using a Multi-scale Attention Consistency Loss ($L_{mac}$). This loss function forces the student to learn features that remain consistent across different views and scales of the image, leading to more generalized and accurate feature representations.
Experimental Results
The SMAF framework was evaluated on the PASCAL VOC 2012 dataset, a standard benchmark for semantic segmentation. The training set consisted of 10,582 images, with validation and test sets containing 1,449 and 1,456 images, respectively.
Using a ResNet101 backbone, the framework achieved:
- 72.4% mIoU on both the validation and test sets.
- An improvement of 1.5% to 1.6% over the baseline (EPS) method.
- A significant boost in the ablation studies, where the multi-scale approach (72.0% mIoU) outperformed any single-scale training (which peaked at 70.7% for scale=1).
These results confirm that the reactivation strategy and multi-scale fusion are critical for recovering under-activated regions and improving the overall quality of pseudo-labels.
Discussion and Conclusion
The SMAF framework demonstrates that thoughtful data manipulation and scale-based fusion can be as effective as complex architectural modifications. By refining the attention mechanism during the training process itself—rather than relying solely on post-processing techniques like Random Walk or Conditional Random Fields (CRF)—the model produces more reliable "seeds" for segmentation.
However, some limitations remain. The current pipeline is a two-stage process (pseudo-label generation followed by segmentation training), which is more computationally demanding than end-to-end methods. Additionally, the framework's performance relies on specific hyperparameters and thresholds that may require further tuning for "in-the-wild" datasets. Future work may explore adapting this multi-scale fusion approach to Transformer-based architectures, which possess different attention characteristics than the CNNs used in this study.
Summary updated