Abstract
Unsupervised Domain Adaptation (UDA) for semantic segmentation aims to bridge the gap between synthetic training data and real-world testing environments. Traditional class-wise adaptation methods often suffer from "noisy" gradients caused by incorrect pixel-level predictions, which blur class boundaries. We present SSF-DAN, a framework that utilizes a Semantic-wise Separable Discriminator (SS-D) to isolate features for each class using "hard" masks. Combined with a Class-wise Adversarial loss Reweighting (CA-R) module and a progressive confidence strategy, SSF-DAN ensures independent and balanced adaptation across all semantic categories. Our approach achieves state-of-the-art performance on major synthetic-to-real benchmarks, including GTA5 and Synthia to Cityscapes.
Introduction
Semantic segmentation is a critical task in computer vision, yet it requires extensive pixel-level annotations that are costly to produce. Synthetic datasets, such as GTA5 and Synthia, provide a scalable alternative for training, but the "domain gap" between synthetic and real-world imagery often leads to poor generalization.
Existing UDA methods attempt to align feature distributions between domains using adversarial learning. However, traditional global or "soft" class-wise adaptation often fails. When a model misclassifies a pixel (e.g., labeling a sidewalk as a road), the resulting gradients during adversarial training are "noisy." These incorrect signals are backpropagated to the generator, causing feature distributions to overlap and degrading the precision of classifier boundaries.
Methods
The SSF-DAN framework introduces three primary innovations to ensure clean, independent feature adaptation:
1. Semantic-wise Separable Discriminator (SS-D)
Unlike previous approaches that use overlapping soft weight maps, SS-D employs "hard" one-hot masks derived from the model's own predictions. These masks isolate features for each class, which are then processed through independent convolutional branches within the discriminator. This separation ensures that the adaptation process for one class (e.g., "Road") does not interfere with or pollute the features of another (e.g., "Sidewalk").
2. Progressive Confidence Strategy
To prevent the discriminator from learning from unreliable, low-confidence predictions, the authors implement a filtering mechanism. A hyperparameter $\rho$ acts as a confidence threshold that increases over the course of training. This allows the model to initially focus on the most certain pixels and gradually incorporate more complex regions as its predictive accuracy improves.
3. Class-wise Adversarial loss Reweighting (CA-R)
Standard adversarial losses treat all classes equally, which can lead to imbalanced adaptation where dominant classes (like "Sky") are well-aligned while rarer or more difficult classes are neglected. The CA-R module calculates the average confidence for each class and adaptively reweights the adversarial loss. By increasing the loss weight for "weakly adapted" classes, the generator is forced to prioritize alignment for categories with lower confidence.
Results and Discussion
SSF-DAN was evaluated on the GTA5-to-Cityscapes and Synthia-to-Cityscapes benchmarks. The model achieved an mIoU of 45.4 on GTA5-to-Cityscapes, outperforming established baselines such as AdaptSegNet (42.4) and CBST (45.2). On the Synthia-to-Cityscapes task (13 classes), it reached an mIoU of 50.0, representing a significant advancement over prior state-of-the-art methods.
Ablation studies confirmed the efficacy of the individual components. Specifically, replacing traditional global alignment with the SS-D module alone resulted in a 6.5% improvement in mIoU. This validates the core hypothesis that treating each class as an independent adaptation task is superior to joint global adaptation.
Conclusion
SSF-DAN demonstrates that independent feature adaptation is key to overcoming the limitations of traditional UDA in semantic segmentation. By using hard separation and dynamic loss reweighting, the model avoids the pitfalls of noisy gradient interference and achieves a more balanced alignment across all semantic classes. While the method shows limited capability in distinguishing extremely small or dense objects due to feature downsampling, it sets a new standard for synthetic-to-real domain adaptation.
Summary updated