Sparse Gaussian Processes using Pseudo-inputs

Edward Snelson, Zoubin GhahramaniNeurIPS 2005

Introduction

Gaussian Processes (GPs) are widely considered the "gold standard" for Bayesian regression because they provide excellent, mathematically grounded uncertainty estimates. However, they suffer from a severe computational tax: standard GPs require inverting a covariance matrix, a process that scales cubically with the number of data points ($O(N^3)$). For a dataset of 10,000 points, this is painfully slow; for 1,000,000 points, it is computationally impossible.

To address this bottleneck, this paper introduces Sparse Pseudo-input Gaussian Processes (SPGP). SPGP is a novel method that slashes training costs by using a small set of "pseudo-inputs"—synthetic data points that do not have to be part of the original dataset—which are optimized using gradient descent to efficiently represent the entire dataset.

The Problem with Previous Sparse Methods

Previous attempts to create sparse GPs typically relied on picking a subset of the actual training data (an "active set") to represent the whole. The fundamental flaw in this approach is that choosing which points to include is a discrete, combinatorial process.

This discrete selection creates a "jittery" marginal likelihood surface full of cliffs and valleys. Consequently, it becomes nearly impossible to use standard gradient-based optimization to find the best model hyperparameters (like length-scales), forcing researchers to rely on greedy, suboptimal selection algorithms.

The SPGP Method

The authors propose a new model where the covariance is parameterized by $M$ pseudo-inputs, where $M \ll N$.

  • Continuous Optimization: Unlike previous methods that restricted themselves to a discrete subset of the training data, SPGP treats the locations of these $M$ pseudo-points as continuous variables. They can be moved anywhere in the input space.
  • Joint Optimization: Because the pseudo-input locations are continuous, the authors can use standard gradient ascent to optimize the locations of the points and the kernel hyperparameters simultaneously in one smooth process.
  • Computational Efficiency: This approach reduces the training cost to $O(M^2N)$ and the prediction cost per test case to $O(M^2)$.
  • The "Secret Sauce": The authors identify a specific diagonal correction term ($\Lambda$) in their marginal likelihood. They demonstrate that without this term, gradient descent gets "stuck" because the noise model fails to properly account for the distance between the synthetic pseudo-inputs and the real data.
Comparison of GP methods showing predictive mean and variance. Pseudo-inputs (crosses) can be optimized continuously to capture the underlying function smoothly.

Key Insights

By moving from discrete selection to continuous optimization, the authors successfully turned a combinatorial nightmare into a standard calculus problem.

The pseudo-inputs act as a highly compressed representation of the data. Interestingly, the model sometimes performs best when pseudo-inputs are placed outside the range of the actual data, allowing them to better capture the underlying function's shape. Furthermore, SPGP can be viewed as a standard GP with a specific type of non-stationary, input-dependent noise, making it more flexible than a standard GP in regions where data is sparse.

Experimental Validation

The model was evaluated on standard regression benchmarks, including kin-40k (forward kinematics of a robot arm) and pumadyn-32nm (robot arm dynamics).

  • Superior Sparsity: SPGP significantly outperformed other sparse methods (like "info-gain" or "random subset" selection) when the number of points $M$ was very small.
  • Matching the Full GP: On the kin-40k dataset, SPGP achieved the exact same accuracy as a full GP trained on 2,000 points using only a few hundred pseudo-inputs.
  • Better Hyperparameters: Because the optimization landscape is smooth, SPGP finds vastly superior kernel hyperparameters compared to methods that attempt to learn them while greedily picking data subsets.

Limitations and Future Directions

While powerful, SPGP has a few limitations:

  1. Local Optima: Like all gradient-based non-convex optimization techniques, SPGP can get stuck in local optima. Proper initialization (e.g., starting pseudo-inputs at random data points) is crucial for good performance.
  2. High Dimensionality: As the number of input dimensions ($D$) increases, the number of parameters to optimize ($M \times D$) grows rapidly. This can make the optimization process significantly more expensive and difficult in high-dimensional spaces.
  3. Scope: The current paper focuses strictly on regression. Extending the pseudo-input framework to classification tasks remains a natural and promising next step.

Summary updated

BibTeX
@inproceedings{snelson2005sparse,
  author = {Edward Snelson and Zoubin Ghahramani},
  title = {{Sparse Gaussian Processes using Pseudo-inputs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2005},
  url = {https://openreview.net/forum?id=r1-txPbu-r},
}
Figure