Abstract
Single domain generalization aims to learn a model that performs well on many unseen domains with only one domain data for training. Existing works focus on studying the adversarial domain augmentation (ADA) to improve the model's generalization capability. The impact on domain generalization of the statistics of normalization layers is still underinvestigated. In this paper, we propose a generic normalization approach, adaptive standardization and rescaling normalization (ASR-Norm), to complement the missing part in previous works. ASR-Norm learns both the standardization and rescaling statistics via neural networks. This new form of normalization can be viewed as a generic form of the traditional normalizations. When trained with ADA, the statistics in ASR-Norm are learned to be adaptive to the data coming from different domains, and hence improves the model generalization performance across domains, especially on the target domain with large discrepancy from the source domain. The experimental results show that ASR-Norm can bring consistent improvement to the state-of-the-art ADA approaches by 1.6%, 2.7%, and 6.3% averagely on the Digits, CIFAR-10-C, and PACS benchmarks, respectively. As a generic tool, the improvement introduced by ASR-Norm is agnostic to the choice of ADA methods.
Introduction
Deep learning models are notoriously brittle when faced with a distribution shift—where the data they see at test time (e.g., a sketch of a dog) looks different from the data they were trained on (e.g., a photo of a dog). This paper addresses Single Domain Generalization (SDG), the challenging task of training a model on just one source domain so that it performs well on many unseen target domains. While previous research focused heavily on Adversarial Domain Augmentation (ADA)—synthesizing "hard" images to toughen up the model—they largely ignored the role of normalization layers. Standard Batch Normalization (BN) fails here because it relies on statistics calculated from the training batch, which often do not match the statistics of unseen domains.
The ASR-Norm Framework
The core contribution is ASR-Norm, which replaces the fixed statistics of traditional normalization with values predicted by small neural networks. This allows the model to "adjust its settings" for every image it sees.
ASR-Norm consists of two main components:
- Adaptive Standardization (AS): Instead of using the batch mean and standard deviation, ASR-Norm uses an encoder-decoder network to predict standardization statistics ($\mu_{stan}, \sigma_{stan}$) based on the channel-wise statistics of the input feature map.
- Adaptive Rescaling (AR): Traditional layers use fixed learnable parameters ($\gamma, \beta$) to rescale data. ASR-Norm uses another small network to predict these parameters dynamically for each individual sample.
To ensure training stability, the authors use a Residual Learning strategy. They initialize the layer to act like standard normalization and use learnable "gate" weights ($\lambda$) that gradually allow the model to rely more on the learned, adaptive statistics as training progresses.
Experimental Results
The authors evaluated their approach on three standard benchmarks: Digits, CIFAR-10-C, and PACS. ASR-Norm achieved consistent improvements across all benchmarks, notably improving the state-of-the-art on PACS by 6.3% on average.
Key insights from the evaluation include:
- Robustness to Discrepancy: The performance gap between ASR-Norm and standard methods widens as the "corruption level" or domain discrepancy increases, proving its effectiveness in extreme shift scenarios.
- ADA-Agnostic: ASR-Norm is not a standalone replacement for data augmentation; it is a "missing ingredient" that makes existing ADA methods (like RSDA or RSC) significantly more effective.
- Better Calibration: The model showed improved calibration (measured by Brier Score), meaning it was not only more accurate but also more reliable in its confidence levels on unseen data.
Conclusion
ASR-Norm demonstrates that normalization is a critical bottleneck for generalization. While it introduces a small computational overhead (increasing parameter count by 4.1% to 16.4%), the gains in robustness are substantial. Future work may explore applying adaptive normalization to other computer vision tasks like object detection or semantic segmentation under domain shift.
Summary updated