Sam Babichenko

Reading notes / High-dimensional SGD

The merged-staircase property

Abbe et al., 2022

Context. A function f∗(x)=h∗(xI)f_*(x)=h_*(x_I) on {±1}d\{\pm1\}^d that depends on an unknown set II of PP coordinates costs any linear method (kernels, random features, the NTK) about dkd^k samples when h∗h_* has a degree-kk part. Two-layer networks trained by SGD can adapt to the hidden support, but it was open which h∗h_* plain SGD on a regular network learns at the cheapest possible rate, O(d)O(d) samples. In the mean-field regime the answer is a combinatorial property of the Fourier support of h∗h_*. From a near-zero first layer, the gradient on the weight of coordinate ii through a monomial χS\chi_S is proportional to the product of the weights already placed on the other coordinates of SS, so a coordinate can start moving only if some monomial contains it together with coordinates already learned. SGD learns the Fourier support one new coordinate at a time, and a monomial that introduces two new coordinates at once sits at a saddle with no drift, so each newly learned set must have information exponent 1 relative to what is already learned.

Setting. Inputs are uniform on {±1}d\{\pm1\}^d, y=h∗(xI)+εy=h_*(x_I)+\varepsilon, and P=∣I∣P=|I| is fixed as d→∞d\to\infty. The network is f^(x;Θ)=1N∑jajσ(⟨wj,x⟩)\hat f(x;\Theta)=\frac1N\sum_ja_j\sigma(\langle w_j,x\rangle) (mean-field scaling), trained by one-pass batch SGD on the square loss with batch bb, bounded layer-wise step schedules and optional ℓ2\ell_2 penalties, from d wj∼μw⊗d\sqrt d\,w_j\sim\mu_w^{\otimes d} with μw\mu_w symmetric subgaussian. h∗h_* is strongly O(d)O(d)-SGD-learnable if for every ε\varepsilon, every d≥C(ε)d\ge C(\varepsilon), every n≥C(ε)dn\ge C(\varepsilon)d and every width C(ε)≤N≤edC(\varepsilon)\le N\le e^d there are hyperparameters with dd-free bounds (batch b≤db\le d, n/b≤T(ε)/ηn/b\le T(\varepsilon)/\eta steps) that reach test error ε\varepsilon with probability 9/109/10 for every support II. Writing h∗=∑Sh^∗(S)χSh_*=\sum_S\hat h_*(S)\chi_S, the support has the merged-staircase property (MSP) if its sets can be ordered S1,…,SmS_1,\dots,S_m with ∣Si∖⋃i′<iSi′∣≤1for all i.\Big|S_i\setminus\textstyle\bigcup_{i'<i}S_{i'}\Big|\le1\quad\text{for all }i. So z1+z1z2+z1z2z3z_1+z_1z_2+z_1z_2z_3 and z1+z2+z3+z4+z1z2z3z4z_1+z_2+z_3+z_4+z_1z_2z_3z_4 are MSP, while z1z2z3z_1z_2z_3, z1+z1z2z3z_1+z_1z_2z_3 and z1+z1z2+z3z4z_1+z_1z_2+z_3z_4 are not.

Dimension-free dynamics and the equivalence. Split x=(z,r)x=(z,r) into the PP signal and d−Pd-P noise coordinates and a neuron's weight into (u,v)(u,v). The limit is a Wasserstein gradient flow ρˉt\bar\rho_t on (a,u,s)∈RP+2(a,u,s)\in\mathbb R^{P+2} for the risk of the PP-dimensional network f^(z;ρˉ)=∫a EG∼N(0,1) σ(⟨u,z⟩+sG) ρˉ(da du ds),ρˉ0=μa⊗δu=0⊗δs=m2,\hat f(z;\bar\rho)=\int a\,\mathbb E_{G\sim N(0,1)}\,\sigma(\langle u,z\rangle+sG)\,\bar\rho(da\,du\,ds),\qquad \bar\rho_0=\mu_a\otimes\delta_{u=0}\otimes\delta_{s=m_2}, with adaptive Gaussian smoothing ss standing for ∥v∥2\|v\|_2. SGD tracks it, for b≤db\le d, N≤edN\le e^d and η≤e−K0T3b/(d+log⁡N)\eta\le e^{-K_0T^3}b/(d+\log N), up to an error eK1T7((P+log⁡d)/d+log⁡N/N+(d+log⁡N)η/b)e^{K_1T^7}\big(\sqrt{(P+\log d)/d}+\sqrt{\log N/N}+\sqrt{(d+\log N)\eta/b}\big) on [0,T][0,T]. Consequently h∗h_* is strongly O(d)O(d)-SGD-learnable if and only if some schedules and penalties give inf⁡tR(ρˉt)<ε\inf_tR(\bar\rho_t)\lt\varepsilon for every ε\varepsilon.

Main theorems. Necessity: if h∗h_* is not MSP, inf⁡tR(ρˉt)≥c>0\inf_tR(\bar\rho_t)\ge c\gt0 for every allowed activation, initialization, schedule and regularization, so non-MSP functions are not strongly O(d)O(d)-SGD-learnable. Vanilla staircases: α1z1+α2z1z2+⋯+αPz1⋯zP\alpha_1z_1+\alpha_2z_1z_2+\dots+\alpha_Pz_1\cdots z_P with all αi≠0\alpha_i\ne0 is learnable with any σ∈C2P−1+1\sigma\in C^{2^{P-1}+1}, bounded with bounded derivatives, with σ(r)(0)≠0\sigma^{(r)}(0)\ne0 for r≤Pr\le P. Generic MSP: for any MSP structure with coefficients drawn from Lebesgue measure, h∗h_* is learnable almost surely with σ(x)=(1+x)L\sigma(x)=(1+x)^L, L=28PL=2^{8P}, or a random polynomial activation of that degree. Genericity cannot be dropped: z1+z2+z1z3+z2z4z_1+z_2+z_1z_3+z_2z_4 is MSP but its dynamics stays bounded away from zero risk. Linear methods: a predictor in a feature space of dimension qq that fits a target with half its mass on mm degree-kk monomials to average error 12(1−η)\frac12(1-\eta) over coordinate permutations needs min⁡(n,q)≥ηm(dk)\min(n,q)\ge\frac{\eta}{m}\binom dk; for the normalized staircase it needs η2(d⌊ηP/2⌋)\frac\eta2\binom{d}{\lfloor\eta P/2\rfloor}, superpolynomial when PP grows, while the network stays dO(1)d^{O(1)}.

Step 1

O(d)O(d) samples of SGD are O(1)O(1) time of a PP-dimensional PDE. Two approximations are chained. Propagation of chaos (Mei, Misiakiewicz and Montanari) puts the neurons' empirical measure on the mean-field PDE; a batch gradient is a dd-dimensional subgaussian vector, which forces η≲b/d\eta\lesssim b/d, so T/ηT/\eta steps use n=Tb/η≍Tdn=Tb/\eta\asymp Td samples. Then symmetry reduces dd to PP: flipping the signs of every neuron's noise coordinates maps solutions to solutions and fixes the initialization, so the network never depends on rr, and ⟨v,r⟩\langle v,r\rangle is a Rademacher sum close to ∥v∥2G\|v\|_2G up to times O(1)O(1). The equivalence is then the triangle inequality both ways, so learnability in O(d)O(d) is a property of a fixed, dd-free gradient flow started with the first layer at exactly zero.

Step 2

Coordinates outside the staircase closure never move, which proves necessity. Take the largest MSP subfamily S∗\mathcal S^* and let Ω\Omega be the coordinates it never touches, so every remaining set contains at least two coordinates of Ω\Omega. Integrating ziz_i out of the first-layer drift for i∈Ωi\in\Omega (Ezi[Fzi]\mathbb E_{z_i}[F z_i] is half the difference of FF at zi=±1z_i=\pm1) bounds each contribution by a weight on Ω\Omega: for the network's own output, a monomial without ii, and a monomial with ii and a second fresh jj, ∣E[f^ σ′zi]∣≲(1+t)∣ui∣,∣E[χSσ′zi]∣≤∥σ′′∥∞∣ui∣ (i∉S),∣E[χSσ′zi]∣≤∥σ′′∥∞∣uj∣ (j∈S∩Ω, j≠i).\big|\mathbb E[\hat f\,\sigma'z_i]\big|\lesssim(1+t)|u_i|,\qquad \big|\mathbb E[\chi_S\sigma'z_i]\big|\le\|\sigma''\|_\infty|u_i|\ (i\notin S),\qquad \big|\mathbb E[\chi_S\sigma'z_i]\big|\le\|\sigma''\|_\infty|u_j|\ (j\in S\cap\Omega,\ j\ne i). So mt=max⁡i∈Ω∣ui∣m_t=\max_{i\in\Omega}|u_i| obeys m˙t≲(1+t)2mt\dot m_t\lesssim(1+t)^2m_t from m0=0m_0=0, and Grönwall keeps it at zero; the network then has zero Fourier coefficient on every set outside S∗\mathcal S^*, and R(ρˉt)≥∑S∉S∗h^∗(S)2R(\bar\rho_t)\ge\sum_{S\notin\mathcal S^*}\hat h_*(S)^2. The zero start is the d→∞d\to\infty limit of a d−1/2d^{-1/2} overlap: at finite dd SGD can leave this saddle, but only with more than O(d)O(d) samples.

Step 3

Sufficiency reduces to one nonsingular 2P×2P2^P\times2^P kernel. The proof picks convenient hyperparameters: no penalties, μw=δ0\mu_w=\delta_0 (no smoothing), a∼Unif[−1,1]a\sim\mathrm{Unif}[-1,1], and two phases. In Phase 1 only the first layer moves, for a short time T1T_1, so each neuron's weights are a deterministic function uT1(a)u^{T_1}(a) of its output weight, the only source of diversity. In Phase 2 only the second layer moves, which is kernel gradient flow, KT1(z,z′)=Ea[σ(⟨uT1(a),z⟩)σ(⟨uT1(a),z′⟩)],ddt∥gt∥2=−gt⊤KT1gt≤−λmin⁡(KT1)∥gt∥2K^{T_1}(z,z')=\mathbb E_{a}\big[\sigma(\langle u^{T_1}(a),z\rangle)\sigma(\langle u^{T_1}(a),z'\rangle)\big],\qquad \tfrac{d}{dt}\|g_t\|^2=-g_t^\top K^{T_1}g_t\le-\lambda_{\min}(K^{T_1})\|g_t\|^2 for the residual gtg_t. On the finite cube, convergence at a dd-free rate means exactly λmin⁡(KT1)>0\lambda_{\min}(K^{T_1})\gt0: the features σ(⟨uT1(a),z⟩)\sigma(\langle u^{T_1}(a),z\rangle), as aa varies, must span all functions on {±1}P\{\pm1\}^P.

Step 4

On a vanilla staircase, coordinate kk grows like (at)2k−1(at)^{2^{k-1}}, and binary exponents make the kernel nonsingular. Taylor-expanding σ\sigma at zero, the only leading term in the drift of uku_k comes from z1⋯zkz_1\cdots z_k: u˙k≈a αk mk∏j<kuj⟹ukt(a)≈ck (at)2k−1,\dot u_k\approx a\,\alpha_k\,m_k\prod_{j\lt k}u_j\quad\Longrightarrow\quad u_k^t(a)\approx c_k\,(at)^{2^{k-1}}, with mr=σ(r)(0)m_r=\sigma^{(r)}(0) and ck≠0c_k\ne0, made rigorous by a Grönwall induction. So z1z_1 moves first, then z2z_2, then z3z_3. A neuron's Fourier coefficient on SS is then about a constant times aβ(S)a^{\beta(S)}, β(S)=∑k∈S2k−1\beta(S)=\sum_{k\in S}2^{k-1}, and binary expansion makes β\beta a bijection onto {0,…,2P−1}\{0,\dots,2^P-1\}, so the kernel is a rescaled, slightly perturbed Gram matrix of 1,a,…,a2P−11,a,\dots,a^{2^P-1} under uniform aa, which is positive definite for small T1T_1. Each stage of this induction needs its derivative σ(r)(0)≠0\sigma^{(r)}(0)\ne0.

Step 5

For a general MSP support, learnability reduces to a polynomial not vanishing identically. Several monomials can feed the same coordinate and cancel, so the proof makes everything exactly polynomial: PP discrete first-layer steps of small size η\eta with a polynomial activation, so each weight is a polynomial in ζ=ηa\zeta=\eta a, the residual's Fourier coefficients and σ\sigma's derivatives. The network output stays O(η)O(\eta) (Ea=0\mathbb Ea=0), so the residual can be replaced by the target's coefficients at cost O(η)O(\eta). Stacking 2P2^P independent neurons into a matrix BB and using λmin⁡(BB⊤)≥det⁡(B)2/λmax⁡(B)2(2P−1)\lambda_{\min}(BB^\top)\ge\det(B)^2/\lambda_{\max}(B)^{2(2^P-1)} with anti-concentration of polynomials, λmin⁡(Kk1) ≥ c Ea[det⁡M(ηa,β,m)2] ≥ c∑γη2∣γ∣(∣hγ∣−Cη)+2,\lambda_{\min}(K^{k_1})\ \ge\ c\ \mathbb E_{a}\big[\det M(\eta a,\beta,m)^2\big]\ \ge\ c\sum_\gamma\eta^{2|\gamma|}\big(|h_\gamma|-C\eta\big)_+^2, with hγh_\gamma the coefficients of the determinant in ζ\zeta. So if that determinant is not the zero polynomial, a small η\eta gives a positive, dd-free λmin⁡\lambda_{\min}.

Step 6

The determinant is nonzero, because distinct inputs get distinct preactivation polynomials and high powers of distinct polynomials are independent. Treat the coefficients as variables; a nonzero polynomial is nonzero for almost every α\alpha, and it suffices to treat a minimal MSP chain S1,…,SPS_1,\dots,S_P with i∈Si⊆[i]i\in S_i\subseteq[i]. There the staircase order becomes degrees in ζ\zeta: weight ii starts at degree oi=1+∑i′∈Si∖{i}oi′o_i=1+\sum_{i'\in S_i\setminus\{i\}}o_{i'} with a leading coefficient distinct across ii, so the preactivations rz(ζ)r_z(\zeta) are distinct polynomials for distinct zz. With σ=(1+x)L\sigma=(1+x)^L the entries are (1+rz)L(1+r_z)^L, and Newman and Slater show that LL-th powers of mm pairwise non-proportional polynomials are linearly independent once L≥8m2L\ge8m^2; with m=2Pm=2^P, L=28PL=2^{8P} suffices, and a nonzero Wronskian makes the determinant nonzero. The degenerate example is the measure-zero failure of this step: for z1+z2+z1z3+z2z4z_1+z_2+z_1z_3+z_2z_4 the swap (1 2)(3 4)(1\,2)(3\,4) fixes h∗h_* and the zero start, so every neuron has u1=u2u_1=u_2, u3=u4u_3=u_4, and z=(1,−1,1,−1)z=(1,-1,1,-1), z′=(1,−1,−1,1)z'=(1,-1,-1,1) get the same preactivation although h∗(z)=2≠−2=h∗(z′)h_*(z)=2\ne-2=h_*(z').

Step 7

Lower bound for linear methods, by a dimension count on a subspace. Whatever the loss, the fitted predictor lies in the span of ψ(x1),…,ψ(xn)\psi(x_1),\dots,\psi(x_n), a subspace of dimension at most min⁡(n,q)\min(n,q) that does not depend on which permutation of the target generated the labels. For unit gg, Cauchy-Schwarz gives ∑i⟨g,fi⟩2≤∥G∥op\sum_i\langle g,f_i\rangle^2\le\|G\|_{op} for the Gram matrix GG of MM unit functions, so a fixed rr-dimensional subspace captures on average at most r∥G∥op/Mr\|G\|_{op}/M of their energy. Apply this to the permutation orbit of f∗f_* projected onto its degree-kk part and bound ∥G∥op\|G\|_{op} by a row sum, m/(dk)m/\binom dk. Projecting onto the degree-kk part is what improves on SQ arguments: staircases are SQ-learnable one degree at a time, so their SQ dimension is polynomial, but their top-degree part still requires (d⌊ηP/2⌋)\binom{d}{\lfloor\eta P/2\rfloor}.

Consequences and limits. In this regime O(d)O(d) samples suffice exactly for (generic) functions whose Fourier support can be learned one new coordinate at a time, with the low-degree monomials making the high-degree ones learnable; simulations at d=N=100d=N=100 show SGD tracking the PDE and picking up z1,z1z2,z1z2z3,z1z2z3z4z_1,z_1z_2,z_1z_2z_3,z_1z_2z_3z_4 in order. Linear methods need dkd^k samples on the same functions, so every generic non-linear MSP function separates feature learning from kernels. Necessity says only that non-MSP functions need more than O(d)O(d) samples; the authors conjecture O(dlog⁡d)O(d\log d) for leaps of two fresh coordinates, the information-exponent-2 rate, and O~(dl/2)\tilde O(d^{l/2}) for leaps of l>2l\gt2. Limits: hypercube inputs and fixed (or very slowly growing) PP; mean-field scaling, with necessity proved in the d→∞d\to\infty limit of the dynamics; and sufficiency with a hand-built two-phase schedule, a zero first layer and a special polynomial activation of enormous degree, far from joint training with ReLU. The explicit sample bound O(eePd/εC)O(e^{e^P}d/\varepsilon^C) is doubly exponential in PP, and degenerate MSP functions are characterized only by examples with symmetries.

Terms

f∗(x)=h∗(xI)f_*(x)=h_*(x_I), ∣I∣=P|I|=P
sparse target on {±1}d\{\pm1\}^d; II unknown, PP fixed
Strongly O(d)O(d)-SGD-learnable
error ε\varepsilon for every support with n=Oε(d)n=O_\varepsilon(d), hyperparameters with dd-free bounds, O(1/η)O(1/\eta) steps
MSP
Fourier support orderable so each set adds at most one new coordinate
Dimension-free PDE
gradient flow on (a,u,s)∈RP+2(a,u,s)\in\mathbb R^{P+2}; ss stands for ∥v∥2\|v\|_2, the weight on noise coordinates
Ω\Omega
coordinates outside the largest MSP subfamily; their weights stay exactly zero
ukt≈ck(at)2k−1u_k^t\approx c_k(at)^{2^{k-1}}
growth order of staircase coordinate kk in Phase 1
β(S)=∑k∈S2k−1\beta(S)=\sum_{k\in S}2^{k-1}
power of aa in a neuron's Fourier coefficient on SS; distinct by binary expansion
KT1K^{T_1}
Phase-2 kernel on {±1}P\{\pm1\}^P; learnable iff λmin⁡(KT1)>0\lambda_{\min}(K^{T_1})>0
Newman-Slater
LL-th powers of mm pairwise non-proportional polynomials are independent for L≥8m2L\ge8m^2
Linear-method bound
min⁡(n,q)≥ηm(dk)\min(n,q)\ge\frac\eta m\binom dk; staircase η2(d⌊ηP/2⌋)\frac\eta2\binom d{\lfloor\eta P/2\rfloor}

Quiz

  1. Why does SGD from a near-zero first layer learn z1+z1z2+z1z2z3z_1+z_1z_2+z_1z_2z_3 with O(d)O(d) samples but not z1z2z3z_1z_2z_3?
  2. The dimension-free dynamics starts with the signal weights uu at exactly zero. What does this encode?
  3. Why is h∗=z1+z2+z1z3+z2z4h_*=z_1+z_2+z_1z_3+z_2z_4, which is MSP, not strongly O(d)O(d)-SGD-learnable?
  4. In the generic-MSP proof the network's own output f^\hat f is dropped from the Phase-1 recurrence. Why is that harmless?

Sources