Towards a Theoretical Understanding of Batch Normalization

Jonas Moritz Kohler, Hadi Daneshmand, Aurélien Lucchi, Ming Zhou, Klaus Neymeyr, Thomas Hofmann

Batch Normalization (BN) has become a cornerstone of modern deep learning architectures, credited with stabilizing training and enabling significantly higher learning rates. Despite its ubiquity, the underlying reasons for its success have remained largely hypothetical. While the original proponents suggested it reduces "Internal Covariate Shift," recent research has challenged this view. In this work, we provide a rigorous theoretical foundation for BN from an optimization perspective, demonstrating that its primary benefit stems from a fundamental reparameterization of the weight space that decouples parameter length from direction.

The Decoupling Hypothesis

We argue that the effectiveness of Batch Normalization lies in its ability to decouple the length of parameter vectors from their direction. In standard gradient descent, these two components are entangled, often leading to poor convergence in non-convex landscapes. By normalizing the weights relative to the data covariance—effectively projecting them onto an ellipsoid defined by the data (the $S$-sphere)—BN allows optimization algorithms to treat directional updates and length adjustments as separate tasks.

This decoupling allows gradient-based methods to exploit a favorable global structure in the loss landscape. We introduce Gradient Descent in Normalized Parameters (GDNP), an algorithm that explicitly splits the optimization: one step updates the direction with an adaptive step-size, while another optimizes the length (often via bisection). This approach allows the directional updates of a complex, non-convex problem to "mimic" the simple, efficient dynamics of a Least Squares problem.

Theoretical Convergence Rates

Our analysis focuses on "Learning Halfspaces," the fundamental building blocks of neural networks. Under the assumption of Gaussian input data, we utilize Stein’s Lemma to reveal the underlying geometry of the loss function. We prove that GDNP achieves a linear convergence rate (exponential convergence), a significant leap over standard Gradient Descent, which typically exhibits sub-linear convergence in these settings.

Comparison of convergence rates and complexities

As shown in the table above, reaching an $\epsilon$-optimal point with GDNP requires only $O(\log^2(1/\epsilon))$ complexity, whereas standard GD requires $O(\epsilon^{-2})$. This theoretical acceleration is made possible by the "Alignment" phenomenon: for Gaussian inputs, all critical points of the loss function lie on the same line, regardless of the specific loss function used (e.g., logistic or sigmoid). BN-equipped updates exploit this alignment to find the optimal direction far more efficiently than standard methods.

Empirical Evidence

To substantiate our theoretical findings, we conducted experiments across synthetic Gaussian data and real-world benchmarks like the a9a dataset. The results consistently show that methods employing BN-style decoupling (including BN, Weight Normalization, and GDNP) significantly outperform standard Gradient Descent.

Convergence performance across synthetic and real-world datasets

The empirical plots demonstrate that the benefits of decoupling persist even when the strict Gaussian assumptions are relaxed. Furthermore, experiments on deep networks (CIFAR-10) suggest that BN reduces "cross-dependencies" between layers. By simplifying the network's curvature, BN ensures that the optimal direction for one layer becomes largely independent of the weights in subsequent layers, facilitating faster global convergence and reducing the interdependency that typically plagues deep first-order optimization.

Conclusion

By viewing Batch Normalization as a reparameterization that decouples length and direction, we transition it from a practical heuristic to a provably converging algorithm. While our proofs rely on Gaussian data, the empirical success on diverse datasets suggests that this decoupling is a fundamental mechanism for accelerating deep learning optimization. Future work will focus on bridging the gap between the idealized GDNP algorithm and the simultaneous parameter updates used in standard deep learning frameworks.

Summary updated

Abstract

Normalization techniques such as Batch Normalization have been applied successfully for training deep neural networks. Yet, despite its apparent empirical benefits, the reasons behind the success of Batch Normalization are mostly hypothetical. We here aim to provide a more thorough theoretical understanding from a classical optimization perspective. Our main contribution towards this goal is the identification of various problem instances in the realm of machine learning where % -- under certain assumptions-- Batch Normalization can provably accelerate optimization. We argue that this acceleration is due to the fact that Batch Normalization splits the optimization task into optimizing length and direction of the parameters separately. This allows gradient-based methods to leverage a favourable global structure in the loss landscape that we prove to exist in Learning Halfspace problems and neural network training with Gaussian inputs. We thereby turn Batch Normalization from an effective practical heuristic into a provably converging algorithm for these settings. Furthermore, we substantiate our analysis with empirical evidence that suggests the validity of our theoretical results in a broader context.
BibTeX
@inproceedings{kohler2019towards,
  author = {Jonas Moritz Kohler and Hadi Daneshmand and Aurélien Lucchi and Ming Zhou and Klaus Neymeyr and Thomas Hofmann},
  title = {{Towards a Theoretical Understanding of Batch Normalization}},
  booktitle = {AISTATS},
  year = {2019},
  url = {https://openreview.net/forum?id=P7myHipJdHh},
}
Figure