Abstract
Semi-supervised semantic segmentation aims to leverage large amounts of unlabeled data to reduce the burden of pixel-level annotation. While Masked Image Modeling (MIM) has shown promise in self-supervised learning, its class-agnostic nature often leads to semantic confusion in complex scenes. This paper introduces $S^4MIM$, a framework that makes MIM "class-aware" by incorporating pseudo-labels into the reconstruction process. By enforcing class-wise consistency across pixel, feature, and semantic spaces, $S^4MIM$ achieves state-of-the-art performance on PASCAL VOC and Cityscapes benchmarks, particularly in low-label scenarios.
Introduction
Semantic segmentation—the task of assigning a category to every pixel in an image—is notoriously "label-hungry." Manually annotating every pixel is expensive and slow. Semi-supervised learning (SSL) attempts to solve this by training models on a small set of labeled data and a large pool of unlabeled data.
While discriminative techniques like contrastive learning have been widely integrated into SSL, generative paradigms like Masked Image Modeling (MIM) have seen less use in the active training loop of segmentation. The challenge is that standard MIM is "class-agnostic"; it tries to reconstruct a masked patch using any available context. In a complex scene, this can lead to semantic confusion, where the model learns to reconstruct a "car" patch using "tree" features, blurring the distinct boundaries required for high-quality segmentation.
Methodology
The authors introduce a framework called Semi-Supervised Semantic Segmentation with MIM ($S^4MIM$). It operates in two distinct phases to bridge the gap between generative self-supervision and downstream segmentation tasks.
The Two-Phase Framework
- Phase I: A standard semi-supervised baseline is established using labeled data and a teacher-student consistency mechanism to generate initial pseudo-labels.
- Phase II: A novel mask-induced learning process is introduced. The model processes masked versions of the unlabeled images, and the internal features are regularized across three distinct spaces.
Core Innovations
- Class-wise MIM (Pixel Space): Instead of one global reconstruction head, the model uses independent heads for different classes. Using pseudo-labels, the model groups features by class and reconstructs only the pixels belonging to that specific category. This ensures the model learns intra-class relationships rather than noisy cross-class ones.
- Class-wise Mask-induced Feature Aggregation (Feature Space): The model maintains a global dictionary of "class prototypes" (representative feature vectors for each category). It then minimizes the distance between features in masked regions and their corresponding class prototype (built from visible regions). This "pulls" masked features toward a semantically correct center.
- MIM in Semantic Space: The model enforces consistency between the segmentation predictions of a masked image and the pseudo-labels generated from the original, unmasked image.
Key Results
$S^4MIM$ consistently outperformed previous state-of-the-art (SOTA) methods like UniMatch and AugSeg across industry-standard benchmarks:
- PASCAL VOC 2012: In an ultra-low label regime with only 92 labeled images, $S^4MIM$ achieved 75.51% mIoU, a significant jump over the supervised-only baseline of 45.1%.
- Cityscapes: Under the 1/16 partition (186 labels), it reached 76.80% mIoU, setting a new benchmark for urban scene understanding.
- Ablation Studies: Removing any of the three components (pixel, feature, or semantic space MIM) resulted in a performance drop, proving that multi-level regularization is essential for robust learning.
Conclusion
By making Masked Image Modeling class-aware, $S^4MIM$ successfully harnesses generative signals for the discriminative task of semantic segmentation. While the dual-phase training and multiple reconstruction heads increase computational complexity, the gains in low-label performance are substantial. Future work may explore more sophisticated masking strategies or deeper integration with Vision Transformer (ViT) architectures to further refine these semantic boundaries.
Summary updated