[Paper Review] Batch Normalization Embeddings for Deep Domain Generalization
This paper proposes Batch Normalization Embeddings (BNE) for deep domain generalization by leveraging domain-specific batch normalization statistics to map known domains into a shared latent space. At test time, unknown domain samples are projected into this space using distance metrics to infer domain membership and weight predictions from a lightweight ensemble of domain-specific classifiers, achieving state-of-the-art accuracy on PACS, Office-31, and Office-Caltech benchmarks.
Domain generalization aims at training machine learning models to perform robustly across different and unseen domains. Several recent methods use multiple datasets to train models to extract domain-invariant features, hoping to generalize to unseen domains. Instead, first we explicitly train domain-dependant representations by using ad-hoc batch normalization layers to collect independent domain's statistics. Then, we propose to use these statistics to map domains in a shared latent space, where membership to a domain can be measured by means of a distance function. At test time, we project samples from an unknown domain into the same space and infer properties of their domain as a linear combination of the known ones. We apply the same mapping strategy at training and test time, learning both a latent representation and a powerful but lightweight ensemble model. We show a significant increase in classification accuracy over current state-of-the-art techniques on popular domain generalization benchmarks: PACS, Office-31 and Office-Caltech.
Motivation & Objective
- Address the challenge of domain shift in deep learning by enabling models to generalize to unseen domains without requiring labeled test data.
- Overcome limitations of existing domain generalization methods that enforce domain-invariant features, which may discard useful domain-specific information.
- Develop a method that explicitly models domain-specific representations while enabling generalization to unknown domains through a shared latent space of domain embeddings.
- Enable robust classification of unseen domains by combining predictions from domain-specific classifiers weighted by their proximity to the unknown domain in the BNE space.
Proposed method
- Accumulate batch normalization (BN) statistics separately for each training domain during model training, creating domain-specific normalization layers.
- Represent each training domain as a point in a latent domain space using the population statistics of its BN layers—this is the Batch Normalization Embedding (BNE).
- At test time, compute the instance normalization statistics of a test sample and map it into the same latent domain space using the same BN statistics.
- Measure the distance between the test sample’s instance statistics and each known domain’s BNE using a distance function (e.g., Wasserstein distance).
- Use the inverse of these distances as weights to linearly combine predictions from domain-specific classifiers, improving generalization to unknown domains.
- Apply the same distance-weighting strategy during training to encourage the model to learn a meaningful latent domain space and stable BNEs.
Experimental results
Research questions
- RQ1Can domain-specific representations, captured via domain-dependent batch normalization statistics, be used to improve generalization to unseen domains?
- RQ2How effective is a latent space of domain embeddings—derived from BN statistics—in enabling accurate inference of unknown domain properties?
- RQ3Does weighting predictions from domain-specific classifiers based on distance to the unknown domain’s BNE improve classification accuracy compared to averaging or fixed weighting?
- RQ4Can the proposed method generalize across diverse benchmarks such as PACS, Office-31, and Office-Caltech without requiring labeled target data?
- RQ5How does the choice of distance metric (e.g., Wasserstein, Bhattacharyya, Uniform) impact performance in domain localization and classification?
Key findings
- The proposed method achieves state-of-the-art performance on the PACS, Office-31, and Office-Caltech benchmarks, with a +5.86% average accuracy gain over the DeepAll baseline using ResNet-18.
- Using the Wasserstein distance for domain localization yields the best performance, outperforming both Bhattacharyya and uniform distance baselines across all domains.
- The ablation study shows that each component—domain-specific BN, distance weighting at training time, and a warm-up phase—contributes significantly to performance improvement.
- The method outperforms a DNet variant that learns domain membership via a separate classification network, while requiring fewer parameters.
- The method generalizes well across all domains, with consistent improvements even on the most challenging left-out domains such as Sketch in PACS.
- The approach is compatible with any CNN using batch normalization and scales gracefully with the number of training domains.
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.