Domain-Specific Batch Normalization for Unsupervised Domain Adaptation

Woong-Gi Chang, Tackgeun You, Seonguk Seo, Suha Kwak, Bohyung Han

Abstract

We propose a novel unsupervised domain adaptation framework based on domain-specific batch normalization in deep neural networks. We aim to adapt to both domains by specializing batch normalization layers in convolutional neural networks while allowing them to share all other model parameters, which is realized by a two-stage algorithm. In the first stage, we estimate pseudo-labels for the examples in the target domain using an external unsupervised domain adaptation algorithm integrating the proposed domain-specific batch normalization. The second stage learns the final models using a multi-task classification loss for the source and target domains. Our framework can be easily incorporated into the domain adaptation techniques based on deep neural networks with batch normalization layers and extends to multiple source domains. The proposed algorithm achieves state-of-the-art accuracy on multiple benchmark datasets.

Introduction

In machine learning, the domain shift problem occurs when a model trained on a "source" dataset (e.g., synthetic 3D renders) performs poorly on a related but statistically different "target" dataset (e.g., real-world photos). Unsupervised Domain Adaptation (UDA) aims to bridge this gap without requiring labels for the target domain.

Traditional deep learning approaches often attempt to force the entire network to be "domain-invariant." However, this can be overly restrictive. Because different domains have distinct statistical characteristics, forcing a single set of Batch Normalization (BN) parameters to handle both can lead to sub-optimal feature representation. This paper introduces Domain-Specific Batch Normalization (DSBN), an architectural modification that separates domain-specific "noise" from domain-invariant features by giving each domain its own dedicated BN branches while sharing all other network weights.

Methodology

The DSBN Layer

In a standard BN layer, the network tracks a single set of mean/variance statistics and learns one set of affine parameters ($\gamma$ and $\beta$). In contrast, the DSBN layer splits into two branches: Branch S for source domain data and Branch T for target domain data.

Comparison between standard Batch Normalization and the proposed Domain-Specific Batch Normalization (DSBN).

While the convolutional filters—which extract core structural features—are shared across both domains, the BN parameters are specialized. This allows the network to "normalize" each domain's data into a common space, facilitating the learning of domain-invariant features in the shared layers.

Two-Stage Learning Framework

The authors propose a two-stage recipe for implementing DSBN in UDA tasks:

  1. Stage 1 (Initialization): An existing UDA algorithm (such as MSTN or CPUA) is modified by replacing its standard BN layers with DSBN. This model is trained to generate initial "pseudo-labels" for the unlabeled target data.
  2. Stage 2 (Self-Training): The problem is treated as a supervised multi-task learning problem. The model uses ground-truth labels for the source domain and the generated pseudo-labels for the target domain, iteratively refining these labels as performance improves.
The overall framework for DSBN-based unsupervised domain adaptation, illustrating the use of pseudo-labels and multi-task loss.

Experimental Evaluation

The researchers evaluated DSBN on three standard UDA benchmarks: VisDA-C (synthetic-to-real), Office-31 (Amazon, DSLR, Webcam), and Office-Home (Art, Clipart, Product, Real-World).

Key Results

The addition of DSBN consistently boosted performance across all benchmarks:

  • VisDA-C: Adding DSBN to an MSTN baseline improved average accuracy from 65.0% to 80.2%.
  • Office-31: The method achieved state-of-the-art results, particularly in difficult shifts like "Webcam to Amazon," where accuracy rose from 65.6% to 74.4%.
  • Feature Clustering: Qualitative analysis via t-SNE plots indicated that DSBN significantly improved the clustering of "hard" classes (e.g., knife, skate, and truck) that are frequently confused in standard UDA.

Discussion and Insights

The core insight of this work is that BN parameters are uniquely suited to capturing domain-specific information. By isolating domain statistics in the BN layers, the shared convolutional layers are "freed" to focus on domain-invariant object structures.

Furthermore, DSBN is highly modular and "plug-and-play," meaning it can be integrated into most deep neural network architectures (like ResNet) and combined with various UDA losses. It also scales naturally to multi-source scenarios; for multiple source domains, one simply adds corresponding BN branches.

Limitations

Despite its success, the model requires explicit domain labels during training to route data to the correct BN branch. This might be a limitation in scenarios where domain boundaries are ambiguous. Additionally, the second stage's success is heavily dependent on the quality of pseudo-labels generated in the first stage.

Conclusion

Domain-Specific Batch Normalization offers a simple yet effective way to handle domain shift in unsupervised adaptation tasks. By specializing normalization while sharing feature extraction, the framework achieves significant performance gains on major benchmarks and provides a scalable solution for multi-domain learning.

Summary updated

BibTeX
@inproceedings{chang2019domain,
  author = {Woong-Gi Chang and Tackgeun You and Seonguk Seo and Suha Kwak and Bohyung Han},
  title = {{Domain-Specific Batch Normalization for Unsupervised Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=siq27TjgNe},
}
Figure