Introduction
Deep neural networks often struggle when deployed in environments different from their training data, a challenge known as Domain Generalization (DG). For instance, a model trained on clear-day driving footage may fail in rainy conditions. This paper introduces Domain Shifts with Uncertainty (DSU), a "plug-and-play" method that enhances robustness by treating feature statistics—specifically mean and standard deviation—as probabilistic distributions rather than deterministic values.
Methodology: Domain Shifts with Uncertainty
The core insight of DSU is that feature statistics act as carriers for domain-specific styles (e.g., lighting, texture). Standard models often overfit these statistics, leading to poor generalization. DSU addresses this through two primary mechanisms:
Training-time DSU
Instead of using fixed values for the mean ($\mu$) and standard deviation ($\sigma$) of feature maps, DSU models them as random variables following a multivariate Gaussian distribution.
- Uncertainty Estimation: The variance of statistics within a mini-batch is used to estimate potential shifts across domains.
- Probabilistic Sampling: During training, the model samples "synthetic" statistics from these estimated distributions. This process functions as a form of feature-space data augmentation, encouraging the network to prioritize content over stylistic noise.
Inference-time Adaptation (DSU++)
To handle unforeseeable test-time domains, the authors propose DSU++. This module monitors test samples; if a sample's feature statistics deviate significantly from the training distribution, they are adaptively calibrated back toward the training range. This ensures the model remains within its reliable operating regime even under extreme shifts.
Experimental Results
The authors evaluated DSU across several computer vision benchmarks, including multi-domain classification (PACS), semantic segmentation (GTA5/Synthia to Cityscapes), and animal pose estimation (AP-10K).
Performance on PACS
On the PACS dataset (Art, Cartoon, Photo, Sketch), DSU++ achieved a state-of-the-art average accuracy of 85.2%. It showed particular strength in the challenging "Sketch" domain, outperforming previous methods like MixStyle and EFDM.
Efficiency and Generalization
Beyond classification, DSU improved mIOU in synthetic-to-real semantic segmentation by 6.6%. Remarkably, these gains come with minimal computational cost: training time increases by only ~6%, and inference time by ~1%, with virtually no additional parameters.
Conclusion and Insights
DSU represents a shift from deterministic feature representation to probabilistic modeling. By accounting for the "unknown unknowns" of domain shifts through mini-batch variance proxies, the method provides an implicit regularization that forces the learning of domain-invariant features. While it relies on certain hyperparameters and a Gaussian assumption, its simplicity and effectiveness make it a powerful tool for building robust AI systems.
Summary updated