Generalised Gaussian Process Latent Variable Models (GPLVM) with Stochastic Variational Inference

Vidhi Lalchand, Aditya Ravuri, Neil D. LawrencearXiv 2022

TL;DR

This paper introduces a scalable framework for Bayesian Gaussian Process Latent Variable Models (GPLVMs) by leveraging stochastic variational inference (SVI). By employing a doubly stochastic evidence lower bound (ELBO), the authors enable mini-batch training and high-fidelity reconstruction even in the presence of massively missing data, outperforming traditional point-estimation methods.

What Problem Does This Paper Address?

Dimensionality reduction is a cornerstone of unsupervised learning, helping us find low-dimensional "latent" structures in high-dimensional data. Gaussian Process Latent Variable Models (GPLVMs) are powerful because they provide a non-linear, probabilistic mapping. However, they face two major hurdles:

  1. Scalability: The standard Bayesian formulation involves a marginal likelihood that doesn't factorize across data points, making it impossible to use mini-batches. This limits the model to small or medium-sized datasets.
  2. Missing Data: Real-world datasets (like medical records or sensor logs) are often riddled with missing values. Most parametric models struggle when a large percentage of features are absent.

The authors aim to bridge these gaps, creating a "Generalised GPLVM" that scales to big data, handles non-Gaussian noise (like counts), and remains robust even when most of the data is missing.

Methods

The core innovation is the application of Stochastic Variational Inference (SVI) to the Bayesian GPLVM. The authors re-formulate the model using a doubly stochastic lower bound (DS-ELBO).

The "doubly stochastic" nature comes from two sources of noise:

  1. Mini-batching: Estimating gradients using a subset of the data.
  2. Sampling: Using the reparameterization trick to sample from the variational distribution of the latent variables ($X$).

The paper compares four distinct incarnations of the model:

  • Point: A sparse GPLVM using point estimates for latent variables.
  • MAP: Similar to Point, but with a prior over the latents to reduce overfitting.
  • B-SVI (Bayesian SVI): The authors' primary contribution, which treats latent variables as distributions and optimizes an uncollapsed lower bound.
  • AEB-SVI (Autoencoded Bayesian SVI): An amortized version where a neural network (encoder) maps data points directly to latent distributions, similar to a Variational Autoencoder (VAE) but with a GP decoder.
Figure 1: A taxonomy of latent variable models for unsupervised dimensionality reduction along three axis of variation. 1) the form of the latent variable, 2) the nature of the decoder and 3) whether or not the mod- els are autoencoding. The framework in this work is amenable with point estimation and Bayesian learning as well as amortisation.

Datasets

The authors evaluated their framework across a diverse set of benchmarks:

  • Oilflow: 1,000 12-dimensional points representing pipeline flow phases.
  • qPCR: 450 48-dimensional single-cell gene expression data points.
  • NYC Taxi-cab: Hourly vehicle counts (Poisson likelihood) for three taxi types.
  • MNIST & Brendan Faces: Image datasets used to test reconstruction with up to 60% missing pixels.
  • CMU MOCAP: Human motion capture data (walking, running, jumping) to test structural missingness (e.g., missing an entire limb).
  • MovieLens100K: An extremely sparse ratings matrix (93.8% missing entries).

Key Insights and Ideas

  • Automatic Regularization: Unlike point-estimate models that use every available latent dimension (overfitting), the Bayesian models (B-SVI and AEB-SVI) exhibit Automatic Relevance Determination (ARD). They naturally "prune" unnecessary dimensions by assigning them very long lengthscales, effectively discovering the true intrinsic dimensionality of the data.
  • Elegance in Missingness: Because GPs are defined by their covariance, they handle missing dimensions through simple marginalization. In the SVI framework, this translates to simply summing the ELBO over only the observed dimensions for each data point. This allows the model to learn from "massively missing" data where different points have different observed features.
  • Non-Gaussian Flexibility: By keeping the inducing variables ($U$) uncollapsed, the framework easily accommodates non-conjugate likelihoods, such as Poisson distributions for count data, without needing complex analytical approximations.
Figure 2: Left: Graphical model of the collapsed bound formulation of the Bayesian GPLVM. Middle: B-SVI where we learn individual parameters for each latent point. Right: AEB-SVI where the parameters for each latent point are deterministically derived by encoding the data point with the amortising neural network.

Key Results

  • Reconstruction Accuracy: On the Oilflow dataset, AEB-SVI achieved a Test RMSE of 0.067, significantly lower than the Point model's 0.341.
  • Uncertainty Quantification: The Bayesian models showed superior Negative Log Predictive Density (NLPD) scores. For example, on MOCAP data, B-SVI achieved an NLPD of 2275.0, while the Point model exploded to 35472.5, indicating the latter was wildly overconfident in its errors.
  • Robustness to Missing Data: In MNIST experiments, the model could disentangle digit classes even with 60% of pixels missing. In MOCAP experiments, it successfully reconstructed missing limbs by learning the underlying correlations of human motion.
ELBO loss and latent space disentanglement for MNIST digits with varying degrees of missing pixels.

Limitations and Future Work

  • Computational Overhead: While AEB-SVI offers $O(1)$ test-time predictions, the authors noted it is roughly 2x slower during training compared to B-SVI because the encoder weights are global parameters that must be updated at every iteration.
  • Optimization Challenges: Assessing convergence for doubly stochastic objectives is difficult. The authors noted that learning rate and batch size must be carefully tuned to manage the variance of the ELBO.
  • Complex Latent Distributions: While this work uses Gaussian variational families, the authors suggest that future work could integrate Normalizing Flows to capture more complex, non-Gaussian posterior distributions in the latent space.

Summary updated

BibTeX
@misc{lalchand2022generalised,
  author = {Vidhi Lalchand and Aditya Ravuri and Neil D. Lawrence},
  title = {{Generalised Gaussian Process Latent Variable Models (GPLVM) with Stochastic Variational Inference}},
  year = {2022},
  eprint = {2202.12979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.12979},
}
Figure