Abstract
Normalization layers are fundamental components of modern deep neural networks, significantly impacting convergence and generalization. While standardization techniques like Batch Normalization (BN) and Instance Normalization (IN) are widely used, they often fail to account for feature correlations. This paper introduces Switchable Whitening (SW), a novel normalization framework that unifies whitening and standardization. SW adaptively learns to switch between different statistics and operations, optimizing the normalization strategy for specific tasks through backpropagation. We demonstrate that SW consistently outperforms traditional methods across a variety of benchmarks, including image classification, semantic segmentation, and style transfer.
Introduction
Deep learning success relies heavily on normalization to stabilize training. Most common methods utilize standardization, which centers and scales features. However, standardization ignores the correlations between feature channels, which can limit the representational power of the network. Whitening, which decorrelates features, offers a theoretically superior optimization landscape but has been difficult to integrate into deep architectures due to computational complexity and task-specific requirements. Switchable Whitening (SW) addresses these challenges by providing a learnable, end-to-end framework that identifies the optimal balance of statistics (e.g., batch vs. instance) and operations (standardization vs. whitening) for any given layer.
Methods
The core of SW is a unified mathematical formulation where the mean ($\mu$) and covariance ($\Sigma$) are computed as weighted averages of different statistics (Batch, Instance, Layer). These weights, or "importance ratios," are learned during training alongside the network's parameters.
To overcome the computational bottleneck of whitening—which traditionally requires Eigenvalue Decomposition or SVD—SW employs an iterative Newton's method to approximate the inverse square root of the covariance matrix. This makes whitening computationally feasible for large-scale GPU training. Additionally, SW utilizes "Group Whitening" to manage high-dimensional features, improving both memory efficiency and statistical stability by performing decorrelation within channel groups.
Experimental Results
The versatility of SW was evaluated across multiple domains. In image classification, SW significantly improved performance over Batch Normalization. For instance, a ResNet50 with SW achieved a 22.07% top-1 error on ImageNet, a 1.51% improvement over the standard BN baseline.
As shown in Figure 1(a), SW consistently yields higher accuracy and mIoU compared to BN and Switchable Normalization (SN) across ImageNet, CIFAR-10, ADE20K, and domain adaptation tasks. The training dynamics, illustrated in Figure 2, highlight that SW (red curves) achieves lower training and validation errors more rapidly than competing methods, indicating a more efficient optimization landscape.
Key Insights
A major contribution of this work is the analysis of learned importance ratios. Figure 1(b) reveals that different tasks favor different normalization statistics. For example, style transfer relies heavily on Instance Whitening (IW) to remove style-related correlations, while classification and segmentation tasks lean more towards Batch-level statistics.
Furthermore, SW is highly effective in domain adaptation. By learning to ignore style-specific correlations, it reduces the Maximum Mean Discrepancy (MMD) between synthetic and real-world datasets. This resulted in a 3.0% mIoU improvement on Cityscapes when training on synthetic GTA5 data compared to standard Batch Normalization.
Conclusion
Switchable Whitening provides a powerful, automated alternative to manually selecting and tuning normalization layers. By unifying whitening and standardization into a single learnable framework, it achieves state-of-the-art results across diverse vision tasks. While slightly more computationally intensive than simple standardization, its superior performance and adaptability make it a compelling choice for deep representation learning.
Summary updated