[Paper Review] A Random Matrix Analysis of Random Fourier Features: Beyond the Gaussian Kernel, a Precise Phase Transition, and the Corresponding Double Descent
This paper presents a precise random matrix theory analysis of random Fourier features (RFF) regression in the high-dimensional regime where sample size $n$, input dimension $p$, and feature dimension $N$ all grow large and comparable. It derives exact asymptotic expressions for training and test errors, reveals a sharp phase transition between under- and over-parameterized regimes at $N/n \approx 1/2$, and explains the double descent phenomenon in RFF ridge regression without relying on strong distributional assumptions, with results validated on real-world datasets like MNIST and Fashion-MNIST.
This article characterizes the exact asymptotics of random Fourier feature (RFF) regression, in the realistic setting where the number of data samples $n$, their dimension $p$, and the dimension of feature space $N$ are all large and comparable. In this regime, the random RFF Gram matrix no longer converges to the well-known limiting Gaussian kernel matrix (as it does when $N o \infty$ alone), but it still has a tractable behavior that is captured by our analysis. This analysis also provides accurate estimates of training and test regression errors for large $n,p,N$. Based on these estimates, a precise characterization of two qualitatively different phases of learning, including the phase transition between them, is provided; and the corresponding double descent test error curve is derived from this phase transition behavior. These results do not depend on strong assumptions on the data distribution, and they perfectly match empirical results on real-world data sets.
Motivation & Objective
- To analyze RFF regression in the realistic high-dimensional regime where $n$, $p$, and $N$ are all large and comparable, beyond the classical $N \to \infty$ limit.
- To characterize the asymptotic behavior of the RFF Gram matrix when $N$ is not asymptotically large compared to $n$ and $p$, where the Gaussian kernel approximation fails.
- To derive precise asymptotic expressions for training and test errors in RFF ridge regression under general data distributions.
- To identify and explain the phase transition between under- and over-parameterized learning regimes, and its connection to the double descent phenomenon.
Proposed method
- Uses random matrix theory to derive the asymptotic deterministic equivalent (A.D.E.) of the RFF Gram matrix $\Sigma_X^T \Sigma_X / N$ in the double asymptotic regime $n, p, N \to \infty$ with $n/N \to c$.
- Applies the Marčenko-Pastur-type equation to characterize the resolvent of the Gram matrix, enabling exact asymptotic analysis of ridge regression performance.
- Derives closed-form expressions for asymptotic training and test errors based on the A.D.E. and the resolvent trace, valid for general Lipschitz nonlinearities like cosine and sine in RFFs.
- Introduces a correction term to account for the spectral norm inconsistency between the RFF Gram matrix and the limiting Gaussian kernel when $N$ is not large relative to $n$.
- Models training-test similarity via a noise-injected data matrix $\hat{X} = X + \sigma \varepsilon$ to study generalization under distributional shift.
- Validates theoretical predictions through extensive experiments on MNIST, Fashion-MNIST, and Kannada-MNIST datasets with varying $N$, $n$, and $\lambda$.
Experimental results
Research questions
- RQ1How does the RFF Gram matrix behave asymptotically when $n$, $p$, and $N$ grow simultaneously at comparable rates, rather than in the $N \to \infty$ limit?
- RQ2What is the precise phase transition point between under- and over-parameterized regimes in RFF ridge regression, and how does it relate to the double descent curve?
- RQ3How accurate are the asymptotic error estimates derived from random matrix theory compared to empirical results on real-world data?
- RQ4What is the impact of training-test distributional mismatch (modeled via noise) on generalization error in RFF regression?
Key findings
- The RFF Gram matrix $\Sigma_X^T \Sigma_X / N$ does not converge to the Gaussian kernel matrix in spectral norm when $n$, $p$, $N$ are all large and comparable, invalidating classical asymptotic approximations.
- A precise phase transition occurs at $N/n \approx 1/2$, where the test error exhibits a sharp peak, marking the boundary between under- and over-parameterized regimes.
- The double descent curve in RFF ridge regression emerges naturally from the phase transition, with test error decreasing, peaking at $2N = n$, and then decreasing monotonically as $N$ increases beyond $n/2$.
- The theoretical asymptotic training and test error estimates derived from the A.D.E. and resolvent trace closely match empirical results on MNIST, Fashion-MNIST, and Kannada-MNIST, even for moderate $n$, $p$, $N$.
- When modeling training-test similarity via noise $\varepsilon$, the test error diverges from the training error precisely when the noise variance $\sigma^2$ exceeds the regularization parameter $\lambda$, confirming the theory's prediction of a sharp transition at $\sigma^2 \approx \lambda$.
- The asymptotic analysis remains accurate even when the data distribution is non-Gaussian, as demonstrated by strong agreement with real-world image datasets across multiple classes and feature dimensions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.