Spectra of the Conjugate Kernel and Neural Tangent Kernel for linear-width neural networks

Zhou Fan, Zhichao Wang

In the quest to understand why deep learning works, researchers often analyze two mathematical objects: the Conjugate Kernel (CK) and the Neural Tangent Kernel (NTK). These matrices essentially describe how a network views its data and how it evolves during training. Most existing theories examine the "infinite-width" limit, where the number of neurons in a layer goes to infinity while the number of data points stays fixed.

However, this NeurIPS 2020 paper by Zhou Fan and Zhichao Wang takes a different, more realistic path. They study the linear-width regime, where the network width and the number of training samples grow proportionally. In this setting, the kernels aren't just fixed constants; they exhibit "high-dimensional noise" that reveals much more about the network's internal geometry.

The Limits of Infinite Width

In the "lazy training" or infinite-width regime, the NTK is static. It doesn't change during training, and the network behaves like a simple linear model. While mathematically convenient, this doesn't capture "feature learning"—the process where a network actually adapts its internal representations to the data.

To understand feature learning, we need to look at regimes where the width ($d$) and sample size ($n$) are comparable ($d/n \to \gamma$). In this "linear-width" regime, the kernel matrices are no longer deterministic constants; they are random matrices with complex spectral structures. Before this paper, there was no clear analytical way to describe these spectra for deep, multi-layer networks.

Methodology: Random Matrix Theory

The authors provide the first exact asymptotic characterization of the eigenvalue distributions (spectra) for the CK and NTK in multi-layer networks where width is proportional to sample size. They leverage Random Matrix Theory (RMT), specifically the Stieltjes transform and the Marcenko-Pastur (MP) map.

  1. Iterative Mapping: They show that the CK spectrum at any given layer is a transformation of the spectrum from the previous layer. By knowing the distribution of the input data, one can "propagate" that distribution through the layers using a recursive MP map.
  2. NTK Approximation: They prove that the NTK's spectrum is asymptotically equivalent to a linear combination of the CK matrices from all previous layers.
  3. Fixed-Point Equations: To solve for the NTK spectrum, they derive a system of recursive fixed-point equations. This allows them to compute the "bulk" of the eigenvalue distribution regardless of how many layers the network has.
  4. Orthogonality Assumption: The theory relies on an assumption of "approximate pairwise orthogonality" for input samples. This technical condition means the data points aren't too heavily correlated, a property often found in high-dimensional datasets.

Key Insights

  • The "Bulk" Matters: Unlike the infinite-width limit where the spectrum might be seen as a single point or a simple shape, the linear-width regime produces a "bulk" distribution. This bulk represents the "noise" introduced by the finite number of neurons.
  • Depth Compounds Noise: As you go deeper into the network, the Marcenko-Pastur map is iterated. This causes the spectral bulk to spread and shift, showing how depth fundamentally changes the "trainability" of the layers.
  • NTK is Separated from Zero: A key finding is that the NTK spectrum at initialization is naturally separated from zero. This is crucial because eigenvalues near zero lead to agonizingly slow training; the separation suggests that these networks are inherently well-conditioned for gradient descent.

Empirical Validation

The authors validated their theoretical predictions using both synthetic data (i.i.d. Gaussian training samples) and CIFAR-10. To satisfy the orthogonality assumption for CIFAR-10, they pre-processed the data by removing the top 10 principal components.

CK spectrum at layer 5 showing the theoretical fit

Theoretical Match: The predicted spectral densities (the red lines in the figures) show a remarkably close fit to the empirical histograms of eigenvalues. This universal behavior holds for various activation functions (like ReLU or Tanh), provided they are properly normalized.

NTK spectrum showing the theoretical fit

Furthermore, the authors provide an algorithm to compute these limit densities that is independent of the actual network dimensions, making it a fast tool for analyzing architectural choices.

Limitations and Future Work

  • The "Training Gap": The core theorems only describe the network at random initialization. While the authors provide empirical evidence of how the spectra evolve during training (where "outlier" eigenvalues pop out of the bulk to align with labels), the analytical description of that evolution remains an open challenge.
  • Data Assumptions: The requirement for approximate orthogonality means the theory might struggle with highly redundant or low-rank data without pre-processing.
  • Beyond Feedforward: The current work is limited to fully-connected, feedforward architectures. Extending this to Convolutional Neural Networks (CNNs) or Transformers would be a significant next step.

This work moves us closer to a "physics of deep learning," where we can predict the behavior of a complex network not just by running it, but by understanding the fundamental statistical laws governing its internal matrices.

Summary updated

BibTeX
@inproceedings{fan2020spectra,
  author = {Zhou Fan and Zhichao Wang},
  title = {{Spectra of the Conjugate Kernel and Neural Tangent Kernel for linear-width neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=nkn8DpKHxXv},
}
Figure