Skip to main content
QUICK REVIEW

[Paper Review] Explicit Approximations of the Gaussian Kernel

Andrew Cotter, Joseph Keshet|arXiv (Cornell University)|Sep 21, 2011
Gaussian Processes and Bayesian InferenceComputer Science10 references44 citations
TL;DR

This paper proposes Taylor features—explicit polynomial approximations of the Gaussian kernel using low-order Taylor expansions of the exponential function—to enable efficient training of kernel SVMs. Despite requiring more features than random Fourier features, Taylor features offer superior computational efficiency on sparse data, outperforming random Fourier features in approximation and prediction quality when accounting for feature computation cost, especially in online/stochastic settings.

ABSTRACT

We introduce two versions of a new sketch for approximately embedding the Gaussian kernel into Euclidean inner product space. These work by truncating infinite expansions of the Gaussian kernel, and carefully invoking the RecursiveTensorSketch [Ahle et al. SODA 2020]. After providing concentration and approximation properties of these sketches, we use them to approximate the kernel distance between points sets. These sketches yield almost (1+ε)-relative error, but with a small additive α term. In the first variants the dependence on 1/α is poly-logarithmic, but has higher degree of polynomial dependence on the original dimension d. In the second variant, the dependence on 1/α is still poly-logarithmic, but the dependence on d is linear.

Motivation & Objective

  • To address the high computational cost of training kernel SVMs on large-scale datasets.
  • To develop an explicit, low-dimensional feature representation that approximates the Gaussian kernel with better computational efficiency than existing methods.
  • To demonstrate that feature computation cost—not just feature count—should guide the choice of explicit kernel approximations.
  • To show that Taylor features, though less compact than random Fourier features, are more efficient in practice for sparse data due to faster computation.

Proposed method

  • Approximates the Gaussian kernel using a low-order Taylor expansion of the exponential function, resulting in polynomial features.
  • Represents input vectors as scaled monomials of increasing degrees, derived from the Taylor series of exp(−‖x−x′‖²/2σ²).
  • Uses the resulting feature map ˜φ(x) in place of the implicit φ(x) to train linear SVMs efficiently.
  • Applies stochastic dual coordinate ascent (SDCA) for efficient training on large-scale datasets.
  • Compares Taylor features to random Fourier features and polynomial kernels in terms of approximation quality and computational cost.
  • Employs GPU-optimized solvers and real-world benchmarks (e.g., TIMIT) to evaluate performance.

Experimental results

Research questions

  • RQ1Can a polynomial-based explicit feature representation approximate the Gaussian kernel more efficiently than random Fourier features in terms of computational cost?
  • RQ2Does the lack of shift and rotation invariance in Taylor features negatively impact performance, or can it be leveraged for efficiency?
  • RQ3How does the approximation quality of Taylor features compare to random Fourier features when measured by both feature count and computation cost?
  • RQ4Can Taylor features achieve comparable or better prediction accuracy than the exact Gaussian kernel while reducing training time?
  • RQ5Is the degree-dependent scaling in Taylor features a significant disadvantage compared to standard polynomial kernels?

Key findings

  • On the TIMIT dataset with 1.1 million examples, training with the degree-3 Taylor approximation reduced training time from 313 hours (exact Gaussian kernel) to 53 hours, with nearly identical accuracy (69.6% vs. 69.8%).
  • Despite requiring significantly more features than random Fourier features to achieve similar approximation quality, Taylor features outperform them in terms of approximation and prediction quality when computational cost is considered.
  • The computational cost of generating Taylor features is substantially lower than for random Fourier features, especially on sparse data, due to the absence of expensive trigonometric operations.
  • The degree-dependent scaling in Taylor features makes higher-order monomials less influential, leading to a preference for lower-degree features during learning.
  • Empirical results show that Taylor features perform comparably to standard polynomial kernels of the same degree, but with the advantage of using the same hyperparameters (C and σ²) as the original Gaussian kernel.
  • The study demonstrates that feature computation cost is a critical factor in selecting explicit kernel approximations, and that Taylor features are particularly well-suited for large-scale, sparse datasets in online or stochastic training settings.

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.