Abstract
Deep learning usually achieves the best results with complete supervision. In the case of semantic segmentation, this means that large amounts of pixelwise annotations are required to learn accurate models. In this paper, we show that we can obtain state-of-the-art results using a semi-supervised approach, specifically a self-training paradigm. We first train a teacher model on labeled data, and then generate pseudo labels on a large set of unlabeled data. Our robust training framework can digest human-annotated and pseudo labels jointly and achieve top performances on Cityscapes, CamVid and KITTI datasets while requiring significantly less supervision. We also demonstrate the effectiveness of self-training on a challenging cross-domain generalization task, outperforming conventional finetuning method by a large margin. Lastly, to alleviate the computational burden caused by the large amount of pseudo labels, we propose a fast training schedule to accelerate the training of segmentation models by up to 2x without performance degradation.
Introduction
Semantic segmentation—assigning a class label to every pixel in an image—is a critical task for autonomous driving but remains notoriously data-hungry. Creating high-quality pixel-wise annotations is expensive and time-consuming; for instance, labeling a single image for the Cityscapes dataset can take over an hour. This cost barrier results in segmentation datasets that are significantly smaller than those for standard image classification. Furthermore, models often struggle with domain shifts when deployed in new environments with different lighting or object types. This paper addresses these challenges by leveraging massive amounts of unlabeled data through a self-training framework to improve both accuracy and cross-domain robustness without requiring expensive new human-annotated data.
Self-Training Framework
The core of the proposed approach is a teacher-student self-training paradigm. Initially, a "teacher" model is trained on a limited set of human-annotated images. This teacher then generates "pseudo-labels" for a much larger set of unlabeled images. Finally, a "student" model is trained jointly on both the original human-annotated data and the newly generated pseudo-labels.
To optimize this process for dense pixel prediction, the authors introduce two key innovations:
- Centroid Sampling: To address the inherent class imbalance in pseudo-labels (e.g., the prevalence of "road" pixels over "motorcycle" pixels), the authors calculate object centroids in the pseudo-labels and crop training patches around them. This ensures the model encounters underrepresented classes uniformly without losing scene context.
- Hard Labels: Unlike classification tasks where soft probability distributions are often used, the authors found that "hard" (one-hot) pseudo-labels are superior for segmentation, as they preserve sharp object boundaries which are critical for dense prediction.
Fast Training Schedule
Training on expanded datasets with high-resolution images is computationally intensive. To mitigate this, the authors propose a dynamic training schedule that alternates between small and large image crop sizes during the training process.
Schedules like coarse2fine+ allow for larger batch sizes in GPU memory during the "coarse" phases, significantly speeding up training. This method achieves up to a 2x speedup for heavy models like WideResNet38 without sacrificing final mIoU performance.
Key Results
The self-training framework achieves state-of-the-art results across several benchmarks:
- Cityscapes: Reached 82.7% mIoU using only fine annotations, outperforming prior methods and matching models trained on much larger external labeled datasets.
- Transfer Learning: Achieved 81.6% mIoU on CamVid and 71.41% mIoU on KITTI, demonstrating strong fine-tuning transferability.
- Cross-Domain Generalization: In a few-shot adaptation task from Cityscapes to Mapillary, self-training with only 10 labeled samples per class outperformed standard fine-tuning that used ten times more data.
Conclusion
This work demonstrates that self-training is a powerful, model-agnostic tool for semantic segmentation. By effectively utilizing unlabeled data and employing a fast training schedule, the authors achieve superior accuracy and domain adaptation with reduced human effort. While iterative multi-loop training showed diminishing returns, the current framework provides a robust baseline for semi-supervised learning in computer vision.
Summary updated