The asymptotic spectrum of the Hessian of DNN throughout training

Arthur Jacot, Franck Gabriel, Clément Hongler

Introduction

The advent of deep learning has sparked a lot of interest in the loss surface of deep neural networks (DNN), and in particular its Hessian. However to our knowledge, there is still no theoretical description of the spectrum of the Hessian. Nevertheless a number of phenomena have been observed numerically.

The loss surface of neural networks has been compared to the energy landscape of different physical models (Choromanska et al., 2015; Geiger et al., 2018; Mei et al., 2018). It appears that the loss surface of DNNs may change significantly depending on the width of the network (the number of neurons in the hidden layer), motivating the distinction between the under- and over-parametrized regimes (Baity-Jesi et al., 2018; Geiger et al., 2018; 2019).

The non-convexity of the loss function implies the existence of a very large number of saddle points, which could slow down training. In particular, in (Pascanu et al., 2014; Dauphin et al., 2014), a relation between the rank of saddle points (the number of negative eigenvalues of the Hessian) and their loss has been observed.

For overparametrized DNNs, a possibly more important phenomenon is the large number of flat directions (Baity-Jesi et al., 2018). The existence of these flat minima is conjectured to be related to the generalization of DNNs and may depend on the training procedure (Hochreiter & Schmidhuber, 1997; Chaudhari et al., 2016; Wu et al., 2017).

In (Jacot et al., 2018) it has been shown, using a functional approach, that in the infinite-width limit, DNNs behave like kernel methods with respect to the so-called Neural Tangent Kernel, which is determined by the architecture of the network. This leads to convergence guarantees for DNNs (Jacot et al., 2018; Du et al., 2019; Allen-Zhu et al., 2018; Huang & Yau, 2019) and strengthens the connections between neural networks and kernel methods (Neal, 1996; Cho & Saul, 2009; Lee et al., 2018).

Our approach also allows one to probe the so-called mean-field/active limit (studied in (Rotskoff & Vanden-Eijnden, 2018; Chizat & Bach, 2018a; Mei et al., 2018) for shallow networks), where the NTK varies during training.

This raises the question: can we use these new results to gain insight into the behavior of the Hessian of the loss of DNNs, at least in the small region explored by the parameters during training?

The first matrix II is positive semi-definite and its eigenvalues are given by the (weighted) kernel PCA of the dataset with respect to the NTK. The dominating eigenvalues are the principal components of the data followed by a high number of small eigenvalues. The “flat directions” are spanned by the small eigenvalues and the null-space (of dimension at least P−NP-N when there is a single output). Because the NTK is asymptotically constant (Jacot et al., 2018), these results apply at initialization, during training and at convergence.

Regarding the sum H=I+SH=I+S, we show that the matrices II and SS are asymptotically orthogonal to each other at initialization and during training. In particular, the moments of the matrices II and SS add up: tr(Hk)≈tr(Ik)+tr(Sk)tr(H^{k})\approx tr(I^{k})+tr(S^{k}).

These results give, for any depth and a fairly general non-linearity, a complete description of the spectrum of the Hessian in terms of the NTK at initialization and throughout training. Our theoretical results are consistent with a number of observations about the Hessian (Hochreiter & Schmidhuber, 1997; Pascanu et al., 2014; Dauphin et al., 2014; Chaudhari et al., 2016; Wu et al., 2017; Pennington & Bahri, 2017; Geiger et al., 2018), and sheds a new light on them.

2 Related works

The Hessian of the loss has been studied through the decomposition I+SI+S in a number of previous works (Sagun et al., 2017; Pennington & Bahri, 2017; Geiger et al., 2018).

For least-squares and cross-entropy costs, the first matrix II is equal to the Fisher matrix (Wagenaar, 1998; Pascanu & Bengio, 2013), whose moments have been described for shallow networks in (Pennington & Worah, 2018). For deep networks, the first two moments and the operator norm of the Fisher matrix for a least squares loss were computed at initialization in (Karakida et al., 2018) conditionally on a certain independence assumption; our method does not require such assumptions. Note that their approach implicitly uses the NTK.

The second matrix SS has been studied in (Pennington & Bahri, 2017; Geiger et al., 2018) for shallow networks, conditionally on a number of assumptions. Note that in the setting of (Pennington & Bahri, 2017), the matrices II and SS are assumed to be freely independent, which allows them to study the spectrum of the Hessian; in our setting, we show that the two matrices II and SS are asymptotically orthogonal to each other.

Setup

The parameter β\beta is added to tune the influence of the bias on trainingIn our experiments, we take β=0.1\beta=0.1.. All parameters are initialized as iid N(0,1)\mathcal{N}(0,1) Gaussians.

We will in particular study the network function, which maps inputs xx to the activation of the output layer (before the last non-linearity):

In this paper, we will study the limit of various objects as n1,…,nL→∞n_{1},\ldots,n_{L}\to\infty sequentially, i.e. we first take n1→∞,n_{1}\to\infty, then n2→∞n_{2}\to\infty, etc. This greatly simplifies the proofs, but they could in principle be extended to the simultaneous limit, i.e. when n1=...=nL−1→∞n_{1}=...=n_{L-1}\to\infty. All our numerical experiments are done with ‘rectangular’ networks (with n1=...=nL−1n_{1}=...=n_{L-1}) and match closely the predictions for the sequential limit.

In the limit we study in this paper, the NTK is asymptotically fixed, as in (Jacot et al., 2018; Allen-Zhu et al., 2018; Du et al., 2019; Arora et al., 2019; Huang & Yau, 2019). By rescaling the outputs of DNNs as the width increases, one can reach another limit where the NTK is not fixed (Chizat & Bach, 2018a; b; Rotskoff & Vanden-Eijnden, 2018; Mei et al., 2019). Some of our results can be extended to this setting, but only at initialization (see Section 3.3). The behavior during training becomes however much more complex.

The network is trained with respect to the cost functional:

For our analysis, we require that the gradient norm ∥DC∥\left\|\mathcal{D}C\right\| does not explode during training. The following condition is sufficient:

2 Neural Tangent Kernel

The behavior during training of the network function fθf_{\theta} in the function space F\mathcal{F} is described by a (multi-dimensional) kernel, the Neural Tangent Kernel (NTK)

During training, the function fθf_{\theta} follows the so-called kernel gradient descent with respect to the NTK, which is defined as

In the infinite-width limit (letting n1→∞,…,nL−1→∞n_{1}\to\infty,\ldots,n_{L-1}\to\infty sequentially) and for losses with BGOSS, the NTK converges to a deterministic limit Θ(L)→Θ∞(L)⊗IdnL\Theta^{(L)}\to\Theta_{\infty}^{(L)}\otimes Id_{n_{L}}, which is constant during training, uniformly on finite time intervals [0,T]\left[0,T\right] (Jacot et al., 2018). For the MSE loss, the uniform convergence of the NTK was proven for T=∞T=\infty in (Arora et al., 2019).

The NTK leads to convergence guarantees for DNNs in the infinite-width limit, and connect their generalization to that of kernel methods (Jacot et al., 2018; Arora et al., 2019).

3 Gram Matrices

It is block diagonal because different outputs k≠mk\neq m are asymptotically uncorrelated.

Main Theorems

𝐼𝑆I+S Using the above setup, the Hessian HH of the loss C∘F(L)\mathcal{C}\circ F^{(L)} is the sum of two terms, with the entry Hp,p′H_{p,p^{\prime}} given by

For a finite dataset, the Hessian matrix H(C∘Y(L))\mathcal{H}\left(C\circ Y^{(L)}\right) is equal to the sum of two matrices

where DY(L)\mathcal{D}Y^{(L)} is a NnL×PNn_{L}\times P matrix, HC\mathcal{H}C is a NnL×NnLNn_{L}\times Nn_{L} matrix and HY(L)\mathcal{H}Y^{(L)} is a P×P×NnLP\times P\times Nn_{L} tensor to which we apply a scalar product (denoted by ⋅\cdot) in its last dimension with the NnLNn_{L} vector ∇C\nabla C to obtain a P×PP\times P matrix.

The moments of II and SS can be studied separately because the moments of their sum is asymptotically equal to the sum of their moments by Proposition 5 below. The limiting moments of II and SS are respectively described by Propositions 1 and 4 below. ∎

In the case of a MSE loss C(Y)=12N∥Y−Y∗∥2C(Y)=\frac{1}{2N}\left\|Y-Y^{*}\right\|^{2}, the first and second derivatives take simple forms ∇C(Y)=1N(Y−Y∗)\nabla C(Y)=\frac{1}{N}\left(Y-Y^{*}\right) and HC(Y)=1NIdNnL\mathcal{H}C(Y)=\frac{1}{N}Id_{Nn_{L}} and the differential equations can be solved to obtain more explicit formulae:

The moments of II are constant because HC=1NIdNnL\mathcal{H}C=\frac{1}{N}Id_{Nn_{L}} is constant. For the moments of SS, we first solve the differential equation for Y(t)Y(t):

The expectation of the first moment of SS then follows. ∎

2 Mutual Orthogonality of I𝐼I and S𝑆S

A first key ingredient to prove Theorem 1 is the asymptotic mutual orthogonality of the matrices II and SS

Note that both matrices II and SS have large nullspaces: indeed assuming a constant width w=n1=...=nL−1w=n_{1}=...=n_{L-1}, we have Rank(I)≤NnLRank(I)\leq Nn_{L} and Rank(S)≤2(L−1)wNnLRank(S)\leq 2(L-1)wNn_{L} (see Appendix C), while the number of parameters PP scales as w2w^{2} (when L>2L>2).

Figure 3 illustrates the mutual orthogonality of II and SS. All numerical experiments are done for rectangular networks (when the width of the hidden layers are equal) and agree well with our predictions obtained in the sequential limit.

3 Mean-field Limit

For a rectangular network with width ww, if the output of the network is divided by w\sqrt{w} and the learning rate is multiplied by ww (to keep similar dynamics at initialization), the training dynamics changes and the NTK varies during training when ww goes to infinity. The new parametrization of the output changes the scaling of the two matrices:

The scaling of the learning rate essentially multiplies the whole Hessian by ww. In this setting, the matrix II is left unchanged while the matrix SS is multiplied by w\sqrt{w} (the kk-th moment of SS is hence multiplied by w\nicefrack2w^{\nicefrac{{k}}{{2}}}). In particular, the two moments of the Hessian are dominated by the moments of SS, and the higher moments of SS (and the operator norm of SS) should not vanish. This suggests that the active regime may be characterised by the fact that ∥S∥F≫∥I∥F\|S\|_{F}\gg\|I\|_{F}. Under the conjecture that Theorem 1 holds for the infinite-width limit of rectangular networks, the asymptotic of the two first moments of HH is given by:

where for the MSE loss we have ∇C=−Y∗\nabla C=-Y^{*}.

4 The matrix S𝑆S

The matrix S=∇C⋅HY(L)S=\nabla C\cdot\mathcal{H}Y^{(L)} is best understood as a perturbation to II, which vanishes as the network converges because ∇C→0\nabla C\to 0. To calculate its moments, we note that

The following proposition desribes the limit of the function gθg_{\theta} and the kernel Υ(L)\Upsilon^{(L)} and the vanishing of the higher moments:

- At initialization, gθg_{\theta} and fθf_{\theta} converge to a (centered) Gaussian pair with covariances

and during training gθg_{\theta} evolves according to

- Uniformly over any interval [0,T][0,T], the kernel Υ(L)\Upsilon^{(L)} has a deterministic and fixed limit lim⁡nL−1→∞⋯lim⁡n1→∞Υkk′(L)(x,x′)=δkk′Υ∞(L)(x,x′)\lim_{n_{L-1}\to\infty}\cdots\lim_{n_{1}\to\infty}\Upsilon_{kk^{\prime}}^{(L)}(x,x^{\prime})=\delta_{kk^{\prime}}\Upsilon_{\infty}^{(L)}(x,x^{\prime}) with limiting kernel:

This result has a number of consequences for infinitely wide networks:

When it comes to the first moment of SS, Proposition 4 shows that the spectrum of SS is in general not symmetric. For the MSE loss the expectation of the first moment at initialization is

These observations suggest that SS has little influence on the shape of the surface, especially towards the end of training, the matrix II however has an interesting structure.

5 The matrix I𝐼I

At a global minimizer θ∗\theta^{*}, the spectrum of II describes how the loss behaves around θ∗\theta^{*}. Along the eigenvectors of the biggest eigenvalues of II, the loss increases rapidely, while small eigenvalues correspond to flat directions. Numerically, it has been observed that the matrix II features a few dominating eigenvalues and a bulk of small eigenvalues (Sagun et al., 2016; 2017; Gur-Ari et al., 2018; Papyan, 2019). This leads to a narrow valley structure of the loss around a minimum: the biggest eigenvalues are the ‘cliffs’ of the valley, i.e. the directions along which the loss grows fastest, while the small eigenvalues form the ‘flat directions’or the bottom of the valley.

Note that the rank of II is bounded by NnLNn_{L} and in the overparametrized regime, when NnL<PNn_{L}<P, the matrix II will have a large nullspace, these are directions along which the value of the function on the training set does not change. Note that in the overparametrized regime, global minima are not isolated: they lie in a manifold of dimension at least P−NnLP-Nn_{L} and the nullspace of II is tangent to this solution manifold.

The matrix II is closely related to the NTK Gram matrix:

As a result, the limiting spectrum of the matrix II can be directly obtained from the NTKThis result was already obtained in (Karakida et al., 2018), but without identifying the NTK explicitely and only at initialization.

The eigenvectors of the NTK Gram matrix are the kernel principal components of the data. The biggest principal components are the directions in function space which are most favorised by the NTK. This gives a functional interpretation of the narrow valley structure in DNNs: the cliffs of the valley are the biggest principal components, while the flat directions are the smallest components.

As the depth LL of the network increases, one can observe two regimes (Poole et al., 2016; Jacot et al., 2019): Order/Freeze where the NTK converges to a constant and Chaos where the NTK converges to a Kronecker delta. In the Order/Freeze the NnL×NnLNn_{L}\times Nn_{L} Gram matrix approaches a block diagonal matrix with nLn_{L} constant blocks, and as a result nLn_{L} eigenvalues of II dominate the other ones, corresponding to constant directions along each outputs (this is in line with the observations of (Papyan, 2019)). This leads to a narrow valley for the loss and slows down training. In contrast, in the Chaos regime, the NTK Gram matrix approaches a scaled identity matrix, and the spectrum of II should hence concentrate around a positive value, hence speeding up training. Figure 3 illustrates this phenomenon: with the smooth ReLU we observe a narrow valley, while with the normalized smooth ReLU (which lies in the Chaos according to (Jacot et al., 2019)) the narrowness of the loss is reduced. A similar phenomenon may explain why normalization helps smoothing the loss surface and speed up training (Santurkar et al., 2018; Ghorbani et al., 2019).

5.2 Cross-Entropy Loss

For a binary cross-entropy loss with labels Y∗∈{−1,+1}NY^{*}\in\{-1,+1\}^{N}

HC\mathcal{H}C is a diagonal matrix whose entries depend on YY (but not on Y∗Y^{*}):

The eigenvectors of II then correspond to the weighted kernel principal component of the data. The positive weights 11+e−Yi+eYi\frac{1}{1+e^{-Y_{i}}+e^{Y_{i}}} approach \nicefrac13\nicefrac{{1}}{{3}} as YiY_{i} goes to , i.e. when it is close to the decision boundary from one class to the other, and as Yi→±∞Y_{i}\to\pm\infty the weight go to zero. The weights evolve in time through YiY_{i}, the spectrum of II is therefore not asymptotically fixed as in the MSE case, but the functional interpretation of the spectrum in terms of the kernel principal components remains.

Conclusion

We have given an explicit formula for the limiting moments of the Hessian of DNNs throughout training. We have used the common decomposition of the Hessian in two terms II and SS and have shown that the two terms are asymptotically mutually orthogonal, such that they can be studied separately.

The matrix SS vanishes in Frobenius norm as the network converges and has vanishing operator norm throughout training. The matrix II is arguably the most important as it describes the narrow valley structure of the loss around a global minimum. The eigendecomposition of II is related to the (weighted) kernel principal components of the data w.r.t. the NTK.

Acknowledgements

Clément Hongler acknowledges support from the ERC SG CONSTAMIS grant, the NCCR SwissMAP grant, the NSF DMS-1106588 grant, the Minerva Foundation, the Blavatnik Family Foundation, and the Latsis foundation.

References

Appendix A Proofs

Under the condition that ∫0T∥D(t)∥2dt\int_{0}^{T}\left\|D(t)\right\|_{2}dt is stochastically bounded as the width of the network goes to infinity, the NTK Θ(L)\Theta^{(L)} converges to its fixed limit uniformly over [0,T][0,T].

When a network is trained with gradient descent on a loss CC with BGOSS, the integral ∫0T∥D(t)∥2dt\int_{0}^{T}\left\|D(t)\right\|_{2}dt is stochastically bounded. Because the loss is decreasing during training, the outputs Y(t)Y(t) lie in the sublevel set UC(Y(0))U_{C(Y(0))} for all times tt. The norm of the gradient is hence bounded for all times tt. Because the distribution of Y(0)Y(0) converges to a multivariate Gaussian, b(C(Y(0)))b(C(Y(0))) is stochastically bounded as the width grows, where b(a)b(a) is a bound on the norm of the gradient on UaU_{a}. We then have the bound ∫0T∥D(t)∥2dt≤Tb(C(Y(0)))\int_{0}^{T}\left\|D(t)\right\|_{2}dt\leq Tb(C(Y(0))) which is itself stochastically bounded.

For the binary and softmax cross-entropy losses the gradient is uniformly bounded:

The binary cross-entropy loss with labels Y∗∈{0,1}NY^{*}\in\left\{0,1\right\}^{N} is

which is bounded in absolute value by 1N\frac{1}{N} for both Yi∗=0,1Y_{i}^{*}=0,1 such that ∥∇C(Y)∥2≤1N\left\|\nabla C(Y)\right\|_{2}\leq\frac{1}{\sqrt{N}}.

The softmax cross-entropy loss over cc classes with labels Y∗∈{1,…,c}NY^{*}\in\left\{1,\ldots,c\right\}^{N} is defined by

The gradient is at an input ii and output class mm is

which is bounded in absolute value by 2N\frac{2}{N} such that ∥∇C(Y)∥2≤2cN\left\|\nabla C(Y)\right\|_{2}\leq\frac{\sqrt{2c}}{\sqrt{N}}. ∎

Appendix B Preliminaries

To study the moments of the matrix SS, we first have to show that two tensors vanish as n1,...,nL−1→∞n_{1},...,n_{L-1}\to\infty:

for parameters θp\theta_{p} which belong to the lower layers the derivatives can be defined recursively by

Using these recursive definitions, the tensors Ω(L+1)\Omega^{(L+1)} and Γ(L+1)\Gamma^{(L+1)} are given in terms of Θ(L)\Theta^{(L)},Ω(L)\Omega^{(L)} and Γ(L)\Gamma^{(L)}, in the same manner that the NTK Θ(L+1)\Theta^{(L+1)} is defined recursively in terms of Θ(L)\Theta^{(L)} in (Jacot et al., 2018).

The proof is done by induction. When L=1L=1 the second derivatives ∂θpθp′2fθ,k(x)=0\partial_{\theta_{p}\theta_{p^{\prime}}}^{2}f_{\theta,k}(x)=0 and Ωk0,k1,k2(L)(x0,x1,x2)=0\Omega_{k_{0},k_{1},k_{2}}^{(L)}(x_{0},x_{1},x_{2})=0.

The proof is done by induction. When L=1L=1 the hessian HF(1)=0\mathcal{H}F^{(1)}=0, such that Γk0,k1,k2,k3(L)(x0,x1,x2,x3)=0\Gamma_{k_{0},k_{1},k_{2},k_{3}}^{(L)}(x_{0},x_{1},x_{2},x_{3})=0.

Appendix C The Matrix S𝑆S

We now have the theoretical tools to describe the moments of the matrix SS. We first give a bound for the rank of SS:

We first observe that SS is given by a sum of NnLNn_{L} matrices:

It is therefore sufficiant to show that the rank of each matrices Hfθ,k(x)=(∂θpθp′2fθ,k(xi))p,p′\mathcal{H}f_{\theta,k}(x)=\left(\partial_{\theta_{p}\theta_{p^{\prime}}}^{2}f_{\theta,k}(x_{i})\right)_{p,p^{\prime}} is bounded by 2(n1+...+nL)2(n_{1}+...+n_{L}).

and the matrix Hfθ,k(x)\mathcal{H}f_{\theta,k}(x) is equal to the Jacobian of this map. By the chain rule, Hfθ,k(x)\mathcal{H}f_{\theta,k}(x) is the matrix multiplication of the Jacobians of the two submaps, whose rank are bounded by 2(n1+...+nL−1)2(n_{1}+...+n_{L-1}), hence bounding the rank of Hfθ,k(x)\mathcal{H}f_{\theta,k}(x). And because SS is a sum of NnLNn_{L} matrices of rank smaller than 2(n1+...+nL−1)2(n_{1}+...+n_{L-1}), the rank of SS is bounded by 2(n1+...+nL−1)NnL2(n_{1}+...+n_{L-1})Nn_{L}. ∎

- At initialization, gθg_{\theta} and fθf_{\theta} converge to a (centered) Gaussian pair with covariances

and during training gθg_{\theta} evolves according to

- Uniformly over any interval [0,T][0,T] where ∫0T∥∇C(t)∥2dt\int_{0}^{T}\left\|\nabla C(t)\right\|_{2}dt is stochastically bounded, the kernel Υ(L)\Upsilon^{(L)} has a deterministic and fixed limit lim⁡nL−1→∞⋯lim⁡n1→∞Υkk′(L)(x,x′)=δkk′Υ∞(L)(x,x′)\lim_{n_{L-1}\to\infty}\cdots\lim_{n_{1}\to\infty}\Upsilon_{kk^{\prime}}^{(L)}(x,x^{\prime})=\delta_{kk^{\prime}}\Upsilon_{\infty}^{(L)}(x,x^{\prime}) with limiting kernel:

where GG is the restriction to the training set of the function gθ(x)=∑p∂θpθp2fθ(x)g_{\theta}(x)=\sum_{p}\partial_{\theta_{p}\theta_{p}}^{2}f_{\theta}(x). This process is random at initialization and varies during training. Lemma 3 below shows that, in the infinite width limit, it is a Gaussian process at initialization which then evolves according to a simple differential equation, hence describing the evolution of the first moment during training.

which vanishes in the infinite width limit by Lemma 5 below. ∎

and during training gθg_{\theta} evolves according to

When L=1L=1, gθ(x)g_{\theta}(x) is for any xx and θ\theta.

For the inductive step, the trace gθ,k(L+1)(x)g_{\theta,k}^{(L+1)}(x) is defined recursively as

with Ξ∞(1)(x,x′)=Φ∞(1)(x,x′)=0\Xi_{\infty}^{(1)}(x,x^{\prime})=\Phi_{\infty}^{(1)}(x,x^{\prime})=0 and

where (g,g′,α,α′)(g,g^{\prime},\alpha,\alpha^{\prime}) is a Gaussian quadruple of covariance

During training, the parameters follow the gradient ∂tθ(t)=(∂θY(t))TD(t)\partial_{t}\theta(t)=\left(\partial_{\theta}Y(t)\right)^{T}D(t). By the induction hypothesis, the traces gθ,m(L)g_{\theta,m}^{(L)} then evolve according to the differential equation

As n1,...,nL−1→∞n_{1},...,n_{L-1}\to\infty, the kernels Θmm′(L)(x,x′)\Theta_{mm^{\prime}}^{(L)}(x,x^{\prime}) and Λmm′(L)(x,x′)\Lambda_{mm^{\prime}}^{(L)}(x,x^{\prime}) converge to their limit and Ωm′mm(L)(x′,x,x)\Omega_{m^{\prime}mm}^{(L)}(x^{\prime},x,x) vanishes:

By the law of large numbers, as nL→∞n_{L}\to\infty, at initialization Λkk′(L+1)(x,x′)→δkk′Λ∞(L+1)(x,x′)\Lambda_{kk^{\prime}}^{(L+1)}(x,x^{\prime})\to\delta_{kk^{\prime}}\Lambda_{\infty}^{(L+1)}(x,x^{\prime}) where

The next lemma describes the asymptotic limit of the kernel Υ(L)\Upsilon^{(L)}:

The proof is by induction on the depth LL. The case L=1L=1 is trivially true because ∂θpθp′2fθ,k(x)=0\partial_{\theta_{p}\theta_{p^{\prime}}}^{2}f_{\theta,k}(x)=0 for all p,p′,k,xp,p^{\prime},k,x. For the induction step we observe that

if we now let the width of the lower layers grow to infinity n1,...nL−1→∞n_{1},...n_{L-1}\to\infty, the tensor Ω(L)\Omega^{(L)} vanishes and Υm,m′(L)\Upsilon_{m,m^{\prime}}^{(L)} and the NTK Θm,m′(L)\Theta_{m,m^{\prime}}^{(L)} converge to limits which are non-zero only when m=m′m=m^{\prime}. As a result, the term above converges to

At initialization, we can apply the law of large numbers as nL→∞n_{L}\to\infty such that it converges to Υ∞(L+1)(x,x′)δkk′\Upsilon_{\infty}^{(L+1)}(x,x^{\prime})\delta_{kk^{\prime}}, for the kernel Υ∞(L+1)(x,x′)\Upsilon_{\infty}^{(L+1)}(x,x^{\prime}) defined recursively by

and Υ∞(1)(x,x′)=0\Upsilon_{\infty}^{(1)}(x,x^{\prime})=0.

Finally, the next lemma shows the vanishing of the tensor Ψk0,k1,k2,k3(L)\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(L)} to prove that the higher moments of SS vanish.

When L=1L=1 the Hessian is zero and Ψk0,k1,k2,k3(1)(xi0,xi1,xi2,xi3)=0\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(1)}(x_{i_{0}},x_{i_{1}},x_{i_{2}},x_{i_{3}})=0.

For the induction step, we write Ψk0,k1,k2,k3(L+1)(xi0,xi1,xi2,xi3)\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(L+1)}(x_{i_{0}},x_{i_{1}},x_{i_{2}},x_{i_{3}}) recursively, because it contains many terms, we change the notation, writing \left[\begin{array}[]{cc}x_{0}&x_{1}\\ m_{0}&m_{1}\end{array}\right] for Θm0,m1(L)(x0,x1)\Theta_{m_{0},m_{1}}^{(L)}(x_{0},x_{1}), \left[\begin{array}[]{ccc}x_{0}&x_{1}&x_{2}\\ m_{0}&m_{1}&m_{2}\end{array}\right] for Ωm0,m1,m2(L)(x0,x1,x2)\Omega_{m_{0},m_{1},m_{2}}^{(L)}(x_{0},x_{1},x_{2}) and \left[\begin{array}[]{cccc}x_{0}&x_{1}&x_{2}&x_{3}\\ m_{0}&m_{1}&m_{2}&m_{3}\end{array}\right] for Γm0,m1,m2,m3(L)(x0,x1,x2,x3)\Gamma_{m_{0},m_{1},m_{2},m_{3}}^{(L)}(x_{0},x_{1},x_{2},x_{3}). The value Ψk0,k1,k2,k3(L+1)(xi0,xi1,xi2,xi3)\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(L+1)}(x_{i_{0}},x_{i_{1}},x_{i_{2}},x_{i_{3}}) is then equal to

Even though this is a very large formula one can notice that most terms are “rotation of each other”. Moreover, as n1,...,nL−1→∞n_{1},...,n_{L-1}\to\infty, all terms containing either an Ψ(L)\Psi^{(L)}, an Ω(L)\Omega^{(L)} or a Γ(L)\Gamma^{(L)} vanish. For the remaining terms, we may replace the NTKs Θ(L)\Theta^{(L)} by their limit and as a result Ψk0,k1,k2,k3(L+1)(xi0,xi1,xi2,xi3)\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(L+1)}(x_{i_{0}},x_{i_{1}},x_{i_{2}},x_{i_{3}}) converges to

And all these sums vanish as nL→∞n_{L}\to\infty thanks to the prefactor nL−2n_{L}^{-2}, proving the vanishing of Ψk0,k1,k2,k3(L+1)(xi0,xi1,xi2,xi3)\Psi_{k_{0},k_{1},k_{2},k_{3}}^{(L+1)}(x_{i_{0}},x_{i_{1}},x_{i_{2}},x_{i_{3}}) in the infinite width limit.

Appendix D Orthogonality of I𝐼I and S𝑆S

From Lemma 2 and the vanishing of the tensor Γ(L)\Gamma^{(L)} as proven in Lemma 2, we can easily prove the orthogonality of II and SS of Proposition 5:

and Γ\Gamma vanishes as n1,...,nL−1→∞n_{1},...,n_{L-1}\to\infty by Lemma 2.

which vanishes in the infinite width limit because ∥I∥F\left\|I\right\|_{F} and ∥S∥F\left\|S\right\|_{F} are bounded and ∥AmAm+1∥F=∥IS∥F\left\|A_{m}A_{m+1}\right\|_{F}=\left\|IS\right\|_{F} vanishes. ∎