Abstract
Domain Generalization in Semantic Segmentation (DG-SS) aims to enable segmentation models to perform robustly in unseen environments. However, conventional DG-SS methods are restricted to a fixed set of known categories, limiting their applicability in open-world scenarios. Recent progress in Vision-Language Models (VLMs) has advanced Open-Vocabulary Semantic Segmentation (OV-SS) by enabling models to recognize a broader range of concepts. Yet, these models remain sensitive to domain shifts and struggle to maintain robustness when deployed in unseen environments, a challenge that is particularly severe in urban-driving scenarios. To bridge this gap, we introduce Open-Vocabulary Domain Generalization in Semantic Segmentation (OVDG-SS), a new setting that jointly addresses unseen domains and unseen categories. We introduce the first benchmark for OVDG-SS in autonomous driving, addressing a previously unexplored problem and covering both synthetic-to-real and real-to-real generalization across diverse unseen domains and unseen categories. In OVDG-SS, we observe that domain shifts often distort text-image correlations in pre-trained VLMs, which hinders the performance of OV-SS models. To tackle this challenge, we propose $S^2$-Corr, a state-space-driven text-image correlation refinement mechanism that mitigates domain-induced distortions and produces more consistent text-image correlations under distribution changes. Extensive experiments on our constructed benchmark demonstrate that the proposed method achieves superior cross-domain performance and efficiency compared to existing OV-SS approaches.
Introduction: The Challenge of the Open World
Semantic segmentation—the task of assigning a class label to every pixel in an image—is a cornerstone of autonomous driving. However, real-world deployment presents two significant hurdles that are typically studied in isolation. First, Domain Shifts occur when the environment changes, such as moving from sunny training data to snowy or nighttime scenarios. Domain Generalization (DG-SS) addresses this but is limited to a fixed, pre-defined set of object categories. Second, Novel Objects appear that were not in the training set, such as construction debris or rare animals. Open-Vocabulary Segmentation (OV-SS) leverages Vision-Language Models (VLMs) like CLIP to recognize these via text descriptions, but these models are notoriously fragile under domain shifts.
This paper identifies a critical gap: safe autonomous driving requires handling both unseen domains and unseen categories simultaneously. We introduce Open-Vocabulary Domain Generalization (OVDG-SS) to bridge this gap. In this setting, domain shifts distort the initial text-image correlations produced by VLMs. Standard OV-SS models use attention mechanisms to refine these correlations, but this causes noise from a few corrupted pixels (e.g., due to rain or glare) to propagate across the entire image, degrading segmentation quality.
Methodology: $S^2$-Corr
To address noise propagation, we propose $S^2$-Corr, a module that replaces standard cross-attention with a selective State-Space Model (SSM). Unlike attention, which mixes all pixels globally, an SSM processes data sequentially. It incorporates a "decay gate" that can dynamically "forget" unreliable, noisy information before it propagates to subsequent steps.
$S^2$-Corr includes three key innovations:
- Modulation Before Aggregation: It injects specific image and text cues (e.g., "a photo of a car in the rain") to guide the correlation process.
- Learnable Geometric Decay Prior: This mechanism actively suppresses long-range noise during sequential processing, preventing corrupted data from traveling across the image.
- Chunk-wise Snake Scanning: To preserve local spatial relationships, the image is divided into chunks and scanned in a snake-like pattern, avoiding the spatial discontinuities of traditional row-by-row scanning.
The OVDG-SS Benchmark
As OVDG-SS is a new problem setting, we established the first comprehensive benchmark for urban driving:
- Training: Models are trained on Cityscapes (7 classes) or GTA-5 synthetic data.
- Testing (Dv-19 & Dv-58): Evaluation spans ACDC (extreme weather), BDD-100K (diverse lighting), and Mapillary Vistas (global scenes). The Dv-58 benchmark includes 58 classes, with some datasets synthetically augmented using Stable Diffusion to include open-world objects like animals and debris.
Results and Discussion
Our experiments reveal that attention is a liability under domain shift because it lacks the ability to filter localized noise. In contrast, the SSM-based $S^2$-Corr acts as a dynamic noise filter.
Key results include:
- Superior Accuracy: On the Real-to-Real setting (ViT-B/16), $S^2$-Corr achieved 50.3% mIoU on Dv-19 and 47.9% on Dv-58, significantly outperforming existing OV-SS methods.
- Efficiency: SSMs scale linearly with vocabulary size. While competitors' frame rates plummeted with larger vocabularies, $S^2$-Corr maintained 18.3 FPS for 150 classes.
- Resource Savings: The model requires significantly less GPU memory (9.2 GB vs. 13.8 GB for competitors) and offers faster training times.
- Anomaly Detection: By expanding the vocabulary to include random concepts, $S^2$-Corr effectively performs Out-of-Distribution (OOD) detection, outperforming specialized OOD models without requiring specific anomaly training data.
Conclusion
We have introduced OVDG-SS, a vital new setting for robust autonomous driving. By replacing attention with a state-space-driven correlation refinement mechanism ($S^2$-Corr), we mitigate the impact of domain-induced noise. While $S^2$-Corr currently acts as a refinement module, future work will explore making the underlying VLM features inherently more resistant to domain shifts and expanding the benchmark to include even more diverse safety-critical categories.
Summary updated