Sparse within Sparse Gaussian Processes using Neighbor Information

Gia-Lac Tran, Dimitrios Milios, Pietro Michiardi, Maurizio Filippone

Gaussian Processes (GPs) are the "gold standard" for Bayesian regression and classification, prized for their ability to provide rigorous uncertainty estimates. However, they have a notorious Achilles' heel: computational complexity. Standard GPs scale at $O(N^3)$, where $N$ is the number of data points, making them unusable for modern "big data" applications.

In their paper "Sparse within Sparse Gaussian Processes using Neighbor Information," Tran et al. introduce a clever hierarchical approach that allows GPs to scale to millions of data points by using an unprecedented number of inducing variables without the typical cubic cost.

TL;DR

SWSGP (Sparse within Sparse GP) enables the use of a massive number of inducing points (up to 100,000) by only "activating" a small, local subset of them for any given data point. This breaks the $O(M^3)$ bottleneck of traditional sparse GPs, delivering state-of-the-art accuracy and massive speedups on datasets with millions of samples.

What Problem Does This Paper Address?

To solve the $O(N^3)$ scaling issue, researchers typically use Sparse GPs (SVGPs). These approximate the GP using $M$ "inducing points," reducing the cost to $O(M^3)$.

The catch? For complex, high-dimensional, or very large datasets, you need a large $M$ to get a good approximation. Once $M$ climbs into the thousands, the $O(M^3)$ cost becomes prohibitive again. Previous attempts to fix this often forced inducing points into rigid grid structures (which fail in high dimensions) or used local "experts" that can struggle with global consistency. Tran et al. sought a way to use a huge global set of inducing points while keeping the per-iteration computation extremely light.

Methods

The core innovation is a hierarchical sparsity-inducing prior.

  1. Binary Gating: The authors introduce a set of binary random variables $w \in \{0, 1\}^M$ that act as gates. If $w_i = 1$, the $i$-th inducing point is active; if $w_i = 0$, it is ignored.
  2. Neighbor Selection: Instead of treating $w$ as a fully latent variable to be learned, they use a "neighbor information" strategy. For any input $x$, they only activate the $H$ nearest inducing points ($H \ll M$).
  3. Variational Inference: They derive a novel Evidence Lower Bound (ELBO) that allows for mini-batch training. During training, for each sample in a mini-batch, only its $H$ local neighbors are updated.

This "Sparse within Sparse" strategy means that even if you have $M=100,000$ total inducing points, the computational cost is dominated by $H$ (typically 10–100). As shown below, this selection process doesn't actually change the underlying GP prior; it just changes how we efficiently approximate the posterior.

Figure 1: The choice of inducing points does not affect the prior samples drawn from p(f).

Datasets

The authors validated SWSGP across a wide range of benchmarks:

  • UCI Regression: POWERPLANT, KIN, PROTEIN.
  • UCI Classification: EEG, CREDIT, SPAM.
  • Large-scale Datasets: WAVE (250k samples), QUERY (190k samples), and the massive AIRLINE dataset (5 million samples).
  • Image Classification: Binary MNIST (odd vs. even digits).

Key Insights and Ideas

  • Local Computation, Global Model: SWSGP provides the best of both worlds. It maintains a single global model but performs computations locally. This avoids the discontinuities often seen in "divide-and-conquer" local GP methods.
  • Breaking the $M^3$ Barrier: By reducing the complexity to $O(n_B M H^2 + n_B H^3)$ (where $n_B$ is mini-batch size), the method allows $M$ to be orders of magnitude larger than previously possible.
  • Sparsity is Efficient: The paper reinforces the idea that sparsity isn't just a theoretical convenience—when implemented via neighbor information, it becomes a powerful tool for practical scalability.

Key Results

The performance gains are most dramatic as the number of inducing points $M$ increases:

  • Massive Scale: On the 5-million-point AIRLINE dataset, SWSGP used $M=100,000$ inducing points. It achieved a 21% error rate, significantly outperforming the 34% error rate of standard SVGP reported in prior literature.
  • Speed: On MNIST with $M=1024$, SWSGP was roughly twice as fast during training and over 10 times faster at test time compared to standard SVGP.
  • Accuracy: As seen in the performance benchmarks across multiple UCI datasets, SWSGP consistently reaches lower error rates (RMSE/ERR) and better log-likelihoods (MNLL) compared to standard SVGPs.
Figure 2: Performance comparison across UCI datasets showing SWSGP achieving competitive or superior RMSE and MNLL compared to standard SVGP.

Limitations and Future Work

  • Joint Covariances: The standard SWSGP formulation computes predictive distributions for individual test points. It does not naturally provide the full covariance matrix across multiple test points. The authors propose a "union" version (SWSGP-U) to address this, but it introduces some batch-size dependency at test time.
  • Nearest Neighbor Overhead: While the $O(M^3)$ cost is gone, there is still an $O(MH)$ cost for finding neighbors. For extremely large $M$, the authors suggest that approximate nearest neighbor (ANN) search might be necessary.
  • Fixed Inducing Inputs: In the largest experiments ($M=100k$), the inducing point locations were fixed rather than optimized to save memory and computation. Future work could explore efficient ways to move these points in such a massive space.

Summary updated

BibTeX
@inproceedings{tran2021sparse,
  author = {Gia-Lac Tran and Dimitrios Milios and Pietro Michiardi and Maurizio Filippone},
  title = {{Sparse within Sparse Gaussian Processes using Neighbor Information}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=_202ulHKZH},
}
Figure