Entropy Maximization with Depth: A Variational Principle for Random Neural Networks

Amir Joudaki, Hadi Daneshmand, Francis R. BacharXiv 2022 · OpenReview

Abstract

Mean field theory (MFT) is a cornerstone of deep learning theory, providing a simplified description of infinite-width neural networks. However, in finite-width networks, approximation errors typically accumulate with depth, scaling as $O(\text{depth}/\text{width})$. This paper demonstrates that Batch Normalization (BN) acts as a mathematical stabilizer, bounding this error even as depth approaches infinity. By leveraging Markov chain theory and geometric ergodicity, the authors prove that BN-MLPs converge to a stable mean-field limit. Furthermore, the spectral distribution of hidden representations is shown to follow the Marchenko-Pastur law, establishing a form of spectral universality at initialization.

Introduction

The theoretical analysis of neural networks often relies on the infinite-width limit, where the behavior of neurons can be described by collective statistics rather than individual trajectories. While Mean Field Theory (MFT) offers powerful insights, its practical application is hindered by the "depth-width dilemma": in standard vanilla networks, the discrepancy between MFT predictions and finite-width reality grows exponentially with depth. This research investigates whether specific architectural components can mitigate this drift, focusing on the stabilizing properties of Batch Normalization (BN).

Theoretical Framework: Markovian Stability

The authors model the propagation of signals through a deep Multi-Layer Perceptron (MLP) as a Markov chain. The core of their argument rests on the concept of geometric ergodicity. If the hidden representations "mix" sufficiently fast, the network's state converges to a unique, stable distribution regardless of the input.

Using the Matrix Bernstein Inequality, the authors derive non-asymptotic bounds for the Gram matrix—the matrix representing correlations between samples in a batch. They show that while vanilla networks suffer from cumulative variance, BN-MLPs effectively "reset" the error at each layer, preventing the $O(\text{depth}/\text{width})$ explosion.

The Stabilizing Effect of Batch Normalization

The primary finding is that BN transforms the error growth from an unbounded drift into a bounded, stationary process. The error between the finite-width representation and the mean-field limit follows a specific structure:

$$\text{Error} \approx e^{-\alpha \cdot \text{depth}/2} + \text{width}^{-1/2}$$

As depth increases, the transitory first term vanishes, leaving a stationary error that depends solely on the network's width. This implies that for BN-MLPs, depth eventually ceases to be a factor in approximation accuracy.

Comparison of mean-field error growth in networks with and without Batch Normalization.

Empirical simulations confirm this theoretical bound. As shown in the figure above, the error in vanilla networks (Without BN) continues to rise with depth, whereas the error in BN-equipped networks (With BN) plateaus quickly, typically within 20 layers.

Spectral Universality and the Marchenko-Pastur Law

Beyond stabilizing the magnitude of activations, BN also regularizes the spectral properties of the hidden representations. The authors find that for deep BN-MLPs, the eigenvalues of the Gram matrix follow the Marchenko-Pastur (MP) law, a fundamental result from random matrix theory.

Empirical eigenvalue density of hidden representations converging to the Marchenko-Pastur law as width increases.

This spectral universality holds across a wide variety of activation functions, including ReLU, Tanh, and Sigmoid. The convergence to the MP distribution suggests that BN forces the network into a well-conditioned state at initialization, which may contribute to the improved optimization dynamics observed in practice.

Conclusion

This work provides a rigorous theoretical foundation for the stabilizing effects of Batch Normalization. By proving that BN enables a bounded mean-field error for infinitely deep networks, the authors bridge the gap between infinite-width theory and finite-width practice. Future research will focus on extending these findings to more complex architectures like Transformers and analyzing how these properties evolve during training.

Summary updated

BibTeX
@misc{joudaki2022entropy,
  author = {Amir Joudaki and Hadi Daneshmand and Francis R. Bach},
  title = {{Entropy Maximization with Depth: A Variational Principle for Random Neural Networks}},
  year = {2022},
  url = {https://openreview.net/forum?id=nsno_4xsMCO},
}
Figure