On the Convergence and Robustness of Batch Normalization

Yongqiang Cai, Qianxiao Li, Zuowei Shen

Abstract

Despite its empirical success and recent theoretical progress, there generally lacks a quantitative analysis of the effect of batch normalization (BN) on the convergence and stability of gradient descent. In this paper, we provide such an analysis on the simple problem of ordinary least squares (OLS). Since precise dynamical properties of gradient descent (GD) is completely known for the OLS problem, it allows us to isolate and compare the additional effects of BN. More precisely, we show that unlike GD, gradient descent with BN (BNGD) converges for arbitrary learning rates for the weights, and the convergence remains linear under mild conditions. Moreover, we quantify two different sources of acceleration of BNGD over GD -- one due to over-parameterization which improves the effective condition number and another due having a large range of learning rates giving rise to fast descent. These phenomena set BNGD apart from GD and could account for much of its robustness properties. These findings are confirmed quantitatively by numerical experiments, which further show that many of the uncovered properties of BNGD in OLS are also observed qualitatively in more complex supervised learning problems.

Introduction

Since its introduction in 2015, Batch Normalization (BN) has become an essential tool for training deep neural networks, known for preventing gradient blowups and drastically speeding up training. However, the original justification—reducing "internal covariate shift"—has remained mathematically fuzzy and widely debated. This work addresses the lack of a comprehensive theoretical framework by answering why BN is robust to learning rate choices and how it accelerates convergence.

Methodology: The OLS Sandbox

To analyze BN rigorously, the authors apply Batch Normalization Gradient Descent (BNGD) to an idealized model: Ordinary Least Squares (OLS) regression. Because the dynamics of standard Gradient Descent (GD) on OLS are perfectly understood (governed by the "condition number" of the data matrix), it serves as a perfect control group. By comparing BNGD to standard GD in this sandbox, the authors derive precise mathematical results regarding scaling laws, effective learning rates, and convergence stability.

Key Theoretical Insights

The Scaling Law and Stability

BN makes the optimization process invariant to the scale of the weights. The authors define "equivalent configurations," showing that the direction of the weights matters far more than their magnitude. Unlike standard GD, which diverges if the learning rate is too high, it is proven that BNGD converges for any constant learning rate $\epsilon > 0$ for the weights, provided the BN rescaling parameter's rate ($\epsilon_a$) is between 0 and 1.

Self-Correcting Step Sizes

A key discovery is that for very large learning rates, the effective step size of BN actually becomes $O(1/\epsilon)$. In other words, if a practitioner attempts to use a massive learning rate, BN automatically "dials it back" to a stable range.

Effective step size of BNGD vs nominal learning rate

Acceleration via Pseudo-Conditioning

The authors show that BN effectively optimizes on a landscape with a "pseudo-condition number" ($\kappa^*$) that is strictly better than the original data's condition number ($\kappa$). This explains why BN is often faster than even the most perfectly tuned standard GD.

Empirical Validation

Robustness to Hyperparameters

Empirical tests on MNIST and CIFAR-10 confirm that BNGD maintains high performance across a massive range of learning rates (spanning several orders of magnitude), whereas standard GD fails outside a narrow window. The researchers identified a wide "plateau" where the effective learning rate remains near-optimal, explaining why practitioners rarely need to spend much time tuning learning rates when using BN.

Training accuracy vs learning rate for varying network widths

Conclusion

This analysis proves that BNGD is fundamentally more stable and robust than standard GD, regardless of how poorly conditioned the input data is. While the core mathematical proofs are derived for linear OLS models, empirical results on CNNs suggest these properties generalize to deep architectures. Future work remains to address how these optimization benefits translate to generalization on unseen data and to extend the analysis to stochastic mini-batch settings.

Summary updated

Abstract

Despite its empirical success and recent theoretical progress, there generally lacks a quantitative analysis of the effect of batch normalization (BN) on the convergence and stability of gradient descent. In this paper, we provide such an analysis on the simple problem of ordinary least squares (OLS). Since precise dynamical properties of gradient descent (GD) is completely known for the OLS problem, it allows us to isolate and compare the additional effects of BN. More precisely, we show that unlike GD, gradient descent with BN (BNGD) converges for arbitrary learning rates for the weights, and the convergence remains linear under mild conditions. Moreover, we quantify two different sources of acceleration of BNGD over GD -- one due to over-parameterization which improves the effective condition number and another due having a large range of learning rates giving rise to fast descent. These phenomena set BNGD apart from GD and could account for much of its robustness properties. These findings are confirmed quantitatively by numerical experiments, which further show that many of the uncovered properties of BNGD in OLS are also observed qualitatively in more complex supervised learning problems.
BibTeX
@inproceedings{cai2019convergence,
  author = {Yongqiang Cai and Qianxiao Li and Zuowei Shen},
  title = {{On the Convergence and Robustness of Batch Normalization}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HkW8kn-uZB},
}
Figure