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

Lea Duncker, Maneesh Sahani

Introduction

When neuroscientists record from large populations of neurons, they often look for "latent variables"—low-dimensional signals that represent the underlying computation. However, extracting these hidden trajectories from population spike trains faces two major hurdles:

  1. Temporal Jitter: Even in identical experimental conditions, the brain doesn't run like a clock. One trial might have a faster reaction time or a delayed sensory onset. Standard methods often confuse these timing differences with actual changes in the neural "pathway" or trajectory.
  2. Scalability and Binning: Traditional methods like Gaussian Process Factor Analysis (GPFA) scale poorly with time ($O(T^3)$) and usually require "binning" spikes into discrete time windows, which throws away fine-grained temporal information.

This paper introduces a scalable, unsupervised method to solve both issues. By combining sparse variational Gaussian processes with a nested time-warping architecture, the authors provide a way to separate what a neural population is computing from how fast it is progressing through that computation.

Methods: Scalable Inference and Time-Warping

The authors build upon GPFA but introduce three significant innovations to handle raw, unbinned spike times efficiently and align trials automatically.

Graphical models showing the generative process (a) and the sparse variational approximation with inducing points (b).
  • svGPFA (Sparse Variational GPFA): To overcome the cubic time complexity of standard GPs, the authors use "inducing points" (a small set of representative time points) to approximate the Gaussian Process. This slashes the computational complexity to linear with respect to time, making it much faster and more scalable.
  • Point-Process Likelihood: Instead of counting spikes in arbitrary bins, the data is modeled as a continuous-time Poisson process. This allows the model to work directly with exact spike times, preserving high-resolution temporal dynamics.
  • Nested Time-Warping: This is the core novelty. The model introduces a second GP layer that acts as a "warping function" $\tau(t)$. This function maps the experimental clock $t$ to a "latent clock" $\tau$. If a trial is running slow, the warping function stretches the time; if it's fast, it compresses it.
Illustration of nested time-warping: shared and condition-specific latent trajectories are warped by trial-specific functions to generate observed firing rates.

As shown above, the final model decomposes neural activity into shared components (common to all trials), condition-specific components, and trial-specific components—all viewed through this trial-specific warped time lens.

Key Insights and Results

The model was evaluated on both synthetic data (representing a decision-making process) and real-world Macaque motor cortex data (recordings from the PMd and M1 during a variable-delay reaching task).

  • Dissociating "What" from "When": By using a nested GP, the model explicitly separates the shape of the neural trajectory from the speed at which it is traversed. This prevents the model from misinterpreting a slow trial as a fundamentally different neural state.
  • Unsupervised Alignment and Event Detection: Strikingly, the model can align neural data to behavioral events (like movement onset) without ever being told when those events happened. It "discovers" the behavioral timing just by looking at the structure of the spikes. The variance in timing across trials was significantly reduced once the model’s learned alignment was applied.
  • Superior Accuracy: In synthetic tests, the time-warped svGPFA achieved significantly lower Root Mean Square Error (RMSE) in firing rate estimation compared to standard GPFA, Poisson Linear Dynamical Systems (PLDS), and time-warped PCA (twPCA).
  • Predicting Behavior: On the macaque dataset, the inferred latent timing was highly predictive of the monkey's actual reaction times, achieving an $R^2$ of 0.90. This is a massive improvement over previous state-of-the-art methods like switching LDS, which reported an $R^2$ of 0.52 on the same data.

Limitations and Future Work

While the sparse approximation makes the model scalable, the nested GP architecture creates a non-convex optimization landscape that may be sensitive to initialization. Additionally, performance relies on the choice of GP kernels (e.g., RBF or Cosine), requiring prior knowledge or cross-validation.

Future work could extend this framework to other modalities like Local Field Potentials (LFP) or calcium imaging. The authors also hint at exploring "deeper" GP hierarchies to capture even more complex non-linear relationships in neural data.

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