Towards Source-free Domain Adaptive Semantic Segmentation via Importance-aware and Prototype-contrast Learning

Yihong Cao, Hui Zhang, Xiao Lu, Zheng Xiao, Kailun Yang, Yaonan Wang

TL;DR

This paper introduces IAPC, a novel source-free domain adaptation method for semantic segmentation in autonomous driving. It tackles the challenge of adapting a pre-trained model to new driving environments without access to the original training data or target labels, achieving state-of-the-art results by intelligently leveraging domain-invariant and domain-specific knowledge.

What Problem Does This Paper Address?

Semantic segmentation is crucial for autonomous vehicles to understand their surroundings. However, models trained on one dataset (source domain) often perform poorly on data from different environments (target domain) due to domain shift. Traditional domain adaptation methods require access to both source and target data, which is often infeasible due to privacy concerns or massive storage requirements (e.g., GTA5 dataset is 57GB). Source-free domain adaptation (SFDA) aims to solve this by using only a pre-trained source model and unlabeled target data. Existing SFDA methods struggle to effectively leverage target data without labels, often relying on noisy pseudo-labels or limited prototype information. This paper addresses the critical need for robust SFDA that can effectively bridge the domain gap without compromising data privacy or requiring extensive storage.

Methods

The proposed Importance-Aware and Prototype-Contrast (IAPC) framework consists of two main components:

  1. Extracting Domain-Invariant Knowledge (EDIK): This component addresses the domain shift by analyzing the prediction probability distribution of the source model on target data. The authors observe that domain shift leads to biased predictions. They introduce an Importance-Aware (IA) mechanism that assigns an "importance map" to each pixel. This map highlights pixels where the source model is confident versus uncertain. This information is used to create an IA-based pseudo-label loss ($L_{IA}$) that effectively learns domain-invariant knowledge by down-weighting uncertain or noisy predictions. An Information Maximization Loss (LIM) is also used to encourage one-hot-like predictions, further enhancing prediction certainty.
  2. Learning Domain-Specific Knowledge (LDSK): To capture nuances of the target domain, IAPC employs a Prototype-Contrast (PC) strategy. This involves using a delayed-update memory model to estimate class prototypes. These prototypes act as anchors for learning domain-specific knowledge. The framework introduces two novel losses:
  3. Prototype-Symmetric Cross-Entropy Loss ($L_{PS}$): Promotes consistency between model predictions and prototype-based reference predictions at both instance and category levels.
  4. Prototype-Enhanced Cross-Entropy Loss ($L_{PE}$): Leverages prototype-based references to improve performance on challenging classes.

These components work together to adapt the source model to the target domain without needing source data or target labels.

Datasets

The proposed method is evaluated on two standard cross-domain semantic segmentation benchmarks:

  • GTA5 → Cityscapes: GTA5 is a synthetic dataset with 24,966 images, and Cityscapes is a real-world dataset with 2,975 training images and 500 validation images.
  • SYNTHIA → Cityscapes: SYNTHIA is another synthetic dataset, and the SYNTHIA-RAND-CITYSCAPES subset is used, containing 9,400 images.

The paper also briefly mentions applying the method to an object detection task on the Cityscapes → FoggyCityscapes dataset.

Key Insights and Ideas

  • Domain shift manifests as biased prediction probabilities: The core insight is that domain shift causes the source model to be less confident and exhibit biased predictions on target data. This bias is quantifiable and can be used to guide adaptation.
  • Pixel-wise importance maps are key to robust pseudo-labeling: Instead of treating all pixels equally, assigning an importance weight based on prediction confidence allows the model to focus on more reliable information and mitigate the impact of noisy pseudo-labels.
  • Dynamic prototypes are crucial for target-specific learning: Using prototypes derived from a delayed-update memory model and individual target images (rather than static or batch-averaged ones) allows the model to capture fine-grained details and adapt more effectively to the target domain's specific characteristics.
  • Combining invariant and specific knowledge is essential: The success of IAPC lies in its ability to simultaneously extract generalizable knowledge (EDIK) and learn domain-specific nuances (LDSK), addressing both the broad domain gap and the fine-grained details of the target environment.

Key Results

  • State-of-the-art performance: IAPC achieves state-of-the-art results on both GTA5 → Cityscapes (mIoU of 49.4) and SYNTHIA → Cityscapes benchmarks, outperforming existing SFDA methods.
  • Significant improvement over "Source Only": The method improves performance by 35% over using the source model directly on target data.
  • Competitive with source-accessible UDA: IAPC achieves excellent results even without access to source data, often surpassing methods that do have access.
  • Effective component contributions: Ablation studies show that both the Importance-Aware mechanism (EDIK) and the Prototype-Contrast strategy (LDSK) are crucial for achieving the best performance. For instance, EDIК improves mIoU by 31.2% over "Source Only."
  • Robustness to hyperparameter changes: The proposed framework is generally not sensitive to the weights of its components, indicating good stability.
  • Object Detection Generalizability: The method also shows promise in SFDA for object detection, achieving competitive results.

Limitations and Future Work

  • Failure Cases: The paper acknowledges failure cases, such as misclassifying large cars as trucks due to similar shapes or struggling with low-light conditions and complex scenes where object boundaries are unclear. These issues are often related to class confusion and subtle visual cues.
  • Future Directions: The authors propose extending their work to panoramic semantic segmentation for 360° perception in intelligent vehicles. They also plan to investigate the method's potential in other vision tasks like panoptic segmentation and 3D scene understanding.

Summary updated

BibTeX
@article{cao2023towards,
  author = {Yihong Cao and Hui Zhang and Xiao Lu and Zheng Xiao and Kailun Yang and Yaonan Wang},
  title = {{Towards Source-free Domain Adaptive Semantic Segmentation via Importance-aware and Prototype-contrast Learning}},
  journal = {IEEE Trans. Intell. Veh.},
  year = {2023},
  url = {https://openreview.net/forum?id=2qs59ZPFk_},
}
Figure