Universality of kernel random matrices and kernel regression in the quadratic regime

Parthe Pandit, Zhichao Wang, Yizhe ZhuarXiv 2024 · DOI

TL;DR

This paper extends the theoretical understanding of Kernel Ridge Regression (KRR) into the "quadratic regime," where the number of samples $n$ scales with the square of the data dimension $d$ ($n \asymp d^2$). The authors prove that in this regime, inner-product kernels transcend their usual linear behavior to act as quadratic models, providing precise mathematical formulas for their spectral properties and generalization errors.

What Problem Does This Paper Address?

In high-dimensional statistics, we often study the "proportional regime," where the number of training samples $n$ is roughly the same as the number of features $d$. In this setting, researchers have found a somewhat disappointing result: most non-linear kernels behave essentially like linear models. They are "degenerate," meaning they can't capture complex, high-order interactions in the data.

However, modern deep learning often operates in regimes where the sample size is much larger than the feature dimension. This paper asks: What happens to kernel methods when we have significantly more data? Specifically, if $n$ grows as $d^2$, does the kernel finally "unlock" its non-linear potential? The authors tackle the challenge of characterizing the behavior of kernel random matrices and the resulting regression performance under these "quadratic" scaling laws.

Methods

The authors employ a mix of high-powered tools from random matrix theory and mathematical analysis:

  • Quadratic Approximation ($K^{(2)}$): They prove that the complex kernel matrix $K$ can be approximated by a simpler quadratic structure $K^{(2)}$ under the spectral norm. Crucially, this isn't just a standard Taylor expansion; it includes specific "correction terms" that account for the high-dimensional interactions of the data.
  • Deformed Marchenko-Pastur Law: To understand the "shape" of the kernel's eigenvalues, the authors derive a limiting spectral distribution based on a deformed version of the classic Marchenko-Pastur law.
  • Moment Matching: Instead of assuming data is strictly Gaussian, they use a "Gaussian-moment-matching" assumption. This means their results apply to a broad class of distributions, provided their first few moments look like a Gaussian with a specific covariance structure $\Sigma$.
  • Resolvent Analysis: They use the "leave-one-out" method and resolvent analysis to derive precise asymptotic formulas for training and test errors.

Datasets

As a theoretical work, the paper does not use standard empirical benchmarks like CIFAR-10 or ImageNet. Instead, it relies on synthetic datasets to validate its theorems:

  • Isotropic and Anisotropic Gaussian Data: Data generated with both identity covariance ($\Sigma = I$) and complex diagonal covariance structures to simulate real-world feature correlations.
  • Teacher Models: They use "Teacher-Student" setups where labels are generated by either a random quadratic function or a deterministic quadratic function aligned with the data's covariance.

Key Insights and Ideas

  • The "Linearity" is a Regime, Not a Property: The paper shows that the perceived "linearity" of kernels in previous studies was a byproduct of having too few samples ($n \approx d$). Once you hit $n \approx d^2$, the kernel naturally begins to act as a quadratic estimator.
  • Correction Terms Matter: A simple Taylor expansion is insufficient to describe the kernel matrix's behavior in the operator norm. The authors identify specific constants ($a_0, a_1, a_2$) that must be added to the approximation to maintain accuracy as $d$ grows.
  • Double Descent in the Quadratic Regime: The authors demonstrate that the "double descent" phenomenon—where test error spikes and then drops as model complexity increases—persists in the quadratic regime. This suggests that double descent is a fundamental feature of high-dimensional learning, regardless of whether the model is linear or quadratic.
  • Universality: The results are "universal" in the sense that they depend on the covariance of the data but are relatively insensitive to the specific distribution of the features, provided the moments match.

Key Results

  • Spectral Approximation: The paper establishes a non-asymptotic bound $\|K - K^{(2)}\| \leq Cd^{-1/12}$, proving the two matrices become indistinguishable in high dimensions.
  • Precise Error Asymptotics: They provide exact formulas for the training error and generalization error. For example, they show that if the "teacher" (the true underlying function) is quadratic and perfectly aligned with the data's covariance, the bias term in the generalization error actually vanishes.
  • GCV Consistency: They prove that the Generalized Cross-Validation (GCV) estimator—a common tool for tuning hyperparameters—remains a consistent estimator for the generalization error even in this complex quadratic regime.

Limitations and Future Work

  • The Convergence Rate: The authors acknowledge that their error rate of $d^{-1/12}$ is likely not optimal. Numerical simulations suggest the actual convergence might be closer to $d^{-1}$ or $d^{-1/2}$.
  • Higher-Order Regimes: This paper stops at the quadratic regime ($d^2$). A natural next step is the "cubic regime" ($d^3$) and beyond, where kernels would presumably behave like degree-$k$ polynomials.
  • Smoothness Assumptions: The proofs currently require the kernel function $f$ to be quite smooth (up to the 5th or 9th derivative). Relaxing these requirements for less smooth kernels (like ReLU-based kernels) remains an open challenge.
  • Teacher Model Complexity: While they handle quadratic teachers, proving that linear components of a teacher model are negligible in the quadratic scaling limit is technically difficult and left for future research.

Summary updated

BibTeX
@misc{pandit2024universality,
  author = {Parthe Pandit and Zhichao Wang and Yizhe Zhu},
  title = {{Universality of kernel random matrices and kernel regression in the quadratic regime}},
  year = {2024},
  eprint = {2408.01062},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.01062},
}
Figure