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

Blake Bordelon, Cengiz Pehlevan · DOI

Introduction

Theoretical deep learning has long leaned on the "infinite-width limit" to provide tractable models of neural network behavior. In this limit, networks become deterministic; two networks with the same architecture and data will evolve identically regardless of their random initialization. However, practical neural networks are finite. This finiteness introduces initialization fluctuations—stochastic noise in training dynamics and final predictions stemming from the specific random weights chosen at the start.

While previous research has characterized these fluctuations in the "lazy" or Neural Tangent Kernel (NTK) regime, a robust theory for the Mean Field (or $\mu$P) regime has been missing. This "rich" regime is where networks actively learn features, a hallmark of modern high-performance models. This paper bridges the gap by providing a framework to calculate $O(1/\sqrt{N})$ fluctuations in feature-learning networks.

Theoretical Framework: Dynamical Mean Field Theory

To describe the training process of finite-width networks, the authors employ Dynamical Mean Field Theory (DMFT), a technique from statistical physics. This approach treats the training trajectory as a stochastic system, allowing for a systematic expansion around the infinite-width limit.

Schematic of the DMFT framework showing the interaction between order parameters and fields across layers.

The core of this theory involves:

  1. Perturbation Theory: A cumulant expansion is used to derive $O(1/N)$ corrections to the network's bias and variance.
  2. The Propagator ($\Sigma$): The authors derive a "complete recipe" for noise propagation. By calculating the Hessian of the DMFT "action," they create a map of how a perturbation at one time step affects the network's state at a later time.
  3. Non-Perturbative Feature Learning: Crucially, this framework remains valid even when the network undergoes significant representation shifts, unlike prior theories that required feature learning to be "small."

Key Insights: Feature Learning as a Denoiser

The most striking discovery is that "rich" feature learning can actually reduce prediction variance. While initialization noise is inherent to finite networks, the process of learning features dynamically couples kernels and predictions. This coupling can "squeeze" out variance, leading to a higher signal-to-noise ratio (SNR) in wider, richer networks compared to those in the lazy regime.

Furthermore, the theory predicts that narrower networks suffer from a "bias" that slows down training. This is attributed to a detrimental $O(1/N)$ correction to the average Neural Tangent Kernel, suggesting that width doesn't just affect consistency, but also the fundamental speed of convergence.

Empirical Results

The theoretical predictions were validated using both synthetic tasks and realistic architectures like a depth-6 CNN trained on CIFAR-10.

Comparison of theoretical DMFT predictions (dashed lines) and experimental ensemble results (solid lines) for (a) average prediction errors, (b) variance of top eigenmodes, and (c) total training variance.

As shown in the figures above, the DMFT framework provides an excellent match for experimental data. Specifically:

  • Variance Scaling: Squared deviations from the infinite-width theory scale precisely as $1/N$.
  • Training Dynamics: On CIFAR-10, wider networks exhibited lower logit variance and faster convergence. By rescaling time using a derived "training rate" ($R_N$), the authors demonstrated that training losses for various widths collapse onto a single curve.
  • Edge of Stability: The theory remains predictive even in the "Edge of Stability" regime, where large learning rates cause kernel oscillations.

Limitations and Future Directions

Despite its success, the framework faces computational challenges. Calculating the full Propagator for deep networks on large datasets is expensive, as the Hessian's complexity scales as $O(T^4 P^4)$ with time steps $T$ and dataset size $P$. Additionally, while the derivations are physically rigorous, formal mathematical proofs would require further assumptions.

Future work may extend this framework to more complex architectures like Transformers or Residual Networks, and investigate the interplay between finite-width effects and biologically plausible learning rules.

Summary updated

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