On the infinite-depth limit of finite-width neural networks

Soufiane Hayou

Introduction

Theoretical frameworks for deep neural networks often prioritize the "infinite-width" limit, where the Central Limit Theorem simplifies network outputs into predictable Gaussian random variables. However, real-world architectures are frequently characterized by extreme depth and relatively narrow widths. This research explores the "infinite-depth-then-finite-width" regime, investigating the statistical distribution of outputs, signal stability, and the sensitivity of the network to specific activation functions as depth $L \to \infty$ for a fixed width $n$.

Modeling ResNets as Diffusion Processes

The study conceptualizes Residual Neural Networks (ResNets) as discrete-time dynamical systems. By scaling residual branches by $1/\sqrt{L}$, the author demonstrates that pre-activations converge in distribution to a Stochastic Differential Equation (SDE) in the infinite-depth limit. Utilizing Itô’s Lemma—a fundamental tool in stochastic calculus—the paper derives closed-form expressions for output distributions. This approach reveals that the pre-activations $X_t$ follow the dynamics $dX_t = \frac{1}{\sqrt{n}} \|\phi(X_t)\| dB_t$, where $\phi$ represents the activation function and $B_t$ is a standard Brownian motion.

Key Insights

The Breakdown of Universality

In the infinite-width limit, most activation functions lead to identical Gaussian behavior. This "universality" collapses in the infinite-depth regime, where the output distribution becomes highly sensitive to the choice of activation. For example, a width-1 ResNet with ReLU behaves like a mixture of Geometric Brownian Motion and a constant, whereas other activations can produce Ornstein-Uhlenbeck processes.

The Critical Width Threshold

A significant finding is the identification of a regime change at a width of $n=4$ for ReLU networks. For widths $n \le 3$, the signal tends to exhibit negative logarithmic growth (shrinking on average). Conversely, for $n \ge 4$, the signal tends to grow. This suggests that a minimum width of 4 is a structural requirement for signal persistence in extremely deep ReLU-based architectures.

Signal Persistence and Quasi-GBM

The research proves that "network collapse"—where all neurons in a layer output zero—is a zero-probability event in the infinite-depth limit, provided the initial input is non-zero. The norm of the activations follows "Quasi-Geometric Brownian Motion," fluctuating with a drift that depends on the specific states of the neurons.

Empirical Validation

The theoretical findings were verified through extensive Monte Carlo simulations (5,000 runs per configuration) across varying widths and depths.

Evolution of the distribution of $\log(Y_L)$ and $Y_L$ as depth $L$ increases, demonstrating convergence to the theoretical log-normal density.

As illustrated in the figure above, the empirical density of $\log(Y_L)$ aligns increasingly well with the theoretical Gaussian density as depth $L$ increases from 5 to 100. This confirms the log-normal distribution of activation norms in deep networks.

Conclusion and Future Work

This study highlights the intricate neuron dependencies that are typically smoothed over in infinite-width approximations. While the distribution of a single input is now well-characterized, understanding the evolution of correlations between multiple inputs remains mathematically challenging.

Neural paths and final distribution of the activation norm $Y_L$ for $L=100$, illustrating the stochastic "Quasi-GBM" dynamics.

Future research will focus on extending these insights to training dynamics and the Neural Tangent Kernel (NTK), which governs learning speed and generalization in this finite-width/infinite-depth regime.

Summary updated

BibTeX
@article{hayou2023infinite,
  author = {Soufiane Hayou},
  title = {{On the infinite-depth limit of finite-width neural networks}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=VvppVReePg},
}
Figure