The NTK Limit, Kernel Ridge Regression, Benign Overfitting, and Mean Field ICTP Summer School on Machine Learning — Lecture 6 (Day 8)
These notes cover the Day 8 lecture by Andrea Montanari. We begin by making the NTK theorem concrete: an explicit initialization scheme, the kernel trick giving a finite-width KRR predictor, and the Zhong 2023 theorem quantifying how large m m m must be for the finite-width predictor to match the infinite-width one. We then state the GMMM theorem (Ghorbani–Mei–Misiakiewicz–Montanari 2021) characterizing the exact risk of the infinite-width KRR estimator — revealing a staircase structure — and explain the benign overfitting mechanism. The second half of the lecture introduces the mean field limit of two-layer networks as an alternative to lazy training that enables feature learning, described in three equivalent ways: McKean–Vlasov ODE, Fokker–Planck PDE, and JKO Wasserstein gradient flow.
Explicit NTK Construction and the Finite-Width KRR Predictor ¶ A Concrete Initialization Scheme ¶ The abstract NTK theorem (Lecture 5) applies to any network satisfying the Lipschitz condition. Here we specialize to a concrete symmetric initialization that gives a well-conditioned NTK. Consider
f ( x ; θ ) = α m ∑ k = 1 m b k σ ( w k ⊤ x ) , b 1 = ⋯ = b m / 2 = + 1 , b m / 2 + 1 = ⋯ = b m = − 1 (fixed) , f(x;\theta) = \frac{\alpha}{\sqrt{m}}\sum_{k=1}^m b_k\,\sigma(w_k^\top x), \qquad b_1 = \cdots = b_{m/2} = +1,\quad b_{m/2+1} = \cdots = b_m = -1 \;\text{(fixed)}, f ( x ; θ ) = m α k = 1 ∑ m b k σ ( w k ⊤ x ) , b 1 = ⋯ = b m /2 = + 1 , b m /2 + 1 = ⋯ = b m = − 1 (fixed) , with w 1 , … , w m / 2 ∼ U n i f ( S d − 1 ) w_1,\ldots,w_{m/2} \sim \mathrm{Unif}(S^{d-1}) w 1 , … , w m /2 ∼ Unif ( S d − 1 ) and w m / 2 + k = w k w_{m/2+k} = w_k w m /2 + k = w k . The outer weights b k b_k b k are fixed; only the w k w_k w k are trained. This ensures f ( ⋅ ; θ 0 ) = 0 f(\cdot;\theta_0) = 0 f ( ⋅ ; θ 0 ) = 0 at initialization and σ ℓ ≠ 0 \sigma_\ell \neq 0 σ ℓ = 0 for all ℓ \ell ℓ .
The feature map is ϕ ( x ) = ∇ θ f ( x ; θ 0 ) ∈ R p \phi(x) = \nabla_\theta f(x;\theta_0) \in \mathbb{R}^p ϕ ( x ) = ∇ θ f ( x ; θ 0 ) ∈ R p (p = m d p = md p = m d ), and the empirical NTK is
K m ( x 1 , x 2 ) = 1 m ∑ k = 1 m ⟨ x 1 , x 2 ⟩ d σ ′ ( w k ⊤ x 1 ) σ ′ ( w k ⊤ x 2 ) . K_m(x_1,x_2) = \frac{1}{m}\sum_{k=1}^m \frac{\langle x_1,x_2\rangle}{d}\,\sigma'(w_k^\top x_1)\,\sigma'(w_k^\top x_2). K m ( x 1 , x 2 ) = m 1 k = 1 ∑ m d ⟨ x 1 , x 2 ⟩ σ ′ ( w k ⊤ x 1 ) σ ′ ( w k ⊤ x 2 ) . The Linearized Model and Kernel Trick ¶ The linearized model is f l i n ( x ; θ ) = ⟨ ϕ ( x ) , θ − θ 0 ⟩ f_\mathrm{lin}(x;\theta) = \langle\phi(x), \theta - \theta_0\rangle f lin ( x ; θ ) = ⟨ ϕ ( x ) , θ − θ 0 ⟩ , with feature matrix Φ ∈ R n × p \Phi \in \mathbb{R}^{n\times p} Φ ∈ R n × p . The ridge-regularized solution is
b ^ λ = ( Φ ⊤ Φ + λ I p ) − 1 Φ ⊤ y . \hat b_\lambda = (\Phi^\top\Phi + \lambda I_p)^{-1}\Phi^\top y. b ^ λ = ( Φ ⊤ Φ + λ I p ) − 1 Φ ⊤ y . By the kernel trick (p ≫ n p \gg n p ≫ n in the overparameterized regime):
b ^ λ = Φ ⊤ ( Φ Φ ⊤ ⏟ K m , n + λ I n ) − 1 y , f ^ λ ( x ) = K m ( x , X ) ( λ I n + K m , n ) − 1 y . \hat b_\lambda = \Phi^\top(\underbrace{\Phi\Phi^\top}_{K_{m,n}} + \lambda I_n)^{-1}y, \qquad \hat f_\lambda(x) = K_m(x,\mathbb{X})(\lambda I_n + K_{m,n})^{-1}y. b ^ λ = Φ ⊤ ( K m , n Φ Φ ⊤ + λ I n ) − 1 y , f ^ λ ( x ) = K m ( x , X ) ( λ I n + K m , n ) − 1 y . This is the finite-width KRR predictor f ^ l i n , m , λ \hat f_{\mathrm{lin},m,\lambda} f ^ lin , m , λ .
Infinite-Width Limit ¶ As m → ∞ m\to\infty m → ∞ , K m ( x 1 , x 2 ) → K ( x 1 , x 2 ) = h d ( ⟨ x 1 , x 2 ⟩ / d ) K_m(x_1,x_2) \to K(x_1,x_2) = h_d(\langle x_1,x_2\rangle/d) K m ( x 1 , x 2 ) → K ( x 1 , x 2 ) = h d (⟨ x 1 , x 2 ⟩ / d ) where
h d ( q ) = q ⋅ E [ σ ′ ( G 1 ) σ ′ ( G 2 ) ] , ( G 1 , G 2 ) ∼ N ( 0 , ( 1 q q 1 ) ) , h_d(q) = q\cdot\mathbb{E}[\sigma'(G_1)\sigma'(G_2)], \qquad (G_1,G_2) \sim \mathcal{N}\!\left(0,\binom{1\;q}{q\;1}\right), h d ( q ) = q ⋅ E [ σ ′ ( G 1 ) σ ′ ( G 2 )] , ( G 1 , G 2 ) ∼ N ( 0 , ( q 1 1 q ) ) , and h d → d → ∞ h h_d \xrightarrow{d\to\infty} h h d d → ∞ h . The infinite-width NTK predictor is KRR with kernel K K K :
f ^ ∞ , λ ( x ) = K ( x , X ) ( λ I n + K ( X , X ) ) − 1 y . \hat f_{\infty,\lambda}(x) = K(x,\mathbb{X})(\lambda I_n + K(\mathbb{X},\mathbb{X}))^{-1}y. f ^ ∞ , λ ( x ) = K ( x , X ) ( λ I n + K ( X , X ) ) − 1 y . Parenthesis: RKHS ¶ For a kernel K ( x 1 , x 2 ) = ∑ ℓ λ ℓ 2 ψ ℓ ( x 1 ) ψ ℓ ( x 2 ) K(x_1,x_2) = \sum_\ell \lambda_\ell^2\psi_\ell(x_1)\psi_\ell(x_2) K ( x 1 , x 2 ) = ∑ ℓ λ ℓ 2 ψ ℓ ( x 1 ) ψ ℓ ( x 2 ) , the RKHS norm is ∥ f ∥ K 2 = ∑ ℓ λ ℓ − 2 ⟨ ψ ℓ , f ⟩ 2 \|f\|_K^2 = \sum_\ell \lambda_\ell^{-2}\langle\psi_\ell,f\rangle^2 ∥ f ∥ K 2 = ∑ ℓ λ ℓ − 2 ⟨ ψ ℓ , f ⟩ 2 , and KRR solves
f ^ λ = arg min f { 1 n ∑ i ( y i − f ( x i ) ) 2 + λ ∥ f ∥ K 2 } . \hat f_\lambda = \operatorname*{arg\,min}_f\left\{\frac{1}{n}\sum_i(y_i-f(x_i))^2 + \lambda\|f\|_K^2\right\}. f ^ λ = f arg min { n 1 i ∑ ( y i − f ( x i ) ) 2 + λ ∥ f ∥ K 2 } . Approximation Theorem: How Large Must m m m Be? ¶ Assume n ≥ d n \geq d n ≥ d , m d ≥ C n log n md \geq C_n\log n m d ≥ C n log n , α ≥ C n 2 / ( m d ) \alpha \geq C\sqrt{n^2/(md)} α ≥ C n 2 / ( m d ) . Then with high probability:
(i) Training convergence: R ^ n ( θ t ) → 0 \hat R_n(\theta_t) \to 0 R ^ n ( θ t ) → 0 exponentially fast.
(ii) Finite-to-linearized approximation (Oyamle–Soltanokotabi 2021): gradient flow tracks the linearized KRR model,
∥ f ( θ t ) − f l i n ( θ t ) ∥ L 2 ≤ C α 2 n 5 m d 4 = ∥ a ∥ 1 m d n . \|f(\theta_t) - f_\mathrm{lin}(\theta_t)\|_{L^2} \leq \frac{C}{\alpha^2}\sqrt{\frac{n^5}{md^4}} = \frac{\|a\|_1}{m}\sqrt{\frac{d}{n}}. ∥ f ( θ t ) − f lin ( θ t ) ∥ L 2 ≤ α 2 C m d 4 n 5 = m ∥ a ∥ 1 n d . (iii) Finite-to-infinite-width approximation (Zhong 2023): for d ℓ + δ ≤ n ≤ d ℓ + 1 − δ d^{\ell+\delta} \leq n \leq d^{\ell+1-\delta} d ℓ + δ ≤ n ≤ d ℓ + 1 − δ and all λ ∈ [ 0 , λ ∗ ] \lambda \in [0,\lambda_*] λ ∈ [ 0 , λ ∗ ] ,
R ( f ^ m , n , λ ) = R ( f ^ ∞ , n , λ ) + O ( n ( log n ) c m d ) . R(\hat f_{m,n,\lambda}) = R(\hat f_{\infty,n,\lambda}) + O\!\left(\sqrt{\frac{n(\log n)^c}{md}}\right). R ( f ^ m , n , λ ) = R ( f ^ ∞ , n , λ ) + O ( m d n ( log n ) c ) . As long as m d ≫ n ( log n ) c md \gg n(\log n)^c m d ≫ n ( log n ) c , the finite-width predictor is statistically equivalent to the infinite-width one. All the GMMM theory below therefore applies to the actual finite-width network.
Proof Sketch: Matrix Bernstein ¶ The key step is K m , n ≈ K n K_{m,n} \approx K_n K m , n ≈ K n . Write K m , n = ∑ ℓ = 1 m Z ℓ K_{m,n} = \sum_{\ell=1}^m Z_\ell K m , n = ∑ ℓ = 1 m Z ℓ (rank-d d d i.i.d. matrices). Direct concentration fails since Z ℓ Z_\ell Z ℓ are not centered. Instead normalize:
K n − 1 / 2 K m , n K n − 1 / 2 − I = ∑ ℓ = 1 m Z ^ ℓ , Z ^ ℓ = K n − 1 / 2 Z ℓ K n − 1 / 2 − 1 m I n . K_n^{-1/2}K_{m,n}K_n^{-1/2} - I = \sum_{\ell=1}^m \hat Z_\ell, \qquad \hat Z_\ell = K_n^{-1/2}Z_\ell K_n^{-1/2} - \tfrac{1}{m}I_n. K n − 1/2 K m , n K n − 1/2 − I = ℓ = 1 ∑ m Z ^ ℓ , Z ^ ℓ = K n − 1/2 Z ℓ K n − 1/2 − m 1 I n . The Z ^ ℓ \hat Z_\ell Z ^ ℓ are mean-zero with bounded operator norm. Apply the matrix Bernstein inequality to get the desired concentration.
The GMMM Theorem: Staircase Risk of KRR ¶ Setting ¶ Data x i = d z i x_i = \sqrt{d}\,z_i x i = d z i , z i ∼ iid U n i f ( S d − 1 ) z_i \overset{\text{iid}}{\sim} \mathrm{Unif}(S^{d-1}) z i ∼ iid Unif ( S d − 1 ) , labels y i = f ∗ ( x i ) + ε i y_i = f_*(x_i)+\varepsilon_i y i = f ∗ ( x i ) + ε i , V a r ( ε i ) = σ 2 \mathrm{Var}(\varepsilon_i) = \sigma^2 Var ( ε i ) = σ 2 . Kernel K ( x 1 , x 2 ) = h ( ⟨ x 1 , x 2 ⟩ / d ) K(x_1,x_2) = h(\langle x_1,x_2\rangle/d) K ( x 1 , x 2 ) = h (⟨ x 1 , x 2 ⟩ / d ) with Gegenbauer expansion h ( u ) = ∑ ℓ b ℓ Q ℓ ( u ) h(u) = \sum_\ell b_\ell Q_\ell(u) h ( u ) = ∑ ℓ b ℓ Q ℓ ( u ) .
Assume σ \sigma σ is σ \sigma σ -generic (b ℓ > 0 ∀ ℓ b_\ell > 0\;\forall\ell b ℓ > 0 ∀ ℓ ) and E σ 2 ( G ) < ∞ \mathbb{E}\sigma^2(G) < \infty E σ 2 ( G ) < ∞ . For d ℓ ≪ n ≪ d ℓ + 1 d^\ell \ll n \ll d^{\ell+1} d ℓ ≪ n ≪ d ℓ + 1 and λ ∈ [ 0 , λ ∗ ] \lambda \in [0,\lambda_*] λ ∈ [ 0 , λ ∗ ] :
R ( f ^ ∞ , λ ) − R B a y e s = ∥ P > ℓ f ∗ ∥ L 2 2 + o P ( 1 ) ⋅ ∥ f ∗ ∥ L 2 . R(\hat f_{\infty,\lambda}) - R_\mathrm{Bayes} = \|P_{>\ell}f_*\|_{L^2}^2 + o_\mathbb{P}(1)\cdot\|f_*\|_{L^2}. R ( f ^ ∞ , λ ) − R Bayes = ∥ P > ℓ f ∗ ∥ L 2 2 + o P ( 1 ) ⋅ ∥ f ∗ ∥ L 2 . The Staircase ¶ The KRR estimator learns all polynomial components up to degree ℓ \ell ℓ when n ≍ d ℓ n \asymp d^\ell n ≍ d ℓ , and nothing beyond. Test risk drops at each threshold n ≈ d j n \approx d^j n ≈ d j by ∥ P j f ∗ ∥ 2 \|P_j f_*\|^2 ∥ P j f ∗ ∥ 2 , giving a staircase in log n \log n log n .
Mechanism: Kernel Matrix Eigenstructure ¶ K n [ i , j ] = ∑ ℓ b ℓ d ℓ Y ℓ ( z i ) ⊤ Y ℓ ( z j ) ≈ ∑ ℓ = 0 L b ℓ d ℓ Y ^ ℓ , n Y ^ ℓ , n ⊤ ⏟ K ≤ L + λ 0 I . K_n[i,j] = \sum_\ell \frac{b_\ell}{d^\ell}Y_\ell(z_i)^\top Y_\ell(z_j) \approx \underbrace{\sum_{\ell=0}^L \frac{b_\ell}{d^\ell}\hat Y_{\ell,n}\hat Y_{\ell,n}^\top}_{K_{\leq L}} + \lambda_0 I. K n [ i , j ] = ℓ ∑ d ℓ b ℓ Y ℓ ( z i ) ⊤ Y ℓ ( z j ) ≈ K ≤ L ℓ = 0 ∑ L d ℓ b ℓ Y ^ ℓ , n Y ^ ℓ , n ⊤ + λ 0 I . When D ( L ) ≪ n ≪ D ( L + 1 ) D(L) \ll n \ll D(L+1) D ( L ) ≪ n ≪ D ( L + 1 ) , the low-rank term K ≤ L K_{\leq L} K ≤ L dominates; K > L ≈ λ 0 I K_{>L} \approx \lambda_0 I K > L ≈ λ 0 I acts as self-induced ridge. The KRR predictor reduces to regression on degree-≤ L \leq L ≤ L features.
Benign Overfitting ¶ Interpolation f ^ ( x i ) = y i \hat f(x_i) = y_i f ^ ( x i ) = y i decomposes as f ^ = P ≤ ℓ f ∗ ⏟ smooth + f ^ spiky \hat f = \underbrace{P_{\leq\ell}f_*}_\text{smooth} + \hat f_\text{spiky} f ^ = smooth P ≤ ℓ f ∗ + f ^ spiky . Benign overfitting requires:
∥ f ^ spiky ∥ L 2 = o ( 1 ) \|\hat f_\text{spiky}\|_{L^2} = o(1) ∥ f ^ spiky ∥ L 2 = o ( 1 ) — negligible test-error contribution,
f ^ spiky ( x i ) ≈ ε i \hat f_\text{spiky}(x_i) \approx \varepsilon_i f ^ spiky ( x i ) ≈ ε i — interpolates the noise.
Both hold in high d d d : high-degree features have pointwise values ∼ D ( ℓ ) ≫ 1 \sim\sqrt{D(\ell)} \gg 1 ∼ D ( ℓ ) ≫ 1 but L 2 L^2 L 2 norm ∼ 1 \sim 1 ∼ 1 , and test points are nearly orthogonal to training points (concentration of measure). At fixed d d d this fails: nearby test points “see” the spiky component.
Lazy Training: Single-Index Model ¶ Data: x i ∼ U n i f ( d S d − 1 ) x_i \sim \mathrm{Unif}(\sqrt{d}\,S^{d-1}) x i ∼ Unif ( d S d − 1 ) , f ∗ ( x ) = φ ( w ∗ ⊤ x ) f_*(x) = \varphi(w_*^\top x) f ∗ ( x ) = φ ( w ∗ ⊤ x ) , w ∗ ∈ S d − 1 w_* \in S^{d-1} w ∗ ∈ S d − 1 .
The ℓ \ell ℓ -th Hermite coefficient φ ℓ = ∫ H e ℓ ( u ) φ ( u ) γ ( d u ) \varphi_\ell = \int \mathrm{He}_\ell(u)\varphi(u)\,\gamma(du) φ ℓ = ∫ He ℓ ( u ) φ ( u ) γ ( d u ) (independent of d d d as d → ∞ d\to\infty d → ∞ ) controls the staircase: ∥ P ℓ f ∗ ∥ L 2 2 = φ ℓ 2 \|P_\ell f_*\|_{L^2}^2 = \varphi_\ell^2 ∥ P ℓ f ∗ ∥ L 2 2 = φ ℓ 2 . By the GMMM theorem, the NTK requires n ≫ d ℓ n \gg d^\ell n ≫ d ℓ if φ \varphi φ is not a degree-ℓ \ell ℓ polynomial.
Feature Learning Beats Lazy Training ¶ Proposition (Single Neuron, Feature Learning) ¶ Assume φ \varphi φ is strictly increasing with bounded derivative. If n ≥ C d log d n \geq Cd\log d n ≥ C d log d , then with high probability gradient descent on the single-neuron risk
R ^ n ( w ) = 1 2 n ∑ i ( y i − σ ( w ⊤ x i ) ) 2 , φ = σ , \hat R_n(w) = \frac{1}{2n}\sum_i(y_i - \sigma(w^\top x_i))^2, \qquad \varphi = \sigma, R ^ n ( w ) = 2 n 1 i ∑ ( y i − σ ( w ⊤ x i ) ) 2 , φ = σ , converges to w ^ \hat w w ^ with ∥ w ^ − w ∗ ∥ ≤ C d log d / n \|\hat w - w_*\| \leq C\sqrt{d\log d/n} ∥ w ^ − w ∗ ∥ ≤ C d log d / n and R ( w ^ ) = R B a y e s + O ( d log d / n ) R(\hat w) = R_\mathrm{Bayes} + O(d\log d/n) R ( w ^ ) = R Bayes + O ( d log d / n ) .
Two-Step Estimator (n ≫ d n \gg d n ≫ d Suffices) ¶ Step 1. Form w ~ = 1 n ∑ i y i x i \tilde w = \frac{1}{n}\sum_i y_i x_i w ~ = n 1 ∑ i y i x i . By Stein’s lemma (E [ g h ( g ) ] = E [ h ′ ( g ) ] \mathbb{E}[g\,h(g)] = \mathbb{E}[h'(g)] E [ g h ( g )] = E [ h ′ ( g )] ):
E [ w ~ ] = E [ φ ( w ∗ ⊤ x ) x ] = E [ φ ′ ( w ∗ ⊤ x ) ] w ∗ = c w ∗ . \mathbb{E}[\tilde w] = \mathbb{E}[\varphi(w_*^\top x)\,x] = \mathbb{E}[\varphi'(w_*^\top x)]\,w_* = c\,w_*. E [ w ~ ] = E [ φ ( w ∗ ⊤ x ) x ] = E [ φ ′ ( w ∗ ⊤ x )] w ∗ = c w ∗ . Variance E ∥ w ~ − E w ~ ∥ 2 = O ( d / n ) \mathbb{E}\|\tilde w - \mathbb{E}\tilde w\|^2 = O(d/n) E ∥ w ~ − E w ~ ∥ 2 = O ( d / n ) , so n ≫ d ⇒ ∥ w ^ − w ∗ ∥ = O ( d / n ) → 0 n \gg d \Rightarrow \|\hat w - w_*\| = O(\sqrt{d/n}) \to 0 n ≫ d ⇒ ∥ w ^ − w ∗ ∥ = O ( d / n ) → 0 .
Step 2. Project: t i = ⟨ w ^ , x i ⟩ t_i = \langle\hat w, x_i\rangle t i = ⟨ w ^ , x i ⟩ , fit y i ∼ φ ( t i ) y_i \sim \varphi(t_i) y i ∼ φ ( t i ) by 1D regression. Achieves Bayes risk.
The two-step estimator requires only n ≫ d n \gg d n ≫ d vs. n ≫ d ℓ n \gg d^\ell n ≫ d ℓ for NTK — exponentially fewer samples.
Mean Field Limit of Two-Layer Networks ¶ Lazy vs. Mean Field ¶ Plotting test error R ( f ^ ) − R B a y e s R(\hat f) - R_\mathrm{Bayes} R ( f ^ ) − R Bayes vs. number of neurons m m m :
Lazy training (1 / m 1/m 1/ m init): error stays near ∥ P > 1 φ ∥ 2 \|P_{>1}\varphi\|^2 ∥ P > 1 φ ∥ 2 for all m m m — NTK is stuck.
Mean field (1 / m 1/m 1/ m init, parameters allowed to move): error → 0 \to 0 → 0 as m → ∞ m\to\infty m → ∞ at rate O ( 1 / m ) O(1/m) O ( 1/ m ) .
Setup ¶ f ( x ) = 1 m ∑ k = 1 m a k σ ˉ ( ⟨ w k , x ⟩ ) = 1 m ∑ k = 1 m σ ˉ ( x ; θ k ) , θ k = ( a k , w k ) ∈ R d + 1 . f(x) = \frac{1}{m}\sum_{k=1}^m a_k\,\bar\sigma(\langle w_k,x\rangle) = \frac{1}{m}\sum_{k=1}^m \bar\sigma(x;\theta_k), \qquad \theta_k = (a_k,w_k) \in \mathbb{R}^{d+1}. f ( x ) = m 1 k = 1 ∑ m a k σ ˉ (⟨ w k , x ⟩) = m 1 k = 1 ∑ m σ ˉ ( x ; θ k ) , θ k = ( a k , w k ) ∈ R d + 1 . SGD with square loss ℓ ( y , f ( x ) ) = 1 2 ( y − f ( x ) ) 2 \ell(y,f(x)) = \frac{1}{2}(y-f(x))^2 ℓ ( y , f ( x )) = 2 1 ( y − f ( x ) ) 2 , parameters ( θ k ) k ≤ m (\theta_k)_{k\leq m} ( θ k ) k ≤ m initialized i.i.d. from ρ 0 \rho_0 ρ 0 :
θ k + 1 = θ k − γ m ∇ θ ℓ ( y I ( k ) , f ( x I ( k ) ; θ k ) ) . \theta^{k+1} = \theta^k - \gamma m\,\nabla_\theta\ell(y_{I(k)}, f(x_{I(k)};\theta^k)). θ k + 1 = θ k − γm ∇ θ ℓ ( y I ( k ) , f ( x I ( k ) ; θ k )) . Two settings: finite sample (I ( k ) ∼ U n i f ( { 1 , … , n } ) I(k)\sim\mathrm{Unif}(\{1,\ldots,n\}) I ( k ) ∼ Unif ({ 1 , … , n }) ) or online SGD (fresh samples).
Mean Field Limit: m → ∞ m\to\infty m → ∞ , γ → 0 \gamma\to 0 γ → 0 ¶ Population gradient flow: Θ ˙ t = − m ∇ θ R ( θ t ) \dot\Theta_t = -m\nabla_\theta R(\theta_t) Θ ˙ t = − m ∇ θ R ( θ t ) . The dynamics are permutation-invariant in neuron indices, motivating the empirical measure ρ ^ t ( m ) = 1 m ∑ k δ θ k ( t ) \hat\rho_t^{(m)} = \frac{1}{m}\sum_k\delta_{\theta_k(t)} ρ ^ t ( m ) = m 1 ∑ k δ θ k ( t ) with f t ( x ) = ∫ σ ( x ; θ ) ρ ^ t ( m ) ( d θ ) f_t(x) = \int\sigma(x;\theta)\hat\rho_t^{(m)}(d\theta) f t ( x ) = ∫ σ ( x ; θ ) ρ ^ t ( m ) ( d θ ) .
Since ( θ k ) (\theta_k) ( θ k ) are i.i.d. ∼ ρ 0 \sim\rho_0 ∼ ρ 0 initially, ρ ^ 0 ( m ) ⇒ ρ 0 \hat\rho_0^{(m)}\Rightarrow\rho_0 ρ ^ 0 ( m ) ⇒ ρ 0 . The propagation of chaos hypothesis (“hope”):
ρ ^ t ( m ) ⇒ ρ t as m → ∞ . \hat\rho_t^{(m)} \Rightarrow \rho_t \quad \text{as } m\to\infty. ρ ^ t ( m ) ⇒ ρ t as m → ∞. Three Equivalent Descriptions ¶ Define the one- and two-body potentials:
V ( θ ) = − E { σ ( x ; θ ) y } , U ( θ 1 , θ 2 ) = E [ σ ( x ; θ 1 ) σ ( x ; θ 2 ) ] . V(\theta) = -\mathbb{E}\{\sigma(x;\theta)y\}, \qquad U(\theta_1,\theta_2) = \mathbb{E}[\sigma(x;\theta_1)\,\sigma(x;\theta_2)]. V ( θ ) = − E { σ ( x ; θ ) y } , U ( θ 1 , θ 2 ) = E [ σ ( x ; θ 1 ) σ ( x ; θ 2 )] . (1) McKean–Vlasov ODE on R d + 1 \mathbb{R}^{d+1} R d + 1 :
Θ ˙ t = − ∇ θ [ V ( Θ t ) + ∫ U ( Θ t , θ ) ρ t ( d θ ) ] , ρ t = L a w ( Θ t ) , ρ 0 given. \dot\Theta_t = -\nabla_\theta\!\left[V(\Theta_t) + \int U(\Theta_t,\theta)\,\rho_t(d\theta)\right], \qquad \rho_t = \mathrm{Law}(\Theta_t), \quad \rho_0 \text{ given.} Θ ˙ t = − ∇ θ [ V ( Θ t ) + ∫ U ( Θ t , θ ) ρ t ( d θ ) ] , ρ t = Law ( Θ t ) , ρ 0 given. ρ t \rho_t ρ t is the distribution of neuron parameters at time t t t ; Θ t \Theta_t Θ t is the trajectory of a typical neuron.
The gradient takes the explicit form
Θ ˙ i = − ∇ θ i [ V ( θ i ) + 1 m ∑ j U ( θ i , θ j ) ] → m → ∞ − ∇ θ [ V ( Θ t ) + ∫ U ( Θ t , θ ) ρ t ( d θ ) ] . \dot\Theta_i = -\nabla_{\theta_i}\!\left[V(\theta_i) + \frac{1}{m}\sum_j U(\theta_i,\theta_j)\right] \xrightarrow{m\to\infty} -\nabla_\theta\!\left[V(\Theta_t) + \int U(\Theta_t,\theta)\rho_t(d\theta)\right]. Θ ˙ i = − ∇ θ i [ V ( θ i ) + m 1 j ∑ U ( θ i , θ j ) ] m → ∞ − ∇ θ [ V ( Θ t ) + ∫ U ( Θ t , θ ) ρ t ( d θ ) ] . (2) Fokker–Planck PDE (Continuity Equation):
For test function h h h , d d t E [ h ( Θ t ) ] = − E ⟨ ∇ h ( Θ t ) , ∇ θ Ψ ( θ ; ρ t ) ⟩ \frac{d}{dt}\mathbb{E}[h(\Theta_t)] = -\mathbb{E}\langle\nabla h(\Theta_t), \nabla_\theta\Psi(\theta;\rho_t)\rangle d t d E [ h ( Θ t )] = − E ⟨ ∇ h ( Θ t ) , ∇ θ Ψ ( θ ; ρ t )⟩ where Ψ ( θ ; ρ t ) = V ( θ ) + ∫ U ( θ , θ ′ ) ρ t ( d θ ′ ) \Psi(\theta;\rho_t) = V(\theta) + \int U(\theta,\theta')\rho_t(d\theta') Ψ ( θ ; ρ t ) = V ( θ ) + ∫ U ( θ , θ ′ ) ρ t ( d θ ′ ) . Writing in density form:
∂ t ρ t = ∇ ⋅ [ ρ t ∇ Ψ ( θ ; ρ t ) ] . \boxed{\partial_t\rho_t = \nabla\cdot\bigl[\rho_t\,\nabla\Psi(\theta;\rho_t)\bigr].} ∂ t ρ t = ∇ ⋅ [ ρ t ∇Ψ ( θ ; ρ t ) ] . This is gradient flow of R ( ρ ) R(\rho) R ( ρ ) in W 2 W_2 W 2 , where
R ( ρ ) = 1 2 E [ ( y − ∫ σ ( x ; θ ) ρ ( d θ ) ) 2 ] = c o n s t + ∫ V ( θ ) ρ ( d θ ) + 1 2 ∬ U ( θ 1 , θ 2 ) ρ ( d θ 1 ) ρ ( d θ 2 ) . R(\rho) = \tfrac{1}{2}\mathbb{E}\!\left[\!\left(y - \textstyle\int\sigma(x;\theta)\rho(d\theta)\right)^2\right] = \mathrm{const} + \int V(\theta)\rho(d\theta) + \tfrac{1}{2}\iint U(\theta_1,\theta_2)\rho(d\theta_1)\rho(d\theta_2). R ( ρ ) = 2 1 E [ ( y − ∫ σ ( x ; θ ) ρ ( d θ ) ) 2 ] = const + ∫ V ( θ ) ρ ( d θ ) + 2 1 ∬ U ( θ 1 , θ 2 ) ρ ( d θ 1 ) ρ ( d θ 2 ) . (3) JKO Scheme / Minimizing Movements (DeGiorgi) on ( P ( R d + 1 ) , W 2 ) (\mathcal{P}(\mathbb{R}^{d+1}), W_2) ( P ( R d + 1 ) , W 2 ) :
Gradient flow on Riemannian manifold ( M , d ) (M,d) ( M , d ) is discretized by the proximal algorithm :
x 0 ε = x 0 , x k + 1 ε = arg min x ∈ M { 1 2 ε d ( x , x k ε ) 2 + F ( x ) } . x_0^\varepsilon = x_0, \qquad x_{k+1}^\varepsilon = \operatorname*{arg\,min}_{x\in M}\left\{\frac{1}{2\varepsilon}\,d(x,x_k^\varepsilon)^2 + F(x)\right\}. x 0 ε = x 0 , x k + 1 ε = x ∈ M arg min { 2 ε 1 d ( x , x k ε ) 2 + F ( x ) } . In the Euclidean case d ( x , y ) = ∥ x − y ∥ d(x,y)=\|x-y\| d ( x , y ) = ∥ x − y ∥ this recovers gradient descent: x k + 1 ≈ x k − ε ∇ F ( x k ) x_{k+1}\approx x_k - \varepsilon\nabla F(x_k) x k + 1 ≈ x k − ε ∇ F ( x k ) . Interpolating by geodesics and taking ε → 0 \varepsilon\to 0 ε → 0 : if lim sup ε → 0 , t ∈ [ 0 , T ] d ( x ( t ) , x ε ( t ) ) = 0 \limsup_{\varepsilon\to 0, t\in[0,T]} d(x(t),x^\varepsilon(t)) = 0 lim sup ε → 0 , t ∈ [ 0 , T ] d ( x ( t ) , x ε ( t )) = 0 , then x x x is the gradient flow for F F F on ( M , d ) (M,d) ( M , d ) .
Applied to M = P ( R d + 1 ) M = \mathcal{P}(\mathbb{R}^{d+1}) M = P ( R d + 1 ) with W 2 W_2 W 2 and F = R ( ρ ) F = R(\rho) F = R ( ρ ) , this is the JKO (Jordan–Kinderlehrer–Otto 1996) scheme , recovers the continuity equation, and connects to the minimizing movements framework of DeGiorgi.
In the NTK/lazy training limit, parameters move O ( 1 / m ) O(1/\sqrt{m}) O ( 1/ m ) from initialization, features are frozen , and the network is equivalent to a kernel method. Feature learning is impossible.
In the mean field limit , each θ k \theta_k θ k evolves by the McKean–Vlasov ODE, moving a finite distance. The distribution ρ t \rho_t ρ t can concentrate on a submanifold adapted to the data, enabling features to be learned . This is what achieves R ( w ^ ) = R B a y e s + O ( d log d / n ) R(\hat w) = R_\mathrm{Bayes} + O(d\log d/n) R ( w ^ ) = R Bayes + O ( d log d / n ) for the single-index model with only n ≫ d n \gg d n ≫ d samples.
Wasserstein Gradient Flow: Metric Space Foundations ¶ Recap and the W 2 W_2 W 2 Distance ¶ We recap the three descriptions of the mean field limit, now fleshing out the Wasserstein gradient flow structure that underlies description (3). The Wasserstein-2 distance between ρ 1 , ρ 2 ∈ P ( R d + 1 ) \rho_1, \rho_2 \in \mathcal{P}(\mathbb{R}^{d+1}) ρ 1 , ρ 2 ∈ P ( R d + 1 ) is
W 2 ( ρ 1 , ρ 2 ) = inf γ ∈ C ( ρ 1 , ρ 2 ) ∫ ∥ θ 1 − θ 2 ∥ 2 γ ( d θ 1 , d θ 2 ) , W_2(\rho_1,\rho_2) = \sqrt{\inf_{\gamma \in \mathcal{C}(\rho_1,\rho_2)} \int \|\theta_1 - \theta_2\|^2\,\gamma(d\theta_1,d\theta_2)}, W 2 ( ρ 1 , ρ 2 ) = γ ∈ C ( ρ 1 , ρ 2 ) inf ∫ ∥ θ 1 − θ 2 ∥ 2 γ ( d θ 1 , d θ 2 ) , where C ( ρ 1 , ρ 2 ) \mathcal{C}(\rho_1,\rho_2) C ( ρ 1 , ρ 2 ) is the set of couplings (joint distributions with marginals ρ 1 \rho_1 ρ 1 and ρ 2 \rho_2 ρ 2 ). The mean field dynamics are gradient flow of R ( ρ ) R(\rho) R ( ρ ) in ( P ( R d + 1 ) , W 2 ) (\mathcal{P}(\mathbb{R}^{d+1}), W_2) ( P ( R d + 1 ) , W 2 ) .
Gradient Flow on a Metric Space: Metric Speed and Slope ¶ To define gradient flow on a metric space ( M , d ) (M, d) ( M , d ) without a linear structure, one works with the metric speed and metric slope of F : M → R F : M \to \mathbb{R} F : M → R Ambrosio et al. , 2005 :
∣ x ˙ ∣ ( t ) = lim ε → 0 d ( x ( t + ε ) , x ( t ) ) ε , ∣ ∇ F ∣ ( x ) = lim sup d ( z , x ) → 0 [ F ( z ) − F ( x ) ] + d ( z , x ) . |\dot x|(t) = \lim_{\varepsilon \to 0} \frac{d(x(t+\varepsilon), x(t))}{\varepsilon}, \qquad |\nabla F|(x) = \limsup_{d(z,x)\to 0} \frac{[F(z) - F(x)]^+}{d(z,x)}. ∣ x ˙ ∣ ( t ) = ε → 0 lim ε d ( x ( t + ε ) , x ( t )) , ∣∇ F ∣ ( x ) = d ( z , x ) → 0 lim sup d ( z , x ) [ F ( z ) − F ( x ) ] + . A curve t ↦ x ( t ) t \mapsto x(t) t ↦ x ( t ) is a gradient flow for F F F on ( M , d ) (M,d) ( M , d ) if
− d d t F ( x ( t ) ) ≥ 1 2 { ∣ x ˙ ∣ ( t ) 2 + ∣ ∇ F ∣ 2 ( x ( t ) ) } , -\frac{d}{dt}F(x(t)) \geq \frac{1}{2}\bigl\{|\dot x|(t)^2 + |\nabla F|^2(x(t))\bigr\}, − d t d F ( x ( t )) ≥ 2 1 { ∣ x ˙ ∣ ( t ) 2 + ∣∇ F ∣ 2 ( x ( t )) } , with equality if and only if x x x is the gradient flow. The definition, due to Ambrosio, Gigli, and Savaré Ambrosio et al. , 2005 , generalizes the Euclidean identity − d d t F ( x ( t ) ) = ∥ x ˙ ( t ) ∥ 2 = ∥ ∇ F ( x ( t ) ) ∥ 2 -\frac{d}{dt}F(x(t)) = \|\dot x(t)\|^2 = \|\nabla F(x(t))\|^2 − d t d F ( x ( t )) = ∥ x ˙ ( t ) ∥ 2 = ∥∇ F ( x ( t )) ∥ 2 and makes sense in any metric space.
Applying to ( P , W 2 ) (\mathcal{P}, W_2) ( P , W 2 ) ¶ Setting x = ρ x = \rho x = ρ , d = W 2 d = W_2 d = W 2 , F = R F = R F = R , the metric speed of the mean field trajectory satisfies
∣ ρ ˙ ∣ 2 ( t ) ≤ ∫ ∥ ∇ Ψ ( θ ; ρ t ) ∥ 2 ρ t ( d θ ) , |\dot\rho|^2(t) \leq \int \|\nabla\Psi(\theta;\rho_t)\|^2\,\rho_t(d\theta), ∣ ρ ˙ ∣ 2 ( t ) ≤ ∫ ∥∇Ψ ( θ ; ρ t ) ∥ 2 ρ t ( d θ ) , since the upper bound on W 2 ( ρ t + ε , ρ t ) W_2(\rho_{t+\varepsilon}, \rho_t) W 2 ( ρ t + ε , ρ t ) comes from pushing ρ t \rho_t ρ t along the flow θ ( t + ε ) = θ ( t ) − ε ∇ Ψ ( θ ( t ) ; ρ t ) + o ( ε ) \theta(t+\varepsilon) = \theta(t) - \varepsilon\nabla\Psi(\theta(t);\rho_t) + o(\varepsilon) θ ( t + ε ) = θ ( t ) − ε ∇Ψ ( θ ( t ) ; ρ t ) + o ( ε ) . The metric slope satisfies
∣ ∇ R ∣ ( ρ ∗ ) = lim W 2 ( ρ , ρ ∗ ) → 0 [ R ( ρ ) − R ( ρ ∗ ) ] + W 2 ( ρ , ρ ∗ ) = ( ∫ ∥ ∇ Ψ ( θ ; ρ ∗ ) ∥ 2 ρ ∗ ( d θ ) ) 1 / 2 . |\nabla R|(\rho_*) = \lim_{\substack{W_2(\rho,\rho_*)\to 0}} \frac{[R(\rho) - R(\rho_*)]^+}{W_2(\rho,\rho_*)} = \left(\int \|\nabla\Psi(\theta;\rho_*)\|^2\,\rho_*(d\theta)\right)^{1/2}. ∣∇ R ∣ ( ρ ∗ ) = W 2 ( ρ , ρ ∗ ) → 0 lim W 2 ( ρ , ρ ∗ ) [ R ( ρ ) − R ( ρ ∗ ) ] + = ( ∫ ∥∇Ψ ( θ ; ρ ∗ ) ∥ 2 ρ ∗ ( d θ ) ) 1/2 . The verification uses the Taylor expansion of R R R : for ρ = ( I + ε ξ ) # ρ ∗ \rho = (I + \varepsilon \xi)_\#\rho_* ρ = ( I + ε ξ ) # ρ ∗ with displacement field ξ \xi ξ ,
R ( ρ ) − R ( ρ ∗ ) = − ∫ ⟨ ∇ Ψ ( θ 0 ; ρ ∗ ) , θ 1 − θ 0 ⟩ γ ( d θ 0 , d θ 1 ) + O ( W 2 2 ) ≤ ( ∫ ∥ ∇ Ψ ∥ 2 ρ ∗ ) 1 / 2 W 2 ( ρ , ρ ∗ ) + O ( W 2 2 ) . R(\rho) - R(\rho_*) = -\int\langle\nabla\Psi(\theta_0;\rho_*),\,\theta_1-\theta_0\rangle\,\gamma(d\theta_0,d\theta_1) + O(W_2^2) \leq \left(\int\|\nabla\Psi\|^2\rho_*\right)^{1/2} W_2(\rho,\rho_*) + O(W_2^2). R ( ρ ) − R ( ρ ∗ ) = − ∫ ⟨ ∇Ψ ( θ 0 ; ρ ∗ ) , θ 1 − θ 0 ⟩ γ ( d θ 0 , d θ 1 ) + O ( W 2 2 ) ≤ ( ∫ ∥∇Ψ ∥ 2 ρ ∗ ) 1/2 W 2 ( ρ , ρ ∗ ) + O ( W 2 2 ) . Hence − d d t R ( ρ t ) = ∫ ∥ ∇ Ψ ( θ ; ρ t ) ∥ 2 ρ t ( d θ ) = 1 2 ( ∣ ρ ˙ ∣ 2 + ∣ ∇ R ∣ 2 ) -\frac{d}{dt}R(\rho_t) = \int\|\nabla\Psi(\theta;\rho_t)\|^2\,\rho_t(d\theta) = \frac{1}{2}(|\dot\rho|^2 + |\nabla R|^2) − d t d R ( ρ t ) = ∫ ∥∇Ψ ( θ ; ρ t ) ∥ 2 ρ t ( d θ ) = 2 1 ( ∣ ρ ˙ ∣ 2 + ∣∇ R ∣ 2 ) , confirming the gradient flow identity.
Convergence Theorem for SGD to Mean Field ¶ Assume θ i ( 0 ) ∼ iid ρ 0 \theta_i(0) \overset{\text{iid}}{\sim} \rho_0 θ i ( 0 ) ∼ iid ρ 0 and online SGD with step size ε \varepsilon ε . Under:
∣ a ∣ , ∣ y ∣ ≤ C |a|, |y| \leq C ∣ a ∣ , ∣ y ∣ ≤ C , ∇ θ σ ( x , θ ) \nabla_\theta\sigma(x,\theta) ∇ θ σ ( x , θ ) is O ( 1 ) O(1) O ( 1 ) -subgaussian,
θ ↦ V ( θ ) \theta \mapsto V(\theta) θ ↦ V ( θ ) , ( θ 1 , θ 2 ) ↦ U ( θ 1 , θ 2 ) (\theta_1,\theta_2)\mapsto U(\theta_1,\theta_2) ( θ 1 , θ 2 ) ↦ U ( θ 1 , θ 2 ) differentiable with Lipschitz gradient,
for all T ≥ 1 T \geq 1 T ≥ 1 , with probability ≥ 1 − 2 e − z / 2 \geq 1 - 2e^{-z/2} ≥ 1 − 2 e − z /2 :
sup t ∈ [ 0 , T ] ∣ R ( m ) ( θ ( ⌊ t / ε ⌋ ) ) − R ( ρ t ) ∣ ≤ e C T m [ log m + z ] + e C T [ d log m + z ] ε . \sup_{t \in [0,T]} |R^{(m)}(\theta(\lfloor t/\varepsilon \rfloor)) - R(\rho_t)| \leq \frac{e^{CT}}{\sqrt{m}}\bigl[\sqrt{\log m} + z\bigr] + e^{CT}\bigl[\sqrt{d\log m} + z\bigr]\sqrt{\varepsilon}. t ∈ [ 0 , T ] sup ∣ R ( m ) ( θ (⌊ t / ε ⌋)) − R ( ρ t ) ∣ ≤ m e CT [ log m + z ] + e CT [ d log m + z ] ε . At time t = Θ ( 1 ) t = \Theta(1) t = Θ ( 1 ) , using n = t / ε n = t/\varepsilon n = t / ε samples with ε d ≪ 1 \varepsilon d \ll 1 ε d ≪ 1 and n ≫ d n \gg d n ≫ d , the empirical risk of the m m m -neuron network tracks the mean field risk.
The proof uses the Dobrushin propagation of chaos technique Dobrushin (1979) , coupling three dynamics initialized from the same ρ 0 \rho_0 ρ 0 :
SGD: θ i ( t + ε ) = θ i ( t ) − ε m ∇ θ i ℓ ( y I ( t ) , f ( x I ( t ) ; θ ( t ) ) ) \theta_i(t+\varepsilon) = \theta_i(t) - \varepsilon m\,\nabla_{\theta_i}\ell(y_{I(t)}, f(x_{I(t)};\theta(t))) θ i ( t + ε ) = θ i ( t ) − ε m ∇ θ i ℓ ( y I ( t ) , f ( x I ( t ) ; θ ( t )))
GD on empirical risk: θ ^ i ( t + ε ) = θ ^ i ( t ) − m ∫ t t + ε ∇ θ i R ( m ) ( θ ^ ( s ) ) d s \hat\theta_i(t+\varepsilon) = \hat\theta_i(t) - m\int_t^{t+\varepsilon}\nabla_{\theta_i}R^{(m)}(\hat\theta(s))\,ds θ ^ i ( t + ε ) = θ ^ i ( t ) − m ∫ t t + ε ∇ θ i R ( m ) ( θ ^ ( s )) d s , with ∇ θ i R ( m ) = ∇ θ i Ψ ( θ ^ i ; ρ ^ t ( m ) ) \nabla_{\theta_i}R^{(m)} = \nabla_{\theta_i}\Psi(\hat\theta_i;\hat\rho_t^{(m)}) ∇ θ i R ( m ) = ∇ θ i Ψ ( θ ^ i ; ρ ^ t ( m ) )
Nonlinear McKean–Vlasov: θ ~ i ( t + ε ) = θ ~ i ( t ) − m ∫ t t + ε ∇ θ i Ψ ( θ ~ i ( s ) ; ρ s ) d s \tilde\theta_i(t+\varepsilon) = \tilde\theta_i(t) - m\int_t^{t+\varepsilon}\nabla_{\theta_i}\Psi(\tilde\theta_i(s);\rho_s)\,ds θ ~ i ( t + ε ) = θ ~ i ( t ) − m ∫ t t + ε ∇ θ i Ψ ( θ ~ i ( s ) ; ρ s ) d s , with ( θ ~ i ( t ) ) i ≤ m ∼ iid ρ t (\tilde\theta_i(t))_{i\leq m} \overset{\text{iid}}{\sim} \rho_t ( θ ~ i ( t ) ) i ≤ m ∼ iid ρ t
The total error decomposes as ∥ f S G D − f M F ∥ ≤ ∥ f S G D − f G D ∥ + ∥ f G D − f M F ∥ \|f_\mathrm{SGD} - f_\mathrm{MF}\| \leq \|f_\mathrm{SGD} - f_\mathrm{GD}\| + \|f_\mathrm{GD} - f_\mathrm{MF}\| ∥ f SGD − f MF ∥ ≤ ∥ f SGD − f GD ∥ + ∥ f GD − f MF ∥ . Term 1 is bounded by standard stochastic approximation; term 2 is the propagation of chaos error, controlled by the Dobrushin–McKean coupling.
Symmetry. For the single-index model x i ∼ N ( 0 , I d ) x_i \sim \mathcal{N}(0, I_d) x i ∼ N ( 0 , I d ) , y i = φ ( w ∗ ⊤ x i ) + ε i y_i = \varphi(w_*^\top x_i) + \varepsilon_i y i = φ ( w ∗ ⊤ x i ) + ε i : if ρ 0 \rho_0 ρ 0 is invariant under rotations around w ∗ w_* w ∗ then ρ t \rho_t ρ t is for all t t t . This reduces the effective dynamics to a 1D ODE in the projection ⟨ w , w ∗ ⟩ \langle w, w_*\rangle ⟨ w , w ∗ ⟩ , a key simplification.
Fixed Points and Global Minimizers ¶ ρ ∗ \rho_* ρ ∗ is a fixed point of the mean field gradient flow if and only if
s u p p ( ρ ∗ ) ⊆ { θ : ∇ Ψ ( θ ; ρ ∗ ) = 0 } . \mathrm{supp}(\rho_*) \subseteq \{\theta : \nabla\Psi(\theta;\rho_*) = 0\}. supp ( ρ ∗ ) ⊆ { θ : ∇Ψ ( θ ; ρ ∗ ) = 0 } . Moreover, − d d t R ( ρ t ) = 1 2 ( ∣ ρ ˙ ∣ 2 + ∣ ∇ R ∣ 2 ) ≥ 0 -\frac{d}{dt}R(\rho_t) = \frac{1}{2}(|\dot\rho|^2 + |\nabla R|^2) \geq 0 − d t d R ( ρ t ) = 2 1 ( ∣ ρ ˙ ∣ 2 + ∣∇ R ∣ 2 ) ≥ 0 with equality iff ρ t \rho_t ρ t is a fixed point.
Theorem. The Fokker–Planck equation is gradient flow in ( P , W 2 ) (\mathcal{P}, W_2) ( P , W 2 ) for the free energy D ( ρ ∥ ρ B o l t z ) \mathcal{D}(\rho\|\rho_\mathrm{Boltz}) D ( ρ ∥ ρ Boltz ) (KL divergence from the Boltzmann distribution) [ @ j o r d a n 1998 v a r i a t i o n a l ] [@jordan1998variational] [ @ j or d an 1998 v a r ia t i o na l ] .
The lemma is proved as follows. Since R ( ρ ) = 1 2 E [ ( y − ∫ σ ( x ; θ ) ρ ( d θ ) ) 2 ] R(\rho) = \frac{1}{2}\mathbb{E}[(y-\int\sigma(x;\theta)\rho(d\theta))^2] R ( ρ ) = 2 1 E [( y − ∫ σ ( x ; θ ) ρ ( d θ ) ) 2 ] , its convexity follows from:
R ( t ρ 1 + ( 1 − t ) ρ 2 ) ≤ t R ( ρ 1 ) + ( 1 − t ) R ( ρ 2 ) , R(t\rho_1 + (1-t)\rho_2) \leq tR(\rho_1) + (1-t)R(\rho_2), R ( t ρ 1 + ( 1 − t ) ρ 2 ) ≤ tR ( ρ 1 ) + ( 1 − t ) R ( ρ 2 ) , which holds since R R R is a quadratic in the linear functional ρ ↦ ∫ σ ( x ; θ ) ρ ( d θ ) \rho \mapsto \int\sigma(x;\theta)\rho(d\theta) ρ ↦ ∫ σ ( x ; θ ) ρ ( d θ ) . Expanding R ( ρ s ) − R ( ρ ∗ ) R(\rho_s) - R(\rho_*) R ( ρ s ) − R ( ρ ∗ ) for ρ s = s ρ + ( 1 − s ) ρ ∗ \rho_s = s\rho + (1-s)\rho_* ρ s = s ρ + ( 1 − s ) ρ ∗ and differentiating at s = 0 s=0 s = 0 :
R ( ρ ) − R ( ρ ∗ ) = ∫ Ψ ( θ ; ρ ∗ ) ( ρ − ρ ∗ ) ( d θ ) + O ( W 2 2 ) ≥ 0 ∀ ρ ⟺ Ψ ( θ ; ρ ∗ ) ≥ min θ Ψ ( θ ; ρ ∗ ) ρ ∗ -a.e. R(\rho) - R(\rho_*) = \int\Psi(\theta;\rho_*)(\rho - \rho_*)(d\theta) + O(W_2^2) \geq 0 \;\;\forall\rho \iff \Psi(\theta;\rho_*) \geq \min_\theta \Psi(\theta;\rho_*) \;\;\rho_*\text{-a.e.} R ( ρ ) − R ( ρ ∗ ) = ∫ Ψ ( θ ; ρ ∗ ) ( ρ − ρ ∗ ) ( d θ ) + O ( W 2 2 ) ≥ 0 ∀ ρ ⟺ Ψ ( θ ; ρ ∗ ) ≥ θ min Ψ ( θ ; ρ ∗ ) ρ ∗ -a.e. Assume θ ↦ V ( θ ) \theta \mapsto V(\theta) θ ↦ V ( θ ) , ( θ 1 , θ 2 ) ↦ U ( θ 1 , θ 2 ) (\theta_1,\theta_2)\mapsto U(\theta_1,\theta_2) ( θ 1 , θ 2 ) ↦ U ( θ 1 , θ 2 ) are continuous, bounded below, and there exist ε , C > 0 \varepsilon, C > 0 ε , C > 0 such that R ( ρ ) ≤ inf ρ R ( ρ ) + ε ⇒ ∫ ∥ θ ∥ a ρ ( d θ ) < C R(\rho) \leq \inf_\rho R(\rho) + \varepsilon \Rightarrow \int\|\theta\|^a\rho(d\theta) < C R ( ρ ) ≤ inf ρ R ( ρ ) + ε ⇒ ∫ ∥ θ ∥ a ρ ( d θ ) < C . Then:
min ρ R ( ρ ) \min_\rho R(\rho) min ρ R ( ρ ) is achieved at some ρ ∗ \rho_* ρ ∗ .
ρ ∗ \rho_* ρ ∗ is a minimizer iff s u p p ( ρ ∗ ) ⊆ arg min θ Ψ ( θ ; ρ ∗ ) \mathrm{supp}(\rho_*) \subseteq \operatorname*{arg\,min}_\theta\Psi(\theta;\rho_*) supp ( ρ ∗ ) ⊆ arg min θ Ψ ( θ ; ρ ∗ ) .
Part (1) follows from lower semicontinuity of R R R under weak convergence (which holds because σ \sigma σ is continuous and bounded) and tightness of sublevel sets. Part (2) follows from the first-order optimality condition above.
This corollary captures the mean field intuition: if the dynamics collapse to a single neuron trajectory θ ∗ \theta^* θ ∗ (which happens, for example, in the single-index model under the symmetry reduction above), then that trajectory achieves the global minimum of R R R .
Oymak, S., & Soltanolkotabi, M. (2021). Toward the fundamental limits of neural network training algorithms. SIAM Journal on Optimization , 33 (1). Zhong, Y. (2023). Universality of approximate message passing algorithms and tensor networks. arXiv Preprint arXiv:2206.13037 . Ghorbani, B., Mei, S., Misiakiewicz, T., & Montanari, A. (2021). Linearized two-layers neural networks in high dimension. The Annals of Statistics , 49 (2), 1029–1054. Ambrosio, L., Gigli, N., & Savaré, G. (2005). Gradient Flows in Metric Spaces and in the Space of Probability Measures . Birkhäuser. Mei, S., Montanari, A., & Nguyen, P.-M. (2018). A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences , 115 (33), E7665–E7671. Dobrushin, R. L. (1979). Vlasov equations. Functional Analysis and Its Applications , 13 (2), 115–123.