Learning identifiable and interpretable latent models of high-dimensional neural activity using pi-VAE

Ding Zhou, Xue-Xin Wei

Introduction

In neuroscience, recording the simultaneous activity of hundreds of neurons is now commonplace. However, interpreting this high-dimensional data remains a significant challenge. Researchers typically rely on two distinct paradigms: regression-based models and latent variable models. Regression-based models link neural activity directly to external variables (e.g., stimulus or behavior), offering high interpretability but often failing to capture complex internal brain dynamics. Conversely, latent variable models like Variational Autoencoders (VAEs) are flexible and powerful but often act as "black boxes," producing entangled and non-identifiable hidden states that vary across training runs.

The authors of this work introduce pi-VAE (Poisson identifiable Variational Autoencoder), a framework designed to bridge this gap. By incorporating task-related variables directly into the model's prior, pi-VAE achieves "identifiable" latent representations that are both mathematically grounded and biologically meaningful.

Methods: The pi-VAE Architecture

The core innovation of pi-VAE lies in its structured approach to latent variable modeling.

Comparison of modeling approaches and the pi-VAE generative process.

As shown in Figure 3, pi-VAE represents a hybrid approach. While regression models map labels ($u$) to observations ($x$) and vanilla VAEs map latents ($z$) to observations, pi-VAE introduces a Label Prior $p(z|u)$. This conditions the latent variables on observed task variables, such as an animal's location or a stimulus. By structuring this prior as an exponential family distribution, the model gains a mathematical guarantee of identifiability—the ability to recover the true underlying structure up to a simple linear transformation.

Furthermore, pi-VAE is tailored for neurophysiology through a Poisson Observation Model, reflecting the discrete nature of neuronal spiking. To ensure the mathematical proof of identifiability holds, the model utilizes a General Incompressible-flow Network (GIN) to provide an injective (one-to-one) mapping from latents to neural firing rates.

Datasets and Validation

The framework was validated across three distinct data regimes:

  1. Synthetic Data: Simulated populations with discrete clusters and continuous circular task labels to verify ground-truth recovery.
  2. Monkey Reaching Data: Neural recordings from the dorsal premotor cortex (PMd) during an 8-direction reaching task.
  3. Rat Hippocampus Data: CA1 recordings from a rat performing a spatial navigation task on a linear track.

Key Results

pi-VAE demonstrates superior performance in both predictive accuracy and interpretability. On monkey reaching data, it achieved a higher log-marginal likelihood and lower Root Mean Square Error (RMSE) in predicting firing rates compared to both standard VAEs and traditional tuning curve models.

Performance and latent space visualization on monkey motor cortex data.

As illustrated in Figure 5, pi-VAE significantly improves decoding accuracy for reaching direction (61% vs. 47% for traditional methods). Crucially, the latent space naturally organizes itself to mirror the task geometry, separating different reaching directions into distinct, clean clusters. In contrast, standard VAE latents appear tangled and less representative of the underlying task structure.

In rat hippocampal data, pi-VAE successfully disentangled spatial position from internal brain rhythms, capturing a ~10Hz oscillation in the residuals that corresponds to the biologically significant theta rhythm—a feature often missed or conflated by standard VAEs.

Discussion and Limitations

The "identifiability" provided by pi-VAE is not merely a theoretical property; it leads to cleaner, more consistent latent dimensions across experimental sessions. By providing supervision through labels, the model achieves a level of disentanglement that purely unsupervised methods struggle to reach.

However, the model's reliance on task variables (labels) means it may be less effective for purely exploratory, unsupervised discovery. Additionally, the mathematical guarantees depend on the label prior following an exponential family distribution and the mapping being injective. Future work may involve integrating temporal smoothness constraints, similar to models like LFADS, to further enhance the representation of dynamic brain states.

Summary updated

BibTeX
@inproceedings{zhou2020learning,
  author = {Ding Zhou and Xue-Xin Wei},
  title = {{Learning identifiable and interpretable latent models of high-dimensional neural activity using pi-VAE}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure