Abstract
Semi-supervised semantic segmentation (SSSS) leverages limited labeled data alongside vast unlabeled datasets. Traditional "weak-to-strong" consistency frameworks primarily utilize intensity-based augmentations to avoid pixel misalignment between teacher pseudo-labels and student predictions. This paper introduces Adaptive Spatial Augmentation (ASAug), a novel approach that incorporates geometric transformations. By employing an entropy-based adaptive weighting system and a pixel-aligned consistency loss, ASAug effectively utilizes spatial shifts to enhance model robustness. Experimental results across Cityscapes, PASCAL VOC, and COCO benchmarks demonstrate significant performance gains, particularly in low-data regimes.
Introduction
In SSSS, models are typically trained using a small set of labeled images and a larger set of unlabeled ones. The prevailing paradigm relies on weak-to-strong consistency: a teacher model generates pseudo-labels from weakly augmented images, which a student model must then match under strong augmentation. Historically, "strong" augmentation has been restricted to intensity changes (e.g., color jitter, blur) because spatial transformations like rotation or translation shift pixels, breaking the alignment between the teacher's static pseudo-label and the student's transformed output. ASAug challenges this limitation, suggesting that these spatial inconsistencies can actually drive better feature learning if managed correctly.
Methods
The ASAug framework introduces two primary components to integrate spatial transformations into the consistency learning pipeline:
- Entropy-based Adaptive Weight (EAW): To prevent over-distortion, ASAug modulates the strength of spatial transformations based on the teacher's prediction confidence. By calculating the entropy ($\mathcal{H}$) of the teacher's probability maps, the system applies stronger spatial pushes to images with high uncertainty to explore broader feature spaces, while applying lighter transformations to high-confidence images to preserve stable features.
- Pixel-level Consistency Learning: To resolve the alignment paradox, ASAug applies the exact same spatial transformation $\mathcal{T}_{ss}$ to the teacher’s probability maps as it does to the student's input image. This ensures that the student's output is compared against a correctly warped "ground truth." The framework utilizes Mean Squared Error (MSE) for consistency loss, providing robustness against geometric warping variances.
Results
ASAug was evaluated on PASCAL VOC 2012, Cityscapes, and COCO. The module demonstrated consistent improvements when integrated into existing state-of-the-art frameworks like Allspark and CorrMatch.
On Cityscapes with only 92 labeled images, ASAug improved the mIoU of the Allspark framework by 4.16%. In the PASCAL VOC classic set (92 labels), it achieved a SOTA mIoU of 77.29%. Qualitatively, models trained with ASAug exhibited sharper boundaries for small objects and reduced background noise, confirming that spatial shifts force the model to learn more coordinate-independent representations.
Conclusion
ASAug demonstrates that spatial augmentations, long avoided in SSSS, are vital for achieving high-performance segmentation. While it introduces a slight computational overhead (roughly 4–6 minutes extra per 1,000 iterations), its plug-and-play nature makes it a powerful tool for improving model generalization in data-scarce environments. Future research will explore combining these spatial strategies with more diverse augmentation techniques to further close the gap with fully supervised performance.
Summary updated