Rectifying Pseudo Label Learning via Uncertainty Estimation for Domain Adaptive Semantic Segmentation

Zhedong Zheng, Yi Yang

TL;DR

This paper introduces a method to improve unsupervised domain adaptation for semantic segmentation by "rectifying" noisy pseudo-labels. By measuring the prediction variance between two internal classifiers, the model automatically identifies and ignores unreliable labels during training, leading to state-of-the-art performance on major benchmarks without requiring manual threshold tuning.

What Problem Does This Paper Address?

In semantic segmentation, we often want to take a model trained on a "source" domain (like synthetic data from GTA5) and apply it to a "target" domain (like real-world Cityscapes). Because the data distributions differ, the model’s initial performance on the target domain is poor.

A common strategy is pseudo-labeling: the model predicts labels for the unlabeled target data and then treats those predictions as "ground truth" for further training. The problem? These labels are noisy and contain errors. If the model trains on its own mistakes, those errors become "baked in," compromising the final result. Existing solutions often use a fixed confidence threshold (e.g., "only trust predictions with >90% confidence"), but these are hard to tune and often ignore rare categories (like traffic signs) that naturally have lower confidence scores.

Methods

The authors propose a framework that explicitly estimates prediction uncertainty to decide which pseudo-labels to trust.

  1. Two-Classifier Architecture: The model (based on DeepLab-v2) uses two classifiers: a primary one and an auxiliary one. While auxiliary classifiers are standard for helping with gradient flow during training, this paper uses them for a "free lunch" uncertainty estimate.
  2. Uncertainty via Variance: They calculate the Kullback-Leibler (KL) divergence between the predictions of the two classifiers. If the two classifiers disagree significantly on a pixel, the "variance" is high, signaling high uncertainty.
  3. Variance Regularization: They introduce a new loss function that incorporates this variance. Effectively, the loss for a specific pixel is weighted by the inverse of its uncertainty.
  4. If uncertainty is high, the model "ignores" the pseudo-label for that pixel.
  5. A regularization term prevents the model from simply marking everything as "uncertain" to avoid the loss.
  6. Automatic Thresholding: Unlike manual methods, this approach provides a pixel-wise, dynamic threshold that adapts to the specific image and category, allowing the model to learn from rare classes even if their absolute confidence scores are relatively low.

Datasets

The researchers evaluated their method on three major domain adaptation benchmarks:

  • GTA5 $\to$ Cityscapes: Moving from synthetic video game data to real-world German street scenes.
  • SYNTHIA $\to$ Cityscapes: Another synthetic-to-real benchmark.
  • Cityscapes $\to$ Oxford RobotCar: A cross-city benchmark involving different geographic locations and weather conditions (sunny vs. rainy).

Key Insights and Ideas

  • The "Free Lunch" of Auxiliary Heads: Most deep segmentation models already use auxiliary heads to stabilize training. This paper cleverly repurposes them to provide a second "opinion" for uncertainty estimation without adding extra parameters.
  • Variance > Confidence: Standard softmax confidence often fails at object boundaries or for rare classes. Variance (disagreement between different views of the data) is a much more robust signal for identifying truly noisy labels.
  • Dynamic Learning: By treating uncertainty as a learnable parameter within the loss function, the model naturally prioritizes learning from "easy" (certain) pixels first and gradually incorporates more difficult ones as its internal consistency improves.
  • Robustness to Rare Classes: Because the threshold is adaptive, the model doesn't discard rare categories (like poles or signs) just because they have lower global confidence, which is a major failing of static thresholding.

Key Results

  • State-of-the-Art Performance: On the GTA5 $\to$ Cityscapes benchmark, the method achieved 50.3% mIoU, outperforming previous state-of-the-art methods like CBST and MRKLD.
  • Superior to Manual Tuning: The automated variance approach outperformed the best possible handcrafted threshold (which peaked at 48.4% mIoU).
  • Training Stability: Qualitative results show that the model is significantly better at rectifying errors on small-scale objects and boundaries where noise is most prevalent.
  • Convergence: While standard pseudo-labeling tends to overfit to noise (causing training loss to drop to zero), this method converges to a non-zero constant, indicating it is successfully filtering out unreliable data points.

Limitations and Future Work

The authors note that while the method is highly effective for urban scene segmentation, its performance on the cross-city benchmark (Cityscapes $\to$ RobotCar) showed more modest gains (+0.5%) compared to synthetic-to-real tasks. This suggests that when the domain gap is smaller, the baseline pseudo-labeling is already quite strong.

Future work suggested by the authors includes applying this uncertainty-driven rectification to other domains, such as medical imaging, where pixel-wise accuracy is critical and manual annotation is extremely expensive.

Summary updated

BibTeX
@article{zheng2021rectifying,
  author = {Zhedong Zheng and Yi Yang},
  title = {{Rectifying Pseudo Label Learning via Uncertainty Estimation for Domain Adaptive Semantic Segmentation}},
  journal = {Int. J. Comput. Vis.},
  year = {2021},
  doi = {10.1007/s11263-020-01395-y},
}
Figure