NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mean-field theory of two-layers neural networks: dimension-free bounds and kernel limit

Song Mei, Theodor Misiakiewicz, Andrea Montanari

Abstract

This paper establishes a rigorous mathematical bridge between finite-width neural networks and their infinite-width "mean-field" limits. By modeling Stochastic Gradient Descent (SGD) as a gradient flow in Wasserstein space, the authors derive dimension-free bounds on the approximation error, showing that the number of neurons required for theoretical accuracy is independent of input dimensionality. Furthermore, the work unifies the mean-field and kernel regimes, demonstrating that the popular "kernel limit" (e.g., Neural Tangent Kernel) emerges as a specific short-time limit of the broader mean-field theory.

Introduction

Training a neural network involves solving a high-dimensional, non-convex optimization problem. To make this tractable for analysis, researchers often employ mean-field theory, which treats the collection of hidden neurons as a single probability distribution that evolves during training.

Historically, mathematical guarantees for this approach suggested that the number of neurons ($N$) needed to be significantly larger than the dimension of the parameters ($D$) for the theory to hold. However, in practice, neural networks often perform well even when $N$ is relatively small. This paper addresses this discrepancy by providing "dimension-free" bounds and extending the theory to realistic scenarios, including networks with unbounded activation functions like ReLU and noisy training processes.

Methodology

The authors model the evolution of a two-layer neural network during training as a gradient flow in the Wasserstein space of probability distributions. The network is defined as an empirical average of $N$ neurons:

Equation (1): Definition of the finite two-layer neural network as an empirical average of N neurons.

Here, $\theta_i = (a_i, w_i)$ represents the parameters of the $i$-th neuron. The core of the methodology involves tracking how this "cloud" of weights evolves over time toward a solution. Key technical innovations include:

  • New Coupling Arguments: A sophisticated technique to "couple" the discrete path of a finite network to the continuous path of the ideal mean-field Partial Differential Equation (PDE), allowing for more effective isolation of error terms.
  • A Priori Bounds on Growth: Mathematical proofs ensuring that weights stay within a controlled range during training, even with unbounded activations.
  • Linearization: The introduction of a scaling parameter ($\alpha$) to show how complex, non-linear mean-field dynamics simplify into a linear "kernel limit" when neurons remain near their initializations.

Theoretical Framework and Key Insights

The research offers several critical insights into the behavior of wide neural networks:

  1. Dimension Independence: The "curse of dimensionality" does not necessarily apply to the mean-field approximation. The error depends on the regularity of the data and the target function rather than the raw number of input dimensions.
  2. The Kernel-Mean Field Connection: The paper resolves the debate between "kernel" behavior (where weights move little) and "mean-field" behavior (where weights learn features). It proves they are two sides of the same coin: the kernel limit is a specific stage or scaling of the broader mean-field training process.
  3. Robustness to Noise: The mean-field approximation remains valid even when noise is added to SGD, a common practice to avoid local minima, though the mathematical treatment becomes significantly more complex.

Results

The authors evaluate their theorems using a synthetic classification task involving Centered Anisotropic Gaussians. While previous theories suggested $N = O(d)$ neurons were required to solve this (where $d$ is the dimension), the new bounds prove that $N = O(1)$—a constant number of neurons—is sufficient regardless of $d$.

Key results include:

  • Stronger Bounds: The difference between a finite network and the mean-field PDE scales as $O(1/\sqrt{N} + \sqrt{\epsilon})$, where $\epsilon$ is the step size. Crucially, the $1/\sqrt{N}$ term is independent of the dimension $D$.
  • ReLU Support: Mean-field guarantees are successfully extended to unbounded activations, which are standard in modern architectures.
  • Kernel Recovery: The authors formally prove that Kernel Ridge Regression can be recovered as a special limit of their mean-field analysis.

Discussion and Future Work

While the bounds are dimension-free, they contain constants that grow exponentially with training time ($T$), meaning the theory is most accurate for short-to-medium durations. Additionally, for noisy SGD with general coefficients, a fully dimension-free bound remains elusive. Finally, this analysis is restricted to two-layer networks; extending these dimension-free guarantees to deep, multi-layer architectures remains a significant open challenge in deep learning theory.

Summary updated

BibTeX
@inproceedings{mei2019mean,
  author = {Song Mei and Theodor Misiakiewicz and Andrea Montanari},
  title = {{Mean-field theory of two-layers neural networks: dimension-free bounds and kernel limit}},
  booktitle = {Conference on Learning Theory},
  year = {2019},
}
Figure