Abstract
Single domain generalization (SDG) aims to learn a model that performs well on many unseen domains using only one domain for training. While existing research focuses on Adversarial Domain Augmentation (ADA), the impact of normalization layer statistics remains under-investigated. We propose Adaptive Standardization and Rescaling Normalization (ASR-Norm), a generic approach that learns standardization and rescaling statistics via neural networks. When trained with ADA, ASR-Norm adapts to data from different domains, significantly improving generalization, especially on target domains with large discrepancies from the source. Experimental results show consistent improvements across Digits, CIFAR-10-C, and PACS benchmarks.
Introduction
Deep learning models often struggle with domain shift, where training and testing data come from different distributions. In Single Domain Generalization (SDG), this challenge is amplified as only one source domain is available. Current methods use ADA to "hallucinate" new domains, but they often rely on standard Batch Normalization (BN). BN's fixed statistics during inference lead to performance degradation when test data deviates from the training distribution.
Methods: Adaptive Standardization and Rescaling Normalization
ASR-Norm treats normalization as a learning task rather than a fixed operation. It dynamically adjusts its internal statistics for every input, allowing for on-the-fly adaptation.
- Adaptive Standardization (AS): Instead of batch-level statistics, ASR-Norm uses a lightweight encoder-decoder network to predict the mean ($\mu$) and standard deviation ($\sigma$) from the channel-wise statistics of the input feature map.
- Adaptive Rescaling (AR): Affine parameters (gain $\gamma$ and bias $\beta$) are generated by another small network, enabling sample-specific activation recalibration.
- Residual Learning: To ensure stability, a residual approach is used where the layer starts as standard normalization and gradually learns to trust predicted adaptive statistics via learnable weights ($\lambda$).
- Adversarial Integration: Forced to handle "adversarial" versions of data during ADA training, these networks become robust to real-world domain shifts.
Datasets and Evaluation
The researchers evaluated ASR-Norm on three major benchmarks: Digits, CIFAR-10-C, and PACS. The PACS benchmark is particularly illustrative of domain shift, as it requires models to generalize across visually distinct styles such as "Art paint" and "Photo."
Key Results
ASR-Norm achieved state-of-the-art results across all benchmarks:
- PACS: Improved average accuracy by 6.3% over RSC. On the difficult Photo-to-Sketch shift, it saw a 13% jump.
- CIFAR-10-C: Improved accuracy by 10.3% compared to standard ADA, with gains increasing alongside corruption intensity.
- Digits: Outperformed the state-of-the-art RSDA method by 1.6% on average.
- Uncertainty: Lower Brier Scores indicated more trustworthy probability estimates, reducing overconfidence in incorrect predictions.
Conclusion
ASR-Norm provides a unified framework for normalization that is agnostic to the choice of ADA methods. By making normalization adaptive, it bridges the gap between training and inference distributions, offering a robust solution for single domain generalization. Future work will explore more complex internal architectures and larger-scale real-world datasets.
Summary updated