Variational Gaussian Process Models without Matrix Inverses

Mark van der Wilk, S. T. John, Artem Artemev, James Hensman

Abstract: Gaussian Process (GP) models are widely regarded as the gold standard for principled uncertainty quantification. However, their computational complexity—specifically the $O(M^3)$ cost of matrix inversions and log-determinants—remains a significant bottleneck for scaling. This paper introduces a novel variational framework that eliminates the need for these expensive operations during training. By reparameterizing the variational distribution and employing stochastic matrix-vector products, the authors enable GPs to leverage the parallel architectures of modern GPUs and TPUs.

The Bottleneck of Matrix Inversion

While Sparse Gaussian Processes (SGPs) reduced the cubic complexity relative to the number of data points ($N$) to $O(NM^2)$ using $M$ inducing points, they still require a Cholesky decomposition of an $M \times M$ covariance matrix at every iteration. This $O(M^3)$ step is inherently serial and requires high-precision arithmetic, making it a poor fit for modern hardware. As researchers attempt to use larger sets of inducing points to capture complex data structures, this matrix operation becomes the primary scalability ceiling.

Methodology: Inverse-Free Variational Bounds

The authors propose two new variational lower bounds: the Log-Concave ($L_{lc}$) bound and the Fully Relaxed ($L_{fr}$) bound. Their approach circumvents matrix inversion through three key innovations:

  1. Reparameterization: The variational parameters (mean and covariance of inducing variables) are redefined so that the matrix inverse $K_{uu}^{-1}$ does not appear explicitly in the predictive mean.
  2. Variational Inverse Learning: To address the inverse in the predictive variance, the authors introduce a quadratic upper bound. A new variational parameter, $T$, is optimized to converge toward the true inverse of the covariance matrix ($K_{uu}^{-1}$).
  3. Stochastic KL Estimation: The Kullback-Leibler (KL) divergence term, which typically requires a log-determinant and a trace, is estimated stochastically. The trace is handled via the Hutchinson trace estimator, while the log-determinant gradient is estimated using ULISSE, a stochastic linear system solver. Crucially, the learned parameter $T$ acts as a preconditioner, allowing the solver to converge rapidly as training progresses.

Theoretical Insights: Optimization as Inversion

A central contribution of this work is the proof that the local optima of these new bounds are identical to those of standard variational GP objectives. Instead of explicitly calculating an inverse, the model "learns" it through the optimization process. Furthermore, the authors demonstrate that the variance of the gradient for the new bound vanishes as $T$ reaches the optimal inverse, suggesting increased stability in the later stages of training.

Experimental Validation

The proposed methods were evaluated on proof-of-concept tasks to verify their ability to recover standard GP solutions and scale to hierarchical models.

Empirical Recovery in 1D Regression

In 1D regression experiments, the inverse-free "Relaxed SVGP" (RSVGP) successfully recovered the exact posterior distribution of a standard Sparse GP (SVGP). This confirms that the reparameterization and stochastic estimation do not degrade the quality of the learned model.

Comparison of standard SVGP and the proposed RSVGP on a 1D toy dataset, showing identical posterior recovery.

Deep GP Compatibility

The framework is also compatible with hierarchical models. The authors successfully trained a two-layer Deep GP on a step function using the $L_{fr}$ bound. This demonstrates that the method can be used as a "drop-in" replacement for standard variational bounds in complex architectures.

A two-layer Deep Relaxed SVGP (DRSVGP) successfully modeling a step function using the Fully Relaxed (fr) bound.

Conclusion and Future Directions

By replacing $O(M^3)$ matrix operations with stochastic matrix-vector products, this work removes a major barrier to scaling Gaussian Processes. While the current implementation requires more iterations to converge due to the additional parameters in $T$, the theoretical equivalence to standard bounds is promising. Future work will focus on specialized optimization routines and software infrastructure to fully realize the speedups possible on parallel hardware.

Summary updated

BibTeX
@inproceedings{wilk2019variational,
  author = {Mark van der Wilk and S. T. John and Artem Artemev and James Hensman},
  title = {{Variational Gaussian Process Models without Matrix Inverses}},
  booktitle = {AABI},
  year = {2019},
}
Figure