Spectra of the Conjugate Kernel and Neural Tangent Kernel for linear-width neural networks
Zhou Fan, Zhichao Wang
Introduction
Recent progress in our theoretical understanding of neural networks has connected their training and generalization to two associated kernel matrices. The first is the Conjugate Kernel (CK) or the equivalent Gaussian process kernel . This is the gram matrix of the derived features produced by the final hidden layer of the network. The network predictions are linear in these derived features, and the CK governs training and generalization in this linear model.
The second is the Neural Tangent Kernel (NTK) . This is the gram matrix of the Jacobian of in-sample predictions with respect to the network weights, and was introduced to study full network training. Under gradient-flow training dynamics, the in-sample predictions follow a differential equation governed by the NTK. We provide a brief review of these matrices in Section 2.1.
The spectral decompositions of these kernel matrices are related to training and generalization properties of the underlying network. Training occurs most rapidly along the eigenvectors of the largest eigenvalues , and the eigenvalue distribution may determine the trainability of the model and the extent of implicit bias towards simpler functions . It is thus of interest to understand the spectral properties of these matrices, both at random initialization and over the course of training.
In this work, we apply techniques of random matrix theory to derive an exact asymptotic characterization of the eigenvalue distributions of the CK and NTK at random initialization, in a multi-layer feedforward network architecture. We study a “linear-width” asymptotic regime, where each hidden layer has width proportional to the training sample size. We impose an assumption of approximate pairwise orthogonality for the training samples, which encompasses general settings of independent samples that need not have independent entries.
We show that the eigenvalue distributions for both the CK and the NTK converge to deterministic limits, depending on the limiting eigenvalue distribution of the training data. The limit distribution for the CK at each intermediate hidden layer is a Marcenko-Pastur map of a linear transformation of that of the previous layer. The NTK can be approximated by a linear combination of CK matrices, and its limiting eigenvalue distribution can be described by a recursively defined sequence of fixed-point equations that extend this Marcenko-Pastur map. We demonstrate the agreement of these asymptotic limits with the observed spectra on both synthetic and CIFAR-10 training data of moderate size.
In this linear-width asymptotic regime, feature learning occurs, and both the CK and NTK evolve over training. Although our theory pertains only to their spectra at random initialization of the weights, we conclude with an empirical examination of their spectral evolutions during training, on simple examples of learning a single neuron and learning a binary classifier for two classes in CIFAR-10. In these examples, the bulk eigenvalue distributions of the CK and NTK undergo elongations, and isolated principal components emerge that are highly predictive of the training labels. Recent theoretical work has studied the evolution of the NTK in an entrywise sense , and we believe it is an interesting open question to translate this understanding to a more spectral perspective.
2 Related literature
Many properties of the CK and NTK have been established in the limit of infinite width and fixed sample size . In this limit, both the CK and the NTK at random initialization converge to fixed kernel matrices. The associated random features regression models converge to kernel linear regression in the RKHS of these limit kernels. Furthermore, network training occurs in a “lazy” regime , where the NTK remains constant throughout training . Spectral properties of the CK, NTK, and Hessian of the training loss have been previously studied in this infinite-width limit in . Limitations of lazy training and these equivalent kernel regression models have been studied theoretically and empirically in , suggesting that trained neural networks of practical width are not fully described by this type of infinite-width kernel equivalence. The asymptotic behavior is different in the linear-width regime of this work: For example, for a linear activation , the infinite-width limit of the CK for random weights is the input Gram matrix , whereas its limit spectrum under linear-width asymptotics has an additional noise component from iterating the Marcenko-Pastur map.
The limit NTK spectrum for a one-hidden-layer network with i.i.d. Gaussian inputs was recently characterized in parallel work of . In particular, applied the same idea as in Lemma 3.5 below to study the Hadamard product arising in the NTK. previously studied the equivalent spectrum of a sample covariance matrix derived from the network Jacobian, which is one of two components of the Hessian of the training loss, in a slightly different setting and also for one hidden layer.
The spectra of the kernel matrices that we study are equivalent (up to the addition/removal of 0’s) to the spectra of the sample covariance matrices in linear regression using the features . As developed in a line of recent literature including , this spectrum and the associated Stieltjes transform and resolvent are closely related to the training and generalization errors in this linear regression model. These works have collectively provided an asymptotic understanding of training and generalization error for random features regression models derived from the CK and NTK of one-hidden-layer neural networks, and related qualitative phenomena of double and multiple descent in the generalization error curves.
Background
We denote the Jacobian matrix of the network predictions with respect to the weights as
The Neural Tangent Kernel (NTK) is the matrix
Under gradient-flow training of the network weights with training loss , the time evolutions of residual errors and in-sample predictions are given by
where and are the parameters and NTK at training time . Denoting the eigenvalues and eigenvectors of by , and the spectral components of the residual error by , these training dynamics are expressed spectrally as
Note that these relations hold instantaneously at each training time , regardless of whether evolves or remains approximately constant over training. Hence, controls the instantaneous rate of decay of the residual error in the direction of .
For very wide networks, , , and are all approximately constant over the entirety of training . This yields the closed-form solution , so that the in-sample predictions converge exponentially fast to the observed training labels , with a different exponential rate along each eigenvector of .
2 Eigenvalue distributions, Stieltjes transforms, and the Marcenko-Pastur map
We will call this limit the Marcenko-Pastur map of with aspect ratio . This distribution may be defined by its Stieltjes transform , which solves the Marcenko-Pastur fixed point equation
Main results
The number of layers is fixed, and , such that
The weights are i.i.d. and distributed as .
Part (c) quantifies our assumption of approximate pairwise orthogonality of the training samples. Although not completely general, it encompasses many settings of independent samples with input dimension , including:
Non-white Gaussian inputs , for any satisfying and .
Inputs drawn from certain multi-class Gaussian mixture models, in the high-dimensional asymptotic regimes that were studied in .
In particular, the limit spectral law in Assumption 3.2(d) can be very different from the Marcenko-Pastur spectrum that would correspond to having i.i.d. entries. This approximate orthogonality is implied by the following more technical convex concentration property, which is discussed further in . We prove this result in Appendix B.
2 Spectrum of the Conjugate Kernel
Recall the Marcenko-Pastur map (5). Let be the sequence of probability distributions on defined recursively by
Here, is the input limit spectrum in Assumption 3.2(d), is defined in (7), and denotes the translation and rescaling of that is the distribution of when .
Furthermore, a.s. for a constant and all large .
3 Spectrum of the Neural Tangent Kernel
In the neural network model (1), an application of the chain rule yields an explicit form
By this lemma, if , then and the limit spectrum of reduces to the limit spectrum of which is a translation of described in Theorem 3.4. Thus we assume in the following that . Our next result provides an analytic description of the limit spectrum of , by extending (9,10) to characterize the trace of rational functions of and .
Specializing the function for the last layer to the values and , we obtain an analytic description for the limit spectrum of via its Stieltjes transform.
In particular, is the probability distribution with Stieltjes transform
Furthermore, a.s. for a constant and all large .
4 Extension to multi-dimensional outputs and rescaled parametrizations
Theorem 3.7 pertains to a network with scalar outputs, under the “NTK-parametrization” of network weights in (1). As neural network models used in practice often have multi-dimensional outputs and may be parametrized differently for backpropagation, we state here the extension of the preceding result to a network with -dimensional output and a general scaling of the weights.
Fix any . Suppose Assumption 3.2 holds, and . Then a.s. for a constant and all large , and is the probability distribution with Stieltjes transform
Experiments
We describe in Appendix A an algorithm to numerically compute the limit spectral densities of Theorem 3.7. The computational cost is independent of the dimensions , and each limit density below was computed within a few seconds on our laptop computer. Using this procedure, we investigate the accuracy of the theoretical predictions of Theorems 3.4 and 3.7. Finally, we conclude by examining the spectra of and after network training.
2 CIFAR-10 training data
We consider samples randomly selected from the CIFAR-10 training set , with input dimension , and hidden layers of dimensions . Strong principal component structure may cause the training samples to have large pairwise inner-products, which is shown in Appendix J.1. Thus, we pre-process the training samples by removing the leading 10 PCs—a few example images before and after this removal are depicted in Appendix J.3. A close agreement between the observed and limit spectra is displayed in Figure 2, for both and . Results without removing these leading 10 PCs are presented in Appendix J.2, where there is close agreement for but a deviation from the theoretical prediction for . This suggests that the approximation in Lemma 3.5 is sensitive to large but low-rank perturbations of .
3 CK and NTK spectra after training
Figure 3 depicts the spectra of and for the trained weights . Intermediate layers are shown in Appendix J.4. We observe that the bulk spectra of and are elongated from their random initializations. Furthermore, large outlier eigenvalues emerge in both and over training. The corresponding eigenvectors are highly predictive of the training labels , suggesting the emergence of these eigenvectors as the primary mechanism of training in this example.
We describe in Appendix J.5 a second training example for a binary classification task on CIFAR-10, where similar qualitative phenomena are observed for the trained . This may suggest a path to understanding the learning process of deep neural networks, for future study.
Conclusion
We have provided analytic descriptions of the empirical eigenvalue distributions of the Conjugate Kernel (CK) and Neural Tangent Kernel (NTK) of large feedforward neural networks at random initialization, under a general condition for the input samples. Our work uses techniques of random matrix theory to provide an asymptotic analysis in a limiting regime where network width grows linearly with sample size. The resulting limit spectra exhibit “high-dimensional noise” that is not present in analyses of the infinite-width limit alone. This type of high-dimensional limit has been previously studied for networks with a single hidden layer, and our work develops new proof techniques to extend these characterizations to multi-layer networks, in a systematic and recursive form.
Our results contribute to the theoretical understanding of neural networks in two ways: First, an increasingly large body of literature studies the training and generalization errors of linear regression models using random features derived from the neural network CK and NTK. In the linear-width setting of our current paper, such results are typically based on asymptotic approximations for the Stieltjes transforms and resolvents of the associated kernel and covariance matrices. Our work develops theoretical tools that may enable the extension of these studies to random features regression models that are derived from deep networks with possibly many layers.
Second, the linear-width asymptotic regime may provide a simple setting for studying feature learning and neural network training outside of the “lazy” regime, and which is arguably closer to the operating regimes of neural network models in some practical applications. Our experimental results suggest interesting phenomena in the spectral evolutions of the CK and NTK that may potentially arise during training in this regime, and our theoretical characterizations of their spectra for random weights may provide a first step towards the analysis of these phenomena.
Broader Impact
This work performs theoretical analysis that aims to extend our understanding of training and generalization in multi-layer neural networks. A better theoretical understanding of training and generalization in these models may ultimately help us to (1) understand the mechanisms by which social biases may be propagated by artificial systems, and prevent this from occurring, and (2) increase the robustness and fault-tolerance of artificial systems built on such models.
Acknowledgments and Disclosure of Funding
This research is supported in part by NSF Grant DMS-1916198. We would like to thank John Lafferty and Ganlin Song for helpful discussions regarding the Neural Tangent Kernel.
References
Appendix A Numerical solution of the fixed-point equations
Set , and compute , , etc.
Appendix B Proof of (ε,B)𝜀𝐵(\varepsilon,B)-orthonormality for independent input training samples
for a constant depending only on . Applying this for and a union bound, with probability ,
Rescaling, this shows .
On the event (21), applying this for , this probability is at most . Taking a union bound, with probability ,
Rescaling, this shows .
we have on this event. Rescaling, this shows .
which has mean 0. Note that integrating the tail bound (20) yields the sub-exponential condition
For any , applying this with yields the sub-exponential tail bound
Now applying this for , and again taking a union bound over a -net of the unit ball, we have with probability that
Applying all of the above bounds for sufficiently large constants , we obtain that these bounds hold with probability at least , which yields Proposition 3.3.
Appendix C Overview of proofs and preliminary lemmas
The proofs of Theorems 3.4, 3.7, and 3.8 are contained in the subsequent Appendices D–H. We provide here an outline of the argument.
conditional on the previous layers. For the Neural Tangent Kernel, given the approximation in Lemma 3.5, this will entail analyzing the Stieltjes transform
conditional on the previous layers, where is a linear combination of , and . Note that this matrix is deterministic conditional on the previous layers.
In Appendix D, we carry out a non-asymptotic analysis of -orthonormality. In particular, we show that if the deterministic input is -orthonormal, then is -orthonormal with high probability, for a constant depending only on . Note that we require the fourth technical condition
In Appendix E, we carry out the analysis of the trace
In Appendix G, we prove Theorem 3.7 on the NTK. Our analysis reduces the trace of any linear combination of and to the trace of a more general rational function of and in the previous layer. In order to close the inductive loop, we analyze the trace of such a rational function across layers, and show that it may be characterized by the recursive fixed-point equations (12) and (13). In Appendix G, we also establish the approximation in Lemma 3.5 and the existence and uniqueness of the fixed point to (12).
Finally, in Appendix H, we prove Theorem 3.8, which is a minor extension of Theorem 3.7.
Let us collect here a few basic results, which we will use in the subsequent sections.
Under Assumption 3.2(b), the constants and in (7) satisfy
For a universal constant , the activation function satisfies
It is clear from definition that . By the Gaussian Poincaré inequality,
By Gaussian integration-by-parts and Cauchy-Schwarz,
(the last inequality applying ). Then . ∎
Appendix D Propagation of approximate pairwise orthogonality
Note that has i.i.d. rows with distribution , where . Define the second-moment matrix of by
where the expectations are over the standard Gaussian matrix and standard Gaussian vector . Let denote the entry of for any . We show in this section the following result.
Suppose is -orthonormal where . Then for universal constants , with probability at least , the matrix remains -orthonormal with
In the remainder of this section, we prove Lemma D.1. We divide the proof into Lemmas D.3, D.4, and D.5 below, which check the individual requirements for -orthonormality of . We denote by universal constants that may change from instance to instance.
If is -orthonormal where , then for universal constants :
With probability at least , simultaneously for all , the columns of satisfy
Note that (26) establishes an approximation which is second-order in —this will be important in our later arguments which approximate in Frobenius norm.
For part (a), observe that is bivariate Gaussian, with mean 0 and covariance
where is entrywise bounded by . Then performing a Gram-Schmidt orthogonalization procedure, for some independent standard Gaussian variables , we have
By a Taylor expansion of around , there exists a random variable between and such that
where this remainder has magnitude at most . For the first term, substituting (29) and applying independence of and , we have
For part (b), let be the row of . Then by definition of , for any (including ),
Applying Bernstein’s inequality (see [53, Theorem 2.8.1]), for a universal constant and any ,
Applying this for and taking a union bound over all , we get
If is -orthonormal where , then for universal constants :
.
With probability at least , \|\widecheck{X}\|\leq C\Big{(}1+\sqrt{n/\check{d}}\Big{)}\lambda_{\sigma}B.
where the first term on the right is . Then
the last inequality using the final condition of -orthonormality in Definition 3.1. This establishes part (a).
Note that the complementary event implies
for a constant . Then choosing and applying part (a) yields part (b). ∎
If is -orthonormal where , then for universal constants , with probability at least , the columns of satisfy
Let us remark that in settings where , applying Lemma D.3(b) to bound each term separately would not yield a constant-order bound for this sum. The proof below performs a more careful analysis of the combined fluctuations of .
The quantity to be bounded is . Note that . We have
Thus it remains to bound .
so . For each fixed vector , we have
We will bound the sub-exponential norm of each summand and apply Bernstein’s inequality.
For , denote
Observe that . Thus we wish to bound the sub-exponential norm of when . By the Gaussian Sobolev inequality (see [2, Eq. (3)]), for any ,
We have , so
Recalling (31), we have . Then
This implies the bound (see [53, Proposition 2.7.1]), for any ,
for a universal constant . Thus, applying this to (38), we obtain for any
Finally, this implies (see again [53, Proposition 2.7.1]) for a universal constant , which is our desired bound on the sub-exponential norm of .
Applying this and Bernstein’s inequality to (37), for any ,
for a large enough constant , and taking the union bound over all vectors , we get
for a constant . Combining with the bound on in (36), we obtain the lemma. ∎
Appendix E Resolvent analysis for a single layer
We collect here the set of assumptions that we will use in this section.
There are constants such that
is -orthonormal, where .
has i.i.d. entries, and satisfies Assumption 3.2(b).
Throughout this section, denote constants changing from instance to instance that may depend on and the above values .
Proposition C.2 ensures that is invertible. Define the resolvent
and the deterministic (-dependent) parameter
The goal of this section is to prove the following result, which approximates this resolvent by replacing the random matrix with a deterministic matrix , and provides an approximate fixed-point equation that defines this parameter .
For and , we will verify in Appendix F that this result reduces to the Marcenko-Pastur equation (6).
Under Assumption E.1, deterministically for some constants and all ,
Furthermore, with probability at least for a constant ,
We may write where and . Both and are symmetric, and because and . Then by Proposition C.2.
The bound comes from Lemma D.4(a) and the -orthonormality assumption for . Then from the definition of in (40) and the bounds , we have also . For the lower bound for and , let us write
The first trace is real because is Hermitian, so
Denoting and applying the identity , we have
Then, writing as above and applying , we get
Since , where this matrix is positive semi-definite, this trace is real and non-negative. Similarly, is real and non-negative. Then the above yields the lower bound
where is the smallest eigenvalue of . By (28) and the condition , we have for a constant and large enough . Observe that , and . By Lemma D.4(b), with probability , we have , so putting this together yields with this probability. Finally, for the deterministic bound , we may apply on the event where holds, and on the complementary event. Taking an expectation and applying the definition (40) yields . ∎
E.2 Resolvent approximation
We recall the result of [39, Lemma 1], which establishes concentration of quadratic forms in the rows of . The following is its specialization to standard Gaussian matrices , and stated in our notation.
where .
Using this result, we establish the following approximation for the resolvent in (39).
Under Assumption E.1, there exist constants such that for all and ,
By rescaling , we may assume that . We have . Writing (where is the row of ), multiplying by , and taking the normalized trace ,
Let us define the leave-one-out resolvent, for each ,
We may then decompose as where (recalling )
Bound for . Momentarily fix the index . Applying the Sherman-Morrison identity, we have
Then, introducing and ,
Applying Proposition E.3, we have for some constants , on an event of probability , that
Bound for . Applying the identity ,
Then, applying also the bounds from Proposition E.3,
E.3 Proof of Lemma E.2
We now prove Lemma E.2 using Lemma E.5. Define the random -dependent parameter
Under Assumption E.1, for some constants , all , and any ,
where is the Hadamard product, and is applied entrywise. Applying Proposition E.3,
Thus . This holds for every such that , so is -Lipschitz in with respect to the Frobenius norm. Then the result follows from Gaussian concentration of measure. ∎
To conclude the proof of Lemma E.2, we may again assume by rescaling . Set
for all . Furthermore, applying the definition of ,
Recall that . Then, on the event where and , we have . Then applying Lemma E.6, for some constants and all ,
Combining this with (44) yields Lemma E.2(a). Specializing Lemma E.2(a) to , we obtain
Applying again Lemma E.6 to bound , we obtain Lemma E.2(b).
Appendix F Analysis for the Conjugate Kernel
Theorem 3.4 is a special case of Theorem 3.7, but let us provide here a simpler argument. Define, for each layer, the matrices
and the result follows from the condition . ∎
Proposition C.3 and Lemma F.1 together show that
Thus, along the sub-subsequence where , we get
Now applying Lemma E.2(a) with , and taking the limit along this sub-subsequence, by a similar argument we obtain that
Appendix G Analysis for the Neural Tangent Kernel
where we define diagonal matrices indexed by and as
Applying the chain rule, we may verify for each input sample that
where is the Hadamard product. Thus, the NTK is given by
With probability at least ,
With probability at least ,
Furthermore, both (a) and (b) hold with in place of , upon replacing by .
Applying and Hoeffding’s inequality,
To bound the mean, recall that is bivariate Gaussian, which we may write as
By the Hanson-Wright inequality (see [50, Theorem 1.1]),
for a constant . Then, applying and a union bound over , with probability at least ,
Then part (b) follows from combining with part (a), and applying . ∎
By Corollary D.2, we may assume that each matrix is -orthonormal. Since a larger value of corresponds to a weaker assumption, we may assume without loss of generality that .
Recalling the definition (53) and applying the Hanson-Wright inequality conditional on ,
with probability . Combining these bounds, with probability ,
We also have for each with probability , see e.g. [53, Theorem 4.4.5]. Then, applying , we have for every . Then the first bound of (55) follows. The second bound of (55) is the same, applying Lemma G.1 for instead of . The almost sure statement follows from the Borel-Cantelli Lemma. ∎
Under Assumption 3.2, almost surely as ,
Furthermore, for a constant , almost surely for all large , .
By Corollary D.2, we may assume that each matrix is -orthonormal. Then
Increasing if necessary, we may assume . Combining with (55), we have for the off-diagonal entries of the Hadamard product that
The first statement of the lemma then follows from the assumption .
For the second statement on the operator norm, we have
Combining Lemma G.3 and Proposition C.3, this proves Lemma 3.5.
G.2 Unique solution of the fixed-point equation
Since is Hermitian and positive semi-definite, the quantities , , and are all real, and the latter two are nonnegative. Then
Each term on the right side of (58) is nonnegative, and dropping the first two of these terms yields (a).
For part (b), applying the identity , we have
Applying Cauchy-Schwarz to the inner-product ,
Dropping in (58) and applying this to upper-bound , part (b) follows. ∎
Denoting and applying the von Neumann trace inequality,
where denote the sorted eigenvalues. Since has a non-degenerate limit spectrum, there is a constant for which for all large . (Throughout the proof, , , etc. should be understood as their roundings to the nearest integer.) Then
Denoting by the largest singular value, observe that
Applying , we have
Since the spectra of and converge to deterministic limits, this implies that there is a constant (also depending on and ) such that for every and all large . Thus
for all large , and this shows the claim (59).
Then, taking the limit in Lemma G.4(b), we get
G.3 Proof of Proposition 3.6 and Theorem 3.7
provided that this limit exists and defines the Stieltjes transform of a probability measure. For
defined recursively by (12) and (13). Proposition 3.6 and Theorem 3.7 are immediate consequences of the following extended result.
By Corollary D.2, we may assume that each matrix is -orthonormal.
by the same argument as (49). Then, we have
where the convergence to 0 follows from Lemma G.3. Finally, we have
Applying these approximations to (62), we have almost surely along this sub-subsequence that
the same arguments as above establish that
where is as defined in (15). Then
Appendix H Multi-dimensional outputs and rescaled parametrizations
In this section, we provide some motivation for the form of the NTK in (17) for networks with a -dimensional output, and we prove Theorem 3.8 regarding its spectrum.
Then the time evolution of in-sample predictions is given by
where is the matrix defined in (17). For , this matrix is simply
H.2 Proof of Theorem 3.8
The matrix in (17) admits a block decomposition
a computation using the chain rule similar to (54) verifies that
Under the assumptions of Theorem 3.8, for any indices , almost surely as ,
Furthermore, for a constant , almost surely for all large , .
By Corollary D.2, we may assume that each is -orthonormal.
for both and with probability , where is the same matrix as defined in (56). Applying the bound as in the proof of Corollary G.2, this yields
and the first statement follows from the assumption . The second statement on the operator norm follows from the bound
Applying this lemma together with Proposition C.3, we obtain
where the off-diagonal blocks may be replaced by 0. Then the limit spectral distribution of is an equally weighted mixture of those of . For each diagonal block , the argument of Lemma G.3 shows that
Then by Theorem 3.7, each diagonal block has the same limit spectral distribution, whose Stieltjes transform is given by the function in Theorem 3.8. Furthermore, since by Lemma G.3 and for by Lemma H.1, this shows . This establishes Theorem 3.8.
Again, when , the limit spectrum of each reduces to , which can be computed via the Stieltjes transform of .
Appendix I Reduction to result of Pennington and Worah [46] for one hidden layer
Consider the one-hidden-layer conjugate kernel
and observe that the eigenvalues of are those of multiplied by and padded by additional zeros (or with zeros removed, if ). [46, Theorem 1] characterizes the limit spectral distribution of in terms of a quartic equation in its Stieltjes transform, under the additional assumptions that has i.i.d. entries and .In , the scaling is in rather than , but these are clearly the same. We consider and in the results of . By Theorem 3.4, this should be equivalent to the description
for the limit spectrum of , if we specialize to being the Marcenko-Pastur limit of the input gram matrix . We derive this equivalence in this section.
Taking the limit on both sides, we obtain the relation between and , which is
[46, Theorem 1] characterizes as the root of a quartic equation. Defining three -dependent quantities by
To verify that (66) is equivalent to this equation (70), note that (66) means the Stieltjes transform is defined by the Marcenko-Pastur equation (6) as
Applying the identity from rearranging (67), and applying also in (68),
When has i.i.d. entries, the limit spectral distribution of is the Marcenko-Pastur law . The Stieltjes transform of this law is characterized by the quadratic equation
(which is the specialization of (6) when is the point distribution at 1). Defining
we obtain then that satisfies the quadratic equation
Applying this with and , the quantity (72) is exactly . Thus this equation holds for and these settings of , i.e.
From the relation (67), we see that this is a quartic equation in . Note that the definitions of and in (69) may be equivalently written as
where we have used , from (68), and the relation (67). Applying now and , the equation (73) becomes
and dividing both sides by yields
Identifying the left side as by (69), we obtain (70) as desired.
Appendix J Additional simulation results
All pairwise inner-products , for (a) 5000 CIFAR-10 training samples, (b) 5000 CIFAR-10 training samples with the first 10 PCs removed, and (c) i.i.d. Gaussian training data of the same dimensions. Results for (b) were reported in Section 4.2, and results for (a) are reported below in Appendix J.2. CIFAR-10 training samples were mean-centered and normalized to satisfy and in (a) and (b).
The pairwise inner-products in (a) span a typical range of . Those in (b) span a range of about , and those in (c) about . Thus, with 10 PCs removed, these inner-products for CIFAR-10 are larger than for i.i.d. Gaussian inputs by a factor of 10. We found in Section 4.2 that the inner-products of (b) are sufficiently small for the observed spectra to match the theoretical limits of Theorems 3.4 and 3.7.
J.2 CK and NTK spectra for CIFAR-10 without removal of leading PCs
Same plots as Figure 2 for CIFAR-10 training samples, without the removal of the 10 leading PCs. We observe a close agreement of the observed CK spectrum with the limit spectrum of Theorem 3.4. However, there is a greater discrepancy of the NTK spectrum with the limit spectrum of Theorem 3.7 in this setting.
J.3 Example images of CIFAR-10 with/without leading PCs
Example CIFAR-10 training samples for each class. For each training sample, we compare the original image (above) and the corresponding normalized image upon removing the top 10 PCs (below). Most of the image details are preserved upon removing these 10 PCs.
J.4 Observed and limit CK spectra for all layers
The same as above, corresponding to the CIFAR-10 training samples in Appendix J.2. (Results with 10 PCs removed look the same.) A close agreement with the limit spectrum described by Theorem 3.4 is observed at each layer.
Spectra of the CK matrices at all three layers, corresponding to the trained 3-layer network of Section 4.3. The limit spectra at random initialization of weights are depicted in red, and the two largest eigenvalues of each matrix are depicted by blue arrows.
J.5 CK spectrum after training on a CIFAR-10 example
We train a binary classifier on training samples from CIFAR-10, corresponding to classes 0 (airplane) and 1 (automobile). The classifier is a fully-connected network with hidden layers of dimensions , with bias terms and a normalized sigmoid activation at each hidden layer and also at the output layer. This network is given by
We train the weights and biases using the Adam optimizer in Keras, with learning rate 0.01, batch size 128, and 60 training epochs. To ensure that the leading PCs of the untrained kernel matrix are not too predictive of the training labels, and to better separate the original PCs from those that emerge after training, we remove the leading 5 PCs of the input data before training. The resulting 0–1 classification accuracy on the CIFAR-10 test set is . (Training without removing these 5 PCs yields a slightly higher test accuracy of , using the same network architecture.)
Panel (a) above shows the eigenvalue distribution of at random initialization, with the largest eigenvalue being approximately 500. We observe a close agreement with the limit spectrum of Theorem 3.4. Panel (b) shows the eigenvalues of after training. We observe an elongation of the bulk spectral support and the emergence of large outlier eigenvalues, analogous to the synthetic example of Section 4.3.
The above figure depicts the information about the training labels that is contained in the top 2 PCs of , (a) before training and (b) after training. Denoting by the rank-2 approximation of , with columns (both before and after training), we re-fit a linear binary classifier of the training labels to these columns. The in-sample 0–1 training accuracy of this classifier is 51.4% pre-training and 96.8% post-training, and the figure shows the linear predictions against the training labels . We observe that the leading principal components of are not predictive of the training labels before training, but become highly predictive after training.