Thoughts on Massively Scalable Gaussian Processes.

Andrew Gordon Wilson, Christoph Dann, Hannes NickischarXiv 2015

TL;DR

Massively Scalable Gaussian Processes (MSGP) is a new framework that allows Gaussian processes to scale to billions of data points without needing distributed computing or sacrificing accuracy. By cleverly combining circulant matrix approximations, local kernel interpolation, and supervised input projections, MSGP slashes standard training complexity to $O(n)$ and test prediction time to an unprecedented $O(1)$ per point.

What Problem Does This Paper Address?

Gaussian processes (GPs) are powerful, non-parametric models celebrated for their ability to provide high-quality predictions with robust uncertainty estimates. However, they suffer from a notorious computational bottleneck: standard training requires $O(n^3)$ time and $O(n^2)$ storage, where $n$ is the number of data points. This effectively caps their use at a few thousand samples.

Existing workarounds have major drawbacks. "Inducing point" methods reduce the workload but require keeping the number of inducing points ($m$) very small ($m \ll n$), which severely hurts accuracy and limits the model's capacity to learn complex patterns from massive datasets. Other structural approaches (like Kronecker or Toeplitz methods) offer speedups but demand that data lie on a strict, regularly spaced grid—a rare luxury in real-world applications. MSGP breaks these barriers, enabling exact-level accuracy on massive, un-gridded datasets.

Methods

MSGP builds upon the Structured Kernel Interpolation (SKI) and KISS-GP frameworks, introducing four key innovations:

  1. $O(1)$ Test Predictions: Standard GPs require $O(n)$ time for a single mean prediction and $O(n^2)$ for variance. MSGP pre-computes key structural matrices during training. At test time, it uses local cubic interpolation weights (which contain only a few non-zero entries), reducing prediction time to a constant $O(1)$ per test point. For predictive variance, it employs a fast stochastic estimator based on Gaussian random samples.
  2. Circulant Approximations: To handle large numbers of inducing points without grid restrictions, MSGP places inducing points on a latent grid and applies a circulant Whittle approximation. This embeds Toeplitz covariance matrices into larger circulant matrices, enabling lightning-fast log-determinant evaluations via Fast Fourier Transforms (FFTs) in $O(m \log m)$ time.
  3. BCCB for BTTB Structure: For multidimensional data where standard Kronecker factorization fails, MSGP exploits Block-Toeplitz-Toeplitz-Block (BTTB) structures, approximating them as Block-Circulant-with-Circulant-Blocks (BCCB) matrices to maintain fast inference.
  4. Supervised Projections: Kronecker methods typically suffer from the curse of dimensionality, failing when the input space has more than 5 dimensions ($D > 5$). MSGP solves this by learning a linear projection matrix $P$ that maps high-dimensional inputs into a lower-dimensional latent space ($d < 5$) where grid methods can be safely applied.
[High-Dim Input X] ---> [Learned Projection P] ---> [Low-Dim Space] ---> [Latent Kronecker/Toeplitz Grid U] ---> [Circulant/FFT Inference]

Datasets

The authors evaluated MSGP using synthetic stress tests designed to isolate and measure scalability and accuracy:

  • 1D Synthetic Dataset: Generated using the ground-truth function $f(x) = \sin(x)\exp(-x^2 / 50)$ with additive Gaussian noise. Inputs were sampled uniformly at random to ensure no natural grid structure existed. Training sizes scaled up to $n = 10^7$ points, and inducing points scaled up to $m = 10^6$.
  • High-Dimensional Synthetic Dataset: Inputs ($n = 3000$) were generated from a standard Gaussian distribution and projected via a random matrix into a $d=2$ subspace. The target values were generated using an RBF kernel. The ambient dimensionality ($D$) was scaled from 1 to 100 to test the projection recovery.

Key Insights and Ideas

  • Decoupling $m$ from Runtime: Remarkably, as the dataset size $n$ grows very large, the runtime of MSGP becomes practically independent of the number of inducing points $m$. At $n = 10^7$, training with $m = 10^3$ takes virtually the same time as $m = 10^6$. This allows researchers to use massive numbers of inducing points ($m \approx n$), yielding near-exact GP accuracy.
  • Whittle Embedding Superiority: Not all circulant approximations are created equal. The authors benchmarked several classical pre-conditioners (Strang, Chan, Tyrtyshnikov) and found that the Whittle approximation consistently delivered the lowest log-determinant error (under 1% relative error once $m > 1000$).
  • Supervised vs. Unsupervised Dimensionality Reduction: Learning the projection matrix $P$ via the GP marginal likelihood allows the model to discover predictive low-dimensional subspaces that unsupervised methods like PCA would entirely miss.

Key Results

  • Training Speed: At $n = 10^7$ training points, MSGP successfully computed the marginal likelihood and its derivatives in a few seconds, vastly outperforming exact GPs, FITC, and Sparse Spectrum GPs (SSGPs), which crash or become intractable at this scale.
  • Prediction Speed: For $10^5$ test points, MSGP's prediction runtime remained flat and close to $10^{-3}$ seconds, completely independent of $n$ and $m$. In contrast, alternative methods scaled quadratically or cubically.
  • Subspace Recovery: The supervised projection mechanism successfully recovered the true low-dimensional subspace with near-zero error for ambient dimensions up to $D = 40$, significantly outperforming a standard GP baseline up to $D = 100$.

Limitations and Future Work

  • High-Dimensional Degradation: While the projection method works exceptionally well, the subspace recovery error begins to degrade when the ambient dimensionality approaches $D = 100$, though it still beats standard baselines.
  • Complementary Frameworks: The authors note that MSGP's structural algebra is entirely complementary to Stochastic Variational Inference (SVI) methods. Combining MSGP's fast structural inversion with SVI's mini-batching is highlighted as a promising avenue for even greater scalability.

Summary updated

BibTeX
@misc{wilson2015thoughts,
  author = {Andrew Gordon Wilson and Christoph Dann and Hannes Nickisch},
  title = {{Thoughts on Massively Scalable Gaussian Processes.}},
  year = {2015},
  eprint = {1511.01870},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.01870},
}
Figure