Abstract: Batch Normalization (BN) is capable of accelerating the training of deep models by centering and scaling activations within mini-batches. In this work, we propose Decorrelated Batch Normalization (DBN), which not just centers and scales activations but whitens them. We explore multiple whitening techniques, and find that PCA whitening causes a problem we call stochastic axis swapping, which is detrimental to learning. We show that ZCA whitening does not suffer from this problem, permitting successful learning. DBN retains the desirable qualities of BN and further improves BN's optimization efficiency and generalization ability. We design comprehensive experiments to show that DBN can improve the performance of BN on multilayer perceptrons and convolutional neural networks. Furthermore, we consistently improve the accuracy of residual networks on CIFAR-10, CIFAR-100, and ImageNet.
Introduction
Standard Batch Normalization (BN) has become a cornerstone of deep learning, stabilizing training by centering and scaling activations. However, BN operates on each neuron independently, ignoring the linear correlations between them. Theoretically, "whitening" activations—making them zero-mean, unit-variance, and uncorrelated—should provide even greater benefits by improving the conditioning of the optimization landscape. This makes the gradient descent path more direct and efficient.
Despite these theoretical advantages, full whitening has historically been avoided due to two primary challenges: high computational complexity and a phenomenon the authors term stochastic axis swapping. In standard whitening techniques like PCA, the coordinate system can randomly rotate or flip between mini-batches due to noise in the estimated covariance. This prevents the network from learning stable feature representations.
The DBN Framework
To address these issues, the authors propose Decorrelated Batch Normalization (DBN). DBN incorporates three key innovations to make whitening practical and effective for deep learning:
- ZCA Whitening: Instead of PCA, DBN utilizes Zero-phase Component Analysis (ZCA). ZCA transforms data to be uncorrelated but then rotates it back to be as close as possible to the original coordinate system. This "minimal distortion" property eliminates stochastic axis swapping, ensuring that neurons maintain a consistent "meaning" across iterations.
- Differentiable Eigen-decomposition: To enable end-to-end training via backpropagation, the authors derived analytical gradients for the whitening transform, allowing the model to learn through the decorrelation process.
- Group Whitening: To manage the $O(d^3)$ cost of full whitening and the need for large batches to estimate correlations, DBN divides neurons into smaller groups (e.g., 16 neurons). Whitening is performed within these groups, capturing local correlations while remaining computationally feasible.
Optimization and Performance Analysis
The primary advantage of DBN is its impact on the optimization landscape. By decorrelating activations, DBN significantly improves the condition number of the Fisher Information Matrix (FIM). In practical terms, this makes the loss function's "bowl" more circular, allowing the optimizer to take larger, more confident steps without oscillating.
Empirical results across various benchmarks confirm these benefits:
- Faster Convergence: In MLP and CNN experiments, DBN reached lower training losses significantly faster than standard BN or Layer Normalization (LN).
- Improved Accuracy: On CIFAR-10, DBN reduced test error by up to 1.44% over BN. On ImageNet, a DBN-enhanced ResNet-50 achieved a 24.29% Top-1 error, compared to 24.87% for the BN baseline.
- Dynamical Isometry: DBN helps maintain stable gradient magnitudes throughout deep networks, which is particularly beneficial as model depth increases.
Conclusion and Limitations
DBN evolves Batch Normalization by fully decorrelating activations, leading to superior optimization and generalization. While DBN is computationally more intensive than BN—approximately 2x slower per iteration in CPU-based tests—the gains in convergence speed and final accuracy are substantial. Widespread adoption may depend on the development of highly optimized GPU kernels for eigen-decomposition to bridge the computational gap.
Summary updated