Actually Sparse Variational Gaussian Processes

Harry Jake Cunningham, Daniel Augusto de Souza, So Takao, Mark van der Wilk, Marc Peter Deisenroth

Abstract

Gaussian Processes (GPs) are the gold standard for non-parametric modeling and uncertainty quantification, yet their $O(N^3)$ computational complexity limits their application to large datasets. While sparse GP approximations reduce this complexity to $O(NM^2 + M^3)$, they remain computationally prohibitive when a high number of inducing points ($M$) is required to capture fine-scale details. We introduce Actually Sparse Variational Gaussian Processes (AS-VGP), a method that projects the GP onto B-spline basis functions. Due to the compact support of B-splines, the resulting covariance matrices are band-diagonal, enabling linear scaling in $M$. AS-VGP allows for the use of tens of thousands of inducing variables, providing significant speedups and improved accuracy on large-scale regression tasks.

Introduction

Gaussian Processes are highly valued for their ability to provide robust uncertainty estimates. However, they suffer from a classic scaling problem where computational costs grow cubically with the number of data points. The standard solution, the Sparse GP, uses a set of $M$ "inducing points" to summarize the data, reducing complexity. However, for "wiggly" data with low lengthscales, a massive number of inducing points is required. When $M$ exceeds 10,000, even these sparse approximations become prohibitively expensive in terms of memory and compute. Previous inter-domain methods helped but still resulted in dense matrices that failed to fully exploit the potential for true sparsity.

Methods

AS-VGP introduces a novel approach by utilizing B-spline basis functions for inter-domain induction. The method relies on two key properties:

  1. RKHS Projections: Instead of selecting points in the input space, the GP is projected onto a set of B-splines.
  2. Compact Support: B-splines are only non-zero over a very small local interval. This "compact support" ensures that basis functions only overlap with their immediate neighbors.
B-spline basis functions with compact support used for inter-domain induction.

As a result of this local overlap, the covariance matrices ($K_{uu}$ and $K_{uf}$) are band-diagonal. By utilizing specialized solvers for banded matrices, AS-VGP reduces the $O(M^3)$ bottleneck to $O(M)$, allowing the model to handle an order of magnitude more inducing variables than traditional methods.

Key Insights: "Actually" Sparse

Most "sparse" GP methods are only sparse in the sense that $M < N$; the underlying matrices remain dense. AS-VGP is sparse in the matrix sense. This sparsity is transformative for memory management: for a massive ocean dataset, the cross-covariance matrix $K_{uf}$ is reduced from a 149 GB dense representation to a mere 216 MB using AS-VGP.

Sparsity patterns of the covariance matrices $K_{uu}$, $K_{uf}$, and the product $K_{uf}K_{fu}$ demonstrating the banded structure.

This decoupling of $N$ and $M$ means that once the sparse matrix product $K_{uf}K_{fu}$ is pre-computed (scaling linearly with $N$), the cost of optimization depends only on $M$. This enables extremely fast iterations and allows the model to capture local spatial phenomena more efficiently than global methods like Fourier features.

Key Results and Scalability

The authors evaluated AS-VGP across various benchmarks, including UCI regression datasets and large-scale spatial models like the eNATL60 ocean model. Key findings include:

  • Speedup: On a 2-million-point household dataset, AS-VGP trained in under 6 seconds, making it over 30 times faster than standard Stochastic Variational GPs (SVGP).
  • Scalability: The implementation successfully ran models with up to 30,000 inducing variables on a single GPU—a feat that typically crashes standard GP implementations due to memory limits.
  • Accuracy: In sea surface height experiments, AS-VGP captured fine-scale structures that other methods were forced to smooth over.

Limitations and Future Work

Despite its advantages, AS-VGP faces the "curse of dimensionality." Using a tensor product of B-splines leads to an exponential explosion of basis functions as the number of dimensions increases. While additive structures can mitigate this, a general high-dimensional solution is still needed. Additionally, the current implementation is specifically tailored to the Matérn class of kernels. Future research may explore basis functions defined on simplices to handle higher dimensions without the exponential overhead of grids.

Summary updated

BibTeX
@inproceedings{cunningham2023actually,
  author = {Harry Jake Cunningham and Daniel Augusto de Souza and So Takao and Mark van der Wilk and Marc Peter Deisenroth},
  title = {{Actually Sparse Variational Gaussian Processes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=ZiF5XLbf0C},
}
Figure