Open-Set Domain Adaptation for Semantic Segmentation

Jinwoo Choi, Seun-An Choe, Ahyung Shin, Keon-Hee Park, Gyeong-Moon ParkOpenReview 2024

Abstract

Unsupervised domain adaptation (UDA) for semantic segmentation aims to transfer pixel-wise knowledge from a labeled source domain to an unlabeled target domain. However, standard UDA assumes a shared label space, failing when novel categories appear in the target domain. We introduce Open-Set Domain Adaptation for Semantic Segmentation (OSDA-SS), where the target domain includes unknown classes. We identify two core challenges: boundary confusion and shape inconsistency for unknown classes. To address these, we propose BUS (Boundary and Unknown Shape-Aware), which utilizes a novel dilation-erosion-based contrastive loss (DECON Loss) to sharpen boundaries and OpenReMix, a domain-mixing augmentation strategy to learn size-invariant features. BUS significantly outperforms existing methods on synthetic-to-real benchmarks, achieving substantial gains in the H-Score metric.

Introduction

Most Unsupervised Domain Adaptation (UDA) research operates under a "closed-set" assumption, where the source and target domains share identical categories. In real-world applications, such as autonomous driving, a model trained on synthetic data (e.g., GTA5) may encounter objects in the real world (e.g., Cityscapes) that were never seen during training, such as specific types of trucks or trailers. Standard UDA models often misclassify these "unknown" objects as known classes (e.g., labeling a truck as a car or road), leading to safety risks.

This paper formalizes the Open-Set Domain Adaptation for Semantic Segmentation (OSDA-SS) task. The authors identify two primary technical hurdles:

  1. Boundary Confusion: Difficulty in delineating the exact transition between known and unknown classes.
  2. Shape Inconsistency: Failure to maintain the structural integrity of unknown objects, resulting in fragmented predictions.

The BUS Framework

The proposed BUS framework addresses these issues through two main components integrated into a "head-expansion" architecture that includes a dedicated class for unknown objects.

The BUS framework overview, illustrating OpenReMix, DECON Loss, and the pseudo-label generation process.

1. DECON Loss (Dilation-Erosion-based CONtrastive Loss)

To improve boundary detection, the authors employ morphological operations on predicted "unknown" masks. By applying dilation and erosion, they segment the predicted unknown region into three parts:

  • Boundary pixels: Identified by subtracting the original mask from the dilated version. These are likely known classes near the edge.
  • Confident pixels: Identified via erosion, representing the core of the unknown object.
  • Contrastive Learning: The DECON loss pushes the feature representations of boundary pixels away from confident unknown pixels, forcing the model to learn sharp, distinct boundaries.

2. OpenReMix

OpenReMix is a two-pronged data augmentation strategy:

  • Resizing Object: "Thing" classes from the source domain are randomly resized and pasted into target images. This encourages the model to learn features that are invariant to the physical scale of objects, improving holistic shape recognition.
  • Attaching Private: Regions identified as "unknown" in the target domain are pasted into source images. This allows the model to train its "unknown" classification head using supervised loss on mixed images, bridging the gap between domains.

Experimental Results

The BUS framework was evaluated on two major synthetic-to-real benchmarks: GTA5 → Cityscapes and SYNTHIA → Cityscapes. To simulate the open-set scenario, certain classes (e.g., trucks, riders, poles) were removed from the source data and treated as "unknowns" in the target.

Performance Metrics

The authors utilize the H-Score, the harmonic mean of known class accuracy and unknown class accuracy. This metric ensures that a model cannot achieve a high score by simply ignoring the unknown classes.

Benchmark Method H-Score Improvement
GTA5 → Cityscapes DAFormer (Baseline) 23.36 -
GTA5 → Cityscapes BUS (Ours) 62.81 +39.45
SYNTHIA → Cityscapes HRDA (Baseline) 20.82 -
SYNTHIA → Cityscapes BUS (Ours) 44.01 +23.19

Qualitative Analysis

Visual inspections confirm that BUS produces much cleaner object silhouettes compared to previous methods. While baselines often produce "speckled" or "leaky" predictions—where parts of an unknown object are mislabeled as road or car—BUS maintains the integrity of the unknown object's shape and boundary.

A qualitative example of the segmentation output, showing the model's ability to identify clear silhouettes of objects.

Conclusion

BUS introduces a robust approach to Open-Set Domain Adaptation for Semantic Segmentation. By leveraging morphological operations for contrastive learning and size-invariant data augmentation, it effectively overcomes the challenges of boundary confusion and shape inconsistency. While the method relies on the quality of initial pseudo-labels, its significant performance gains mark a major step toward deploying semantic segmentation models in unpredictable real-world environments.

Summary updated

BibTeX
@misc{choi2024open,
  author = {Jinwoo Choi and Seun-An Choe and Ahyung Shin and Keon-Hee Park and Gyeong-Moon Park},
  title = {{Open-Set Domain Adaptation for Semantic Segmentation}},
  year = {2024},
  eprint = {2405.19899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.19899},
  howpublished = {OpenReview},
}
Figure