NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Trigonometric Quadrature Fourier Features for Scalable Gaussian Process Regression

Kevin Li, Max Balakirsky, Simon MakAISTATS 2024

Abstract

Gaussian Processes (GPs) are a cornerstone of Bayesian machine learning, prized for their robust uncertainty quantification. However, their $O(n^3)$ computational complexity limits their application to large datasets. While Fourier feature approximations offer a path to scalability, traditional methods often rely on polynomial-based quadrature rules that struggle with the oscillatory nature of the Fourier transform. We introduce Trigonometric Quadrature Fourier Features (TQFF), a novel approach that utilizes trigonometric interpolants to achieve higher accuracy and better uncertainty calibration with significantly fewer features.

Introduction

The computational bottleneck of Gaussian Processes has led to the development of various low-rank approximation techniques. Random Fourier Features (RFF) use Monte Carlo sampling to approximate the kernel, but often suffer from high variance and "variance starvation," leading to unreliable uncertainty estimates. Quadrature Fourier Features (QFF) provide a deterministic alternative, typically using Gauss-Hermite or Gauss-Legendre rules. However, these rules are based on polynomial interpolation, which is fundamentally ill-suited for approximating the highly oscillatory integrands inherent in spectral kernel representations, especially when dealing with small length-scales.

Methodology: The Case for Trigonometric Quadrature

The core insight of TQFF is that the Fourier transform integrand is composed of trigonometric functions. Approximating these with polynomials is inefficient, requiring a high number of nodes to capture rapid oscillations.

Comparison of interpolants for the Fourier transform integrand. Trigonometric interpolation (right) captures the oscillatory nature far better than Gauss-Hermite (left) or Gauss-Legendre (middle).

TQFF replaces polynomial interpolation with a "trigonometric interpolant" specifically designed for the Fourier transform. By deriving a "trigonometrically exact" quadrature rule, the authors ensure that the integration is perfect for a specific class of trigonometric polynomials. This rule is implemented efficiently using an adapted Golub-Welsh algorithm to determine optimal nodes and weights. This shift reduces the error dependence on the inverse length-scale from quadratic (in previous QFF methods) to linear, making the approximation more robust for high-frequency data.

Experimental Evaluation

The authors benchmarked TQFF against RFF and existing QFF variants across synthetic and real-world datasets, including solar irradiance, stock prices, and large-scale electricity consumption data ($n=100,000$).

Efficiency and Accuracy

In 1D kernel approximation, TQFF reached single-precision accuracy using approximately 50% fewer features than Gauss-Legendre methods. This efficiency translates directly to regression performance.

Comparison of GP approximations across different methods. TQFF (bottom right) provides a near-perfect fit and uncertainty estimate with only 20 features, while RFF (top left) struggles even with 100 features.

As shown above, TQFF maintains high fidelity to the true GP posterior even with a very small number of features ($S=20$). In contrast, RFF requires five times as many features ($S=100$) and still exhibits significant approximation errors and poor uncertainty calibration.

Scalability and Uncertainty Calibration

On large-scale tasks like the 100,000-point electricity dataset, TQFF consistently outperformed competitors in both Root Mean Square Error (RMSE) and Negative Log-Likelihood (NLL). The deterministic nature of TQFF avoids the erratic uncertainty estimates common in RFF, providing intervals nearly identical to the full GP.

Conclusion and Future Work

TQFF represents a significant step forward in making Gaussian Processes scalable without sacrificing the quality of uncertainty estimates. By aligning the quadrature rule with the mathematical nature of the Fourier transform, TQFF achieves state-of-the-art efficiency. While currently limited by the "curse of dimensionality" due to its reliance on tensor-product rules for multi-dimensional data, future research into sparse grid quadrature or Bayesian Quadrature integration promises to extend these benefits to higher-dimensional problems.

Summary updated

BibTeX
@inproceedings{li2024trigonometric,
  author = {Kevin Li and Max Balakirsky and Simon Mak},
  title = {{Trigonometric Quadrature Fourier Features for Scalable Gaussian Process Regression}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure