Stein Variational Gaussian Processes

Thomas Pinder, Christopher Nemeth, David LesliearXiv 2020

TL;DR

This paper introduces Stein Variational Gradient Descent (SVGD) as a powerful, non-parametric inference method for Gaussian Processes (GPs). SVGD offers a compelling alternative to computationally intensive MCMC and restrictive VI methods, particularly for complex, multi-modal posteriors and large datasets, achieving comparable or superior performance with significant speedups.

What Problem Does This Paper Address?

Gaussian Processes (GPs) are flexible models for regression and classification, but fitting them to large datasets or non-Gaussian likelihoods presents significant computational challenges. Traditional methods like Markov Chain Monte Carlo (MCMC) are too slow for large-scale problems. Variational Inference (VI) offers a speedup but often relies on restrictive parametric assumptions about the posterior distribution, leading to inaccurate results when the true posterior is multi-modal. This paper addresses the need for an inference method that is both computationally efficient and flexible enough to handle complex, non-Gaussian posteriors without making strong parametric assumptions.

Methods

The core contribution is the application of Stein Variational Gradient Descent (SVGD) to Gaussian Processes. SVGD is a non-parametric variational inference technique that uses a set of "particles" to approximate a target distribution. Unlike traditional VI, SVGD does not assume a specific form (like Gaussian) for the approximating distribution. Instead, it iteratively updates these particles to minimize the Kullback-Leibler (KL) divergence between the particle distribution and the true posterior.

Key aspects of their SVGD approach for GPs include:

  • Non-parametric VI: SVGD avoids the restrictive parametric assumptions of traditional VI.
  • Particle-based: It maintains a set of particles that are transformed to approximate the posterior.
  • Score function-based: The updates rely on the score function of the posterior, which is invariant to the normalization constant, making it suitable for large datasets.
  • Theoretical Guarantees: The paper proves that SVGD monotonically decreases the KL divergence, ensuring convergence.
  • Scalability: The method is designed to be scalable to large datasets, leveraging subsampling techniques.

Datasets

The paper evaluates their method on a variety of datasets:

  • UCI Datasets: 19 datasets were used for regression and classification tasks, ranging in size and dimensionality.
  • Multimodal Example: A synthetic 1-dimensional dataset was generated to specifically test the model's ability to handle multi-modal posteriors.
  • Air Quality Dataset: A large-scale spatiotemporal dataset of NO2 measurements across the UK (550,134 data points) was used to demonstrate scalability and performance on real-world, complex data.

Key Insights and Ideas

  • SVGD bridges the gap: SVGD offers a sweet spot between the accuracy of MCMC and the speed of VI, especially for complex posteriors.
  • Flexibility is key for multi-modality: The non-parametric nature of SVGD allows it to capture multi-modal posteriors, which are often missed by traditional VI, leading to more accurate uncertainty quantification.
  • Scalability without sacrificing accuracy: The method demonstrates that it's possible to perform full Bayesian inference on very large datasets without resorting to approximations that sacrifice posterior quality.
  • Particle repulsion is crucial: The "repulsion" term in the SVGD update helps particles spread out and explore different modes of the posterior, preventing them from collapsing into a single region.

Key Results

  • Performance on UCI Datasets: SteinGP (SVGD-based GP) significantly outperformed comparative methods (VI, ML, HMC) on most UCI datasets in terms of test log-likelihood. Increasing the number of particles generally improved performance.
  • Multimodal Inference: SVGD successfully captured the bimodal posterior in the synthetic example, whereas HMC's inferred posterior appeared to explore only a single mode. This led to better predictive performance (lower RMSE) for SVGD.
  • Large-scale Air Quality Data: For the UK air quality dataset, SteinGP achieved comparable predictive performance to stochastic VI but provided richer posterior inference and more accurate uncertainty quantification, especially in regions with sparse observations.
  • Computational Efficiency: SVGD was significantly faster than HMC and comparable to VI, making it practical for large-scale problems. For instance, on the air quality dataset, a single HMC step took over 10 minutes, making a full HMC comparison infeasible.

Limitations and Future Work

  • Number of Particles: While SVGD is more efficient than MCMC, the number of particles still influences performance and computational cost. The paper suggests that for simple problems, few particles suffice, but complex posteriors may require more.
  • Kernel Choice: The paper uses an RBF kernel for the SVGD step itself, independent of the GP's kernel. Further research could explore optimal choices for this SVGD kernel.
  • Theoretical Extensions: The paper provides a theoretical guarantee for KL divergence decrease. Further work could explore more rigorous theoretical analyses of SVGD for GPs, especially concerning convergence rates and properties in complex scenarios.
  • Broader Applications: While demonstrated on GPs, the SVGD framework itself is general and could be applied to other complex probabilistic models.

Summary updated

BibTeX
@misc{pinder2020stein,
  author = {Thomas Pinder and Christopher Nemeth and David Leslie},
  title = {{Stein Variational Gaussian Processes}},
  year = {2020},
  eprint = {2009.12141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.12141},
}
Figure