Abstract
Weakly Supervised Semantic Segmentation (WSSS) aims to reduce the high cost of pixel-level annotations by training models using only image-level labels. However, standard Class Activation Maps (CAMs) often produce sparse and incomplete localization, focusing only on the most discriminative object parts. This paper introduces the Scale-Aware Feature Network (SAFN), which utilizes a spatial attention mechanism to adaptively fuse features across multiple image scales. By intelligently weighting scale-specific information, SAFN generates dense object localization maps that significantly outperform previous state-of-the-art methods. When combined with class-agnostic saliency maps to form pseudo-ground truth labels, SAFN achieves a mean Intersection-over-Union (mIoU) of 66.5% on the PASCAL VOC 2012 benchmark.
Introduction
Semantic segmentation is a fundamental computer vision task that requires assigning a category label to every pixel in an image. While fully supervised methods have reached high levels of accuracy, they rely on massive datasets with manually annotated masks, which are expensive and time-consuming to produce.
WSSS offers a cost-effective alternative by using "cheap" image-level labels (e.g., "this image contains a cat"). The primary challenge in WSSS is the "discriminative region" problem: classification networks are naturally "lazy" and only need to identify a small, distinctive part of an object to make a correct prediction. This results in incomplete localization maps that are unsuitable for training high-quality segmentation models. The SAFN addresses this by forcing the network to attend to the full extent of objects across different spatial scales.
Methodology
The Scale-Aware Feature Network (SAFN) is designed to bridge the gap between sparse classification hits and dense segmentation masks through three primary architectural innovations.
1. Dilated Convolutions and Receptive Field
The network replaces standard pooling layers with dilated (atrous) convolutions. This design choice allows the model to maintain high-resolution feature maps while significantly enlarging the receptive field—the amount of context the model considers for each pixel. This is crucial for capturing larger objects without losing fine-grained spatial detail.
2. The Scale-Attention Module
The core innovation of SAFN is its ability to process multiple versions of the same image at different scales (e.g., 0.5x, 1.0x, 1.5x) simultaneously. Unlike previous methods that used simple averaging, SAFN employs a spatial attention module that learns a set of weights for every pixel at every scale.
This spatial variance is key: a pixel belonging to a distant object may require high-resolution features, while a pixel in a large, close-up object benefits from the broader context provided by lower-resolution scales. The attention module allows the network to adaptively decide which scale is most informative for each part of the image.
3. Pseudo-GT Generation
To convert localization maps into training labels (Pseudo-Ground Truth), the SAFN output is combined with a class-agnostic saliency map. Saliency maps help distinguish general foreground objects from the background, providing sharp boundaries that classification-based maps often lack.
Experimental Results
The model was evaluated on the PASCAL VOC 2012 dataset, a standard benchmark containing 20 foreground classes. The training utilized an augmented set of 10,582 images.
SAFN achieved impressive results, setting new benchmarks for weakly supervised methods:
- VGG16 Backbone: 62.3% mIoU.
- ResNet Backbone: 66.5% mIoU.
These results represent a significant improvement over previous state-of-the-art models such as FickleNet (61.9%) and SSDD (65.5%). Qualitatively, SAFN is notably better at capturing the full extent of large, complex objects like buses or cows, which typically appear fragmented in simpler WSSS models.
Conclusion and Future Work
The SAFN demonstrates that spatial scale awareness is a powerful tool for improving object localization in weakly supervised settings. By adaptively weighting features across scales, the network effectively "stretches" its attention to cover non-discriminative parts of objects.
Despite these gains, challenges remain regarding boundary ambiguity and inter-class similarities in complex scenes. Future research may focus on integrating boundary-aware loss functions or exploring self-supervised techniques to better separate co-occurring objects without requiring additional manual supervision.
Summary updated