TL;DR
This paper introduces Class-balanced Pixel-level Self-Labeling (CPSL), a novel method for domain adaptive semantic segmentation that tackles noisy pseudo-labels by leveraging intrinsic pixel distributions in the target domain through online clustering. CPSL significantly improves performance, especially on underrepresented "long-tailed" categories, by aligning cluster assignments with pseudo-label distributions.
What Problem Does This Paper Address?
Semantic segmentation, the task of assigning a class label to every pixel in an image, is crucial for many applications like autonomous driving. However, models trained on one dataset (source domain) often perform poorly on data from a different domain (target domain) due to domain shift. Collecting and annotating large datasets for every new domain is prohibitively expensive. Unsupervised Domain Adaptation (UDA) aims to bridge this gap by training on labeled source data and unlabeled target data. A common UDA technique is self-training, where a model generates "pseudo-labels" for target data and uses them for further training. The core challenge is that these pseudo-labels are often noisy and biased, especially for underrepresented ("long-tailed") categories, leading to suboptimal segmentation performance.
Methods
The proposed method, Class-balanced Pixel-level Self-Labeling (CPSL), introduces a plug-and-play module that enhances existing self-training frameworks. The key innovations are:
- Pixel-Level Clustering for Pseudo-Label Rectification: Instead of solely relying on classifier-generated pseudo-labels, CPSL performs online clustering on target domain pixels. The resulting cluster assignments are used to "rectify" or refine the noisy pseudo-labels. This leverages the intrinsic data distribution within the target domain, which is more reliable than source-domain-biased predictions.
- Online and Scalable Clustering: The clustering process is performed "online" on mini-batches of data, making it scalable to dense prediction tasks like semantic segmentation. To mitigate the small sample size of mini-batches, a memory bank stores features from previous batches, augmenting the current batch for clustering.
- Class-Balanced Sampling: To address the issue of long-tailed categories being underrepresented in pseudo-label generation, CPSL employs a class-balanced sampling strategy. This ensures that pixels from minority classes have a fair chance of being selected for clustering and subsequent label refinement.
- Distribution Alignment: A crucial component for handling class imbalance is distribution alignment. CPSL enforces the class distribution of the cluster assignments to closely match the estimated class distribution of the pseudo-labels. This helps prevent majority classes from dominating the learning process and improves performance on minority classes.
- Consistency Regularization: To further improve generalization, the method incorporates consistency regularization. This involves generating weakly and strongly augmented versions of target images and enforcing that the segmentation network produces consistent predictions for both.
Datasets
The paper evaluates its method on the following datasets:
- GTA5: A synthetic dataset used for training.
- SYNTHIA: Another synthetic dataset used for training.
- Cityscapes: A real-world dataset used for evaluation.
The authors note that GTA5 and SYNTHIA are commonly used synthetic datasets for domain adaptation in semantic segmentation, while Cityscapes is a standard real-world benchmark.
Key Insights and Ideas
- Intrinsic Target Distribution is Key: The paper highlights that relying solely on source-domain-trained classifiers for pseudo-labels is inherently flawed due to domain shift. Exploring the target domain's own pixel distribution through clustering offers a more robust source of supervision.
- Clustering as a "Noise Filter": Pixel-level clustering acts as a form of implicit noise filtering for pseudo-labels. By grouping pixels based on their learned features, it can correct misclassifications that arise from the initial, noisy predictions.
- Class Balance is Not Just About Sampling: Simply sampling more minority class pixels isn't enough. The distribution alignment technique is critical for ensuring that the learned representations and pseudo-labels reflect a more balanced view of the classes, especially when the ground truth distribution is highly skewed.
- Online Learning for Scalability: Performing clustering and self-labeling online, rather than in separate offline stages, makes the method more efficient and directly integrates into the training loop, avoiding extra training rounds.
Key Results
The proposed CPSL method demonstrates significant improvements over state-of-the-art methods on both GTA5 $\rightarrow$ Cityscapes and SYNTHIA $\rightarrow$ Cityscapes adaptation tasks.
- GTA5 $\rightarrow$ Cityscapes: CPSL achieved the highest mean IoU (mIoU) score, outperforming the second-best method by a notable margin. It also achieved the best IoU on 7 out of 19 categories. The method showed particularly strong performance on long-tailed categories like "pole," "light," "train," and "motor," where other methods like ProDA struggled.
- SYNTHIA $\rightarrow$ Cityscapes: CPSL again achieved significant improvements, surpassing the second-best method by 1.8 and 2.4 mIoU for 16 and 13 categories, respectively. The performance was further boosted with knowledge distillation.
- Ablation Studies: The results of ablation studies confirmed the importance of each component: removing self-labeling (SL) dropped mIoU by 7.9, and disabling class balancing (CB) dropped it by 3.9, underscoring their critical roles.
Limitations and Future Work
- Reliance on Self-Training: The authors acknowledge that CPSL still relies on self-training for initial pseudo-labels, which can lead to confirmation bias.
- Future Work: They suggest developing a "fully clustering-based assignment method" that does not depend on initial self-training pseudo-labels as a promising direction for future research.
Summary updated