Skip to main content
QUICK REVIEW

[Paper Review] Generalization error of random features and kernel methods: hypercontractivity and kernel matrix concentration

Mei Song, Theodor Misiakiewicz|arXiv (Cornell University)|Jan 26, 2021
Stochastic Gradient Optimization TechniquesComputer Science39 references18 citations
TL;DR

This paper provides a sharp characterization of the generalization error in random features and kernel ridge regression under spectral and hypercontractivity conditions on the kernel. It shows that random features ridge regression approximates kernel ridge regression only when the feature dimension $N$ exceeds $n^{1+ heta}$ for some $ heta>0$, and that the test error is dominated by approximation error when $N \leq n^{1-\delta}$, with a precise gap quantified between the two methods.

ABSTRACT

Consider the classical supervised learning problem: we are given data $(y_i,{\boldsymbol x}_i)$, $i\le n$, with $y_i$ a response and ${\boldsymbol x}_i\in {\mathcal X}$ a covariates vector, and try to learn a model $f:{\mathcal X} o{\mathbb R}$ to predict future responses. Random features methods map the covariates vector ${\boldsymbol x}_i$ to a point ${\boldsymbol ϕ}({\boldsymbol x}_i)$ in a higher dimensional space ${\mathbb R}^N$, via a random featurization map ${\boldsymbol ϕ}$. We study the use of random features methods in conjunction with ridge regression in the feature space ${\mathbb R}^N$. This can be viewed as a finite-dimensional approximation of kernel ridge regression (KRR), or as a stylized model for neural networks in the so called lazy training regime. We define a class of problems satisfying certain spectral conditions on the underlying kernels, and a hypercontractivity assumption on the associated eigenfunctions. These conditions are verified by classical high-dimensional examples. Under these conditions, we prove a sharp characterization of the error of random features ridge regression. In particular, we address two fundamental questions: $(1)$~What is the generalization error of KRR? $(2)$~How big $N$ should be for the random features approximation to achieve the same error as KRR? In this setting, we prove that KRR is well approximated by a projection onto the top $\ell$ eigenfunctions of the kernel, where $\ell$ depends on the sample size $n$. We show that the test error of random features ridge regression is dominated by its approximation error and is larger than the error of KRR as long as $N\le n^{1-δ}$ for some $δ>0$. We characterize this gap. For $N\ge n^{1+δ}$, random features achieve the same error as the corresponding KRR, and further increasing $N$ does not lead to a significant change in test error.

Motivation & Objective

  • To understand the generalization error of random features ridge regression (RFRR) in high-dimensional settings.
  • To determine the minimal feature dimension $N$ required for RFRR to match the performance of kernel ridge regression (KRR).
  • To establish conditions under which RFRR approximates KRR with controlled error.
  • To characterize the trade-off between approximation error and estimation error in RFRR.

Proposed method

  • The authors define a class of kernels satisfying spectral conditions and hypercontractivity on eigenfunctions, verified in classical high-dimensional models.
  • They analyze RFRR as a finite-dimensional approximation of KRR, focusing on the role of the top $\ell$ eigenfunctions of the kernel operator.
  • The analysis leverages concentration of measure for random feature matrices and bounds on the empirical kernel matrix using spectral decomposition.
  • Key technical tools include hypercontractivity inequalities for the sphere and hypercube, which control higher moments of polynomial eigenfunctions.
  • The method involves decomposing the generalization error into approximation and estimation components, with sharp bounds derived via matrix concentration and eigenvalue analysis.
  • Theoretical results are validated on two canonical examples: the binary hypercube and the unit sphere, where hypercontractivity holds.

Experimental results

Research questions

  • RQ1What is the generalization error of kernel ridge regression under spectral and hypercontractivity assumptions on the kernel?
  • RQ2How large must the feature dimension $N$ be for random features ridge regression to achieve the same generalization error as kernel ridge regression?
  • RQ3What is the dominant source of error in random features ridge regression—approximation or estimation?
  • RQ4How does the approximation error of random features depend on the sample size $n$ and feature dimension $N$?
  • RQ5Can the generalization error of RFRR be tightly bounded using kernel matrix concentration and hypercontractivity?

Key findings

  • The generalization error of random features ridge regression is dominated by approximation error when $N \leq n^{1-\delta}$ for any $\delta > 0$, and is strictly larger than that of KRR.
  • For $N \geq n^{1+\delta}$, the test error of RFRR matches that of KRR up to a constant factor, and further increasing $N$ does not reduce error significantly.
  • KRR is well-approximated by projection onto the top $\ell$ eigenfunctions of the kernel, where $\ell \asymp n$.
  • The gap between RFRR and KRR generalization error is quantitatively characterized and scales as $O(n^{-\delta})$ for $\delta > 0$ when $N \leq n^{1-\delta}$.
  • Hypercontractivity of the underlying measure (Gaussian, uniform on sphere, or hypercube) ensures that eigenfunctions of degree $\ell$ satisfy $\|f\|_{L^q}^2 \leq (q-1)^\ell \|f\|_{L^2}^2$, enabling moment control.
  • The empirical kernel matrix concentrates around its expectation, and its top eigenvectors align with the true kernel eigenvectors with high probability, enabling stable approximation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.