Implicit Posterior Variational Inference for Deep Gaussian Processes

Haibin Yu, Yizhou Chen, Zhongxiang Dai, Kian Hsiang Low, Patrick JailletNeurIPS 2019

Overview

This paper introduces Implicit Posterior Variational Inference (IPVI), a framework that brings the flexibility of Generative Adversarial Networks (GANs) to Deep Gaussian Processes (DGPs). By casting inference as a two-player game, IPVI recovers accurate, non-Gaussian posterior beliefs while maintaining the computational efficiency of deterministic methods. This approach effectively outperforms state-of-the-art stochastic and deterministic alternatives.

The Challenge of Deep Gaussian Processes

Gaussian Processes (GPs) are powerful Bayesian models, but they struggle with complex, non-linear data. Deep Gaussian Processes (DGPs) solve this by stacking GPs in layers, significantly boosting expressive power. However, DGPs come with a major hurdle: inference is intractable.

Current solutions generally fall into two camps, both with notable flaws:

  1. Deterministic Approximations (e.g., DSVI): These methods are fast but "biased." They typically assume the posterior distribution of the model's hidden variables is Gaussian. In reality, DGP posteriors are often highly non-Gaussian (skewed or multi-modal), leading to poor predictive performance.
  2. Stochastic Approximations (e.g., SGHMC): These use Markov Chain Monte Carlo (MCMC) sampling to find the "true" posterior. While accurate (unbiased), they are painfully slow because they generate samples sequentially and are notoriously difficult to tune.

The authors seek the "best of both worlds": a method that is as accurate as MCMC but as fast as variational inference.

Methods: Implicit Posterior Variational Inference

The core innovation is IPVI. Instead of forcing the posterior to look like a Gaussian, the authors use an implicit distribution—one that we can sample from but don't have a closed-form equation for.

The GAN Connection

Inspired by GANs, the authors treat the inference problem as a two-player game:

  • The Generator: A black-box neural network that takes random noise and produces samples representing the posterior belief of the inducing variables.
  • The Discriminator: A second network that tries to distinguish between samples from the model's prior and samples from the generator (the variational posterior).
Two-player game algorithms for IPVI

The authors prove that the Nash equilibrium of this game—where neither player can improve their position—coincides exactly with the unbiased posterior belief that maximizes the Evidence Lower Bound (ELBO).

Parameter-Tying Architecture

To prevent the model from overfitting and to keep it computationally lean, the authors propose a parameter-tying architecture. Instead of having a separate set of parameters for every single inducing variable, they share parameters across the generator and discriminator. This reduces the parameter count by a factor of $M$ (the number of inducing points), making the model much more scalable.

Parameter-tying architecture for the generator and discriminator

Key Insights and Ideas

  • Escaping the "Gaussian Trap": The paper highlights that the common assumption of a Gaussian posterior in DGPs is a major bottleneck. By allowing for "implicit" (arbitrarily complex) posteriors, the model can capture multi-modality that standard methods miss.
  • Nash Equilibrium as Inference: The theoretical link between game theory (Nash equilibria) and Bayesian inference (ELBO maximization) provides a principled way to use adversarial training for probabilistic modeling.
  • Efficiency through Parallelism: Unlike MCMC methods that must sample one-by-one, the IPVI generator can produce thousands of posterior samples in parallel on a GPU. This resulted in sample generation being 500 times faster than SGHMC.
  • Inducing Input Dependency: The authors found that feeding the inducing inputs ($Z$) directly into the generator was vital for accurately capturing the dependency structure of the DGP layers.

Experimental Results

The authors evaluated IPVI across a diverse range of benchmarks, including synthetic datasets, UCI regression tasks, large-scale regression (YearMSD, Airline), classification (MNIST, CIFAR-10), and unsupervised learning (FreyFace).

  • Superior Accuracy: IPVI generally achieved higher Mean Log-Likelihood (MLL) and better test accuracy than both DSVI and SGHMC across almost all regression and classification tasks.
  • Massive Speedups: On the massive Airline dataset (2 million points), IPVI was 9 times faster to train per iteration than SGHMC.
  • Handling Multi-modality: In the FreyFace reconstruction task, IPVI successfully captured multiple possible facial expressions (e.g., "happy" vs. "calm") from partial data, whereas Gaussian methods could only find a single, blurred average.
  • Depth Benefits: For large datasets, IPVI showed consistent performance gains as the number of layers increased, proving it can effectively train deep architectures without the usual "bias" penalties.

Limitations and Future Work

While highly effective, IPVI has a few limitations. First, while the authors use "Best-Response Dynamics" to find the Nash equilibrium, they acknowledge that this doesn't guarantee convergence in all types of games (though it worked reliably in their experiments). Second, like GANs, adversarial training can be sensitive to learning rates.

Looking ahead, the authors plan to extend IPVI to Active Learning and Bayesian Optimization, where representing uncertainty accurately is critical. They also aim to develop distributed versions of the algorithm for even larger-scale deployment.

Summary updated

BibTeX
@inproceedings{yu2019implicit,
  author = {Haibin Yu and Yizhou Chen and Zhongxiang Dai and Kian Hsiang Low and Patrick Jaillet},
  title = {{Implicit Posterior Variational Inference for Deep Gaussian Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=T5Lhhai4bu},
}
Figure