Bayesian Inference in High-Dimensional Time-Serieswith the Orthogonal Stochastic Linear Mixing Model

Rui Meng, Kristofer E. BouchardarXiv 2021

Abstract

Many modern time-series datasets contain large numbers of output response variables sampled for prolonged periods of time. For example, in neuroscience, the activities of 100s-1000's of neurons are recorded during behaviors and in response to sensory stimuli. Multi-output Gaussian process models leverage the nonparametric nature of Gaussian processes to capture structure across multiple outputs. However, this class of models typically assumes that the correlations between the output response variables are invariant in the input space. Stochastic linear mixing models (SLMM) assume the mixture coefficients depend on input, making them more flexible and effective to capture complex output dependence. However, currently, the inference for SLMMs is intractable for large datasets, making them inapplicable to several modern time-series problems. In this paper, we propose a new regression framework, the orthogonal stochastic linear mixing model (OSLMM) that introduces an orthogonal constraint amongst the mixing coefficients. This constraint reduces the computational burden of inference while retaining the capability to handle complex output dependence. We provide Markov chain Monte Carlo inference procedures for both SLMM and OSLMM and demonstrate superior model scalability and reduced prediction error of OSLMM compared with state-of-the-art methods on several real-world applications. In neurophysiology recordings, we use the inferred latent functions for compact visualization of population responses to auditory stimuli, and demonstrate superior results compared to a competing method (GPFA). Together, these results demonstrate that OSLMM will be useful for the analysis of diverse, large-scale time-series datasets.

Introduction

In modern neuroscience, researchers simultaneously record activity from hundreds or thousands of neurons. To make sense of this high-dimensional data, latent variable models are employed to identify low-dimensional trajectories representing underlying brain states. Gaussian-process factor analysis (GPFA) has been a standard approach, but it assumes static correlations between neurons over time. While more flexible models like the Stochastic Linear Mixing Model (SLMM) exist, they are computationally intensive and struggle with the curse of dimensionality. The Orthogonal Stochastic Linear Mixing Model (OSLMM) addresses these limitations by providing a framework that is both flexible enough to handle time-varying correlations and efficient enough to scale to large datasets.

Methodology

The OSLMM builds upon the SLMM framework by introducing a semi-orthogonal constraint on the mixing coefficients. This approach allows for an adaptive linear mapping from latent space to observed variables that can change over time.

Schematic of the OSLMM framework showing the generation of high-dimensional observations from low-dimensional latent processes via a semi-orthogonal mixing matrix.

Key components of the OSLMM include:

  1. Adaptive Linear Mapping: The mapping from latent space to observed neurons is time-varying, unlike the fixed mapping in GPFA.
  2. Orthogonal Constraint: The mixing matrix $U$ is constrained to be semi-orthogonal during the modeling phase, preventing latent factors from overlapping and enhancing interpretability.
  3. Efficient Inference: A Markov Chain Monte Carlo (MCMC) procedure is developed, utilizing Elliptical Slice Sampling (ESS) for latent functions and sampling on the Stiefel manifold for the orthogonal matrices.
  4. Linear Scaling: The computational complexity scales linearly with the number of recorded neurons ($P$), a significant improvement over previous non-stationary GP models.

Experimental Results

The model was evaluated across synthetic, benchmark, and biological datasets, including rat auditory cortex and monkey motor cortex recordings.

Computational Efficiency

A primary advantage of OSLMM is its scalability. As shown in the figure below, OSLMM's per-iteration running time remains nearly constant as the number of latent functions increases, whereas SLMM's computational cost grows rapidly.

Comparison of per-iteration running time across different models, demonstrating the superior scalability of OSLMM as the number of latent functions increases.

Performance and Interpretability

  • Predictive Accuracy: OSLMM consistently achieved lower log prediction errors and higher $R^2$ values than GPFA on neural datasets.
  • Latent Recovery: In synthetic Lorenz dynamics experiments, OSLMM recovered ground truth trajectories with significantly lower RMSE than GPFA.
  • Biological Relevance: In monkey motor cortex data, OSLMM's latent representations showed a high Spearman correlation (0.96) with reach angles, vastly outperforming GPFA (-0.41). Furthermore, in auditory data, OSLMM captured a clear monotonic ordering based on stimulus frequency and amplitude, which was not apparent in GPFA results.

Discussion and Future Work

OSLMM provides a scalable and interpretable framework for high-dimensional time-series analysis. While it scales well with the number of neurons, future work is needed to improve scaling with respect to the number of time points ($T$), possibly through Variational Inference (VI). Additionally, extending the model to handle non-Gaussian likelihoods, such as Poisson data for raw neuronal spikes, would further its utility in neuroscientific research.

Summary updated

BibTeX
@misc{meng2021bayesian,
  author = {Rui Meng and Kristofer E. Bouchard},
  title = {{Bayesian Inference in High-Dimensional Time-Serieswith the Orthogonal Stochastic Linear Mixing Model}},
  year = {2021},
  eprint = {2106.13379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.13379},
}
Figure