Exploring Semantic Consistency and Style Diversity for Domain Generalized Semantic Segmentation

Hongwei Niu, Linhuang Xie, Jianghang Lin, Shengchuan Zhang

Abstract

Domain Generalized Semantic Segmentation (DGSS) is a critical challenge in computer vision, particularly for autonomous driving applications where models must generalize from synthetic training data to diverse, unseen real-world environments. Current approaches often struggle with "semantic confusion" during feature normalization or produce uncontrollable results through domain randomization. We present the SCSD (Semantic Consistency and Style Diversity) framework, which leverages the inherent alignment of Vision-Language Models (VLMs) like CLIP. By using text prompts to anchor semantic meaning and drive controllable style variations, SCSD achieves a significant +4.08 mIoU improvement over state-of-the-art methods when generalizing to diverse real-world domains.

The Challenge of Domain Generalization

The primary goal of DGSS is to train a model on a limited "source" domain (often synthetic data like GTA V) such that it maintains high performance on "target" domains it has never encountered, such as different cities, varying weather conditions, or night-time scenes.

Existing methodologies typically fall into two categories, both with significant drawbacks:

  1. Feature Normalization: These methods attempt to remove domain-specific styles. However, they frequently "wash out" essential semantic content, leading to semantic confusion where distinct objects (e.g., a building and a truck) are mapped too closely in the feature space.
  2. Domain Randomization: These methods generate synthetic new domains for training, but the resulting transformations are often noisy and lack the control necessary for consistent semantic grounding.
Figure 4: Illustration of semantic confusion in feature normalization methods, where feature distributions overlap and lead to segmentation errors.

The SCSD Framework

The authors propose that robust generalization requires maintaining consistent semantics ("what" is in the image) while maximizing style diversity ("how" it looks). The SCSD framework introduces three core components to achieve this balance:

1. Semantic Query Booster (SQB)

SQB utilizes CLIP’s text embeddings as a "universal anchor." Because the linguistic concept of a "car" remains stable across both synthetic games and snowy real-world streets, SQB uses these domain-irrelevant text features to guide the object queries in the mask decoder. This ensures the model identifies objects based on their core semantic identity rather than transient appearance.

2. Text-Driven Style Transform (TDST)

Rather than relying on random noise, TDST uses specific text prompts (e.g., "in snow," "at night") to guide style augmentations. This process occurs in the Fourier domain, where the module manipulates the amplitude spectrum (encoding style/lighting) while preserving the phase spectrum (encoding shape/content). This allows for precise, controllable style variations.

3. Style Synergy Optimization (SSO)

To prevent "domain collapse," SSO employs a dual-loss mechanism. A Style Contrastive Loss pushes different styles apart in the feature space, while a Style Aggregation Loss pulls similar intra-domain features together. This dynamic balancing ensures the model learns to distinguish between styles without losing the ability to generalize within them.

Figure 2: Overview of the SCSD framework, illustrating the bridge between source and target domains through semantic consistency and style diversity.

Experimental Results

The researchers evaluated SCSD using a rigorous synthetic-to-real pipeline, training on GTAV and SYNTHIA and testing on unseen real-world datasets including Cityscapes, BDD-100K, Mapillary Vistas, and ACDC.

  • State-of-the-Art Performance: When trained on GTAV, SCSD achieved an average of 49.11 mIoU across four unseen domains, outperforming the previous leader (FAMix) by +4.08 mIoU.
  • Robustness in Adverse Conditions: The model showed exceptional gains on the ACDC dataset, which focuses on extreme weather. Specifically, it improved performance in Snow (+4.28 mIoU) and Rain (+4.11 mIoU) compared to existing methods.
  • Qualitative Improvements: t-SNE visualizations confirm that SCSD produces cleaner feature clusters, effectively mitigating the semantic confusion that plagues traditional normalization techniques.

Conclusion and Future Work

SCSD demonstrates that grounding vision models in language provides a stable bridge across domain gaps. By surgically altering image styles in the Fourier domain while anchoring semantics with CLIP, the framework achieves unprecedented robustness. Future research may focus on automated prompt engineering to cover a wider array of niche environmental conditions and optimizing the computational overhead of Fourier transforms for real-time inference on autonomous vehicle hardware.

Summary updated

BibTeX
@inproceedings{niu2025exploring,
  author = {Hongwei Niu and Linhuang Xie and Jianghang Lin and Shengchuan Zhang},
  title = {{Exploring Semantic Consistency and Style Diversity for Domain Generalized Semantic Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i6.32668},
}
Figure