Semi-Supervised Semantic Segmentation with Cross Pseudo Supervision
Semantic segmentation—the task of assigning a class label to every single pixel in an image—is notoriously expensive. While image-level labels for classification are relatively cheap to obtain, pixel-level masks require intensive manual labor. Semi-supervised learning (SSL) aims to mitigate this by leveraging a small amount of labeled data alongside a large pool of unlabeled data.
This paper introduces Cross Pseudo Supervision (CPS), a simple yet powerful consistency regularization technique. By training two identical networks with different initializations, the researchers found that using one network’s predicted "hard" labels to supervise the other (and vice versa) significantly boosts performance, setting new state-of-the-art results on major benchmarks.
The CPS Framework
The core of the paper is the Cross Pseudo Supervision (CPS) framework, which relies on the principle of consistency regularization. Unlike many existing methods that rely on "soft" probability maps or complex teacher-student architectures, CPS focuses on the power of "hard" pseudo-labels.
How it Works:
- Dual Networks: The system uses two parallel segmentation networks ($f(\theta_1)$ and $f(\theta_2)$) that share the same architecture but are initialized differently. This "network perturbation" prevents the models from immediately agreeing on a wrong answer, a common failure mode in single-network self-training.
- Cross-Supervision: For any input image, both networks produce a prediction. The "soft" output of Network 1 is converted into a "hard" one-hot label map ($Y_1$). This map $Y_1$ is then used as the ground truth to supervise Network 2 using a standard cross-entropy loss. Simultaneously, Network 2’s output ($Y_2$) supervises Network 1.
- Symmetric Learning: Unlike the popular "Mean Teacher" approach, where a student learns from a moving-average teacher, CPS is symmetric. Both networks are "students" that learn and evolve together.
- CutMix Augmentation: The authors also integrate CutMix, a data augmentation strategy where patches of one image are pasted onto another. Applying CPS on top of CutMix-augmented images provides an additional performance boost.
Key Insights
- The Power of "Hard" Labels: CPS uses one-hot pseudo-labels rather than raw probability distributions. This acts more like "data expansion," where the unlabeled images effectively become part of the training set with estimated labels.
- Complementary to Self-Training: The authors demonstrated that CPS can be combined with traditional multi-stage self-training to achieve even higher accuracy.
- Inference Efficiency: While training requires two networks (effectively doubling memory and compute), only one network is needed during inference, meaning there is no extra cost for deployment.
Performance and Results
CPS achieved state-of-the-art (SOTA) performance across multiple settings on industry-standard benchmarks like PASCAL VOC 2012 and Cityscapes. The researchers tested various "partition protocols," simulating scenarios where only 1/16, 1/8, 1/4, or 1/2 of the data is labeled.
As shown in the figures above, CPS consistently outperforms the baseline across all data regimes. For example, on Cityscapes with a ResNet-50 backbone and only 1/16 of the labels, CPS improved the mIoU from a baseline of 66.14% to 74.47%. Even with full supervision, adding unlabeled "coarse" images via CPS improved the SOTA HRNet-W48 model on Cityscapes from 80.65% to 82.41% mIoU.
Conclusion
Cross Pseudo Supervision offers a straightforward yet highly effective approach to semi-supervised semantic segmentation. By leveraging dual-network diversity and hard pseudo-labeling, it overcomes the limitations of previous consistency-based methods. While it increases training-time overhead, the significant gains in accuracy and standard inference costs make it a compelling choice for real-world applications where labeled data is scarce.
Reference: Chen, X., Yuan, Y., Zeng, G., & Wang, J. (2021). Semi-Supervised Semantic Segmentation with Cross Pseudo Supervision. arXiv preprint arXiv:2106.01226v2.
Summary updated