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

A mean-field limit for certain deep neural networks

Dyego Carlos Souza Anacleto de Araújo, Roberto I. Oliveira, Daniel YukimuraarXiv 2019 · DOI

Abstract

Understanding the training dynamics of deep neural networks (DNNs) remains a fundamental challenge in machine learning theory. This paper establishes a rigorous mathematical foundation for DNNs as they scale in width, specifically focusing on the limit where the number of neurons per layer $N$ approaches infinity. By modeling network weights as interacting particles within a statistical mechanics framework, the authors derive a mean-field limit described by a McKean-Vlasov process. This work extends existing theories for shallow networks to architectures with an arbitrary number of hidden layers, providing formal proofs for the existence, uniqueness, and convergence of these limits.

Introduction

Despite the empirical dominance of deep learning, the theoretical mechanisms governing how these networks learn during training are not fully understood. One productive avenue for simplification is the "infinite-width limit," which examines the behavior of a network as the number of neurons per layer ($N$) becomes very large.

Previous research successfully characterized this limit for "shallow" networks (those with a single hidden layer) using mean-field theory. In such models, individual weights behave like random particles interacting with a collective distribution of other weights. However, extending this to deep networks ($L \geq 2$) introduces significant complexity: layers are stacked, and the training of one layer depends on the weights and gradients of all others. This creates a web of dependencies that standard mean-field tools, designed for independent or weakly interacting systems, could not previously resolve.

The Mean-Field Framework for Depth

The authors analyze a DNN with $L$ hidden layers trained via Stochastic Gradient Descent (SGD). To describe the evolution of the network, they employ several sophisticated mathematical techniques to bridge the gap between discrete weight updates and continuous theoretical models.

From Neurons to Paths

A central insight of this paper is the shift in the "fundamental unit" of analysis. In shallow networks, weights tend to become independent in the limit—a property known as "propagation of chaos." In deep networks, this independence breaks down because weights in successive layers are intrinsically linked. The authors demonstrate that while individual neurons are correlated with those in adjacent layers, the paths of weights stretching from input to output are the correct objects of study. While weights within a path are dependent, weights belonging to different, disjoint paths remain independent in the limit.

Methodological Innovations

To make the analysis of deep architectures tractable, the authors utilize:

  • McKean-Vlasov Limits: The evolution of weights is modeled as a system of interacting particles. As $N \to \infty$, the influence of the aggregate network on a single weight is replaced by an interaction with the probability distribution of the weights.
  • Frozen Boundary Layers: A significant technical hurdle in deep networks is that different layers can evolve at different time scales. To address this, the authors keep the weights of the first and last layers fixed (treating them as "random features") while training all intermediate layers. This ensures a consistent scaling limit across the architecture.
  • Fixed-Point Proofs: The authors prove the existence and uniqueness of the limiting process by defining a mathematical operator and demonstrating it is a "contraction." This proves that the training process follows a single, well-defined trajectory in the infinite-width limit.

Theoretical Results

Rigorous Convergence and Error Bounds

The paper moves beyond heuristic derivations to provide a formal proof that the discrete steps of SGD track the continuous "ideal" mean-field flow. They establish a concrete formula for the error between a finite network and the theoretical infinite model. The difference in the loss function is bounded by:

$$O\left(\sqrt{ rac{d}{N}} + \epsilon + \sqrt{\epsilon d}\right)$$

where $N$ is the number of neurons, $\epsilon$ is the learning rate, and $d$ is the dimension of the layers. This result confirms that as the number of neurons increases and the learning rate decreases, the behavior of a real-world network converges perfectly to the predicted mean-field model.

Handling Discontinuity

Mathematical analysis of deep networks often involves conditional distributions (e.g., the state of layer $l$ given layer $l-1$). These are difficult to manage because they can be discontinuous. The authors identified a specific set of probability measures where these dependencies remain sufficiently smooth, allowing them to prove convergence where previous attempts failed.

Limitations and Future Work

While this work provides a rigorous baseline for deep learning theory, several constraints remain for future exploration:

  • Activation Functions: The current proof requires smooth, bounded activation functions. This excludes the widely used ReLU (Rectified Linear Unit), which is non-smooth at zero.
  • Architectures: The study focuses on fully connected (dense) networks. Extending these mean-field results to Convolutional Neural Networks (CNNs) or Transformers remains a major open challenge.
  • Global Convergence: The paper describes how the network evolves along a trajectory but does not prove that this trajectory will necessarily reach a global optimum.
  • Training All Layers: Future work may relax the requirement of frozen input/output layers, perhaps by employing layer-specific learning rates to balance disparate time scales.

Conclusion

By extending mean-field theory to deep architectures, this research provides a vital link between the behavior of individual weights and the collective dynamics of deep neural networks. It establishes that deep networks, despite their complexity, follow predictable mathematical laws as they grow wider, offering a rigorous path forward for the design and analysis of more robust AI systems.

Summary updated

BibTeX
@misc{araujo2019mean,
  author = {Dyego Carlos Souza Anacleto de Araújo and Roberto I. Oliveira and Daniel Yukimura},
  title = {{A mean-field limit for certain deep neural networks}},
  year = {2019},
  eprint = {1906.00193},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00193},
}
Figure