Dynamics of Finite Width Kernel and Prediction Fluctuations in Mean Field Neural Networks

Blake Bordelon, Cengiz Pehlevan

Theoretical deep learning often relies on the "infinite-width limit" to make neural networks mathematically tractable. In this idealized world, networks either behave like simple linear models (the Neural Tangent Kernel or "lazy" regime) or follow predictable "Mean Field" dynamics. However, real-world networks are finite, and this finiteness introduces two major complications: bias (finite networks might learn at different speeds or converge to different solutions) and variance (networks with identical architectures but different random initial weights will follow divergent training trajectories).

While previous work has explored these fluctuations in the lazy regime, there has been a lack of rigorous methods to track them in the "rich" regime—the state where deep learning derives its power by actively learning and adapting internal features. This paper bridges that gap, providing a theoretical recipe to calculate how initialization randomness affects the training of wide-but-finite neural networks, and revealing how rich feature learning can act as a surprising stabilizer.

Methodology: Perturbing the Mean Field

The authors build upon Dynamical Mean Field Theory (DMFT). In the infinite-width limit, DMFT describes the average behavior of a network's neurons as a self-consistent stochastic process. To handle finite widths, the authors perform a perturbative cumulant expansion around this infinite-width solution.

DMFT Order Parameters and Fields

Their key technical contributions include deriving a massive covariance matrix—the Propagator ($\Sigma$)—that tracks the fluctuations of "order parameters" (like feature kernels and gradient kernels) across time and layers. They also introduce new mathematical objects, such as D-tensors and $\kappa$-tensors, to describe how noise at initialization propagates through the network's layers and how sensitive the kernels are to changes in the error signal. Unlike the lazy regime where kernels are static, the rich regime features dynamically coupled fluctuations of kernels and predictions, which the authors solve self-consistently.

Key Insights: Feature Learning as a Denoiser

One of the most striking findings of the paper is that rich feature learning can actually improve the signal-to-noise ratio (SNR) of the network's kernels. While the kernels themselves become more random due to finite-width effects, the way they couple to the task helps reduce the final variance in predictions compared to lazy learning.

Other notable insights include:

  • The Cost of Complexity: In deep networks, kernel variance accumulates layer-by-layer. However, the "richer" the training (controlled by a scaling factor $\gamma$), the closer the network stays to its ideal mean-field behavior.
  • Training Rate Corrections: Finite width doesn't just add noise; it changes the speed of learning. The authors show that the training rate $R_N$ follows a power law: $R_N \approx R_\infty + \text{constant}/N$.
  • Edge of Stability (EoS): The theory holds up even when using large learning rates that cause the kernel to oscillate. Remarkably, initialization variance can actually decrease dynamically in these EoS regimes.

Empirical Validation and Results

The theory was rigorously validated using synthetic toy models to isolate specific dynamical effects, as well as on CIFAR-10 using a depth-6 ReLU Convolutional Neural Network (CNN) in the mean-field parameterization.

Prediction Errors and Variance over Time

The authors empirically confirmed that the squared deviation of finite networks from the DMFT prediction scales exactly as $\mathcal{O}(1/N)$, perfectly matching their theoretical derivations. In two-layer networks, they demonstrated that increasing the richness of feature learning consistently leads to lower asymptotic variance in test predictions. Furthermore, the derived differential equations for prediction variance accurately tracked the behavior of ensembles of finite networks, capturing both the average prediction errors and the total train variance over time.

On CIFAR-10, wider networks showed significantly lower bias (training faster) and lower logit variance when compared at the same level of training accuracy, underscoring the practical implications of finite-width corrections.

Limitations and Future Directions

While groundbreaking, the framework has limitations. The full computational "recipe" is expensive: for a dataset of size $P$ and $T$ training steps, the Hessian matrix scales as $\mathcal{O}(T^4 P^4)$, making it difficult to apply to massive datasets without further approximations. Additionally, the derivation follows the "rigor of physics" (using functional integrals and perturbation series) rather than formal mathematical proofs.

Finally, the current theory begins to break down when the number of training samples $P$ becomes comparable to the width $N$. Future work will need to explore this "proportional limit" where $P/N$ is constant, pushing our understanding of neural network dynamics even closer to real-world deployment scenarios.

Summary updated

Abstract

We analyze the dynamics of finite width effects in wide but finite feature learning neural networks. Starting from a dynamical mean field theory description of infinite width deep neural network kernel and prediction dynamics, we provide a characterization of the $\mathcal{O}(1/\sqrt{\text{width}})$ fluctuations of the DMFT order parameters over random initializations of the network weights. Our results, while perturbative in width, unlike prior analyses, are non-perturbative in the strength of feature learning. In the lazy limit of network training, all kernels are random but static in time and the prediction variance has a universal form. However, in the rich, feature learning regime, the fluctuations of the kernels and predictions are dynamically coupled with a variance that can be computed self-consistently. In two layer networks, we show how feature learning can dynamically reduce the variance of the final tangent kernel and final network predictions. We also show how initialization variance can slow down online learning in wide but finite networks. In deeper networks, kernel variance can dramatically accumulate through subsequent layers at large feature learning strengths, but feature learning continues to improve the signal-to-noise ratio of the feature kernels. In discrete time, we demonstrate that large learning rate phenomena such as edge of stability effects can be well captured by infinite width dynamics and that initialization variance can decrease dynamically. For CNNs trained on CIFAR-10, we empirically find significant corrections to both the bias and variance of network dynamics due to finite width.
BibTeX
@article{bordelon2024dynamics,
  author = {Blake Bordelon and Cengiz Pehlevan},
  title = {{Dynamics of Finite Width Kernel and Prediction Fluctuations in Mean Field Neural Networks}},
  journal = {Journal of Statistical Mechanics Theory and Experiment},
  year = {2024},
  doi = {10.1088/1742-5468/ad642b},
}
Figure