[Paper Review] Uncertainty Modeling for Out-of-Distribution Generalization
Introduces DSU, a probabilistic approach that models domain shifts by treating feature statistics as uncertain distributions, improving generalization across vision tasks without extra parameters.
Though remarkable progress has been achieved in various vision tasks, deep neural networks still suffer obvious performance degradation when tested in out-of-distribution scenarios. We argue that the feature statistics (mean and standard deviation), which carry the domain characteristics of the training data, can be properly manipulated to improve the generalization ability of deep learning models. Common methods often consider the feature statistics as deterministic values measured from the learned features and do not explicitly consider the uncertain statistics discrepancy caused by potential domain shifts during testing. In this paper, we improve the network generalization ability by modeling the uncertainty of domain shifts with synthesized feature statistics during training. Specifically, we hypothesize that the feature statistic, after considering the potential uncertainties, follows a multivariate Gaussian distribution. Hence, each feature statistic is no longer a deterministic value, but a probabilistic point with diverse distribution possibilities. With the uncertain feature statistics, the models can be trained to alleviate the domain perturbations and achieve better robustness against potential domain shifts. Our method can be readily integrated into networks without additional parameters. Extensive experiments demonstrate that our proposed method consistently improves the network generalization ability on multiple vision tasks, including image classification, semantic segmentation, and instance retrieval. The code can be available at https://github.com/lixiaotong97/DSU.
Motivation & Objective
- Motivate robustness to unseen domain shifts by exploiting uncertain feature statistics.
- Propose a probabilistic formulation where feature mean and variance are modeled as Gaussian distributions.
- Enable training-time augmentation with sampled feature statistics to simulate diverse domain shifts.
- Maintain a parameter-free integration that can be inserted into existing networks.
- Demonstrate improved generalization across multiple vision tasks.
Proposed method
- Model feature statistics (mean and std) as multivariate Gaussians centered at their original values.
- Estimate uncertainty scope for each channel via non-parametric minibatch variance of statistics.
- Sample new statistics from N(original, scope^2) using the re-parameterization trick to allow backpropagation.
- Replace original statistics with sampled statistics during training using an AdaIN-like module.
- Introduce a probability p to control how often DSU is applied during training (training-only, no test-time overhead).
- Demonstrate plug-and-play integration across network positions without extra parameters or losses.
Experimental results
Research questions
- RQ1Can uncertainty in feature statistics improve robustness to domain shifts unseen at training time?
- RQ2Does probabilistic feature statistics augmentation yield better generalization than deterministic statistics-based methods across diverse tasks?
- RQ3How does DSU interact with existing domain generalization approaches and image-level augmentations?
- RQ4Where in the network should the DSU module be inserted for best gains?
Key findings
- DSU consistently improves generalization over a strong deterministic baseline across PACS (multi-domain classification).
- DSU outperforms several prior style/statistics-based methods (e.g., MixStyle, pAdaIN) on average accuracy and per-domain performance.
- In semantic segmentation (GTA5 to Cityscapes), DSU yields notable mIOU and mAcc gains over baselines (e.g., +6.1% mIOU, +5.5% mAcc).
- In instance retrieval (Duke-Market datasets), DSU achieves substantial improvements in mAP and R1 over baselines (e.g., +~6–7 points).
- DSU improves robustness to corruptions on ImageNet-C and can complement state-of-the-art methods (APR).
- Ablation shows DSU gains hold across insertion positions and are relatively robust to the mix of distributions tried.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.