Variational Gaussian Processes with Decoupled Conditionals

Xinran Zhu, Kaiwen Wu, Natalie Maus, Jacob R. Gardner, David Bindel

TL;DR

Gaussian Processes (GPs) are excellent for predicting data with built-in uncertainty, but they scale poorly to large datasets. To fix this, researchers use sparse approximations, but these often sacrifice too much accuracy. This paper introduces a simple, computationally cheap tweak—"decoupling" the parameters used to predict the mean from those used to predict the variance—which significantly boosts model accuracy and calibration across regression and Bayesian optimization tasks.

The Bottleneck in Sparse GPs

Exact Gaussian Processes scale cubically ($O(n^3)$) with the number of data points, making them practically useless for large modern datasets. To get around this, the standard approach is to use Variational Sparse GPs (SVGPs). These models use a small set of "inducing points"—essentially a summarized, representative handful of data points—to approximate the full dataset, dropping the computational cost dramatically.

However, there is a catch: if you use too few inducing points, the model lacks expressiveness and underfits the data. If you add more inducing points to fix the accuracy, your computational costs shoot back up.

The authors identify a specific bottleneck in how these approximations are structured. In standard SVGPs, the predictive mean (the actual prediction) and the predictive covariance (the uncertainty) are forced to share the exact same kernel hyperparameters (like lengthscale) and feature extractors. But in the real world, a function's value might fluctuate rapidly while its overall noise/uncertainty remains relatively stable. Forcing them to share parameters artificially limits the model.

Proposed Method: Decoupled Conditionals

The authors propose Variational GPs with Decoupled Conditionals. Instead of forcing the mean and covariance to share parameters, they decouple them, allowing the model to learn independent parameters for each.

They provide two concrete implementations of this idea:

  1. Decoupled Lengthscales (DCSVGP): In a standard GP, a "lengthscale" determines how smooth the function is. The authors split this into two: $l_{mean}$ to control the smoothness of the prediction, and $l_{covar}$ to control the smoothness of the uncertainty.
  2. Decoupled Deep Kernel Learning (SVGP-DCDKL): Deep Kernel Learning uses a neural network to extract features before feeding them into a GP. The authors decouple this by training two separate neural networks: one feature extractor for the mean, and one for the covariance.

To make this mathematically rigorous, the authors derive a new Evidence Lower Bound (ELBO) for variational inference. Because decoupling changes the underlying probability distributions, their new ELBO includes an extra expected KL divergence term ($\Omega$). This term acts as a regularizer, controlled by a hyperparameter $\beta_2$, which prevents the decoupled model from drifting too far from the exact mathematical GP conditional.

Comparison of standard SVGP and decoupled DCSVGP with 10 and 100 inducing points.

Key Insights

  • Mean and variance behave differently: As seen in the figure above, when allowed to decouple, the model naturally learned a smaller lengthscale for the mean (allowing it to be "wiggly" and fit the data closely) and a larger lengthscale for the covariance (keeping uncertainty estimates broad and smooth).
  • Expressiveness without the computational tax: Adding more inducing points scales cubically in cost. Adding an extra lengthscale parameter, or even a parallel neural network feature extractor, adds almost zero computational overhead but massively increases the model's flexibility.
  • Whitening matters: In variational inference, "whitening" is a mathematical trick used to make optimization easier. The authors found that for decoupled models, whitening based on the mean's parameters ("Q-whitening") works much better than the covariance's parameters because it keeps the final predictive distribution mathematically simpler for the optimizer to handle.

Experimental Results

The models were evaluated on a robust mix of benchmarks, including 10 UCI Regression Datasets (ranging up to 386,508 training examples and 380 dimensions) and 3 Bayesian Optimization (BO) tasks.

  • Superior Regression Accuracy: The decoupled models (DCSVGP and DCPPGPR) achieved the lowest Root Mean Square Error (RMSE) and Negative Log-Likelihood (NLL) on 8 out of the 10 UCI datasets compared to standard coupled baselines.
  • Better Deep Kernels: The decoupled neural network approach (SVGP-DCDKL) outperformed standard Deep Kernel Learning on 9 out of 10 datasets.
  • Improved Calibration: Decoupling doesn't just improve raw accuracy; it improves the quality of the uncertainty. The Wasserstein distance between the models' z-score distributions and a perfect standard Normal distribution dropped from 0.22 (standard) to 0.17 (decoupled), indicating better-calibrated uncertainty.
  • Bayesian Optimization Success: In all three BO tasks (Rover, Lunar, Ranolazine), the decoupled models consistently found better objective values than their standard counterparts.
Mean reward on the Rover Bayesian Optimization task comparing SVGP and DCSVGP.

Limitations and Future Work

  • Risk of Overfitting: The authors note that setting the regularization parameter ($\beta_2$) to $0$ usually yields the best results, but in rare cases (like the Elevators and Protein datasets), it can cause slight overfitting. Dialing $\beta_2$ up to a small value (like 0.1) resolves this.
  • Extreme Decoupling Fails: The authors experimented with completely replacing the GP mean with a standard neural network (NNSVGP). While this yielded fantastic RMSE (accuracy), it resulted in terrible NLL (uncertainty). This highlights that while decoupling parameters within the GP framework is highly beneficial, abandoning the GP framework for the mean entirely destroys the model's ability to gauge its own uncertainty.
  • Future Work: The authors suggest applying decoupled conditionals to a wider variety of SVGP-based models, exploring even more flexible forms of training/testing conditionals, and expanding the framework to classification tasks.

Summary updated

BibTeX
@inproceedings{zhu2023variational,
  author = {Xinran Zhu and Kaiwen Wu and Natalie Maus and Jacob R. Gardner and David Bindel},
  title = {{Variational Gaussian Processes with Decoupled Conditionals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nwK8UkK3uB},
}
Figure