Abstract
Semantic segmentation is a critical component of autonomous driving systems, yet its performance significantly degrades under adverse weather conditions like rain, snow, or fog. While Source-Free Domain Adaptation (SFDA) offers a way to adapt models without access to original training data, traditional methods often rely on condition-invariant features that can lead to the loss of high-quality semantic information. We introduce FREST (Feature RESToration), a novel framework that restores features from adverse conditions back to a clear-weather state. By utilizing a parameter-efficient "Condition Strainer" and a two-step alternating training process, FREST achieves state-of-the-art results on major benchmarks, including a 70.7% mIoU on the ACDC dataset, without adding any computational overhead during inference.
Introduction
Robust semantic segmentation is essential for safe autonomous navigation. However, models trained on clear-weather datasets (the "source") frequently fail when deployed in "target" environments with adverse weather. While Unsupervised Domain Adaptation (UDA) is a common solution, Source-Free Domain Adaptation (SFDA) is increasingly preferred due to data privacy and storage constraints.
Existing SFDA approaches typically attempt to learn condition-invariant features—essentially training the model to ignore weather. However, this often results in "catastrophic forgetting," where the model loses the sharp, discriminative features learned from the clear-weather source data. Furthermore, these methods often require perfectly aligned image pairs, which are difficult to obtain in real-world scenarios.
The FREST Framework: Feature Restoration
FREST shifts the paradigm from feature invariance to feature restoration. Instead of teaching the model to ignore adverse conditions, FREST learns to map features from degraded images back into a "normal" clear-weather embedding space. This approach preserves the high-quality semantic knowledge of the original source-trained model.
Methodology
The framework employs a two-step alternating training process:
- Learning the Condition Embedding Space: A "Condition Strainer"—a small, parameter-efficient module—is attached to a frozen encoder. Using contrastive learning, this module isolates condition-specific information (e.g., fog or rain) from semantic content. This creates an embedding space where images with similar weather conditions are clustered.
- Restoring Features: The segmentation network is then trained to "restore" these features. It learns to shift the features of an adverse image in the embedding space to match the position of a corresponding normal-condition reference image.
Crucially, the Condition Strainer is only utilized during the training phase. The final inference model remains a standard encoder-decoder architecture, ensuring zero additional computational cost during deployment.
Experimental Results
FREST was evaluated against several rigorous benchmarks, including ACDC (fog, rain, snow, night) and RobotCar.
- State-of-the-Art Performance: On the ACDC benchmark, FREST achieved 70.7% mIoU, surpassing the previous leading method (CMA) by 1.6%.
- Robust Generalization: On the RobotCar dataset, FREST demonstrated superior performance with a 58.8% mIoU, a 4.5% improvement over existing methods.
- Zero Inference Overhead: The model maintains standard efficiency, as the restoration logic is baked into the main weights during training.
- Qualitative Improvements: Internal feature visualizations show the model effectively "correcting" its internal representations—for instance, treating night skies as clear day skies to improve segmentation accuracy.
Conclusion
FREST demonstrates that restoring features to a known "good" state is a more effective strategy for SFDA than seeking condition invariance. By isolating weather-specific information through a Condition Strainer, the model adapts to diverse adverse environments without losing its original semantic precision. Future work will focus on extending this restoration capability to handle hardware-level artifacts such as motion blur and lens flares.
Summary updated