NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Optimize Domain Specific Normalization for Domain Generalization

Seonguk Seo, Yumin Suh, Dongwan Kim, Geeho Kim, Jongwoo Han, Bohyung Han

Abstract

We propose a simple but effective multi-source domain generalization technique based on deep neural networks by incorporating optimized normalization layers that are specific to individual domains. Our approach employs multiple normalization methods while learning separate affine parameters per domain. For each domain, the activations are normalized by a weighted average of multiple normalization statistics. The normalization statistics are kept track of separately for each normalization type if necessary. Specifically, we employ batch and instance normalizations in our implementation to identify the best combination of these two normalization methods in each domain. The optimized normalization layers are effective to enhance the generalizability of the learned model. We demonstrate the state-of-the-art accuracy of our algorithm in the standard domain generalization benchmarks, as well as viability to further tasks such as multi-source domain adaptation and domain generalization in the presence of label noise.

Introduction

Deep learning models are notoriously sensitive to domain shift. A classifier trained on high-resolution photos might fail when applied to stylized sketches. This is the core challenge of Domain Generalization (DG): training a model on several "source" domains (e.g., photos, cartoons, and paintings) so that it performs well on a completely "unseen" target domain (e.g., sketches) without target-specific training.

Standard Batch Normalization (BN) often exacerbates this problem because it tracks statistics (mean and variance) that are specific to the training data. When the model encounters a new domain with different statistics, these BN layers can lead to poor performance. This paper introduces Domain-Specific Optimized Normalization (DSON) to address this by learning the optimal balance of normalization techniques for each environment.

Methodology: Domain-Specific Optimized Normalization

The authors propose DSON, which treats normalization as a learnable, domain-specific component. The key technical features include:

  1. Multiple Normalization Types: DSON combines Batch Normalization (BN), which maintains discriminative features across a batch, and Instance Normalization (IN), which is known for its ability to remove instance-specific "style" information.
  2. Domain-Specific Parameters: For every source domain, the model maintains its own set of BN statistics, affine parameters (scale $\gamma$ and shift $\beta$), and Mixture Weights ($w_d$). The mixture weight determines the relative contribution of BN vs. IN for that specific domain.
  3. Shared Backbone: All other parameters, such as convolutional weights, are shared across all domains. This forces the shared weights to learn "domain-agnostic" features while the normalization layers handle domain-specific noise.
The DSON architecture employs domain-specific normalization statistics and learnable mixture weights to balance BN and IN for each domain.

During inference, since the target domain is unknown, the model passes the input through all domain-specific branches and averages the final predictions (logits).

Key Insights: The BN vs. IN Trade-off

A critical insight of this work is the trade-off between discriminability and style invariance. While BN is excellent for classification, it tends to overfit to domain-specific styles. Conversely, IN is effective at removing style but can reduce discriminability by making different classes look too similar.

Feature distributions under different normalization. (a) Input features are clustered by domain. (b) BN maintains domain separation. (c) IN aligns domain distributions, reducing style variance.

DSON finds the "Goldilocks" zone by mixing these methods. By using IN as a component, the model effectively treats domain-specific features as "style noise" that needs to be filtered out to find the underlying semantic signal. Interestingly, as more source domains are added, the optimal weight for Instance Normalization typically increases, suggesting that diverse training data necessitates more active style removal.

Experimental Results

The authors evaluated DSON on major benchmarks including PACS, Office-Home, and Digits.

  • PACS Benchmark: DSON achieved 85.11% average accuracy (using ResNet-18), a significant improvement over the baseline of 78.86% and outperforming other complex meta-learning approaches.
  • Office-Home: The method reached 62.90% accuracy, setting a new state-of-the-art for the benchmark.
  • Hard Domains: The most dramatic improvements were seen in "hard" domains like Sketch in PACS, where the visual gap from source domains is largest.
  • Robustness: DSON proved significantly more robust to noisy labels than standard methods because it focuses on high-level semantic information rather than low-level style textures.

Conclusion and Future Work

DSON provides a simple yet powerful framework for domain generalization. While it introduces some inference overhead proportional to the number of source domains, its ability to learn domain-agnostic features through optimized normalization is highly effective. Future work may explore incorporating other normalization types, such as Layer or Group Normalization, or utilizing layer-specific mixture weights for even finer control over feature normalization.

Summary updated

BibTeX
@inproceedings{seo2020learning,
  author = {Seonguk Seo and Yumin Suh and Dongwan Kim and Geeho Kim and Jongwoo Han and Bohyung Han},
  title = {{Learning to Optimize Domain Specific Normalization for Domain Generalization}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=Ov3ajFYKOv},
}
Figure