Skip to main content
QUICK REVIEW

[Paper Review] Gaussian Quadrature for Kernel Features

Tri Dao, Christopher De|arXiv (Cornell University)|Sep 8, 2017
Generative Adversarial Networks and Image SynthesisComputer Science24 references13 citations
TL;DR

This paper proposes deterministic feature maps for kernel methods using Gaussian quadrature to approximate the kernel's Fourier transform, achieving exponentially small approximation error with fewer samples than random Fourier features. For sparse ANOVA kernels, it reduces sample complexity from O(d³) to O(d), enabling faster feature generation and comparable or improved accuracy on MNIST and TIMIT datasets.

ABSTRACT

Kernel methods have recently attracted resurgent interest, showing performance competitive with deep neural networks in tasks such as speech recognition. The random Fourier features map is a technique commonly used to scale up kernel machines, but employing the randomized feature map means that $O(ε^{-2})$ samples are required to achieve an approximation error of at most $ε$. We investigate some alternative schemes for constructing feature maps that are deterministic, rather than random, by approximating the kernel in the frequency domain using Gaussian quadrature. We show that deterministic feature maps can be constructed, for any $γ> 0$, to achieve error $ε$ with $O(e^{e^γ} + ε^{-1/γ})$ samples as $ε$ goes to 0. Our method works particularly well with sparse ANOVA kernels, which are inspired by the convolutional layer of CNNs. We validate our methods on datasets in different domains, such as MNIST and TIMIT, showing that deterministic features are faster to generate and achieve accuracy comparable to the state-of-the-art kernel methods based on random Fourier features.

Motivation & Objective

  • To investigate whether randomness is necessary for approximating kernel functions in kernel machines.
  • To develop deterministic feature maps that achieve better scaling in approximation error ε compared to random Fourier features.
  • To improve efficiency and accuracy for sparse ANOVA kernels, which resemble convolutional neural network layers.
  • To validate the method experimentally on real-world datasets like MNIST and TIMIT.
  • To demonstrate that deterministic quadrature-based features can match or exceed the performance of state-of-the-art random Fourier feature methods.

Proposed method

  • Uses Gaussian quadrature to deterministically approximate the Fourier transform integral of the kernel, replacing Monte Carlo sampling with structured nodes and weights.
  • Constructs feature maps by selecting quadrature nodes and weights in the frequency domain to minimize approximation error.
  • Applies polynomially-exact quadrature, dense grid, sparse grid, and reweighted grid constructions to generate deterministic features.
  • For sparse ANOVA kernels, leverages their structure to reduce the number of required samples from O(d³) to O(d).
  • Employs reweighting techniques to improve accuracy when using subsampled grids, enhancing performance on large datasets.
  • Combines deterministic feature generation with linear classifiers to enable scalable kernel learning without materializing the full Gram matrix.

Experimental results

Research questions

  • RQ1Can deterministic feature maps achieve better approximation error scaling than random Fourier features for kernel methods?
  • RQ2How does the sample complexity of deterministic quadrature compare to random sampling for sparse ANOVA kernels?
  • RQ3Can deterministic feature maps outperform random Fourier features in terms of feature generation speed and classification accuracy?
  • RQ4To what extent can structured kernels like sparse ANOVA benefit from deterministic quadrature-based feature maps?
  • RQ5Does deterministic feature generation eliminate the need for probabilistic error guarantees inherent in random Fourier features?

Key findings

  • For any γ > 0, the method achieves ε-approximation error with O(e^{e^{γ}} + ε^{-1/γ}) samples as ε → 0, offering superior scaling compared to random Fourier features.
  • On sparse ANOVA kernels, deterministic maps require only O(d) samples, while random Fourier features require O(d³), resulting in significant efficiency gains.
  • On MNIST, deterministic quadrature-based features achieved test accuracy comparable to random Fourier features, with up to 3× lower kernel approximation error when using reweighted grids.
  • On TIMIT, reweighted quadrature features achieved slightly lower phone error rates than random Fourier features, with features generated twice as fast.
  • The method reduced kernel approximation error by up to 3× compared to random Fourier features while maintaining or improving classification accuracy.
  • Deterministic feature maps are approximately twice as fast to generate as random Fourier features due to fewer multiplications, without sacrificing model performance.

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.