Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lecture Notes
ICTP-INdAM-SLMath Summer Graduate School for Machine Learning, Trieste, 15–19 June 2026

Statistical Physics Approaches to High-Dimensional Learning

ICTP Summer School on Machine Learning — Lecture 3

These notes cover the third lecture on the dynamics of learning, spanning Days 3 and 4 of the school. Two complementary settings are developed: online learning in two-layer narrow networks, where each data point is seen exactly once and the dynamics reduce to a closed deterministic ODE system; and multi-pass SGD via the dynamical cavity (mean-field) method, which handles temporal memory effects when data are reused. The online-learning framework follows Goldt et al. (2019)Saad & Solla (1995), with extensions in Goldt et al. (2020)Refinetti et al. (2021). The lecture opens with a tour of recent applications of the statics theory.

A note on perspective for PDE readers. The central achievement of this lecture is a rigorous passage from an NN-dimensional stochastic process (SGD on wRN\mathbf{w} \in \mathbb{R}^N) to a low-dimensional deterministic ODE system. This is exactly analogous to deriving a homogenised or reduced-order model from a fine-scale PDE: the large-NN limit plays the role of the homogenisation limit, and the order parameters (M,Q,v)(M, Q, v) are the effective macroscopic variables. The multi-pass DMFT section adds a further ingredient — temporal memory / retarded friction — which has no direct analogue in standard ODE theory but closely resembles the Volterra integro-differential equations that arise in viscoelastic or history-dependent PDE models.

Applications of the Statics Theory

Hidden Manifold Model

Real data do not fill RN\mathbb{R}^N uniformly; they live on or near a low-dimensional manifold. The hidden manifold model Goldt et al. (2022)Gerace et al. (2020) captures this: latent codes cμRLc^\mu \in \mathbb{R}^L pass through a random feature map,

xμ=σ(Fcμ)RN,yμ=f(cμw),x^\mu = \sigma(F^\top c^\mu)\in\mathbb{R}^N, \qquad y^\mu = f_*(c^\mu\cdot w_*),

where FRN×LF \in \mathbb{R}^{N\times L} is a random matrix. A Gaussian Equivalence Theorem (GET) shows that the generalisation and training properties of {xμ,yμ}\{x^\mu, y^\mu\} are statistically equivalent to those of a simpler Gaussian surrogate

x~μ=κ1Fcμ+κzμ,zμN(0,IN),\tilde{x}^\mu = \kappa_1 F^\top c^\mu + \kappa_* z^\mu, \quad z^\mu \sim \mathcal{N}(0,I_N),

with coefficients κ1=Eξ[ξσ(ξ)]\kappa_1 = \mathbb{E}_\xi[\xi\,\sigma(\xi)] and κ2=Eξ[σ(ξ)2]κ12\kappa_*^2 = \mathbb{E}_\xi[\sigma(\xi)^2] - \kappa_1^2, ξN(0,1)\xi\sim\mathcal{N}(0,1). The GET is proved via Lindeberg-type interpolation arguments. It connects the replica/AMP analysis of Lectures 1–2 directly to structured-data regimes.

Neural Manifold Capacity

In neuroscience and deep learning, object representations are smooth manifolds of neural population activity. The manifold capacity α(κ,RM,DM)\alpha^*(\kappa, R_M, D_M) — maximum number of linearly separable object manifolds per neuron — is computed exactly by the replica method Chung et al. (2018)Mignacco et al. (2025). It depends on the manifold’s intrinsic dimension DMD_M and radius RMR_M, and provides a rigorous link between geometric properties of representations and the number of dichotomies a linear readout can implement.

Bayesian Learning in Wide Networks

For a two-layer network y=aϕ(W1x)y = a^\top\phi(W_1 x) in the proportional width regime N1/N0=O(1)N_1/N_0 = \mathcal{O}(1), Bayesian inference can be analysed exactly in the proportional-sample limit Cui et al. (2023)Camilli et al. (2025) (linear scaling P=αN0P = \alpha N_0) and in the quadratic-sample regime Maillard et al. (2024)Erba et al. (2025)Barbier et al. (2026) (P=αN02P = \alpha N_0^2). In both regimes the posterior collapses to a low-dimensional order-parameter description.

Statistical Mechanics of Transformers

A full statistical-mechanics theory of deep multi-head self-attention is developed in Tiberi et al. (2024). The main result: under Bayesian inference in the proportional limit, the network performs kernel ridge regression with an effective “renormalised” kernel

K(xμ,xν)=1HLπ,πΠUππCππμν,\mathscr{K}(x^\mu, x^\nu) = \frac{1}{H^L}\sum_{\pi, \pi' \in \Pi} U^{\pi\pi'} C_{\pi\pi'}^{\mu\nu},

where π\pi ranges over attention paths (sequences of head choices across LL layers), CππμνC_{\pi\pi'}^{\mu\nu} couples inputs μ,ν\mu,\nu along paths π,π\pi,\pi', and the order-parameter matrix UππU^{\pi\pi'} encodes inter-path correlations. Two mechanisms emerge: attention path suppression (down-weighting uninformative paths) and attention path coupling (exploiting correlations between paths). Counterintuitively, smaller pruned networks can outperform larger ones: for N100N \lesssim 100 the off-diagonal UππU^{\pi\pi'} terms are active; for N1000N \gtrsim 1000 path coupling vanishes (UU becomes diagonal) and the large network uses a less informative kernel.

Training Dynamics: Setting the Stage

From the Statics Picture to Dynamics

Lectures 1–2 characterised the endpoint of training — the fixed point w^\hat{\mathbf{w}} reached by gradient descent and its generalisation error. This lecture asks: how does the trajectory wt\mathbf{w}^t get there? Two complementary regimes:

Gradient Descent and SGD

Full-batch gradient descent uses the complete dataset at every step:

w(t+dt)=w(t)dtwL(w;D).w(t+dt) = w(t) - dt\,\nabla_w\mathcal{L}(w;\mathcal{D}).

Stochastic gradient descent (SGD) uses a mini-batch B(t)\mathcal{B}(t):

w(t+dt)=w(t)dt^BL(w).w(t+dt) = w(t) - dt\,\hat\nabla_{\mathcal{B}}\mathcal{L}(w).

The difference L^BL\nabla\mathcal{L} - \hat\nabla_{\mathcal{B}}\mathcal{L} is zero-mean noise; for large batches the CLT makes it approximately Gaussian, yielding a Langevin SDE. The key observation: as NN \to \infty an NN-dimensional weight trajectory collapses onto a deterministic ODE for a handful of scalar order parameters — exactly as a fine-scale PDE system collapses to an effective macroscopic equation.

Online Learning in Two-Layer Networks

Setup: Teacher and Student

Data: xμN(0,IN)x^\mu \sim \mathcal{N}(0,I_N), i.i.d.

Teacher (frozen): yμ=r=1Kvrσ(hrμ)y^\mu = \sum_{r=1}^{K^*}v_r^*\,\sigma^*(h_r^{*\mu}), hrμ=wrxμNh_r^{*\mu} = \frac{w_r^*\cdot x^\mu}{\sqrt{N}}, wrRNw_r^* \in \mathbb{R}^N, vrRv_r^* \in \mathbb{R} fixed.

Student (trained): y^μ=k=1Kvkσ(hkμ)\hat{y}^\mu = \sum_{k=1}^K v_k\,\sigma(h_k^\mu), hkμ=wkxμNh_k^\mu = \frac{w_k\cdot x^\mu}{\sqrt{N}}, wkRNw_k \in \mathbb{R}^N, vkRv_k \in \mathbb{R} learned. Typical activations: σ(h)=tanh(h)\sigma(h) = \tanh(h), erf(h/2)\operatorname{erf}(h/\sqrt{2}), or max{0,h}\max\{0,h\}.

Squared loss: =12Δ2\ell = \frac{1}{2}\Delta^2, Δ=y^y\Delta = \hat{y} - y.

The normalisation 1/N1/\sqrt{N} in hkμ=wkxμ/Nh_k^\mu = w_k \cdot x^\mu / \sqrt{N} ensures the pre-activations are O(1)\mathcal{O}(1) regardless of NN — the same role as a mesh-width normalisation in finite-difference schemes.

Online SGD Updates

At step μ\mu a fresh i.i.d.\ sample xμx^\mu is drawn and the weights are updated:

wkμ+1wkμ=ηvkμΔμσ(hkμ)xμN,w_k^{\mu+1} - w_k^\mu = -\eta\,v_k^\mu\,\Delta^\mu\,\sigma'(h_k^\mu)\,\frac{x^\mu}{\sqrt{N}},
vkμ+1vkμ=ηNΔμσ(hkμ).v_k^{\mu+1} - v_k^\mu = -\frac{\eta}{N}\,\Delta^\mu\,\sigma(h_k^\mu).

The factor 1/N1/N in the second update ensures that all order parameters evolve on the same timescale.

Order Parameters and Their Sufficiency

Since xμN(0,IN)x^\mu \sim \mathcal{N}(0,I_N), the pre-activations (hkμ,hrμ)(h_k^\mu, h_r^{*\mu}) are jointly Gaussian with zero mean and second moments:

Qkk=wkwkN(student–student overlap),Mkr=wkwrN(teacher–student alignment),Q_{kk'} = \frac{w_k\cdot w_{k'}}{N} \quad \text{(student–student overlap)}, \qquad M_{kr} = \frac{w_k\cdot w_r^*}{N} \quad \text{(teacher–student alignment)},
Trr=wrwrN(teacher self-overlap, fixed from the start).T_{rr'} = \frac{w_r^*\cdot w_{r'}^*}{N} \quad \text{(teacher self-overlap, fixed from the start)}.

These O(K2)\mathcal{O}(K^2) scalar quantities are sufficient statistics for the generalisation error: since (h,h)(h, h^*) is jointly Gaussian with covariance determined entirely by (Q,M,T)(Q, M, T),

Egen=12Eh,h ⁣[(kvkσ(hk)rvrσ(hr))2],\mathcal{E}_\text{gen} = \frac{1}{2}\mathbb{E}_{h,h^*}\!\left[\left(\textstyle\sum_k v_k\sigma(h_k) - \sum_r v_r^*\sigma^*(h_r^*)\right)^2\right],

where (h,h)N(0,Σ)(h,h^*) \sim \mathcal{N}(0, \Sigma) with Σ\Sigma built from (Q,M,T)(Q,M,T). The entire NN-dimensional weight configuration is compressed into a matrix of size O(K×K)\mathcal{O}(K \times K^*).

Closed ODE System for the Order Parameters

In the joint limit N,pN, p \to \infty with α=p/N=O(1)\alpha = p/N = \mathcal{O}(1), the stochastic increments of the order parameters split as

δMkrμ=E[δMkrμ]drift, O(1/N)+zero-mean fluctuationO(1/N).\delta M_{kr}^\mu = \underbrace{\mathbb{E}[\delta M_{kr}^\mu]}_{\text{drift, } \mathcal{O}(1/N)} + \underbrace{\text{zero-mean fluctuation}}_{\mathcal{O}(1/\sqrt{N})}.

Summing O(N)\mathcal{O}(N) steps (one epoch, Δα=1\Delta\alpha = 1), the fluctuation sum is O(1/N)0\mathcal{O}(1/\sqrt{N}) \to 0. Setting α~=αη\tilde\alpha = \alpha\eta (rescaled time), the order parameters satisfy deterministic ODEs Goldt et al. (2019)Saad & Solla (1995):

dMirdα=ηviEh,h ⁣[Δσ(hi)hr],\frac{dM_{ir}}{d\alpha} = -\eta\,v_i\,\mathbb{E}_{h,h^*}\!\big[\Delta\,\sigma'(h_i)\,h_r^*\big],
dQijdα=η ⁣(viE[Δσ(hi)hj]+vjE[Δσ(hj)hi])+η2vivjE[Δ2σ(hi)σ(hj)]Itoˆ correction (from discrete steps),\frac{dQ_{ij}}{d\alpha} = -\eta\!\left(v_i\,\mathbb{E}[\Delta\,\sigma'(h_i)\,h_j] + v_j\,\mathbb{E}[\Delta\,\sigma'(h_j)\,h_i]\right) + \underbrace{\eta^2 v_i v_j\,\mathbb{E}[\Delta^2\,\sigma'(h_i)\,\sigma'(h_j)]}_{\text{Itô correction (from discrete steps)}},
dvkdα=ηvEh,h ⁣[Δσ(hk)].\frac{dv_k}{d\alpha} = -\frac{\eta}{v}\,\mathbb{E}_{h,h^*}\!\big[\Delta\,\sigma(h_k)\big].

All expectations are over (h,h)N(0,Σ)(h, h^*) \sim \mathcal{N}(0,\Sigma) with Σ\Sigma from the current (Q,M,T)(Q,M,T); they can be computed numerically, or analytically when σ=erf\sigma = \operatorname{erf}. The Itô correction in dQij/dαdQ_{ij}/d\alpha arises from the discrete-to-continuous passage: xμ22/N1\|x^\mu\|_2^2/N \to 1 by the law of large numbers for Gaussian vectors, giving an O(η2)\mathcal{O}(\eta^2) term with no analogue in continuous-time gradient flow. This is the stochastic analogue of the stability correction in an explicit time-stepping scheme.

Rigorous proofs of convergence to this ODE system are in Goldt et al. (2019)Veiga et al. (2022)Ben Arous et al. (2021)Ben Arous et al. (2022).

Plateau Dynamics and the Specialisation Transition

The Soft Committee Machine

The ODEs become explicit for the soft committee machine Saad & Solla (1995): fixed readout weights vk=1/Kv_k = 1/K, equal-width teacher K=KK = K^*, erf activation, and isotropic teacher T=IT = I. Small initialisation wk(0)N(0,ρ2)w_k^{(0)} \sim \mathcal{N}(0,\rho^2) with ρ1\rho \ll 1.

Goal: each student unit should specialise to one teacher direction, wkwrw_k \to w_r^* for some permutation.

By the permutation symmetry of the initialisation, the dynamics remain on an invariant manifold of the ODE:

Mkr=Rδkr+S(1δkr),Qkk=Qδkk+C(1δkk),M_{kr} = R\,\delta_{kr} + S\,(1-\delta_{kr}), \qquad Q_{kk'} = Q\,\delta_{kk'} + C\,(1-\delta_{kk'}),

with Q=(MM)kkQ = (MM^\top)_{kk}. Only two scalar unknowns remain: RR (same-index student–teacher alignment) and SS (cross-index alignment).

Symmetric fixed point. The reduced ODE system has a fixed point at

R=S=1K(2K1),Q=C=12K1,R^* = S^* = \frac{1}{\sqrt{K(2K-1)}}, \qquad Q^* = C^* = \frac{1}{2K-1},

where all student units overlap equally with all teacher directions — no specialisation. The generalisation error at this plateau is

Egplateau=K6K2πarcsin ⁣(12K),\mathcal{E}_g^\text{plateau} = \frac{K}{6} - \frac{K^2}{\pi}\arcsin\!\left(\frac{1}{2K}\right),

which increases with KK: wider networks have worse plateaus because they have more symmetry to break. The student is stuck in a saddle point of the loss landscape.

Escape from the Plateau: Linear Stability Analysis

Linearise the ODE around (R,S)(R^*, S^*):

ddα~(δRδS)=J(δRδS),\frac{d}{d\tilde\alpha}\begin{pmatrix}\delta R\\\delta S\end{pmatrix} = J\begin{pmatrix}\delta R\\\delta S\end{pmatrix},

where JJ is the Jacobian evaluated at the fixed point. The permutation symmetry of the problem block-diagonalises JJ into two one-dimensional modes:

This is exactly a standard linear stability analysis for a fixed point of an ODE — familiar from bifurcation theory. The specialisation mode is the unstable manifold direction.

Escape time. Since wk(0)N(0,ρ2)w_k^{(0)} \sim \mathcal{N}(0,\rho^2) with ρ1\rho \ll 1, the specialisation amplitude at initialisation is a(0)ρ/N1/Na(0) \sim \rho/\sqrt{N} \sim 1/\sqrt{N}. It grows as a(α~)=a(0)eλspecα~a(\tilde\alpha) = a(0)\,e^{\lambda_\text{spec}\tilde\alpha}. Escaping when aO(1)a \sim \mathcal{O}(1):

α~esclnN2λspecK1πKlnN.\tilde\alpha_\text{esc} \approx \frac{\ln N}{2\lambda_\text{spec}} \underset{K\gg 1}{\approx} \pi K\ln N.

The plateau duration is logarithmic in NN (fine) and linear in KK (a genuine bottleneck for wide networks). This gives a precise quantitative prediction for when training suddenly accelerates — the hallmark of the specialisation transition.

Graded Teacher and Cascade of Specialisations

For a teacher with non-isotropic self-overlap T=diag(t1,,tK)T = \operatorname{diag}(t_1, \ldots, t_K), t1>>tKt_1 > \cdots > t_K, the specialisation modes become unstable at different rates. The result is a cascade of specialisations α~esc(1)<<α~esc(K)\tilde\alpha_\text{esc}^{(1)} < \cdots < \tilde\alpha_\text{esc}^{(K)}: the student learns teacher directions one at a time, strongest first, each appearing as a step-down in Egen(α~)\mathcal{E}_\text{gen}(\tilde\alpha). This is the ODE-level mechanism behind the empirical observation of “grokking” and staged learning in modern networks.

Optimal Learning Rate Schedules

(Reference: Saad & Rattray (1997))

Since the ODE for Ω=(M,Q,v)\Omega = (M, Q, v) is exact as NN \to \infty, one can optimise the schedule η(α)\eta(\alpha) to minimise Eg(Ω(αF))\mathcal{E}_g(\Omega(\alpha_F)) at a final time αF\alpha_F. This is a standard optimal control problem — exactly as one minimises a cost functional in PDE-constrained optimisation.

Locally Optimal Rate

At each time, choose η\eta to maximise the instantaneous rate of decrease of Eg\mathcal{E}_g:

dEgdα=η(ΩEgF1)0 (descent)+η2(ΩEgF2)>0 (noise inflation),\frac{d\mathcal{E}_g}{d\alpha} = \eta\underbrace{(\nabla_\Omega\mathcal{E}_g\cdot F_1)}_{\leq 0\text{ (descent)}} + \eta^2\underbrace{(\nabla_\Omega\mathcal{E}_g\cdot F_2)}_{> 0\text{ (noise inflation)}},

where F1F_1 is the drift and F2F_2 is the noise covariance contribution. Setting d(dEg/dα)/dη=0d(d\mathcal{E}_g/d\alpha)/d\eta = 0:

ηloc(α)=ΩEgF12ΩEgF2.\eta^*_\text{loc}(\alpha) = -\frac{\nabla_\Omega\mathcal{E}_g\cdot F_1}{2\,\nabla_\Omega\mathcal{E}_g\cdot F_2}.

This is the steepest instantaneous descent on a signal-to-noise ratio. However, it stalls at the plateau: the locally optimal η\eta cannot break the symmetry because F1=0F_1 = 0 there.

Globally Optimal Rate via Pontryagin’s Principle

Minimise Eg(Ω(αF))\mathcal{E}_g(\Omega(\alpha_F)) subject to the ODE constraint dΩ/dα=ηF1(Ω)+η2F2(Ω)d\Omega/d\alpha = \eta F_1(\Omega) + \eta^2 F_2(\Omega). Introduce a costate (adjoint) variable Λ(α)\Lambda(\alpha) and form the Hamiltonian:

Hctrl=Λ(ηF1(Ω)+η2F2(Ω)).\mathcal{H}_\text{ctrl} = \Lambda \cdot \big(\eta F_1(\Omega) + \eta^2 F_2(\Omega)\big).

Pontryagin’s Minimum Principle gives:

ηglob(α)=Λ(α)F1(Ω)2Λ(α)F2(Ω).\eta^*_\text{glob}(\alpha) = -\frac{\Lambda(\alpha)\cdot F_1(\Omega)}{2\,\Lambda(\alpha)\cdot F_2(\Omega)}.

The costate Λ(α)\Lambda(\alpha) encodes the sensitivity of the final error to the current state, propagated backward in time. This is the adjoint equation familiar from PDE-constrained optimisation. At the plateau, Λ\Lambda can be nonzero even when F1=0F_1 = 0 (because the final error is sensitive to the current state even when the state is not moving), allowing ηglob\eta^*_\text{glob} to push the learning rate high enough to escape the symmetric fixed point. The global rate can therefore outperform the local rate near the plateau — at the cost of temporarily increasing Eg\mathcal{E}_g to set up a faster descent later Saad & Rattray (1997).

Multi-Pass SGD via Dynamical Mean-Field Theory

(Day 4)

Online learning assumes each data point is seen exactly once. Multi-pass SGD reuses data across epochs, introducing temporal memory: the weight w(t)w(t) depends on its own past through earlier gradients evaluated on the same data points.

The Model

Consider a single-layer model with binary Gaussian mixture data:

yμ=±1,xμ=yμwN+zμ,zμN(0,IN).y^\mu = \pm1, \qquad x^\mu = \frac{y^\mu w^*}{\sqrt{N}} + z^\mu, \quad z^\mu \sim \mathcal{N}(0,I_N).

Train with squared loss and 2\ell_2 regularisation. Multi-pass SGD with subsampling schedule sμ(t){0,1}s_\mu(t) \in \{0,1\} (indicating whether sample μ\mu is in the current mini-batch):

dwdt=1bμ=1psμ(t)(yμhμ(t))xμλw(t),\frac{dw}{dt} = -\frac{1}{b}\sum_{\mu=1}^p s_\mu(t)\,\ell'(y^\mu h^\mu(t))\,x^\mu - \lambda w(t),

where b=E[sμ(t)]b = \mathbb{E}[s_\mu(t)] is the expected batch fraction and τ=dt/b\tau = dt/b is the persistence time. As P,NP, N \to \infty with α=P/N=O(1)\alpha = P/N = \mathcal{O}(1), the temporal correlations between steps (absent in online learning) must be tracked explicitly.

The Dynamical Cavity Method: Three Contributions

Decompose the weight vector along three directions:

  1. Lab frame viv_i: a fixed unit direction uncorrelated with data and teacher, wi(t)=w(t)viw_i(t) = w(t) \cdot v_i.

  2. Data directions xμ/Nx^\mu / \sqrt{N}: projections onto individual data points, hμ(t)=xμw(t)/Nh^\mu(t) = x^\mu \cdot w(t)/\sqrt{N}.

  3. Teacher direction w/Nw^*/N: m(t)=w(t)w/Nm(t) = w(t)\cdot w^*/N.

Adding the viv_i direction as a perturbation and expanding to first order in 1/N1/\sqrt{N}, one finds that the weight component wi(t)w_i(t) along viv_i satisfies an effective stochastic process with three terms Mignacco et al. (2020)Bordelon & Pehlevan (2022):

dwi(t)dt=Fi(t)① random forceα0tMR(t,t)wi(t)dt② retarded friction(λ+αυ(t))wi(t)③ dynamic renorm.\frac{dw_i(t)}{dt} = \underbrace{F_i(t)}_{\text{① random force}} - \underbrace{\alpha\int_0^t M_R(t,t')\,w_i(t')\,dt'}_{\text{② retarded friction}} - \underbrace{\big(\lambda + \alpha\,\upsilon(t)\big)\,w_i(t)}_{\text{③ dynamic renorm.}}

① Random force Fi(t)F_i(t): the contribution of sample μ\mu’s input component along viv_i, summed over all active samples. By the CLT, it is Gaussian with zero mean and two-time correlation

Fi(t)Fi(t)=αMC(t,t),\langle F_i(t)F_i(t')\rangle = \alpha\,M_C(t,t'),

where MC(t,t)=1bs(t)s(t)(h(t))(h(t))M_C(t,t') = \frac{1}{b}\langle s(t)s(t')\,\ell'(h(t))\,\ell'(h(t'))\rangle is the correlation kernel.

② Retarded friction: the past trajectory wi(t)w_i(t') for t<tt' < t feeds back through a memory kernel MR(t,t)M_R(t,t'),

MR(t,t)=1bs(t)δ(h(t))δp(t),M_R(t,t') = \frac{1}{b}\left\langle s(t)\,\frac{\delta\ell'(h(t))}{\delta p(t')}\right\rangle,

encoding how the gradient at time tt is influenced by the weight perturbation at the earlier time tt'. This is the Onsager response function of the dynamics, and it is the key new ingredient absent from online learning. The convolution 0tMR(t,t)wi(t)dt\int_0^t M_R(t,t') w_i(t')\,dt' is a Volterra integral of the first kind — exactly the structure of memory-dependent (history-dependent) ODEs / viscoelastic constitutive laws. In online learning, MR0M_R \equiv 0 because past gradients were computed on different (independent) data; in multi-pass SGD they were computed on the same data, creating a nontrivial MRM_R.

③ Dynamic renormalisation of the regularisation: υ(t)=1bs(t)(h(t))\upsilon(t) = \frac{1}{b}\langle s(t)\,\ell''(h(t))\rangle accounts for the curvature of the loss.

DMFT Closure and Self-Consistency

The effective process for wi(t)w_i(t) depends on MCM_C and MRM_R, which in turn depend on the distribution of hμ(t)h^\mu(t) — which depends on wi(t)w_i(t). Self-consistently closing this loop gives the dynamical mean-field theory (DMFT) equations: a closed system of integro-differential equations for the two-time correlation functions and response functions of the effective process. This is the dynamical analogue of the self-consistency equations for the replica order parameters in Lecture 1.

The DMFT equations are exact as NN \to \infty. They capture:

Scaling Limits

The crossover between three qualitatively different regimes is controlled by KNκK \sim N^\kappa and ηNδ\eta \sim N^{-\delta} Veiga et al. (2022):

RegimeConditionOutcome
Perfect learningκ+δ>0\kappa + \delta > 0Population error 0\to 0
Bad learning12<κ+δ<0-\tfrac{1}{2} < \kappa+\delta < 0Noise dominates, nonzero error
No convergenceκ+δ<12\kappa + \delta < -\tfrac{1}{2}ODE description breaks down

The classical online-learning limit of these notes (η=O(1)\eta = \mathcal{O}(1), K=O(1)K = \mathcal{O}(1), NN\to\infty) sits at κ=δ=0\kappa = \delta = 0, on the boundary of the perfect-learning regime. The full phase diagram in the (κ,δ)(\kappa,\delta) plane is in Veiga et al. (2022).

References
  1. Goldt, S., Advani, M., Saxe, A. M., Krzakala, F., & Zdeborová, L. (2019). Dynamics of Stochastic Gradient Descent for Two-Layer Neural Networks in the Teacher–Student Setup. NeurIPS 2019.
  2. Saad, D., & Solla, S. A. (1995). On-Line Learning in Soft Committee Machines. Physical Review E, 52(4), 4225–4243.
  3. Goldt, S., Loureiro, B., Reeves, G., Krzakala, F., & Zdeborová, L. (2020). Modeling the Influence of Data Structure on Learning in Neural Networks. Physical Review X, 10, 041044.
  4. Refinetti, M., Goldt, S., Krzakala, F., & Zdeborová, L. (2021). Classifying High-Dimensional Gaussian Mixtures: Where Kernel Methods Fail and Neural Networks Succeed. ICML 2021.
  5. Goldt, S., Loureiro, B., Reeves, G., Krzakala, F., & Zdeborová, L. (2022). The Gaussian Equivalence of Generative Models for Learning with Shallow Neural Networks. MSML 2022.
  6. Gerace, F., Loureiro, B., Krzakala, F., Mézard, M., & Zdeborová, L. (2020). Generalisation Error in Learning with Random Features and the Hidden Manifold Model. ICML 2020.
  7. Chung, S., Lee, D. D., & Sompolinsky, H. (2018). Classification and Geometry of General Perceptual Manifolds. Physical Review X, 8(3), 031003.
  8. Mignacco, F., Chou, T., & Chung, S. (2025). Neural Manifold Capacity with Variability. Physical Review E.
  9. Cui, H., Loureiro, B., Krzakala, F., & Zdeborová, L. (2023). Bayes-Optimal Learning of an Extensive-Width Neural Network from Quadratically Many Samples. ICML 2023.
  10. Camilli, M., Barbier, J., & Krzakala, F. (2025). Fundamental Limits of Overparametrized Shallow Neural Networks for Supervised Learning. COLT 2025.
  11. Maillard, A., Loureiro, B., Krzakala, F., & Zdeborová, L. (2024). Bayes-Optimal Learning of a Two-Layer Neural Network. NeurIPS 2024.
  12. Erba, V., Barbier, J., Krzakala, F., & Zdeborová, L. (2025). Bayes-Optimal Learning with Quadratic Data. NeurIPS 2025.
  13. Barbier, J., Nguyen, T., & Zdeborová, L. (2026). Bayesian Inference of a Random Matrix Model with a Two-Layer Neural Network. Physical Review X.
  14. Tiberi, L., Mignacco, F., Irie, K., & Sompolinsky, H. (2024). Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers. NeurIPS 2024.
  15. Veiga, R., Stephan, L., Loureiro, B., Krzakala, F., & Zdeborová, L. (2022). Phase Diagram of Stochastic Gradient Descent in High-Dimensional Two-Layer Neural Networks. NeurIPS 2022.