Abstract
Feature alignment between domains is one of the mainstream methods for Unsupervised Domain Adaptation (UDA) semantic segmentation. Existing feature alignment methods for semantic segmentation learn domain-invariant features by adversarial training to reduce domain discrepancy, but they have two limits: 1) associations among pixels are not maintained, 2) the classifier trained on the source domain couldn't adapted well to the target. In this paper, we propose a new UDA semantic segmentation approach based on domain closeness assumption to alleviate the above problems. Specifically, a prototype clustering strategy is applied to cluster pixels with the same semantic, which will better maintain associations among target domain pixels during the feature alignment. After clustering, to make the classifier more adaptive, a normalized cut loss based on the affinity graph of the target domain is utilized, which will make the decision boundary target-specific. Sufficient experiments conducted on GTA5 $\rightarrow$ Cityscapes and SYNTHIA $\rightarrow$ Cityscapes proved the effectiveness of our method, which illustrated that our results achieved the new state-of-the-art.
Introduction
Deep learning models for semantic segmentation typically require vast amounts of pixel-level annotations. To mitigate the cost of manual labeling, researchers often leverage synthetic data (the source domain) where labels are automatically generated. However, models trained on synthetic data frequently suffer from performance degradation when applied to real-world images (the target domain) due to the domain gap—differences in lighting, textures, and scene layouts.
Unsupervised Domain Adaptation (UDA) aims to bridge this gap by aligning features between the source and target domains. Traditional alignment methods often focus on global distribution matching, which can inadvertently destroy the local structural associations among pixels of the same class in the target domain. Furthermore, these methods often rely on a rigid classifier trained solely on the source domain, which may not generalize well to the target domain's complex feature space.
As shown in Figure 1, existing methods often result in mixed features near the decision boundary because they ignore local structure. The proposed method addresses this by explicitly clustering target features and adapting the classifier to be target-specific, resulting in cleaner separation.
Proposed Methodology
The proposed framework is built upon the domain closeness assumption, which suggests that data in both domains naturally form tight clusters corresponding to semantic classes. The architecture consists of three core components designed to maintain structural integrity and improve classifier adaptability.
1. Target Domain Feature Clustering
Instead of aligning individual pixels in isolation, the model identifies semantic "prototypes" for each class in the target domain using pseudo-labels. A clustering loss is then applied to pull target features toward their respective prototypes, ensuring that features of the same class remain tightly grouped and distinct from other classes during the adaptation process.
2. Contrastive Cluster Alignment
Once target features are clustered, the model aligns these clusters with the corresponding source domain clusters. Rather than enforcing a strict distance minimization that might scramble features, a contrastive loss is employed. This loss minimizes the distance between same-class clusters across domains while actively pushing different-class clusters apart, preserving the discriminative power of the feature space.
3. Classifier Adaptation via Normalized Cut
To overcome the limitations of a static source-trained classifier, the authors introduce a normalized cut loss based on a feature affinity graph of the target domain. This component encourages the network to assign identical labels to highly similar features, effectively pushing the decision boundaries into low-density regions of the target feature space. This makes the classifier dynamic and adaptive to the specific distribution of the target domain.
Experimental Results
The method was evaluated on two prominent synthetic-to-real benchmarks: GTA5 $\rightarrow$ Cityscapes and SYNTHIA $\rightarrow$ Cityscapes.
- GTA5 $\rightarrow$ Cityscapes: The proposed feature alignment method achieved 47.7% mIoU, surpassing previous state-of-the-art methods like FADA (46.9%). Integrating a self-training strategy further boosted performance to 51.7% mIoU.
- SYNTHIA $\rightarrow$ Cityscapes: The method reached 50.3% mIoU (on 13 classes) with feature alignment alone, and a significant 57.3% mIoU when combined with self-training, setting a new benchmark for multi-strategy UDA.
Ablation studies and t-SNE visualizations confirm that the clustering and normalized cut losses lead to significantly tighter and more separable feature clusters compared to baseline alignment techniques.
Conclusion
This paper presents a novel approach to UDA for semantic segmentation that prioritizes structural preservation and classifier adaptability. By moving beyond simple distribution alignment to a cluster-based contrastive framework, the method effectively maintains intra-class associations and produces target-specific decision boundaries. While performance is sensitive to the weighting of the clustering loss, the results demonstrate that maintaining local structure is a critical component for successful domain adaptation in complex visual tasks.
Summary updated