Abstract
Deep learning models trained on source domains often lack generalization when evaluated on unseen target domains with different data distributions. This problem is particularly pronounced in domain generalized semantic segmentation, where target domain samples are unavailable during training. Existing approaches typically standardize data into a unified distribution using global normalization or whitening. However, while such standardization promotes global invariance, it often results in features that are not discriminative enough to maintain clear segmentation boundaries. This paper proposes a framework consisting of two novel modules: Semantic-Aware Normalization (SAN) and Semantic-Aware Whitening (SAW). SAN focuses on category-level center alignment between features from different image styles, while SAW enforces distributed alignment for center-aligned features. Together, these modules encourage intra-category compactness and inter-category separability, significantly improving performance on unseen domains.
Introduction: The Challenge of Domain Generalization
Semantic segmentation models are often "brittle," performing well on training data (e.g., sunny synthetic environments) but failing in real-world scenarios with different weather or geographic conditions. This "domain gap" is typically addressed via Domain Adaptation (DA), which requires target-domain data. Domain Generalization (DG) is a more challenging setting where the model must learn to be robust using only source data.
Traditional DG methods rely on Instance Normalization (IN) or Instance Whitening (IW) to strip away style-specific information. However, these are "blunt instruments" that operate globally across the entire image. By normalizing all pixels together, they inadvertently squash features from distinct semantic categories (e.g., "road" and "sidewalk") into the same feature space, leading to blurry boundaries and a loss of discriminative power.
Methodology: The Semantic-Aware Framework
To overcome the limitations of global alignment, the proposed framework introduces two "plug-and-play" modules designed to enhance category separation while maintaining domain invariance.
Semantic-Aware Normalization (SAN)
Instead of calculating a single mean and variance for an entire image, SAN performs normalization at the category level. Since ground-truth labels are unavailable at test time, SAN employs a multi-branch strategy. It uses a classifier to generate initial segmentation masks, which are then refined through a Category-level Feature Refinement (CFR) block and a Regional Normalization (RN) layer. This ensures that pixels belonging to the same category are aligned across different styles without being contaminated by statistics from other categories.
Semantic-Aware Whitening (SAW)
While standard whitening decorrelates all channels, SAW is more selective. It utilizes the weights from the segmentation classifier to identify and group channels that are highly relevant to specific categories. Whitening is then performed within these groups. This targeted approach removes correlations between different categories, making the feature space more separable and robust to style shifts without destroying useful content information.
Experimental Evaluation
The framework was evaluated using a "synthetic-to-real" pipeline, training on synthetic datasets (GTA5 and SYNTHIA) and testing on diverse real-world datasets including Cityscapes, Berkeley Deep Drive (BDDS), and Mapillary Vistas.
Key Results
- State-of-the-Art Performance: The method consistently outperformed existing SOTA techniques (e.g., IBN-Net, ISW) across various backbones. On the GTA5 to Cityscapes benchmark using a ResNet-50, the model achieved a 39.75% mIoU, a significant improvement over the 29.32% baseline.
- Competitive with Domain Adaptation: In several benchmarks, this DG approach performed comparably to, or even better than, established Domain Adaptation methods that had the advantage of seeing target data during training.
- Source Domain Preservation: Unlike many DG methods that suffer from "source domain decay," SAN and SAW maintain high accuracy on the original training data due to their focus on semantic consistency.
- Efficiency: The modules add negligible computational overhead, with inference times remaining nearly identical to baseline models (e.g., ~48.86ms vs ~48.84ms on ResNet-50).
Conclusion
By shifting from global to semantic-aware feature alignment, the proposed SAN and SAW modules effectively bridge the domain gap in semantic segmentation. This approach allows models to strip away domain-specific "style" while preserving critical "content," leading to robust generalization in unseen environments. Future work may explore meta-learning to further model domain shifts and the development of even more robust feature disentanglement techniques.
Summary updated