Modeling Neural Activity with Conditionally Linear Dynamical Systems.

Victor Geadah, Amin Nejatbakhsh, David Lipshutz, Jonathan W. Pillow, Alex H. Williams

TL;DR

This paper introduces Conditionally Linear Dynamical Systems (CLDS), a novel modeling framework that captures complex, non-linear neural dynamics by assuming linear dynamics conditioned on observed behavioral or task variables. CLDS models offer a powerful blend of interpretability and expressivity, performing well even in data-limited scenarios by leveraging Gaussian Process priors for smooth parameter variations.

What Problem Does This Paper Address?

Neuroscience data, particularly neural population activity, is notoriously complex. It exhibits non-linear dynamics that change over time, across different experimental trials, and in response to varying behavioral or task conditions. While traditional linear dynamical systems (LDS) are interpretable and analytically tractable, they fail to capture this inherent non-linearity. Conversely, modern non-linear models (like RNNs or transformers) can be more accurate but often lack interpretability and are difficult to fit, especially with limited data. This paper aims to bridge this gap by developing a model that is both interpretable and expressive enough to handle these complex, condition-dependent neural dynamics, particularly in data-scarce situations.

Methods

The core innovation is the Conditionally Linear Dynamical System (CLDS). The model assumes that the neural system's dynamics (represented by state transition matrices A, bias terms b, and emission matrices C) are linear given a set of observed covariates (e.g., behavioral variables, task cues) denoted by $u_t$. These covariates, however, influence the linear dynamics in a potentially non-linear way. This non-linear dependence is captured by placing Gaussian Process (GP) priors on the parameters of the linear system (A, b, C, d, m).

Key aspects of the method include:

  • Conditional Linearity: The state-space model is linear in the latent states ($x_t$) once conditioned on the covariates ($u_t$). This allows for efficient inference using Kalman smoothing.
  • GP Priors: Gaussian Processes are used to model the smooth, non-linear relationship between covariates ($u_t$) and the parameters of the linear dynamics. This enables the model to interpolate and generalize to unseen conditions.
  • Tractable Inference: The GP formulation allows for closed-form Expectation-Maximization (EM) updates for parameter estimation, making the models relatively easy to fit, especially under Gaussian noise assumptions.
  • Interpretability: Because the dynamics are linear conditional on $u_t$, classical analyses can be applied to understand the system's behavior for specific conditions.

Datasets

The paper evaluates CLDS models on the following datasets:

  • Synthetic Head-Direction Ring Attractor Experiment: A synthetic dataset designed to mimic a nonlinear dynamical system decomposed into linear systems based on head direction.
  • Mouse Head-Direction Circuit Dynamics: Antero-dorsal thalamic nucleus (ADn) recordings from mice foraging in an open environment, where head direction was used as the condition.
  • Macaque Center-Out Reaching Task: Recordings from dorsal premotor cortex (PMd) in macaques performing a center-out reaching task, where conditions included reach angle and task phase (delay/reach).

Key Insights and Ideas

  • Bridging the Gap: CLDS effectively bridges the gap between interpretable linear models and powerful but opaque non-linear models by making the parameters of the linear dynamics dependent on covariates.
  • Data Efficiency: The Bayesian formulation and the ability of GPs to share statistical power across nearby conditions make CLDS remarkably data-efficient, performing well even with as little as one trial per condition.
  • Expressive Dynamics: CLDS can capture complex dynamical structures, like ring attractors, that are impossible for standard LDS models.
  • Smooth Transitions: The GP priors naturally enforce smooth transitions in dynamics as covariates change, reflecting a common biological assumption.

Key Results

  • Accurate Reconstruction: CLDS models achieved high accuracy in reconstructing single-neuron firing rates on held-out test data, often outperforming standard LDS and even LFADS (a deep learning model) in low-data regimes. For example, in the macaque reaching task, CLDS consistently outperformed LDS and LFADS, showing the largest advantage at 1 training trial per condition.
  • Parameter Recovery: The models successfully recovered synthetic parameters for dynamics matrices and bias terms, demonstrating the efficacy of the inference procedure.
  • Capturing Attractor Dynamics: CLDS successfully identified and characterized ring attractor structures in both synthetic and real neural data, reflecting the non-linear dynamics of neural circuits.

Limitations and Future Work

  • Covariate Dependence: CLDS models rely on observing experimental covariates ($u_t$). Performance may degrade if these covariates are corrupted, partially observed, or missing.
  • Linearity Assumption: The core assumption of linear dynamics conditioned on $u_t$ might struggle in scenarios where covariates are only loosely correlated with neural activity or internal deliberation periods are long. In such cases, deep learning models with large datasets might perform better.
  • Future Work: The authors suggest extending CLDS to handle partially observed covariates. They also propose applying CLDS to infer across-time noise correlations, a challenging problem in trial-limited regimes. Further work could also explore extensions to non-Gaussian likelihoods and more complex GP priors.

Summary updated

BibTeX
@inproceedings{geadah2025modeling,
  author = {Victor Geadah and Amin Nejatbakhsh and David Lipshutz and Jonathan W. Pillow and Alex H. Williams},
  title = {{Modeling Neural Activity with Conditionally Linear Dynamical Systems.}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=xgmMdTTzjj},
}
Figure