Hard-Aware Instance Adaptive Self-Training for Unsupervised Cross-Domain Semantic Segmentation

Chuang Zhu, Kebin Liu, Wenqi Tang, Ke Mei, Jiaqi Zou, Tie-Jun Huang

Introduction

Semantic segmentation is a fundamental task in computer vision, particularly for applications like autonomous driving where every pixel must be accurately classified. However, deep neural networks often suffer from a significant drop in performance when applied to a target domain that differs from the training (source) domain—a phenomenon known as "domain shift." Unsupervised Domain Adaptation (UDA) aims to mitigate this by leveraging unlabeled data from the target domain.

Self-training (ST) has emerged as a dominant paradigm in UDA. In ST, a model trained on source data generates "pseudo-labels" for the target data, which are then used to retrain the model. Despite its success, standard ST faces two critical challenges: easy-class bias and global thresholding. Models tend to become overconfident in frequent, "easy" classes (e.g., road, sky) while neglecting infrequent, "hard" classes (e.g., poles, riders). Furthermore, using a fixed global confidence threshold ignores the inherent difficulty variance across different images, leading to suboptimal pseudo-label quality.

The HIAST Framework

To address these limitations, we present Hard-aware Instance Adaptive Self-training (HIAST). This framework introduces an instance-level perspective to self-training, ensuring that hard classes and difficult images are adequately represented during the adaptation process.

Overview of the HIAST framework, illustrating the three-stage process: warm-up, pseudo-label generation via IAS, and self-training with HPLA.

The HIAST pipeline consists of three primary components:

1. Instance Adaptive Selector (IAS)

Unlike traditional methods that apply a single threshold across all images, IAS calculates a unique threshold for every class within each individual image. By employing an Exponential Moving Average (EMA), IAS balances global class confidence with the specific characteristics of the current instance. This adaptive approach allows the model to extract meaningful pseudo-labels even from challenging images where global confidence might be low.

2. Hard-aware Pseudo-label Augmentation (HPLA)

To combat the scarcity of hard classes in the pseudo-label set, HPLA utilizes a "Copy-Paste" augmentation strategy. It identifies "hard" classes based on their low frequency or confidence and physically transfers pixels of these classes from one target image to another. This intra-domain augmentation enriches the training distribution for tail classes without introducing the style mismatch typically associated with source-to-target mixing.

3. Region-adaptive Regularization

HIAST employs a dual regularization strategy based on the confidence of the pseudo-labels. In confident regions, Kullback-Leibler Divergence (KLD) is used to smooth predictions, preventing the model from over-fitting to potentially noisy labels. In ignored regions (where confidence is low), entropy minimization and consistency constraints via a Mean-Teacher framework are applied to encourage stable and sharp predictions.

Experimental Evaluation

The HIAST framework was rigorously evaluated on several cross-domain benchmarks, including synthetic-to-real (GTA5 to Cityscapes, SYNTHIA to Cityscapes) and real-to-real (Cityscapes to Oxford RobotCar) scenarios.

Qualitative comparison of pseudo-label quality across different methods. HIAST demonstrates superior performance in identifying hard classes like riders and traffic lights.

Quantitative Results

HIAST achieved state-of-the-art performance across all tested benchmarks. On the GTA5 to Cityscapes task, HIAST reached a mean Intersection over Union (mIoU) of 56.3%, which further improved to 64.1% when integrated with the SePiCo framework. Notably, the most significant gains were observed in "tail" categories. For instance, the segmentation of "Poles" and "Riders" showed marked improvement over previous methods like CBST and IAST.

On the Oxford RobotCar dataset, which involves adapting to different weather conditions, HIAST achieved 75.2% mIoU. This 2.0% improvement over the previous best demonstrates the framework's robustness to real-world environmental shifts.

Conclusion

HIAST effectively addresses the inherent biases in unsupervised self-training by shifting the focus from global statistics to instance-specific adaptation. By combining adaptive thresholding with targeted hard-class augmentation, the framework significantly improves the segmentation of challenging categories. Future research may explore more context-aware augmentation techniques to further refine the "Copy-Paste" process and enhance the spatial consistency of augmented target images.

Summary updated

BibTeX
@article{zhu2023hard,
  author = {Chuang Zhu and Kebin Liu and Wenqi Tang and Ke Mei and Jiaqi Zou and Tie-Jun Huang},
  title = {{Hard-Aware Instance Adaptive Self-Training for Unsupervised Cross-Domain Semantic Segmentation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=lc3hLQR4Du},
}
Figure