Spike and Slab Gaussian Process Latent Variable Models

Zhenwen Dai, James Hensman, Neil D. LawrencearXiv 2015

Abstract

The Gaussian process latent variable model (GP-LVM) is a cornerstone of non-linear probabilistic dimensionality reduction. However, determining the optimal number of latent variables remains a significant challenge. Traditional methods rely on Automatic Relevance Determination (ARD) through length-scale thresholding, a heuristic that often struggles to distinguish between smooth signals and irrelevant dimensions. This paper introduces a spike and slab prior for the GP-LVM, coupled with an efficient variational inference procedure. This approach provides a principled mechanism for latent dimension selection. We further extend this framework to multi-view Gaussian processes (Manifold Relevance Determination), allowing for explicit identification of shared and private latent spaces. Our model demonstrates superior performance on synthetic benchmarks, MNIST classification, and cross-modal multimedia retrieval tasks.

Introduction

Dimensionality reduction is essential for interpreting high-dimensional datasets. The GP-LVM provides a flexible, non-linear framework for this task, but its effectiveness is often hampered by the "Goldilocks" problem: selecting the correct number of latent dimensions ($Q$). Choosing too few loses information; choosing too many introduces noise and complicates interpretation.

Traditionally, researchers use ARD, where dimensions with very large length-scales are considered irrelevant. In practice, this requires manual thresholding and fails when a relevant signal is simply very smooth. This work proposes replacing this "soft" switching with a probabilistic "hard" switch using a spike and slab prior.

Methodology: The Spike and Slab Prior

The core innovation is the introduction of a binary variable $b \in \{0, 1\}^Q$ for each latent dimension. The latent variable $X$ is multiplied element-wise by $b$. When $b_q = 0$, the dimension is effectively removed from the covariance calculation (the "spike"). When $b_q = 1$, the dimension is active (the "slab").

Graphical representation of the GP-LVM (a) and the extended Spike and Slab Manifold Relevance Determination (SSMRD) model (b).

Variational Inference

Because integrating out these binary variables is analytically intractable, we derive a closed-form variational lower bound for the log marginal likelihood. We employ a structured mean-field approximation that accounts for the conditional dependence between latent variables and their respective switches, ensuring the model can handle strong correlations during training.

Manifold Relevance Determination (MRD)

We extend the spike and slab prior to MRD, a framework for multi-view learning (e.g., paired images and text). In this context, the prior allows the model to explicitly determine which latent dimensions are shared across views and which are private to a single view, as illustrated in Figure 2(b) above.

Experimental Results

Synthetic Data Recovery

To validate the model, we tested it on synthetic data generated from three distinct signals: a sine wave, a cosine wave, and an exponential-cosine mixture. The model successfully recovered the underlying structures and correctly identified which signals were shared or private across different data views.

Synthetic signals (a) and the resulting latent structures (b) recovered by the model.

MNIST and Cross-Modal Retrieval

On the MNIST dataset, the model automatically identified that 6 to 10 dimensions were sufficient for high classification accuracy, proving that the posterior probability of the switch variables is a more reliable indicator of relevance than traditional length-scale thresholding.

In the Wikipedia image-text retrieval task, the Spike and Slab MRD (SSMRD) significantly outperformed existing state-of-the-art methods. For text-to-image queries, it achieved a Mean Average Precision (mAP) of 0.540, nearly doubling the performance of the previous best model (SCM at 0.273). This success highlights the model's ability to effectively disentangle shared information in complex, multi-modal settings.

Conclusion

The spike and slab GP-LVM offers a robust, principled alternative to heuristic dimensionality selection. By automating the selection of relevant features and providing an interpretable metric for dimension usage, it enhances both the performance and clarity of non-linear dimensionality reduction. Future work may explore incorporating semi-supervised labels or structural priors like Infinite Binary Processes to further automate the learning of latent components.

Summary updated

BibTeX
@misc{dai2015spike,
  author = {Zhenwen Dai and James Hensman and Neil D. Lawrence},
  title = {{Spike and Slab Gaussian Process Latent Variable Models}},
  year = {2015},
  eprint = {1505.02434},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.02434},
}
Figure