Semi-Supervised Semantic Segmentation With Cross Pseudo Supervision

Xiaokang Chen, Yuhui Yuan, Gang Zeng, Jingdong Wang

Introduction

Semantic segmentation—the task of assigning a category label to every single pixel in an image—is notoriously expensive. While classifying an entire image takes a second, precisely outlining every object can take a human annotator over an hour per image.

Semi-supervised learning (SSL) aims to solve this by using a small amount of "labeled" data alongside a large pool of "unlabeled" data. The challenge in SSL is consistency: ensuring the model doesn't "hallucinate" incorrect patterns when looking at unlabeled images. Previous methods often relied on complex data augmentations or "Mean Teacher" frameworks, which can be difficult to tune or prone to error-reinforcement.

The Cross Pseudo Supervision (CPS) Method

The core idea of Cross Pseudo Supervision (CPS) is elegant in its simplicity. Instead of one network, the authors use two parallel networks ($f(\theta_1)$ and $f(\theta_2)$) that share the same architecture but start with different random weights.

The CPS framework uses two networks with different initializations to generate hard pseudo-labels that supervise each other.

As shown in the diagram above, the process follows four key steps:

  1. The Forward Pass: Both networks receive the same input image.
  2. Generating Pseudo-Labels: Each network produces a probability map. This map is converted into a "hard" one-hot label (the most likely class for each pixel).
  3. The Cross-Supervision: The hard label from Network 1 is used as the ground truth to supervise Network 2, and vice versa.
  4. The Loss Function: The total loss combines standard supervised learning (on labeled data) with this cross-pseudo supervision (on both labeled and unlabeled data).

Unlike previous "soft" consistency methods that try to make the networks' probability distributions match, CPS uses hard labels. This treats the unlabeled data as if it were additional training data, which the authors find to be more stable and effective. Simply initializing two networks differently provides enough diversity for them to learn different features and "correct" each other's unique mistakes.

Key Results and Insights

The authors evaluated their approach on two "gold standard" benchmarks: PASCAL VOC 2012 and Cityscapes. They tested various "partition protocols," simulating scenarios where only 1/16, 1/8, 1/4, or 1/2 of the data is labeled.

mIoU performance across different labeled data ratios, showing CPS consistently outperforming the baseline and benefiting from CutMix augmentation.

CPS consistently outperformed previous state-of-the-art methods across almost all settings:

  • Cityscapes: On the 1/16 labeled partition (only 186 labeled images), CPS improved the baseline mIoU (mean Intersection-over-Union) from 66.90% to 75.09%—a massive jump for such a small amount of data.
  • PASCAL VOC 2012: CPS achieved a new state-of-the-art, outperforming the previous best (CutMix-Seg) by about 3% in the low-data regime.
  • Synergy with Augmentation: CPS works even better when combined with CutMix, showing it can be easily integrated into existing high-performance pipelines.

Limitations and Future Work

While highly effective, CPS doubles the GPU memory and computation time required during the training phase (though inference remains the same, as you only need one network for predictions). Future work could explore if using different architectures (e.g., a ResNet and an HRNet) would provide even better cross-supervision due to increased diversity. Additionally, the behavior of CPS on massive, web-scale unlabeled datasets remains an open question.

Summary updated

BibTeX
@inproceedings{chen2021semi,
  author = {Xiaokang Chen and Yuhui Yuan and Gang Zeng and Jingdong Wang},
  title = {{Semi-Supervised Semantic Segmentation With Cross Pseudo Supervision}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00264},
}
Figure