Skip to main content
QUICK REVIEW

[Paper Review] On the Error of Random Fourier Features

Danica J. Sutherland, Jeff Schneider|arXiv (Cornell University)|Jun 9, 2015
Gaussian Processes and Bayesian InferenceComputer Science24 references37 citations
TL;DR

This paper provides a rigorous analysis of the approximation error in random Fourier features, improving uniform error bounds and revealing that the more widely used $ ilde{z}$ embedding (with sine and cosine pairs) has strictly lower variance than $reve{z}$ (with phase-shifted cosines) for the Gaussian kernel. The authors derive tighter concentration bounds, establish $O(1/√{D})$ convergence rates, and empirically validate that $ ilde{z}$ yields superior approximation quality and faster convergence in practice.

ABSTRACT

Kernel methods give powerful, flexible, and theoretically grounded approaches to solving many problems in machine learning. The standard approach, however, requires pairwise evaluations of a kernel function, which can lead to scalability issues for very large datasets. Rahimi and Recht (2007) suggested a popular approach to handling this problem, known as random Fourier features. The quality of this approximation, however, is not well understood. We improve the uniform error bound of that paper, as well as giving novel understandings of the embedding's variance, approximation error, and use in some machine learning methods. We also point out that surprisingly, of the two main variants of those features, the more widely used is strictly higher-variance for the Gaussian kernel and has worse bounds.

Motivation & Objective

  • To provide a comprehensive theoretical analysis of the error in random Fourier feature approximations for shift-invariant kernels.
  • To compare the two main variants of random Fourier features—$Ø{z}$ and $Ø{z}$—in terms of variance, approximation error, and convergence properties.
  • To improve upon the uniform error bounds from Rahimi and Recht (2007), tightening constants and providing new exponential concentration bounds.
  • To evaluate the impact of approximation error on downstream machine learning methods, including kernel ridge regression and maximum mean discrepancy (MMD) estimation.
  • To empirically validate theoretical findings and demonstrate that $Ø{z}$ is superior for the Gaussian kernel despite being less commonly used.

Proposed method

  • Derives the variance of the random Fourier feature approximation using Bochner's theorem and the characteristic function of the kernel's Fourier transform.
  • Establishes uniform error bounds via McDiarmid's inequality, with tighter constants than prior work, and proves exponential concentration of the maximal error around its mean.
  • Analyzes $L_2$ convergence of the approximation error, showing that $Ø{z}$ has lower expected error for the Gaussian kernel.
  • Uses numerical integration to evaluate theoretical bounds on expected maximal error and compares them to empirical results.
  • Employs empirical evaluation on kernel ridge regression and MMD estimation to compare the performance of $Ø{z}$ and $Ø{z}$ under varying embedding dimensions $D$.
  • Applies the McDiarmid bound to the mean squared error and compares the empirical decay rate of error with theoretical predictions.

Experimental results

Research questions

  • RQ1Which of the two random Fourier feature variants—$Ø{z}$ or $Ø{z}$—has lower variance for the Gaussian kernel?
  • RQ2Can the uniform error bound for random Fourier features be tightened, and what are the implications for generalization?
  • RQ3How does the approximation error of random Fourier features affect the performance of downstream learning methods like kernel ridge regression and MMD estimation?
  • RQ4What is the true rate of convergence of the expected maximal error, and how does it compare to theoretical bounds?
  • RQ5Does the choice of embedding variant affect the empirical decay rate of error, and if so, which one converges faster?

Key findings

  • The $Ø{z}$ embedding has strictly lower variance than $Ø{z}$ for the Gaussian kernel, making it superior in terms of approximation quality.
  • The paper tightens the uniform error bound from Rahimi and Recht (2007), improving the constants and providing an exponential concentration bound for the maximal error.
  • The expected $L_2$ error for $Ø{z}$ is $O(1/D)$, while for $Ø{z}$ it is $O(1/D)$, but with a larger constant, confirming $Ø{z}$'s superiority.
  • Empirical evaluation shows that the expected maximal error decays as $O(1/\sqrt{D})$, with a slope consistent with theoretical predictions for both embeddings.
  • The mean absolute error in MMD estimation decays as $O(1/\sqrt{D})$, with empirical exponents close to $-0.5$, confirming theoretical convergence rates.
  • The McDiarmid bound overestimates the decay rate's multiplicative constant, but the empirical decay matches the theoretical $O(1/\sqrt{D})$ scaling.

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.