Equispaced Fourier Representations for Efficient Gaussian Process Regression from a Billion Data Points

Philip Greengard, Manas Rachh, Alex H. Barnett

TL;DR

This paper introduces a novel, fast algorithm (EFGP) for Gaussian Process (GP) regression that can handle datasets with up to a billion data points in low dimensions. By leveraging equispaced Fourier representations of covariance kernels, EFGP achieves significant speedups (1-2 orders of magnitude) over existing methods, making large-scale spatial statistics and machine learning applications feasible on standard hardware.

What Problem Does This Paper Address?

Gaussian Process (GP) regression is a powerful tool for modeling functions with uncertainty, widely used in spatial statistics and machine learning. However, its primary bottleneck is the computational cost of solving an N x N linear system, where N is the number of data points. This cost scales cubically with N for direct methods, limiting practical applications to datasets of around 10^4 points. While various approximation methods exist, they often struggle with accuracy or still require substantial computational resources, especially for large N. This paper tackles the challenge of scaling GP regression to massive datasets (up to a billion points) in low-dimensional settings (d <= 5) while maintaining high accuracy.

Methods

The core of the proposed method, Equispaced Fourier Representation Gaussian Process (EFGP), lies in approximating the translationally-invariant covariance kernel using a finite sum of complex exponentials on an equispaced grid of frequencies. This "weight-space" approach transforms the N x N problem into an M x M system, where M is the number of Fourier basis functions (typically much smaller than N).

Key techniques include:

  • Equispaced Fourier Representation: The covariance kernel $k(x, x')$ is approximated by $\tilde{k}(x, x') = \sum_{j=1}^M \phi_j(x) \phi_j(x')$, where $\phi_j(x)$ are complex exponentials on an equispaced frequency grid.
  • Toeplitz Structure: The resulting M x M system matrix has a Toeplitz structure (or its generalization for higher dimensions), which allows for efficient matrix-vector multiplication using the Fast Fourier Transform (FFT) in $O(M \log M)$ operations.
  • Nonuniform FFT (NUFFT): The setup of the linear system and evaluation of the posterior mean at new points leverage NUFFTs, enabling an overall cost of $O(N + M \log M)$ for precomputation and $O(M \log M)$ per iteration for solving the system.
  • Iterative Solver: The M x M linear system is solved using an iterative method like conjugate gradient, making the computational cost per iteration independent of N.

Datasets

The paper uses synthetic datasets for training and evaluation in dimensions d=1, 2, and 3. These datasets are generated from simple plane wave functions with additive Gaussian noise. Additionally, a real-world 2D satellite dataset (XCO2 measurements) is used to demonstrate EFGP's performance on a large-scale spatial regression problem.

Key Insights and Ideas

  • Fourier Domain as a Natural Representation: The paper highlights that for translationally invariant kernels, their Fourier transform is often smooth and decays rapidly, making it amenable to efficient approximation using equispaced Fourier bases.
  • Weight-Space Advantage: By moving to the weight-space representation, the computational cost of prediction becomes independent of the data size N, a crucial advantage for massive datasets.
  • FFT for Efficiency: The use of FFTs to exploit the Toeplitz structure of the system matrix is central to achieving the $O(M \log M)$ complexity per iteration.
  • Scalability to a Billion Points: The combination of these techniques allows EFGP to handle datasets of unprecedented size (up to 10^9 points) on standard hardware, opening up new possibilities for large-scale spatial modeling.
  • Accuracy vs. Speed Tradeoff: EFGP demonstrates a highly competitive trade-off between computational time and posterior mean accuracy, often outperforming state-of-the-art methods.

Key Results

  • Massive Scalability: EFGP successfully performs GP regression on datasets with up to $N=10^9$ data points. For example, a 2D Matérn-3/2 regression with $N=10^9$ points was completed in 2 minutes on a desktop, achieving 10^-3 posterior mean accuracy.
  • Significant Speedups: EFGP offers 1-2 orders of magnitude acceleration compared to state-of-the-art rank-structured solvers at comparable accuracy.
  • Competitive Accuracy: The method achieves high accuracy, with posterior mean errors (EEPM) often within one to two digits of the requested tolerance, and RMSE values matching the noise level for well-specified models.
  • Low Memory Footprint: EFGP's memory usage scales linearly with N, significantly outperforming methods like FLAM by factors of 20-100 for large datasets.

Limitations and Future Work

  • Dimensionality Curse: The current EFGP approach scales exponentially with dimension $d$ due to the tensor-product grid for frequencies ($M = O(m^d)$). This limits its efficient use to low dimensions (e.g., $d \le 5$ for smooth kernels, $d \le 4$ for rougher kernels).
  • Hyperparameter Optimization: The paper focuses on posterior mean prediction and leaves the evaluation of GP likelihood gradients for hyperparameter fitting using EFGP to future work.
  • Condition Number: For very large N/$\sigma^2$, the condition number of the weight-space system can increase, leading to more iterations for the conjugate gradient solver. Investigating preconditioners for this system is suggested.
  • Posterior Variance: While the framework can be extended to posterior variance estimation, it would require a new linear solve for each target point, which is not addressed in this paper.
  • Sharper Error Bounds: The analytical error bounds for posterior mean prediction are noted as being pessimistic. Proving sharper estimates might require assumptions on the data point distribution.

Summary updated

BibTeX
@article{greengard2022equispaced,
  author = {Philip Greengard and Manas Rachh and Alex H. Barnett},
  title = {{Equispaced Fourier Representations for Efficient Gaussian Process Regression from a Billion Data Points}},
  journal = {SIAM/ASA J. Uncertain. Quantification},
  year = {2022},
}
Figure