Simple Algorithm
Machine Learning · Convergence · 30 min

Infinite Width: NTK & Mean-Field Limits

When wide networks behave like kernels, and when they don’t.

Make a network wider and wider and two very different things can happen. With one scaling it becomes a Gaussian process at initialization and a kernel machine under gradient descent, its features frozen in place. With another, its neurons become interacting particles whose features travel far. This lesson derives both limits, shows that which one you get is a choice of parameterization, and explains the maximal-update parameterization that keeps feature learning alive at every width.

What you’ll learn

  • Derive the Gaussian-process limit of a wide random network, the layer-by-layer kernel recursion, and its closed form for ReLU.
  • Define the neural tangent kernel, solve the training dynamics for squared loss in the infinite-width limit, and explain why the weights barely move.
  • Explain lazy training as a consequence of scaling, and the sample-size limits of kernel methods in high dimension.
  • Derive the mean-field limit of a two-layer network as a gradient flow over probability measures, and describe the parameterization dichotomy and μP.

Wide random networks are Gaussian processes

Take one hidden layer of width NN with independent random parameters and an output scaled by 1/N1/\sqrt N:

f(x)=b+1N∑j=1Nvj φ(wj⊤x+bj),vj∼N(0,σv2), wj∼N(0,σw2dI), b,bj∼N(0,σb2).f(\mathbf x)=b+\frac1{\sqrt N}\sum_{j=1}^Nv_j\,\varphi\big(\mathbf w_j^\top\mathbf x+b_j\big),\qquad v_j\sim\mathcal N(0,\sigma_v^2),\ \mathbf w_j\sim\mathcal N\big(\mathbf 0,\tfrac{\sigma_w^2}dI\big),\ b,b_j\sim\mathcal N(0,\sigma_b^2).

For any finite set of inputs, (f(x1),…,f(xm))(f(\mathbf x_1),\dots,f(\mathbf x_m)) is a sum of NN independent, identically distributed random vectors scaled by 1/N1/\sqrt N. By the multivariate central limit theorem it converges to a Gaussian, so ff converges to a Gaussian process with covariance K(x,x′)=σb2+σv2 E[φ(w⊤x+b) φ(w⊤x′+b)]K(\mathbf x,\mathbf x')=\sigma_b^2+\sigma_v^2\,\E\big[\varphi(\mathbf w^\top\mathbf x+b)\,\varphi(\mathbf w^\top\mathbf x'+b)\big]. Neal (1996) made this observation for Bayesian neural networks: a prior over the weights of an infinitely wide network is a prior over functions, and a Gaussian one.

DerivationThe kernel recursion for deep networks
  1. Cov⁡(zi(l)(x),zi(l)(x′) ∣ layer l−1)=σb2+σw2nl−1∑k=1nl−1φ(zk(l−1)(x)) φ(zk(l−1)(x′))\Cov\big(z^{(l)}_i(\mathbf x),z^{(l)}_i(\mathbf x')\,\big|\,\text{layer }l-1\big)=\sigma_b^2+\frac{\sigma_w^2}{n_{l-1}}\sum_{k=1}^{n_{l-1}}\varphi\big(z^{(l-1)}_k(\mathbf x)\big)\,\varphi\big(z^{(l-1)}_k(\mathbf x')\big)

    Let layer ll have pre-activations z(l)\mathbf z^{(l)}, with Wij(l)∼N(0,σw2/nl−1)W^{(l)}_{ij}\sim\mathcal N(0,\sigma_w^2/n_{l-1}) and bi(l)∼N(0,σb2)b^{(l)}_i\sim\mathcal N(0,\sigma_b^2). Conditionally on the layer below, the units zi(l)(⋅)z^{(l)}_i(\cdot) are independent Gaussian processes with an empirical covariance:

  2. K(l)(x,x′)=σb2+σw2 E(u,v)∼N(0,Λ(l−1))[φ(u)φ(v)],Λ(l−1)=(K(l−1)(x,x)K(l−1)(x,x′)K(l−1)(x′,x)K(l−1)(x′,x′))K^{(l)}(\mathbf x,\mathbf x')=\sigma_b^2+\sigma_w^2\,\E_{(u,v)\sim\mathcal N(\mathbf 0,\Lambda^{(l-1)})}\big[\varphi(u)\varphi(v)\big],\qquad\Lambda^{(l-1)}=\begin{pmatrix}K^{(l-1)}(\mathbf x,\mathbf x)&K^{(l-1)}(\mathbf x,\mathbf x')\\K^{(l-1)}(\mathbf x',\mathbf x)&K^{(l-1)}(\mathbf x',\mathbf x')\end{pmatrix}

    As nl−1→∞n_{l-1}\to\infty the average converges by the law of large numbers, and by induction the units below are Gaussian, so the covariance becomes a deterministic NNGP kernel, given by a recursion over layers (Lee et al., 2018; Matthews et al., 2018) that starts from K(1)(x,x′)=σb2+σw2 x⊤x′/dK^{(1)}(\mathbf x,\mathbf x')=\sigma_b^2+\sigma_w^2\,\mathbf x^\top\mathbf x'/d:

  3. E[ReLU(u) ReLU(v)]=qq′2π(sin⁡θ+(π−θ)cos⁡θ),E[ReLU′(u) ReLU′(v)]=π−θ2π\E\big[\mathrm{ReLU}(u)\,\mathrm{ReLU}(v)\big]=\frac{\sqrt{qq'}}{2\pi}\Big(\sin\theta+(\pi-\theta)\cos\theta\Big),\qquad\E\big[\mathrm{ReLU}'(u)\,\mathrm{ReLU}'(v)\big]=\frac{\pi-\theta}{2\pi}

    For ReLU the expectation has a closed form, the first arc-cosine kernel (Cho & Saul, 2009). With variances q,q′q,q' and correlation cos⁡θ\cos\theta:

  4. f∣D ∼ GP(K(⋅,X)(K+σ2I)−1y,  K(⋅,⋅)−K(⋅,X)(K+σ2I)−1K(X,⋅))f\mid\data\ \sim\ \mathcal{GP}\Big(K(\cdot,X)\big(K+\sigma^2I\big)^{-1}\mathbf y,\ \ K(\cdot,\cdot)-K(\cdot,X)\big(K+\sigma^2I\big)^{-1}K(X,\cdot)\Big)

    So exact Bayesian prediction with an infinitely wide network is GP regression with this kernel: the posterior mean at x⋆\mathbf x_\star is K(x⋆,X)(K(X,X)+σ2I)−1yK(\mathbf x_\star,X)\big(K(X,X)+\sigma^2I\big)^{-1}\mathbf y (Gaussian Processes). On MNIST and CIFAR-10, Lee et al. found these GPs typically more accurate than the finite fully connected networks they trained by gradient descent, with the trained networks closing the gap as they widened.

Predict before you look

Two inputs give pre-activations u,vu,v with unit variances and zero correlation (θ=π/2\theta=\pi/2). What is E[ReLU(u) ReLU(v)]\E[\mathrm{ReLU}(u)\,\mathrm{ReLU}(v)]? Use the formula, then check it another way.

Show the answer

0.16

The formula gives 12π(sin⁡π2+π2cos⁡π2)=12π≈0.159\frac1{2\pi}(\sin\frac\pi2+\frac\pi2\cos\frac\pi2)=\frac1{2\pi}\approx0.159. Check: uncorrelated jointly Gaussian variables are independent, so the expectation factors as (E ReLU(u))2=(1/2π)2=1/(2π)\big(\E\,\mathrm{ReLU}(u)\big)^2=\big(1/\sqrt{2\pi}\big)^2=1/(2\pi). At θ=0\theta=0 the formula gives 12=E[ReLU(u)2]\tfrac12=\E[\mathrm{ReLU}(u)^2]: half the variance, the factor behind He initialization.

The neural tangent kernel

Now train. Under gradient flow θ˙=−η∇θL\dot{\boldsymbol\theta}=-\eta\nabla_{\boldsymbol\theta}\mathcal L on the squared loss L=12∑i=1n(f(xi)−yi)2\mathcal L=\tfrac12\sum_{i=1}^n(f(\mathbf x_i)-y_i)^2, the chain rule moves the function like this:

ddtf(x;θt)=∇θf(x)⊤θ˙t=−η∑i=1nΘt(x,xi)(f(xi;θt)−yi),Θt(x,x′)=∇θf(x;θt)⊤∇θf(x′;θt).\frac{d}{dt}f(\mathbf x;\boldsymbol\theta_t)=\nabla_{\boldsymbol\theta}f(\mathbf x)^\top\dot{\boldsymbol\theta}_t=-\eta\sum_{i=1}^n\Theta_t(\mathbf x,\mathbf x_i)\big(f(\mathbf x_i;\boldsymbol\theta_t)-y_i\big),\qquad\Theta_t(\mathbf x,\mathbf x')=\nabla_{\boldsymbol\theta}f(\mathbf x;\boldsymbol\theta_t)^\top\nabla_{\boldsymbol\theta}f(\mathbf x';\boldsymbol\theta_t).

Θt\Theta_t is the neural tangent kernel: an inner product of the "tangent features" ∇θf(x)\nabla_{\boldsymbol\theta}f(\mathbf x), hence a positive semidefinite kernel. For a finite network it is random at initialization and changes during training.

DerivationTraining in the kernel regime, solved
  1. r˙t=−η Θ(X,X) rt⟹rt=e−ηΘt r0\dot{\mathbf r}_t=-\eta\,\Theta(X,X)\,\mathbf r_t\quad\Longrightarrow\quad\mathbf r_t=e^{-\eta\Theta t}\,\mathbf r_0

    With Θ\Theta constant, the training residual rt=ft(X)−y\mathbf r_t=f_t(X)-\mathbf y obeys a linear ODE. Diagonalize Θ(X,X)=∑kλkukuk⊤\Theta(X,X)=\sum_k\lambda_k\mathbf u_k\mathbf u_k^\top: the component of the residual along uk\mathbf u_k decays like e−ηλkte^{-\eta\lambda_kt}, so the network fits the top kernel principal components first, one motivation for early stopping.

  2. ft(x)=f0(x)−Θ(x,X) Θ(X,X)−1(I−e−ηΘt)(f0(X)−y)f_t(\mathbf x)=f_0(\mathbf x)-\Theta(\mathbf x,X)\,\Theta(X,X)^{-1}\big(I-e^{-\eta\Theta t}\big)\big(f_0(X)-\mathbf y\big)

    At a test point, f˙t(x)=−η Θ(x,X)rt\dot f_t(\mathbf x)=-\eta\,\Theta(\mathbf x,X)\mathbf r_t; integrate in time:

  3. f∞(x)=f0(x)+Θ(x,X) Θ(X,X)−1(y−f0(X))f_\infty(\mathbf x)=f_0(\mathbf x)+\Theta(\mathbf x,X)\,\Theta(X,X)^{-1}\big(\mathbf y-f_0(X)\big)

    As t→∞t\to\infty this is kernel regression with the NTK, started from the random function f0f_0, which is itself an NNGP sample: the trained network's predictions are Gaussian, with a mean and covariance computable from KK and Θ\Theta (Lee et al., 2019).

  4. flin(x;θ)=f0(x)+∇θf0(x)⊤(θ−θ0)f_{\text{lin}}(\mathbf x;\boldsymbol\theta)=f_0(\mathbf x)+\nabla_{\boldsymbol\theta}f_0(\mathbf x)^\top(\boldsymbol\theta-\boldsymbol\theta_0)

    Equivalently, training follows the first-order Taylor expansion of the network around its initialization; Lee et al. (2019) proved this for any depth in the infinite-width limit and found close agreement for finite, practically sized networks.

Why the kernel freezes. Take the two-layer network above. Fitting the data changes the function by O(1)\order1, but every hidden unit's parameters enter ff with the factor 1/N1/\sqrt N, so each has a gradient of size O(1/N)\order{1/\sqrt N} and moves by only that much. The total displacement ∥θt−θ0∥\norm{\boldsymbol\theta_t-\boldsymbol\theta_0} of the O(N)\order N parameters stays O(1)\order1 while ∥θ0∥\norm{\boldsymbol\theta_0} is of order N\sqrt N, and every hidden unit's pre-activation moves by O(1/N)\order{1/\sqrt N}. The features h(l)(x)\mathbf h^{(l)}(\mathbf x), and with them Θ\Theta, stay where they started. Infinitely wide networks in this regime do not learn features at all; they fit a linear model on fixed random tangent features.

Lazy training is a choice of scale

Chizat, Oyallon & Bach (2019) showed that nothing about this is specific to width. Take any differentiable model h(θ)h(\boldsymbol\theta) and train the scaled model αh(θ)\alpha h(\boldsymbol\theta) on the rescaled loss α−2ℓ(αh(θ))\alpha^{-2}\ell(\alpha h(\boldsymbol\theta)). As α→∞\alpha\to\infty, a tiny change in θ\boldsymbol\theta already changes the output a lot, so gradient flow fits the data before the parameters move far from θ0\boldsymbol\theta_0, and the path stays close to that of the linearized model; they bound the distance between the two paths. The 1/N1/\sqrt N output scaling is an implicit large α\alpha. Their experiments carry a warning: deep convolutional networks trained in the lazy regime performed worse than the same networks trained normally, which makes laziness an unlikely explanation for deep learning's successes.

Kernel methods also have provable sample-size limits in high dimension. For inputs uniform on the sphere in Rd\R^d with dℓ+δ≤n≤dℓ+1−δd^{\ell+\delta}\le n\le d^{\ell+1-\delta} samples, Ghorbani, Mei, Misiakiewicz & Montanari (2021) proved that rotationally invariant kernel methods, including the infinite-width NTK and random-features models, can fit at most a degree-ℓ\ell polynomial of the input. A target as simple as (w⋆⊤x)k(\mathbf w_\star^\top\mathbf x)^k then needs on the order of dkd^k samples, while networks that adapt their first-layer weights toward w⋆\mathbf w_\star can provably do with far fewer in stylized models, an active line of work.

The NTK is also not the whole story at finite size. Hanin & Nica (2020) showed that for ReLU networks whose depth and width grow together, the fluctuations of the NTK at initialization and its change during the first steps of training are exponential in the ratio depth/width: deep, finite-width networks are not lazy even when they are wide.

Check your understanding

In the NTK limit, a network fits its training data perfectly. What has happened to its hidden-layer features h(l)(x)\mathbf h^{(l)}(\mathbf x)?

  1. They have been learned from scratch to suit the task
  2. They are essentially unchanged from initialization: training fit a linear model on the fixed tangent features ∇θf0(x)\nabla_{\boldsymbol\theta}f_0(\mathbf x)
  3. They have collapsed to zero
  4. They have become the eigenvectors of the data covariance
Show the answer

B. They are essentially unchanged from initialization: training fit a linear model on the fixed tangent features ∇θf0(x)\nabla_{\boldsymbol\theta}f_0(\mathbf x)

Each hidden unit's pre-activation moves by O(1/N)\order{1/\sqrt N}, so in the limit the representation is frozen; all the change in the function comes from a linear combination of the initial tangent features. That is exactly why this limit cannot explain pretraining and transfer, which depend on learned features.

The mean-field limit: features that move

Now scale the output by 1/N1/N instead of 1/N1/\sqrt N, the scaling of the mean-field limit. A two-layer network becomes an average over its neurons, that is, an integral against their empirical distribution ρN=1N∑jδθj\rho_N=\frac1N\sum_j\delta_{\boldsymbol\theta_j} with θj=(aj,wj)\boldsymbol\theta_j=(a_j,\mathbf w_j):

f(x)=1N∑j=1Naj φ(wj⊤x)=∫a φ(w⊤x) dρN(a,w).f(\mathbf x)=\frac1N\sum_{j=1}^Na_j\,\varphi(\mathbf w_j^\top\mathbf x)=\int a\,\varphi(\mathbf w^\top\mathbf x)\,d\rho_N(a,\mathbf w).

The function is linear in ρ\rho, so the risk R(ρ)=12E[(y−fρ(x))2]R(\rho)=\tfrac12\E\big[(y-f_\rho(\mathbf x))^2\big] is a convex functional of the measure. The non-convexity of training lives entirely in the parameterization of ρ\rho by finitely many particle positions.

DerivationFrom particles to a gradient flow over measures
  1. dθjdt=−∇θΨ(θj;ρN(t)),j=1,…,N\frac{d\boldsymbol\theta_j}{dt}=-\nabla_{\boldsymbol\theta}\Psi\big(\boldsymbol\theta_j;\rho_N(t)\big),\qquad j=1,\dots,N

    Each particle's gradient is 1/N1/N times the gradient of the first variation of RR, Ψ(θ;ρ)=E[(fρ(x)−y) a φ(w⊤x)]\Psi(\boldsymbol\theta;\rho)=\E\big[(f_\rho(\mathbf x)-y)\,a\,\varphi(\mathbf w^\top\mathbf x)\big]. Speed time up by NN (step size ηN\eta N) and every particle follows the same vector field:

  2. ∂tρt=∇θ⋅(ρt ∇θΨ(θ;ρt))\partial_t\rho_t=\nabla_{\boldsymbol\theta}\cdot\big(\rho_t\,\nabla_{\boldsymbol\theta}\Psi(\boldsymbol\theta;\rho_t)\big)

    As N→∞N\to\infty with i.i.d. initial particles from ρ0\rho_0, the empirical measure converges to the solution of a continuity equation, the Wasserstein gradient flow of RR: a law of large numbers for interacting particles (Mei, Montanari & Nguyen, 2018; Chizat & Bach, 2018; Rotskoff & Vanden-Eijnden, 2018; Sirignano & Spiliopoulos, 2020).

  3. ρt→ρ∞ ⟹ R(ρ∞)=min⁡ρR(ρ)(under the stated conditions)\rho_t\to\rho_\infty\ \Longrightarrow\ R(\rho_\infty)=\min_\rho R(\rho)\qquad\text{(under the stated conditions)}

    Because RR is convex in ρ\rho, stationary points of the flow that put mass everywhere they need to are global minimizers. Chizat & Bach (2018) turned this into a theorem: for suitably homogeneous models and initializations with sufficiently spread-out support, if the many-particle gradient flow converges, its limit is a global minimizer. Unlike in the NTK limit, each particle moves by O(1)\order1: the first-layer weights, the features, change substantially, and the function evolves nonlinearly.

PropertyNTK (lazy) limitMean-field limit
Output scaling (two layers)1N∑jajφ(wj⊤x)\frac1{\sqrt N}\sum_ja_j\varphi(\mathbf w_j^\top\mathbf x)1N∑jajφ(wj⊤x)\frac1N\sum_ja_j\varphi(\mathbf w_j^\top\mathbf x)
Movement of a neuron's weightsO(1/N)\order{1/\sqrt N}O(1)\order1 (after rescaling time)
Limit objecta fixed kernel Θ∞\Theta_\inftya probability measure ρt\rho_t over neurons
Dynamicslinear ODE in function spacenonlinear PDE (Wasserstein gradient flow)
Features learned?noyes
Theory for deep networkswell developed, any depthmostly two-layer; deep versions are harder and less complete

Parameterizations and μP

Yang & Hu (2021) organized all of this into a family of abc-parameterizations: for each layer, a width power in the output multiplier, in the initialization variance and in the learning rate. Their dichotomy theorem says that every stable, nontrivial member of the family either admits feature learning or has infinite-width dynamics given by kernel gradient descent, but not both. The standard parameterization and the NTK parameterization both land on the kernel side (the standard one becomes unstable unless its learning rate shrinks with width). The Maximal Update Parameterization (μP) is the member in which every layer's features change by Θ(1)\Theta(1) amounts during training at every width; its limits can be computed with their Tensor Programs technique, and on tasks that rely on feature learning (Word2Vec, few-shot learning with MAML) they outperformed NTK limits, with finite networks approaching them as width grew.

ParameterInitialization varianceAdam learning rate
Input weights and all biases1/fan-in1/\text{fan-in}η\eta
Hidden weights1/fan-in1/\text{fan-in}η/fan-in\eta/\text{fan-in}
Output weights1/fan-in21/\text{fan-in}^2η/fan-in\eta/\text{fan-in}
μP for Adam, after Table 3 of Yang et al. (2021, Tensor Programs V); the standard parameterization uses variance 1/fan-in1/\text{fan-in} and rate η\eta for everything. The output layer starts much smaller, and hidden and output learning rates shrink as layers widen, so that each layer's update moves activations by a width-independent amount.

The practical payoff is μTransfer. Under μP the best learning rate, and several other hyperparameters, barely move as the network widens, so a search run on a narrow proxy can be reused on the wide target without retuning. Yang et al. transferred settings tuned on a 40-million-parameter proxy to a 6.7-billion-parameter GPT-3 model, which then beat the published results for GPT-3 at that size.

Key takeaways

  • At initialization, wide random networks are Gaussian processes (CLT); the NNGP kernel follows a layer-by-layer recursion, with an arc-cosine closed form for ReLU, and gives exact Bayesian inference for infinite width.
  • The NTK Θ(x,x′)=∇θf(x)⊤∇θf(x′)\Theta(\mathbf x,\mathbf x')=\nabla_{\boldsymbol\theta}f(\mathbf x)^\top\nabla_{\boldsymbol\theta}f(\mathbf x') becomes deterministic and constant in the NTK limit; squared-loss training then solves to f∞=f0+Θ(⋅,X)Θ−1(y−f0(X))f_\infty=f_0+\Theta(\cdot,X)\Theta^{-1}(\mathbf y-f_0(X)), and the features never move.
  • Laziness is produced by scaling (Chizat, Oyallon & Bach); lazy networks can underperform, and rotationally invariant kernels need about dℓd^\ell samples to fit degree-ℓ\ell polynomials.
  • With 1/N1/N scaling, a two-layer network is a measure over neurons whose training is a Wasserstein gradient flow of a convex risk; neurons move by O(1)\order1 and features are learned.
  • abc-parameterizations are either feature-learning or kernel-limited, not both; μP is the maximal-update member, and it makes hyperparameters transferable across width.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Why does a randomly initialized one-hidden-layer network with output scaled by 1/N1/\sqrt N become a Gaussian process as N→∞N\to\infty?

  1. Because each activation function outputs Gaussian values
  2. Because its outputs at any finite set of inputs are a scaled sum of NN i.i.d. random vectors, which the central limit theorem makes Gaussian
  3. Because training with squared loss makes the outputs Gaussian
  4. Because the weights are Gaussian, and any function of Gaussian weights is Gaussian
Show the answer

B. Because its outputs at any finite set of inputs are a scaled sum of NN i.i.d. random vectors, which the central limit theorem makes Gaussian

Each unit contributes an independent copy of vjφ(wj⊤x+bj)v_j\varphi(\mathbf w_j^\top\mathbf x+b_j) evaluated at all the inputs, and the 1/N1/\sqrt N scaling is exactly the CLT normalization. The limit is Gaussian for any activation with enough moments, whatever the distribution of the individual terms.

Question 2

In the NTK limit with squared loss, the training residual decomposes along the eigenvectors of Θ(X,X)\Theta(X,X). Which components are fitted first?

  1. Those along eigenvectors with the smallest eigenvalues
  2. All components at the same rate
  3. Those along eigenvectors with the largest eigenvalues, decaying like e−ηλkte^{-\eta\lambda_kt}
  4. It depends on the random initialization only
Show the answer

C. Those along eigenvectors with the largest eigenvalues, decaying like e−ηλkte^{-\eta\lambda_kt}

rt=e−ηΘtr0\mathbf r_t=e^{-\eta\Theta t}\mathbf r_0, so the component along uk\mathbf u_k shrinks at rate ηλk\eta\lambda_k. Large-eigenvalue directions, usually smooth functions of the input, are learned first; small ones, often noise-like, last, which is why stopping early regularizes.

Question 3

Two wide two-layer networks differ only in the output scaling: 1/N1/\sqrt N versus 1/N1/N (with time rescaled appropriately). Which statement is right?

  1. Both learn features; the scaling only changes the speed
  2. With 1/N1/N (mean field) each neuron's weights move by O(1)\order1 and features are learned; with 1/N1/\sqrt N (NTK) they move by O(1/N)\order{1/\sqrt N} and the kernel stays fixed
  3. With 1/N1/\sqrt N the network learns features; with 1/N1/N it is a fixed kernel
  4. Neither network can fit its training data in the limit
Show the answer

B. With 1/N1/N (mean field) each neuron's weights move by O(1)\order1 and features are learned; with 1/N1/\sqrt N (NTK) they move by O(1/N)\order{1/\sqrt N} and the kernel stays fixed

The 1/N1/\sqrt N scaling acts like a large output multiplier α\alpha, which makes training lazy. With 1/N1/N the network is an average over neurons, so fitting the data requires the neurons themselves to move, and the limit is a nonlinear gradient flow over the distribution of neurons.

Question 4

According to the dichotomy theorem of Yang & Hu (2021), what happens to the standard parameterization, with a learning rate kept stable, as width goes to infinity?

  1. It learns features maximally, like μP
  2. It becomes a Gaussian process with no training dynamics at all
  3. It diverges for every learning rate
  4. Its infinite-width training dynamics are kernel gradient descent, so it does not learn features in the limit
Show the answer

D. Its infinite-width training dynamics are kernel gradient descent, so it does not learn features in the limit

Every stable, nontrivial abc-parameterization is either feature-learning or kernel-limited, not both. Standard and NTK parameterizations fall on the kernel side; μP is designed so that every layer's features move by a width-independent amount.

Further reading

  • R. M. Neal, Bayesian Learning for Neural Networks, Lecture Notes in Statistics 118 (Springer, 1996), chapter 2.
  • A. Jacot, F. Gabriel & C. Hongler, "Neural tangent kernel: convergence and generalization in neural networks," Advances in Neural Information Processing Systems 31 (2018).
  • L. Chizat, E. Oyallon & F. Bach, "On lazy training in differentiable programming," Advances in Neural Information Processing Systems 32 (2019).
  • S. Mei, A. Montanari & P.-M. Nguyen, "A mean field view of the landscape of two-layer neural networks," Proceedings of the National Academy of Sciences 115(33) (2018).
  • G. Yang & E. J. Hu, "Tensor programs IV: Feature learning in infinite-width neural networks," Proceedings of the 38th International Conference on Machine Learning (2021).