[Paper Review] From high-dimensional & mean-field dynamics to dimensionless ODEs: A unifying approach to SGD in two-layers networks
This paper unifies the analysis of stochastic gradient descent (SGD) in two-layer neural networks across high-dimensional, mean-field, and gradient-flow regimes by deriving a low-dimensional, dimensionless ODE system that captures the limiting dynamics. The key contribution is a rigorous, unified description valid when γ/(dp) → 0+, revealing dimension-independent dynamics in the gradient-flow limit and bridging previously disconnected theoretical frameworks via sufficient statistics and Gaussian moment calculations.
This manuscript investigates the one-pass stochastic gradient descent (SGD) dynamics of a two-layer neural network trained on Gaussian data and labels generated by a similar, though not necessarily identical, target function. We rigorously analyse the limiting dynamics via a deterministic and low-dimensional description in terms of the sufficient statistics for the population risk. Our unifying analysis bridges different regimes of interest, such as the classical gradient-flow regime of vanishing learning rate, the high-dimensional regime of large input dimension, and the overparameterised "mean-field" regime of large network width, covering as well the intermediate regimes where the limiting dynamics is determined by the interplay between these behaviours. In particular, in the high-dimensional limit, the infinite-width dynamics is found to remain close to a low-dimensional subspace spanned by the target principal directions. Our results therefore provide a unifying picture of the limiting SGD dynamics with synthetic data.
Motivation & Objective
- To unify the analysis of SGD dynamics in two-layer neural networks across disparate regimes: high-dimensional (d → ∞), mean-field (p → ∞), and classical gradient flow (γ → 0).
- To identify a low-dimensional, deterministic ODE system that describes the limiting SGD dynamics using sufficient statistics of the population risk.
- To establish a rigorous connection between the high-dimensional ODE approach and the mean-field PDE formalism, particularly in the infinite-width limit.
- To demonstrate that in the gradient-flow limit, the dynamics becomes independent of input dimension d, revealing a hidden dimension-invariance.
- To provide a numerical solver and open-source code for simulating the derived ODEs and PDEs across different parameter regimes.
Proposed method
- Derives a non-asymptotic ODE description of one-pass SGD dynamics in two-layer networks trained on Gaussian data with a teacher network, using sufficient statistics of the population risk.
- Applies Isserlis’ theorem to compute expectations of polynomial functions of Gaussian-distributed local fields, enabling closed-form expressions for the ODEs.
- Introduces a dimensionless scaling via the ratio γ/(dp) → 0+ to unify the three regimes, ensuring the ODEs remain valid across intermediate parameter settings.
- Constructs the mean-field PDE limit by taking p → ∞ in the ODEs, showing that the dynamics remains confined to a low-dimensional subspace spanned by the target principal directions.
- Explicitly derives the mean-field PDE from the ODEs by decoupling the dynamics and accounting for off-diagonal terms in the matrix Ξ, which are crucial for accuracy.
- Develops a numerical solver for the ODEs and PDEs, with open-source code available on GitHub for reproducibility and validation.

Experimental results
Research questions
- RQ1How can the SGD dynamics of two-layer networks be unified across the high-dimensional, mean-field, and gradient-flow regimes?
- RQ2What is the role of the ratio γ/(dp) in determining the validity of a low-dimensional ODE description of the SGD dynamics?
- RQ3Does the gradient-flow limit (γ → 0) exhibit dimension independence in terms of the sufficient statistics, regardless of input dimension d?
- RQ4How do the finite-d and high-d mean-field PDEs differ, and what is the impact of off-diagonal terms in the matrix Ξ on the dynamics?
- RQ5Can the ODE framework accurately reproduce the dynamics in the mean-field regime, especially when neglecting certain matrix components?
Key findings
- The limiting SGD dynamics is governed by a low-dimensional, deterministic ODE system in the regime where γ/(dp) → 0+, valid across all three key regimes.
- In the classical gradient-flow limit (γ → 0), the dynamics of the sufficient statistics is entirely independent of the input dimension d, revealing a remarkable dimension-invariance.
- The mean-field PDE arises naturally from the ODEs in the p → ∞ limit, with the dynamics confined to a low-dimensional subspace spanned by the target principal directions.
- Neglecting off-diagonal terms in the matrix Ξ leads to significant discrepancies in the ODE integration, especially for even activation functions like quadratic, as shown in numerical experiments.
- For the erf activation, symmetry reduces the impact of off-diagonal terms, but they remain necessary for accurate long-term dynamics, particularly in high-dimension settings.
- Numerical simulations confirm that the ODEs accurately track the SGD dynamics, including the convergence to perfect learning (δ-distribution at w* and -w*) in the long-time limit.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.