Adaptive Spatial Augmentation for Semi-supervised Semantic Segmentation

Lingyan Ran, Yali Li, Tao Zhuo, Shizhou Zhang, Yanning ZhangarXiv 2025 · DOI

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:

  1. 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.
  2. 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.
The ASAug framework architecture, illustrating the labeled and unlabeled streams with the adaptive spatial augmentation module.

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.

Performance comparison (mIoU %) of ASAug against various SOTA methods across different numbers of labeled images on the PASCAL VOC dataset.

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

BibTeX
@misc{ran2025adaptive,
  author = {Lingyan Ran and Yali Li and Tao Zhuo and Shizhou Zhang and Yanning Zhang},
  title = {{Adaptive Spatial Augmentation for Semi-supervised Semantic Segmentation}},
  year = {2025},
  eprint = {2505.23438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.23438},
}
Figure