Sharp Asymptotics of Kernel Ridge Regression Beyond the Linear Regime

Hong Hu, Yue M. LuarXiv 2022

Abstract: The generalization performance of kernel ridge regression (KRR) exhibits a multi-phased pattern that crucially depends on the scaling relationship between the sample size $n$ and the underlying dimension $d$. This phenomenon is due to the fact that KRR sequentially learns functions of increasing complexity as the sample size increases; when $d^{k-1}\ll n\ll d^{k}$, only polynomials with degree less than $k$ are learned. In this paper, we present sharp asymptotic characterization of the performance of KRR at the critical transition regions with $n \asymp d^k$, for $k\in\mathbb{Z}^{+}$. Our asymptotic characterization provides a precise picture of the whole learning process and clarifies the impact of various parameters (including the choice of the kernel function) on the generalization performance. In particular, we show that the learning curves of KRR can have a delicate "double descent" behavior due to specific bias-variance trade-offs at different polynomial scaling regimes.

The Polynomial Staircase of Generalization

Kernel Ridge Regression (KRR) is a cornerstone of machine learning theory, particularly relevant today due to its deep mathematical links to overparameterized neural networks. A striking feature of KRR in high dimensions is its "staircase" behavior: as the number of training samples $n$ increases relative to the dimension $d$, the test error does not decrease smoothly. Instead, it remains flat over long stretches and drops precipitously at specific thresholds where $n$ scales as a power of $d$.

The polynomial staircase of test error in Kernel Ridge Regression as a function of sample size scaling.

This phenomenon arises because KRR learns functions hierarchically. In the regime where $d^{k-1} \ll n \ll d^k$, the model effectively only resolves polynomials of degree less than $k$. Higher-degree components are treated as noise, contributing to a plateau in performance until $n$ reaches the next order of magnitude $d^k$. While previous research established these plateaus, the behavior at the "cliffs"—the transition regions—was poorly understood until now.

Theoretical Framework and Methodology

To provide a sharp characterization of these transitions, the authors analyze KRR in the high-dimensional limit where $n, d \to \infty$ with the ratio $n/d^k$ converging to a fixed constant $\delta_k$.

Gaussian Equivalence and Random Matrix Theory

The analysis hinges on the Gaussian Equivalence Conjecture (GEC). The authors rigorously prove that for calculating generalization error, complex non-linear kernel features can be substituted with Gaussian random vectors sharing the same first two moments. This allows the use of tools from random matrix theory, specifically the Marchenko-Pastur Law, to derive exact formulas for the error expressed through Stieltjes transforms.

Synthetic Statistical Model

The theoretical results are validated using a synthetic model where data points $x$ are sampled uniformly from a $d$-dimensional sphere, and labels are generated by a teacher model $y = g(x^\top \xi / \sqrt{d}) + z$. The study focuses on inner-product kernels, which are common in practice and theoretically tractable in high dimensions.

Zooming into the Transitions: Double Descent

The core contribution of this work is the "zoomed-in" analysis of the transition regions $n \asymp d^k$. The paper provides exact asymptotic limits for training and test error that match experimental simulations with remarkable precision.

Zoomed-in view of the transition regions showing the bias-variance decomposition and the double descent phenomenon.

As shown in the figure above, the transition regions reveal a delicate double descent behavior. This non-monotonicity is driven by a spike in variance when the number of samples $n$ is close to the number of features of a specific polynomial degree.

Key Insights:

  • Effective Regularization: High-degree components of the kernel that the model cannot yet resolve act as an implicit regularization term ($\tilde{\lambda}$). This "natural" regularization can sometimes dampen the variance peaks, explaining why double descent is more prominent at higher-order transitions (e.g., $k=3$) than at lower ones.
  • Variance Inflation: The authors identify a "variance inflation factor" $\theta$ that quantifies the error spike. The height and shape of these peaks are determined by the specific derivatives of the kernel function at zero, meaning kernel choice matters most during these critical transitions.

Conclusion and Future Directions

This work provides the first sharp asymptotic characterization of KRR across all polynomial scaling regimes. It clarifies how kernel choice and data dimensionality interact to produce complex learning curves.

However, several avenues for future work remain. The current analysis assumes isotropic data (uniform on a sphere), whereas real-world data often possesses lower-dimensional structure. Additionally, extending these sharp asymptotics to fully non-parametric teacher models and a broader class of kernels (like RBF) would further bridge the gap between theory and practice.

Summary updated

BibTeX
@misc{hu2022sharp,
  author = {Hong Hu and Yue M. Lu},
  title = {{Sharp Asymptotics of Kernel Ridge Regression Beyond the Linear Regime}},
  year = {2022},
  eprint = {2205.06798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.06798},
}
Figure