Latent variable modeling with random features

Gregory W. Gundersen, Michael Minyi Zhang, Barbara E. Engelhardt

Introduction

Dimension reduction is a fundamental task in data science, yet traditional methods often struggle with the complexities of real-world data. Classic techniques like Principal Component Analysis (PCA) or Factor Analysis typically assume Gaussian-distributed data and linear relationships between latent structures and observations. In domains such as neuroscience, these assumptions are frequently violated; for instance, neural activity often manifests as discrete count data (spikes) following highly nonlinear biological manifolds.

To address these challenges, researchers presented Random Feature Latent Variable Models (RFLVMs) at AISTATS 2021. This framework leverages Random Fourier Features (RFFs) to linearize the mapping between latent spaces and observations, offering a computationally tractable approach to nonlinear dimension reduction for diverse data types.

The Challenge of Non-Gaussian Likelihoods

While Gaussian Process Latent Variable Models (GPLVMs) were developed to handle nonlinearity, they encounter significant mathematical hurdles when paired with non-Gaussian likelihoods (e.g., Poisson or Binomial). In such cases, the mapping function cannot be easily integrated out, leading to intractable optimization problems and a propensity for poor local optima. RFLVMs circumvent this by "linearizing" the problem.

Methodology: Linearization via Random Features

The core innovation of the RFLVM is the use of Random Fourier Features to approximate the kernel within a GPLVM framework.

  1. Linearization: By approximating a nonlinear kernel (such as the Radial Basis Function) with a finite set of random features, the authors transform a complex nonlinear GP problem into a high-dimensional linear regression problem.
  2. Closed-form Gradients: This linearization allows for the derivation of closed-form gradients for the posterior distribution, significantly stabilizing Maximum A Posteriori (MAP) estimation.
  3. Modular Inference: The framework utilizes Gibbs sampling. For "logistic-style" likelihoods, the authors employ Pólya-gamma augmentation to maintain conjugacy and ensure efficient sampling.
  4. Data-Driven Kernels: Rather than relying on fixed kernels, RFLVMs can use a Dirichlet Process Mixture Model (DP-GMM) prior on random feature frequencies, allowing the model to learn the kernel's shape directly from the data.
Figure 1: Comparison of RFLVM and GPLVM performance on an S-curve manifold. The plots show function estimation, MSE convergence with increasing random features (M), and kernel recovery.

Experimental Evaluation

The authors evaluated RFLVM across several data modalities, including simulated S-shaped manifolds, hippocampal place cell recordings from rats, MNIST/CIFAR-10 images, and various text/tabular datasets.

Key Results

  • Manifold Recovery: In Poisson-noise simulations, RFLVM successfully recovered the original S-curve manifold, whereas linear methods (PCA, NMF) and even some deep learning approaches (VAEs) struggled or produced collapsed representations.
  • Competitive Performance: On neural data, RFLVM matched the performance of specialized state-of-the-art models (like DLA-GPLVM) in reconstructing spatial positions but within a more generalizable framework.
  • Classification Accuracy: In KNN classification tasks across eight datasets, Poisson and Negative Binomial RFLVMs consistently outperformed linear baselines, demonstrating the importance of selecting appropriate likelihoods for non-Gaussian data.
Figure 5: Manifold recovery comparison across various dimension reduction techniques. RFLVM demonstrates superior ability to reconstruct the true S-curve compared to many standard baselines.

Discussion and Future Work

RFLVMs provide a powerful "plug-and-play" framework for nonlinear dimension reduction. By projecting data into a space where the mapping appears linear, they avoid the computational bottlenecks of standard GPLVMs while maintaining flexibility across different likelihoods.

However, some limitations remain. Like many latent variable models, RFLVMs are identifiable only up to rotation and scale. Future research directions include extending the framework to capture temporal dynamics through GP Dynamic State-Space Models and addressing potential "label switching" issues in the mixture model components during MCMC sampling.

Summary updated

BibTeX
@inproceedings{gundersen2021latent,
  author = {Gregory W. Gundersen and Michael Minyi Zhang and Barbara E. Engelhardt},
  title = {{Latent variable modeling with random features}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure