Multi-modal Gaussian Process Variational Autoencoders for Neural and Behavioral Data

Rabia Gondur, Usama Bin Sikandar, Evan Schaffer, Mikio Christian Aoi, Stephen L Keeley

TL;DR

The Multi-modal Gaussian Process Variational Autoencoder (MM-GPVAE) is a novel unsupervised framework designed to link high-dimensional neural activity with complex behavioral data, such as video. By partitioning latent variables into shared and independent subspaces and parameterizing them in the Fourier domain, the model achieves both the interpretability of classical neuroscience models and the expressive power of deep learning.

The Challenge of Multi-Modal Data

In modern neuroscience, researchers routinely record massive, simultaneous streams of data: neural activity (often thousands of neurons) and behavior (like high-speed video or limb tracking). A central goal is to uncover the hidden dynamics—the latent variables—that drive both streams.

However, existing tools suffer from a "Goldilocks" problem. Classical models like Gaussian Process Factor Analysis (GPFA) excel with neural data due to their interpretability and assumption of smooth temporal changes, but their linear nature limits their application to complex data like images. Conversely, deep learning models like Variational Autoencoders (VAEs) are incredibly expressive but often produce "black box" latent spaces that are messy and difficult to map back to physical reality. Furthermore, most models do not explicitly distinguish between brain activity that relates to behavior and activity that occurs independently.

Introducing the MM-GPVAE

The authors introduce the MM-GPVAE to combine the strengths of both approaches. The architecture relies on several key technical innovations:

  1. The Hybrid Decoder: The model uses a simple linear mapping for neural data (maintaining interpretability, akin to GPFA) and a deep neural network (DNN) for behavioral data (allowing it to process complex images or keypoints).
  2. Subspace Partitioning: The latent space is mathematically divided into three distinct parts: neural-independent, behavioral-independent, and shared. This allows researchers to isolate the specific signals that link the brain to action.
  3. Fourier-Domain Latents: Instead of modeling latents at every individual time point, the model represents them as a sum of Fourier frequencies. By "pruning" high frequencies, the model bakes in a low-pass filter. This ensures the discovered dynamics are biologically realistic (smooth) and significantly accelerates computations by diagonalizing the Gaussian Process covariance matrix.
The MM-GPVAE architecture features a hybrid decoder and subspace partitioning to isolate shared and independent latents.

Experimental Datasets

The model was rigorously tested across diverse datasets:

  • Simulated "Neural MNIST": A synthetic dataset featuring an MNIST digit that rotates and scales smoothly over time, paired with simulated Poisson neural spikes.
  • Drosophila (Fruit Fly): Real-world data consisting of 1,000 calcium imaging traces from a fly's brain alongside the tracked positions of its 16 limb joints.
  • Manduca sexta (Hawkmoth): Spike trains from 10 wing muscles recorded while the moth tracked a moving visual stimulus.

Key Insights and Results

Cross-Modal Synergy and Superior Reconstruction

One of the most striking findings is that the model reconstructs images better when it has access to neural data, and vice versa. The neural spikes provide a "hint" about the latent state that images alone might miss due to pixel noise or occlusions. On simulated data, MM-GPVAE achieved significantly lower Mean Squared Error (MSE) in reconstructing both images and neural rates compared to standard single-modality VAEs and GP-VAEs.

MM-GPVAE demonstrates superior reconstruction of both images and neural rates by leveraging cross-modal synergy.

Fourier Pruning as a Game Changer

The authors found that standard GP-VAEs often fail to recover the "true" latent variable (such as the actual angle of a rotating digit). Moving to the Fourier domain and pruning high frequencies acted as a powerful regularizer, forcing the model to find the underlying smooth signal amidst the noise.

Unsupervised Discovery of Behavior

In the fly dataset, the model was never explicitly told when the fly was "still," "running," or "grooming." Yet, the shared latent space naturally clustered these behaviors, demonstrating that the model captures the fundamental structure of the experimental session entirely unsupervised. Similarly, in the hawkmoth data, the model successfully identified a shared latent tracking the 22Hz wing-beat oscillation and a separate visual latent tracking the stimulus position—effectively decoding the moth's motor program and sensory input simultaneously.

Limitations and Future Work

While powerful, the MM-GPVAE relies on the assumption that the underlying dynamics are stationary and smooth. If an animal exhibits sudden, jerky transitions or non-stationary brain states, the current Gaussian Process kernels might struggle to accurately track them.

Additionally, choosing the optimal number of shared versus independent dimensions currently requires manual cross-validation. Future work could focus on automating this dimensionality selection or incorporating more flexible, non-linear decoders for the neural modality while carefully preserving interpretability.

Summary updated

BibTeX
@inproceedings{gondur2024multi,
  author = {Rabia Gondur and Usama Bin Sikandar and Evan Schaffer and Mikio Christian Aoi and Stephen L Keeley},
  title = {{Multi-modal Gaussian Process Variational Autoencoders for Neural and Behavioral Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=aGH43rjoe4},
}
Figure