WildNet: Learning Domain Generalized Semantic Segmentation from the Wild

Suhyeon Lee, Hongje Seong, Seongwon Lee, Euntai Kim

Abstract

Domain generalization (DG) remains a critical challenge in semantic segmentation, where models trained on synthetic or specific source domains often fail to generalize to diverse real-world environments. Traditional approaches have focused on "style-whitening"—removing domain-specific textures—which frequently results in the loss of essential semantic content. This paper introduces WildNet, a framework that shifts the focus from style removal to style and content diversification. By leveraging unlabeled images from the "wild" (ImageNet), WildNet extends the source domain's variety, enabling the model to learn representations that are robust to both stylistic shifts and variations in object appearance. WildNet achieves state-of-the-art performance on multiple benchmarks, including a significant improvement in the synthetic-to-real transition.

Introduction

Deep learning models for semantic segmentation are notoriously sensitive to the "domain gap." A model trained on synthetic data, such as the GTAV dataset, typically experiences a sharp decline in performance when deployed on real-world streets (e.g., Cityscapes). This performance drop is attributed to overfitting the specific textures, lighting conditions, and object shapes present in the training set.

Existing research in Domain Generalization (DG) has largely focused on normalizing or removing style information. However, these methods often inadvertently strip away the "content"—the structural information necessary for accurate pixel-level labeling. Furthermore, models do not just overfit to style; they overfit to the limited variety of content within the source dataset. WildNet addresses these issues by actively diversifying the training data using the vast, unlabeled variety found in ImageNet.

Methodology

WildNet introduces four synergistic modules designed to bridge the domain gap by extending the source domain with "wild" features:

1. Feature Stylization (FS)

Using Adaptive Instance Normalization (AdaIN), WildNet swaps the style statistics (mean and variance) of source features with those extracted from unlabeled images in the wild. This process generates augmented features that preserve the original source structure but adopt a completely different, "wild" appearance, forcing the model to become invariant to stylistic changes.

2. Content Extension Learning (CEL)

To prevent the model from overfitting to specific object shapes or variations, WildNet employs a contrastive learning approach. It maintains a dictionary of features from the wild and encourages source features to move closer to their nearest wild neighbors in the embedding space. This increases intra-class variety, teaching the model that a single class (e.g., "road") can encompass a wide range of visual representations.

3. Style Extension Learning (SEL)

SEL ensures that the classifier remains robust even when the underlying features are heavily stylized. The model is explicitly trained to predict the original source labels from the features transformed by the FS module, ensuring that the semantic mapping remains stable across diverse styles.

4. Semantic Consistency Regularization (SCR)

Using Kullback-Leibler (KL) divergence, this module enforces consistency between the probability distributions produced for a single pixel, whether the model is processing the original source feature or its "wild-extended" counterpart. This regularization stabilizes the learning process and ensures that the diversification does not lead to semantic drift.

Experimental Results

WildNet was evaluated on its ability to generalize from synthetic (GTAV) to real-world (Cityscapes, BDD100K, Mapillary) and real-to-real domains.

Quantitative Performance

WildNet established a new state-of-the-art (SOTA) on the GTAV → Cityscapes benchmark. Using a ResNet-50 backbone, WildNet achieved 44.62% mIoU, significantly outperforming the previous SOTA, RobustNet (36.58%), and the baseline (35.16%). Across an average of five different validation sets, WildNet maintained a superior mIoU of 46.33%.

Qualitative Analysis

Visual results demonstrate that WildNet is significantly more effective at preserving thin structures, such as poles and traffic signs, which are often lost in style-whitening methods. Additionally, the model shows improved robustness in identifying road boundaries under challenging conditions, such as night scenes or rainy weather, where traditional models often fail.

Discussion and Future Work

The success of WildNet highlights a shift in DG strategy: rather than trying to ignore style, models should be exposed to as much variety as possible. ImageNet, despite being a classification dataset, serves as a powerful regularizer for segmentation by providing a near-infinite source of texture and shape variations.

However, a primary limitation remains "Semantic Mismatch." Because the wild data is unlabeled, a source pixel (e.g., a "rider") might occasionally be matched to a wild feature that is visually similar but semantically distinct (e.g., a "person with a hat"). Future research will focus on developing more sophisticated selection strategies, such as using predicted class probabilities to filter wild samples and incorporating negative content extension to further enhance class discrimination.

Summary updated

BibTeX
@inproceedings{lee2022wildnet,
  author = {Suhyeon Lee and Hongje Seong and Seongwon Lee and Euntai Kim},
  title = {{WildNet: Learning Domain Generalized Semantic Segmentation from the Wild}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure