Introduction
In recent years, the "infinite-width" limit has become a cornerstone of deep learning theory. The most prominent result in this area, the Neural Tangent Kernel (NTK), suggests that as networks become increasingly wide, they behave like linear models with fixed features. While mathematically elegant, this "lazy" regime fails to capture the essence of deep learning: the ability of a network to adapt its internal representations to the data.
Presented at NeurIPS 2022, this paper provides a rigorous theoretical bridge between the lazy regime and the "rich" regime of feature learning. By applying Dynamical Mean Field Theory (DMFT) from statistical physics, the authors derive a self-consistent framework to track how kernels evolve throughout training in infinite-width networks, offering a numerical recipe to predict dynamics that match real-world, finite-width architectures.
The Challenge of Feature Learning
Modeling the rich regime is significantly more complex than the lazy regime because weights and activations interact in a non-linear, time-dependent manner. Previous attempts to model these dynamics, such as Tensor Programs, are powerful but often mathematically opaque. This paper seeks a more interpretable, physics-inspired framework to describe how neural networks learn features.
Methodology: Dynamical Mean Field Theory
The authors employ DMFT, a tool originally developed to study complex systems like spin glasses, to treat the training process (gradient flow) as a high-dimensional stochastic process. Their approach involves several key components:
- Path Integral Formulation: The behavior of thousands of neurons is reduced to a few "order parameters"—specifically, dynamical kernels ($\Phi$ and $G$) that track correlations of activations and gradients across different time points.
- Saddle Point Equations: The authors derive a set of equations that these kernels must satisfy. These equations describe a self-consistent loop: the kernels define the distribution of neural activity, and the neural activity, in turn, defines how the kernels evolve.
- Interpolation Parameter ($\gamma_0$): A scaling parameter, $\gamma_0$, is introduced to smoothly interpolate between the lazy NTK regime ($\gamma_0 \to 0$) and the rich feature learning regime ($\gamma_0 = 1$).
- Numerical Solver: For non-linear networks, the authors propose an alternating Monte-Carlo procedure. This algorithm iteratively samples neural trajectories and updates the kernels until they reach a self-consistent solution.
Key Insights
Order Parameters and Physics
The complex evolution of a wide network can be summarized by deterministic kernels. Rather than tracking every individual weight, one only needs to track how the inner products of activations and gradients change over time. This DMFT derivation recovers the same stochastic processes found in the Tensor Programs framework but offers a perspective more intuitive to those with a background in statistical mechanics.
Width Invariance
A significant finding is the demonstration of width invariance. If the "feature learning strength" ($\gamma_0$) is kept fixed, the training loss and kernel dynamics remain remarkably consistent across different network widths. This suggests that the infinite-width limit is a robust proxy for understanding practical, finite-width networks.
Failure of Simple Approximations
The authors demonstrate that common simplifications—such as assuming gradients are independent or using simple perturbation theory—break down when feature learning is strong. Their self-consistent DMFT remains accurate even in these highly non-linear, rich scenarios.
Experimental Results
The theory was validated across several architectures and datasets:
- Deep Linear Networks: The authors provided closed-form algebraic equations for kernel evolution, showing that deeper networks exhibit more significant feature adaptation for the same learning strength.
- Non-linear Networks: In depth-4 tanh networks, DMFT predictions for loss curves and activation distributions matched finite-width simulations (e.g., $N=2500$) almost perfectly.
- CNNs on CIFAR-10: Using a "boat vs plane" classification task, the theory correctly predicted that increasing $\gamma_0$ accelerates training and leads to more "active" kernel evolution, resulting in better alignment with the target task.
- L2 Regularization: The theory explains why weight decay in the NTK limit often leads to trivial solutions, whereas feature learning ($\gamma_0 > 0$) allows the network to find non-trivial, useful fixed points.
Limitations and Future Directions
While the framework is powerful, it faces several hurdles. Solving the full DMFT is computationally expensive, scaling as $O(P^3 T^3)$ (where $P$ is the number of data points and $T$ is the number of time steps), which limits its current application to massive datasets. Furthermore, the derivation relies on "physics-style" heuristics rather than formal epsilon-delta proofs.
Future work may involve extending the theory to account for the noise inherent in mini-batch Stochastic Gradient Descent (SGD) and using the "action" $S$ from the path integral to calculate $1/N$ corrections for networks that are not infinitely wide.
Summary updated