A non-asymptotic theory of Kernel Ridge Regression: deterministic equivalents, test error, and GCV estimator

Theodor Misiakiewicz, Basil SaeedarXiv 2024 · DOI

Kernel Ridge Regression (KRR) is a cornerstone of modern machine learning, bridging classical statistics and deep learning theory. Despite its widespread use, predicting the exact test error of a KRR model has traditionally relied on either loose upper bounds or asymptotic theories that require data dimensions and sample sizes to approach infinity.

In their paper, "A non-asymptotic theory of Kernel Ridge Regression," Theodor Misiakiewicz and Basil Saeed provide a rigorous mathematical foundation for predicting KRR performance using "deterministic equivalents." These are closed-form expressions that accurately track test error even in finite, high-dimensional settings.

Addressing the Gap in Theory

Standard statistical bounds are often too conservative for practical use. Conversely, recent asymptotic theories provide sharp predictions but often rely on restrictive assumptions, such as Gaussian data distributions or infinite sample sizes.

Misiakiewicz and Saeed address this by developing a "dimension-free" theory. This approach remains valid even when the feature space is infinite-dimensional, which is common for many popular kernels. The goal is to create a theory that is both precise and applicable to finite, real-world data.

Methodology: Deterministic Equivalents

The authors' framework centers on deterministic equivalents—non-random values that random variables, such as model bias and variance, tend to cluster around. Key innovations include:

  1. Feature Splitting: The kernel's feature space is divided into "low-degree" features (dominant directions) and "high-degree" features (the spectral tail).
  2. Hypercontractivity: Instead of assuming independent Gaussian features, the authors use hypercontractivity. This ensures that the data distribution's "tails" are not too heavy, allowing the theory to apply to a broader range of kernels, including those used on spherical data.
  3. Dimension-Free Analysis: Using tools from random matrix theory, the authors establish multiplicative bounds, ensuring the approximation remains accurate even when test error is very small.

Key Insights

  • Spectral Influence: KRR performance is primarily determined by the eigenvalues of the kernel operator and the alignment of the target function with the corresponding eigenvectors.
  • Validation of GCV: The authors mathematically validate the Generalized Cross-Validation (GCV) estimator. They prove it is a "uniformly consistent" estimator of test error, even in the "benign overfitting" regime where models interpolate noisy data.
  • Beyond Gaussianity: The theory holds as long as the top eigenfunctions of the kernel satisfy mild concentration properties, moving beyond the need for Gaussian data.

Empirical Results

The theory was validated using synthetic and real-world benchmarks, including MNIST and spherical data.

Comparison of theoretical predictions and numerical simulations for test error across different kernels and sample sizes.

As shown in Figure 1, the theoretical predictions (solid lines) demonstrate excellent agreement with numerical simulations (dots) across a wide range of sample sizes ($n$). This holds for various kernels, including Neural Tangent Kernels (NTK) and Radial Basis Function (RBF) kernels.

Theoretical and simulated test error curves showing multiple descent peaks as training sample size increases.

Furthermore, the theory successfully captures complex "multiple descent" risk curves. As seen in Figure 2, the test error can exhibit multiple peaks as the training sample size increases, a phenomenon often observed in overparameterized models that simpler theories fail to predict.

Limitations and Future Outlook

While a significant advancement, some challenges remain:

  • Spectral Access: The deterministic formula requires knowledge of the kernel operator's eigendecomposition, which often must be estimated from data in practice.
  • Assumption Verification: Hypercontractivity, while more general than Gaussianity, can be difficult to verify for highly structured data like natural images.

Future research may focus on relaxing these assumptions further to connect the theory to more interpretable properties of real-world data distributions.

Summary updated

BibTeX
@misc{misiakiewicz2024non,
  author = {Theodor Misiakiewicz and Basil Saeed},
  title = {{A non-asymptotic theory of Kernel Ridge Regression: deterministic equivalents, test error, and GCV estimator}},
  year = {2024},
  eprint = {2403.08938},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.08938},
}
Figure