Skip to main content
QUICK REVIEW

[Paper Review] Relative Error Embeddings for the Gaussian Kernel Distance

Di Chen, Jeff M. Phillips|arXiv (Cornell University)|Feb 17, 2016
Gaussian Processes and Bayesian InferenceComputer Science14 references4 citations
TL;DR

This paper establishes tight relative error bounds for random Fourier features (RFF) in approximating the Gaussian kernel distance. It proves that $O((1/\\/varepsilon^{2})\log n)$ dimensions suffice for $n$ points, and $O((d/\\varepsilon^{2})\log \mathcal{M})$ for bounded-diameter data, with empirical validation showing stable relative error across bandwidths and increasing feature counts.

ABSTRACT

A reproducing kernel can define an embedding of a data point into an infinite dimensional reproducing kernel Hilbert space (RKHS). The norm in this space describes a distance, which we call the kernel distance. The random Fourier features (of Rahimi and Recht) describe an oblivious approximate mapping into finite dimensional Euclidean space that behaves similar to the RKHS. We show in this paper that for the Gaussian kernel the Euclidean norm between these mapped to features has $(1+\varepsilon)$-relative error with respect to the kernel distance. When there are $n$ data points, we show that $O((1/\varepsilon^2) \log(n))$ dimensions of the approximate feature space are sufficient and necessary. Without a bound on $n$, but when the original points lie in $\mathbb{R}^d$ and have diameter bounded by $\mathcal{M}$, then we show that $O((d/\varepsilon^2) \log(\mathcal{M}))$ dimensions are sufficient, and that this many are required, up to $\log(1/\varepsilon)$ factors.

Motivation & Objective

  • To establish theoretical bounds on the number of random Fourier features needed to preserve relative error in the Gaussian kernel distance.
  • To close a gap in prior work by providing bounds that hold uniformly over all pairs of points, even when $n$ is unbounded.
  • To demonstrate that relative error is preserved not only for inner products but also for the full kernel distance metric.
  • To empirically validate that relative error remains stable and decreases with increasing feature count in kernel PCA and pairwise distance approximations.

Proposed method

  • Uses random Fourier features (RFF) with isotropic Gaussian frequencies $\omega_i \sim \mathcal{N}_d(0, \sigma^{-2})$ and random phase shifts $\gamma_i \sim \text{Unif}(0, 2\pi)$.
  • Employs the $\hat{\phi}$ mapping that uses $\cos(\omega_i^T x)$ and $\sin(\omega_i^T x)$ pairs to preserve kernel inner products in expectation.
  • Applies concentration inequalities and chaining arguments to bound the relative error $|D_K(x,y) - \|\hat{\phi}(x) - \hat{\phi}(y)\|| / D_K(x,y)$.
  • Derives dimensionality bounds via covering arguments and metric entropy, showing tightness up to $\log(1/\varepsilon)$ factors.
  • Validates results empirically using kernel PCA on USPS data and pairwise distance simulations with varying $\|x-y\|/\sigma$.
  • Measures relative error as $|\hat{R}_k / R_k - 1|$ for kernel PCA residuals and $\varepsilon_{\text{max}} = \max_i |D_K(x_i,y_i)/\|\hat{\phi}(x_i)-\hat{\phi}(y_i)\| - 1|$ for pairwise distances.

Experimental results

Research questions

  • RQ1What is the minimum number of random Fourier features required to ensure $(1\pm\varepsilon)$-relative error for the Gaussian kernel distance across all pairs of $n$ points?
  • RQ2How does the required feature dimension scale with data dimension $d$, diameter $\mathcal{M}$, and $\varepsilon$ when $n$ is unbounded?
  • RQ3Can relative error be preserved uniformly across all point pairs, including those with very small $\|x-y\|$?
  • RQ4Is the relative error stable across different bandwidths $\sigma$ and increasing feature counts $t$ in practical applications like kernel PCA?

Key findings

  • For $n$ data points, $O((1/\varepsilon^2)\log n)$ dimensions of the RFF space are both sufficient and necessary to achieve $(1+\varepsilon)$-relative error in the kernel distance.
  • When $n$ is unbounded but the data lies in $\mathbb{R}^d$ with diameter bounded by $\mathcal{M}$, $O((d/\varepsilon^2)\log \mathcal{M})$ dimensions are sufficient and required, up to $\log(1/\varepsilon)$ factors.
  • Empirical results show that relative error in kernel PCA residual error decreases quadratically with $t$, and remains stable across different $\sigma$ values.
  • Maximum relative error $\varepsilon_{\text{max}}$ scales inversely with $\sqrt{t}$, confirming theoretical $O(1/\varepsilon^2)$ dependence.
  • Relative error remains bounded by a small constant even for $\|x-y\|/\sigma \ll 1$, demonstrating robustness in high-concentration regimes.
  • Theoretical and empirical results confirm that RFF provide tight relative error approximations for the full kernel distance, not just inner products.

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.