Abstract
Semi-supervised semantic segmentation learns a model for classifying pixels into specific classes using a few labeled samples and numerous unlabeled images. The recent leading approach is consistency regularization by self-training with pseudo-labeling pixels having high confidences for unlabeled images. However, using only high-confidence pixels for self-training may result in losing much of the information in the unlabeled datasets due to poor confidence calibration of modern deep learning networks. In this paper, we propose a class-adaptive semi-supervision framework for semi-supervised semantic segmentation (CAFS) to cope with the loss of most information that occurs in existing high-confidence-based pseudo-labeling methods. Unlike existing semi-supervised semantic segmentation frameworks, CAFS constructs a validation set on a labeled dataset, to leverage the calibration performance for each class. On this basis, we propose a calibration-aware class-wise adaptive thresholding and class-wise adaptive oversampling using the analysis results from the validation set. Our proposed CAFS achieves state-of-the-art performance on the full data partition of the base PASCAL VOC 2012 dataset and on the 1/4 data partition of the Cityscapes dataset with significant margins of 83.0% and 80.4%, respectively.
Introduction
Semantic segmentation—the task of labeling every single pixel in an image—is notoriously expensive because it requires human annotators to trace complex boundaries. Semi-supervised learning (SSL) tries to mitigate this by training on a tiny amount of labeled data and a large volume of unlabeled data.
The current "gold standard" in SSL is consistency regularization: a model generates a pseudo-label from a "weakly" augmented image and is then trained to predict that same label on a "strongly" augmented version. To avoid learning from errors, researchers typically only retain pseudo-labels where the model's confidence exceeds a high fixed threshold (e.g., >95%).
However, CAFS identifies a critical flaw in this approach: poor calibration. Modern neural networks are often overconfident about easy classes (like 'road') and under-confident about hard or rare ones (like 'bicycle'). A fixed 95% threshold might work for a 'car' but might discard nearly all useful information for a 'motorbike,' leading to severe class imbalance and the neglect of rare classes during training.
Methodology
CAFS introduces two main class-adaptive components that rely on a strategic use of the limited labeled data:
- K-Fold Validation for SSL: In low-data regimes, researchers typically use all labeled data for training. CAFS argues that setting aside a small validation set is essential for calibration. By using a K-fold split to train "warm-up" models, the framework calculates stable performance metrics (IoU and precision) for every class without wasting data.
- Adaptive Class-wise Over-Sampling (AOS): Using validation results, CAFS identifies "hard" classes with low IoU and adaptively oversamples them from the labeled pool. This ensures the model encounters these classes more frequently, preventing "easy" classes from dominating the learning process.
- Adaptive Class-wise Confidence Thresholds (ACT): Instead of a fixed threshold, CAFS iteratively updates thresholds for each class based on its precision on the validation set. If the model struggles with 'cats,' the threshold for 'cat' pseudo-labels is raised; if it performs perfectly on 'sky,' the threshold is lowered to capture more data.
Key Results and Analysis
The authors evaluated CAFS on major benchmarks, setting new State-of-the-Art (SOTA) records:
- PASCAL VOC 2012: Reached 83.0% mIoU on the full partition, outperforming previous leaders like UniMatch by 2.2%. Even with only 92 labeled images, it achieved 75.2% mIoU.
- Cityscapes: Achieved 80.4% mIoU on the 1/4 data partition, a significant margin over previous methods.
- Backbone Agnostic: The framework proved effective with both traditional CNNs (DeepLabV3+) and modern Transformers (SegFormer).
A key insight of CAFS is that calibration is class-dependent. As shown in the class-wise analysis, previous methods often failed to generate pseudo-labels for difficult classes like 'bicycle' or 'chair.' CAFS significantly boosts the "supervision ratio" for these neglected categories, leading to better overall performance.
Conclusion
CAFS demonstrates that a "one-size-fits-all" approach to pseudo-labeling is suboptimal. By acknowledging that model certainty varies by class and using a small, validated subset to guide training, CAFS recovers valuable information from unlabeled datasets. While the K-fold warm-up phase adds some initial computational overhead, the resulting gains in accuracy—especially for rare and difficult classes—establish CAFS as a powerful new framework for semi-supervised segmentation.
Summary updated