Abstract
Adaptation of semantic segmentation networks to different visual conditions from those for which ground-truth annotations are available at training is vital for robust perception in autonomous cars and robots. However, previous work has shown that most feature-level adaptation methods, which employ adversarial training and are validated on synthetic-to-real adaptation, provide marginal gains in normal-to-adverse condition-level adaptation, being outperformed by simple pixel-level adaptation via stylization. Motivated by these findings, we propose to leverage stylization in performing feature-level adaptation by aligning the deep features extracted by the encoder of the network from the original and the stylized view of each input image with a novel feature invariance loss. In this way, we encourage the encoder to extract features that are invariant to the style of the input, allowing the decoder to focus on parsing these features and not on further abstracting from the specific style of the input. We implement our method, named Condition-Invariant Semantic Segmentation (CISS), on the top-performing domain adaptation architecture and demonstrate a significant improvement over previous state-of-the-art methods both on Cityscapes $\to$ ACDC and Cityscapes $\to$ Dark Zurich adaptation. In particular, CISS is ranked first among all published unsupervised domain adaptation methods on the public ACDC leaderboard. Our method is also shown to generalize well to domains unseen during training, outperforming competing domain adaptation approaches on BDD100K-night and Nighttime Driving.
Introduction
Semantic segmentation—the task of labeling every pixel in an image with its corresponding class (e.g., "road," "pedestrian," "car")—is critical for autonomous systems. However, these models are typically trained on "normal" datasets featuring clear, daytime conditions and often fail when deployed in adverse environments like heavy rain, fog, or nighttime.
The standard solution is Unsupervised Domain Adaptation (UDA), which attempts to adapt a model trained on a labeled "source" domain (daytime) to an unlabeled "target" domain (nighttime or weather-affected). Most existing methods rely on adversarial training, where a discriminator tries to distinguish between features from the source and target. However, this approach is often flawed for condition-level shifts because the source and target images depict entirely different scenes, making it difficult for the model to disentangle the domain shift (lighting/weather) from the actual scene content.
Methodology
The core innovation of Condition-Invariant Semantic Segmentation (CISS) is the Feature Invariance Loss ($L_{inv}$). Instead of comparing features from different scenes, CISS uses light-weight stylization to compare the same scene in two different visual styles.
The CISS Pipeline
- Stylization: During training, the model takes a source image (day) and stylizes it to look like the target (night) using Fourier Domain Adaptation (FDA). Conversely, target images are stylized to look like the source.
- Internal Feature Alignment: The model passes both the original and stylized versions of the same image through a shared encoder.
- Invariance Loss: A squared Frobenius norm penalizes differences between the internal feature maps produced by the encoder for the two versions of the scene. This forces the encoder to extract "condition-invariant" features.
- Architecture: CISS is implemented on top of Hierarchical Robust Domain Adaptation (HRDA), a state-of-the-art architecture for high-resolution segmentation.
By enforcing consistency at the internal feature level rather than just the final output, CISS allows the encoder to handle the heavy lifting of abstraction, leaving the decoder to focus purely on semantic parsing regardless of the weather or time of day.
Experimental Results
The authors evaluated CISS on several rigorous benchmarks, including Cityscapes (source), Dark Zurich (nighttime target), and ACDC (adverse conditions including fog, rain, and snow).
Performance Benchmarks
- State-of-the-Art on Dark Zurich: CISS achieved a 60.7% mIoU (mean Intersection over Union) on the Cityscapes $\to$ Dark Zurich benchmark, a 4.8% improvement over the HRDA baseline.
- ACDC Leaderboard: The method secured the #1 spot on the rain split and the second-best overall performance on the ACDC benchmark among published unsupervised methods.
- Zero-Shot Generalization: When tested on the unseen BDD100K-night dataset, CISS outperformed competitors with a 41.8% mIoU, suggesting it learns general features of "nightness" rather than overfitting to specific training data.
Discussion and Limitations
While CISS significantly advances the state-of-the-art, challenges remain. Like most UDA methods, it struggles with "long-tail" classes that appear rarely in adverse conditions, such as trucks or trains. Additionally, in nighttime scenes, sky and vegetation often appear as near-black voids; CISS is occasionally outperformed in these specific regions by methods that use "cross-time" correspondences (exact street matches at day and night) which provide stronger structural priors.
Conclusion
CISS demonstrates that enforcing feature-level invariance through stylization is a powerful strategy for condition-level domain adaptation. By factoring out scene content and targeting the domain shift with surgical precision, CISS enables more robust perception for autonomous vehicles operating in the real world's unpredictable weather and lighting.
Summary updated