Scalable Gaussian Processes with Grid-Structured Eigenfunctions (GP-GRIEF)

Trefor W. Evans, Prasanth B. Nair

Introduction

Gaussian Processes (GPs) are widely considered the "gold standard" for Bayesian non-parametric modeling. However, they suffer from a massive Achilles' heel: computational complexity. Standard GPs scale at $O(n^3)$ time and $O(n^2)$ memory, where $n$ is the number of training points, making them unusable for datasets with more than a few thousand observations.

To circumvent this, researchers often use "inducing points"—a smaller set of $m$ points that act as proxies for the full dataset. Yet, if too few inducing points are used, the model becomes inaccurate. Conversely, using a grid of inducing points to adequately cover the space causes $m$ to grow exponentially with the number of dimensions $d$. This "curse of dimensionality" typically limits grid-based methods to very low-dimensional problems ($d \leq 5$).

The GP-GRIEF (Gaussian Processes with GRId-structured EigenFunctions) framework introduces a novel kernel approximation that allows GPs to scale to millions of data points while using an astronomical number of inducing points (up to $10^{33}$). By exploiting the algebraic properties of Kronecker and Khatri-Rao products, GP-GRIEF breaks the curse of dimensionality, making GP training and inference costs practically independent of the number of inducing points.

The GP-GRIEF Method

The core idea behind GP-GRIEF is to approximate the GP kernel using a finite sum of $p$ eigenfunctions. The "secret sauce" lies in how these eigenfunctions are computed:

  1. Nyström Approximation on a Massive Grid: Inducing points are placed on a dense Cartesian product grid. Normally, this would be computationally prohibitive in high dimensions.
  2. Algebraic Judo: The authors prove that if the inducing points are on a grid, the resulting matrices exhibit a specific structure (Kronecker and Khatri-Rao products).
  3. Breaking the Curse: A new theorem demonstrates that products of these structured matrices can be computed in $O(dnp)$ time. This transforms the scaling from exponential in $d$ to linear in $d$.
  4. Re-weighted Kernel: A flexible parametrization is introduced where weights for each eigenfunction are learned. This allows for extremely fast hyperparameter tuning (Type-I or Type-II Bayesian inference) because the heavy lifting of matrix computation only needs to be done once.
Training Prior Covariance Error

Key Insights

  • Independence from $m$: The most striking insight is that the computational cost is practically independent of the number of inducing points $m$. You can use more inducing points than there are atoms in the observable universe without slowing down the training process.
  • Global Accuracy: Because the method can utilize so many inducing points, it effectively "fills out" the input space. This ensures the model remains accurate even at test locations far away from the training data, a common failure point for sparse GPs.
  • Eigenfunctions as Optimal Bases: The paper leverages the fact that eigenfunctions provide the most compact representation for orthogonal basis functions, leading to better approximations with fewer terms ($p$) compared to random features.
  • Fast Fully Bayesian Inference: Because the log marginal likelihood and its derivatives can be computed in $O(p)$ time after an initial setup, full MCMC sampling on millions of points can be performed in minutes—something previously thought to be computationally prohibitive.

Empirical Results

The authors benchmarked GP-GRIEF on a wide variety of real-world regression tasks from the UCI Machine Learning Repository, ranging from small-scale datasets to the Electric dataset with over 2 million training points, and the high-dimensional Cancer dataset ($d=33$), where a staggering $10^{33}$ inducing points were used.

  • Superior Accuracy: GP-GRIEF consistently outperformed exact GPs and other state-of-the-art approximations (like Fastfood expansions) on almost all tested UCI datasets.
  • Massive Speedups: For the 2-million-point Electric dataset, GP-GRIEF completed fully Bayesian inference in just 25 minutes. Most other GP methods would either crash due to memory constraints or take days to run.
  • Reconstruction Power: In 2D visualizations, GP-GRIEF with only 4 basis functions achieved a reconstruction error comparable to a full GP, significantly outperforming Variational Free Energy (VFE) methods.
Reconstruction Power Comparison

Limitations and Future Work

While GP-GRIEF is a powerhouse for regression, there are a few areas for future expansion:

  • Kernel Limitations: The current algebraic speedups rely on kernels that satisfy the "product correlation rule" (like the popular Squared-Exponential or Matérn kernels). Non-separable kernels might not benefit as much.
  • Initial Setup Cost: There is an initial setup cost of $O(np^2)$. While this is a one-time cost, it could still be a bottleneck if $p$ (the number of eigenfunctions) needs to be very large for a specific problem.
  • Future Directions: The authors suggest applying this matrix algebra to other areas, such as developing better preconditioners for general kernel matrices or extending structured kernel interpolation (SKI) to higher dimensions.

Summary updated

BibTeX
@inproceedings{evans2018scalable,
  author = {Trefor W. Evans and Prasanth B. Nair},
  title = {{Scalable Gaussian Processes with Grid-Structured Eigenfunctions (GP-GRIEF)}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SJ4ixobdZr},
}
Figure