Efficient Bayesian Inference for a Gaussian Process Density Model

Christian Donner, Manfred OpperUAI 2018

Introduction

Density estimation—the process of inferring an underlying probability distribution from a set of observed data points—is a cornerstone of statistical modeling. Gaussian Processes (GPs) are frequently employed for this task due to their inherent flexibility and non-parametric nature. However, applying GPs to density estimation presents significant challenges. Specifically, the requirement that a density must integrate to unity (the normalization constraint) and the non-conjugacy introduced by squashing functions (like the sigmoid) typically render the posterior distribution analytically intractable.

Methodology: The Triple-Augmentation Scheme

To overcome these hurdles, researchers at TU Berlin have proposed a novel framework that achieves conjugacy through a "triple-augmentation" strategy. This approach transforms the complex likelihood into a form that is conjugate to the GP prior, allowing for efficient Bayesian inference.

  1. The Denominator Trick: The normalization integral is moved into an exponent using a mathematical identity, effectively treating the scaling factor as a latent Gamma-distributed variable.
  2. The Pólya-Gamma Trick: By utilizing the Pólya-Gamma representation of the sigmoid function, the non-linear likelihood is reformulated as a scale mixture of Gaussians. This ensures the likelihood plays nicely with the Gaussian Process prior.
  3. The Marked Poisson Process: To address the dependency of the density on GP values across the entire domain, the normalization term is represented as a Poisson process. A "thinning" technique is then applied to reduce this infinite-dimensional problem to a manageable, finite one.

Inference Algorithms

The augmentation scheme enables two primary inference methods:

  • Gibbs Sampler: An exact Markov Chain Monte Carlo (MCMC) method that draws samples from the true posterior distribution.
  • Variational Bayes (VB): A scalable approximation that utilizes sparse GP techniques (inducing points). This method scales linearly with the number of data points, making it suitable for large datasets.

Experimental Evaluation

The framework was tested across a variety of datasets, ranging from synthetic 1D/2D distributions to high-dimensional real-world data. A notable benchmark was the "Circle" dataset—100 points arranged in a ring with added noise—which tests a model's ability to capture non-Gaussian geometries.

Comparison of density estimation methods on the circle dataset.

As shown in the figure above, both the Gibbs and VB implementations of the GP density model successfully capture the ring structure, whereas Kernel Density Estimation (KDE) produces a noisy, overfitted result, and Gaussian Mixture Models (GMM) fail to represent the hollow center.

Results and Discussion

The Variational Bayes approach offers a dramatic improvement in computational efficiency. In 2D tests, the Gibbs sampler required over 20 minutes to converge, while the VB algorithm reached a nearly identical solution in just 1.8 seconds.

Test log-likelihood comparison between Variational Bayes (VB) and Gibbs sampling.

Quantitative results confirm that the VB approximation maintains a test log-likelihood very close to the exact Gibbs sampler. Furthermore, on high-dimensional datasets like the Thyroid (6D) and Wine (9D) sets, the VB approach improved log-likelihood by up to 8.9% over a standard GMM base measure. This suggests that the GP effectively learns the residual structure that simpler parametric models miss.

Conclusion

By combining latent variable augmentation with sparse Gaussian Processes, this work provides a scalable and mathematically elegant solution for GP density estimation. While the method faces challenges in extremely high-dimensional spaces due to the inefficiencies of importance sampling, it represents a significant step forward in making flexible Bayesian density models practical for real-world applications.

Summary updated

BibTeX
@inproceedings{donner2018efficient,
  author = {Christian Donner and Manfred Opper},
  title = {{Efficient Bayesian Inference for a Gaussian Process Density Model}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2018},
}
Figure