Selective Masking based Self-Supervised Learning for Image Semantic Segmentation
Yuemin Wang, Ian Stavness
TL;DR
Problem: Masked image modeling pretraining often relies on random masking and large budgets, limiting efficiency for semantic segmentation in resource-constrained settings. Approach: Introduce Selective Masking Image Reconstruction with iterative partitioned pretraining and loss-driven patch masking on a CNN/CNN-based U-Net backbone, using MS-SSIM+L1 losses. Findings: Outperforms random masking and ImageNet pretraining across Pascal VOC, Cityscapes, and weed datasets (Nassar, Sugarbeets), with notable gains on underrepresented classes; self-pretraining typically surpasses cross-pretraining. Impact: Provides a practical, data-efficient SSL pretraining option for end-to-end segmentation in low-resource or domain-specific scenarios, reducing reliance on large-scale pretraining.
Abstract
This paper proposes a novel self-supervised learning method for semantic segmentation using selective masking image reconstruction as the pretraining task. Our proposed method replaces the random masking augmentation used in most masked image modelling pretraining methods. The proposed selective masking method selectively masks image patches with the highest reconstruction loss by breaking the image reconstruction pretraining into iterative steps to leverage the trained model's knowledge. We show on two general datasets (Pascal VOC and Cityscapes) and two weed segmentation datasets (Nassar 2020 and Sugarbeets 2016) that our proposed selective masking method outperforms the traditional random masking method and supervised ImageNet pretraining on downstream segmentation accuracy by 2.9% for general datasets and 2.5% for weed segmentation datasets. Furthermore, we found that our selective masking method significantly improves accuracy for the lowest-performing classes. Lastly, we show that using the same pretraining and downstream dataset yields the best result for low-budget self-supervised pretraining. Our proposed Selective Masking Image Reconstruction method provides an effective and practical solution to improve end-to-end semantic segmentation workflows, especially for scenarios that require limited model capacity to meet inference speed and computational resource requirements.
