UCC: Uncertainty guided Cross-head Cotraining for Semi-Supervised Semantic Segmentation

Jiashuo Fan, Bin Gao, Huan Jin, Lihui Jiang · DOI

Introduction

Semantic segmentation—the task of assigning a class label to every pixel in an image—is essential for applications like autonomous driving and medical imaging. However, training these models typically requires thousands of meticulously hand-labeled images, which is both time-consuming and expensive.

Semi-supervised learning (SSL) aims to alleviate this burden by leveraging a small amount of labeled data alongside a massive amount of unlabeled data. Despite recent progress, SSL methods often struggle with consistency plateaus, "confirmation bias" from noisy pseudo-labels, and data distribution mismatches. UCC (Uncertainty guided Cross-head Co-training) is a novel framework designed to overcome these hurdles by combining the strengths of consistency regularization and co-training.

Methodology

The UCC framework introduces three core components to stabilize training and improve the quality of learning from unlabeled data.

Overview of the UCC framework featuring dual-head co-training and the Uncertainty Guided Re-weight Module (UGRM).

Cross-head Co-training (UCC)

Instead of training two entirely separate models, UCC uses a shared encoder with two identical but independently initialized segmentation heads. For unlabeled images, a "weakly augmented" prediction from one head serves as the pseudo-label for the "strongly augmented" version of the same image processed by the other head. This cross-supervision forces the heads to learn from each other while maintaining the diversity necessary for effective co-training.

Dynamic Cross-Set Copy-Paste (DCSCP)

To address class imbalance and the distribution gap between labeled and unlabeled sets, the authors developed DCSCP. This module samples rare objects from the labeled set and pastes them into the unlabeled set (and vice versa). By using a dynamic confidence bank to identify underperforming classes, DCSCP ensures that the model receives more training signal for difficult, "long-tailed" categories like bicycles or traffic signs.

Uncertainty Guided Re-weight Module (UGRM)

Traditional SSL methods often use a "hard" confidence threshold to filter out noisy pseudo-labels, which can lead to significant data loss. UGRM instead employs a soft-voting mechanism. It calculates prediction uncertainty based on cross-head agreement and dynamically re-weights the loss. If both heads are confident and agree, the sample receives a high weight; if they disagree or are unsure, the weight is lowered to protect the model from learning incorrect information.

Experimental Results

The UCC framework was evaluated on two standard benchmarks: Cityscapes (urban street scenes) and PASCAL VOC 2012 (general objects).

Quantitative comparison on the Cityscapes dataset using ResNet-50 and ResNet-101 backbones.

Performance Benchmarks

UCC consistently outperformed previous state-of-the-art methods, such as Cross Pseudo Supervision (CPS). On the Cityscapes dataset, under a 1/16 labeling protocol (using only 186 labeled images), UCC achieved 77.17% mIoU. This represents a 10.1% improvement over the supervised-only baseline and a significant margin over competing SSL techniques. Similar gains were observed on PASCAL VOC 2012, where it reached 76.49% mIoU under the same protocol.

Key Insights

  • The Power of Weak Supervision: Using reliable predictions from weakly augmented images to supervise training on strongly augmented images is a highly effective way to stabilize SSL.
  • Soft vs. Hard Thresholds: UCC demonstrates that soft re-weighting based on cross-head agreement is more robust than fixed thresholds, avoiding the "all-or-nothing" loss of potentially useful data.
  • Efficiency: Because the encoder is shared, UCC achieves these gains with almost zero additional parameters during inference compared to a standard single-head model.

Conclusion

UCC represents a significant step forward in semi-supervised semantic segmentation. By integrating co-training with uncertainty-guided re-weighting and dynamic data augmentation, it effectively mitigates the risks of error accumulation and data mismatch. Future work will likely focus on further exploiting the information contained within noisy pseudo-labels to push the boundaries of what can be learned from unlabeled data.

Summary updated

BibTeX
@inproceedings{fan2022ucc,
  author = {Jiashuo Fan and Bin Gao and Huan Jin and Lihui Jiang},
  title = {{UCC: Uncertainty guided Cross-head Cotraining for Semi-Supervised Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00971},
}
Figure