Temporal alignment and latent Gaussian process factor inference in population spike trains

Lea Duncker, Maneesh Sahani

Abstract

We introduce a novel scalable approach to identifying common latent structure in neural population spike-trains, which allows for variability both in the trajectory and in the rate of progression of the underlying computation. Our approach is based on shared latent Gaussian processes (GPs) which are combined linearly, as in the Gaussian Process Factor Analysis (GPFA) algorithm. We extend GPFA to handle unbinned spike-train data by incorporating a continuous time point-process likelihood model, achieving scalability with a sparse variational approximation. Shared variability is separated into terms that express condition dependence, as well as trial-to-trial variation in trajectories. Finally, we introduce a nested GP formulation to capture variability in the rate of evolution along the trajectory. We show that the new method learns to recover latent trajectories in synthetic data, and can accurately identify the trial-to-trial timing of movement-related parameters from motor cortical data without any supervision.

Introduction: The Challenge of Temporal Misalignment

In modern neuroscience, recording from hundreds of neurons simultaneously has become standard. The goal is often to extract "latent variables"—low-dimensional signals that represent the brain's internal computations. However, a significant challenge arises because these computations do not proceed at a uniform pace across trials. For instance, in a reaching task, the neural activity representing the movement plan might unfold faster or slower depending on the animal's reaction time.

Standard methods like Gaussian Process Factor Analysis (GPFA) typically assume a fixed temporal alignment, often requiring manual synchronization to external events like a "go cue." This "temporal misalignment" can lead models to mistake timing differences for actual changes in the neural computation itself. Furthermore, traditional GPFA scales poorly with long recordings ($O(T^3)$ complexity) and often requires "binning" spikes into fixed windows, which discards fine-grained temporal information.

Methods: The tw-pp-svGPFA Framework

To address these issues, the authors propose tw-pp-svGPFA (Time-Warped Point-Process Sparse Variational GPFA). This framework integrates three major innovations:

  1. Sparse Variational Inference: Utilizing "inducing points" to reduce computational complexity from cubic to linear, making the model scalable to large datasets.
  2. Point-Process Likelihood: Treating spikes as discrete events in continuous time rather than binned counts. This preserves temporal precision and handles sparse data more effectively.
  3. Nested Gaussian Processes for Time-Warping: This is the core conceptual leap. The model employs two layers of GPs: the first layer defines a "canonical" latent trajectory (the "what"), while the second layer is a trial-specific time-warping function (the "when") that maps clock time to the canonical time-axis of the internal computation.
Schematic of the time-warping mechanism: shared and condition-specific trajectories are warped by trial-specific functions before being combined into firing rates.

Key Insights: Decoupling "What" from "When"

A primary advantage of this approach is Unsupervised Alignment. The model can align neural trajectories across trials without prior knowledge of behavioral milestones like movement onset. It discovers these patterns purely from the population activity. By decoupling the trajectory from the timing, the model distinguishes between changes in the plan (e.g., reaching left vs. right) and changes in execution speed (e.g., reacting fast vs. slow).

Results: Quantitative Performance and Predictive Power

The model was validated on both synthetic and real neural data. On synthetic datasets, tw-pp-svGPFA achieved significantly lower Root Mean Square Error (RMSE) in firing rate estimation compared to existing methods like vLGP and Poisson Linear Dynamical Systems (PLDS).

In applications to macaque motor cortex data (PMd/M1) during a reaching task, the inferred time-warping functions were remarkably accurate, predicting the animal's reaction times with an $R^2$ of 0.90—a substantial improvement over previous state-of-the-art models ($R^2 \approx 0.52$). Furthermore, the model's internal "warped time" automatically aligned neural trajectories to the moment of movement onset, even though it was never given that information during training.

Predictive performance (LONO pred-loglik) comparison between warped and non-warped models across different numbers of latent factors.

Conclusion and Future Directions

While tw-pp-svGPFA represents a major step forward, it currently assumes a linear mapping between latent states and neural activity. Future iterations could incorporate non-linear mappings (such as a GP-LVM) or multi-modal data integration (e.g., combining spikes with LFP or calcium imaging). Nevertheless, the ability to automatically align neural data and decode internal timing states marks a significant advancement in our ability to study dynamic brain processes.

Summary updated

BibTeX
@inproceedings{duncker2018temporal,
  author = {Lea Duncker and Maneesh Sahani},
  title = {{Temporal alignment and latent Gaussian process factor inference in population spike trains}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure