Unsupervised discovery of demixed, low-dimensional neural dynamics across multiple timescales through tensor components analysis

Alex H. Williams, Tony Hyun Kim, Forea Wang, Saurabh Vyas, Stephen I. Ryu, Krishna V. Shenoy, Mark J. Schnitzer, Tamara G. Kolda, Surya GangulibioRxiv 2017

Abstract: Perceptions, thoughts and actions unfold over millisecond timescales, while learned behaviors can require many days to mature. While recent experimental advances enable large-scale and long-term neural recordings with high temporal fidelity, it remains a formidable challenge to extract unbiased and interpretable descriptions of how rapid single-trial circuit dynamics change slowly over many trials to mediate learning. We demonstrate a simple tensor components analysis (TCA) can meet this challenge by extracting three interconnected low dimensional descriptions of neural data: neuron factors, reflecting cell assemblies; temporal factors, reflecting rapid circuit dynamics mediating perceptions, thoughts, and actions within each trial; and trial factors, describing both long-term learning and trial-to-trial changes in cognitive state. We demonstrate the broad applicability of TCA by revealing insights into diverse datasets derived from artificial neural networks, large-scale calcium imaging of rodent prefrontal cortex during maze navigation, and multielectrode recordings of macaque motor cortex during brain machine interface learning.

The Challenge of Multi-Scale Neural Data

Modern neuroscience is characterized by an explosion of high-dimensional data. Experimentalists can now record the activity of thousands of neurons over thousands of behavioral trials. However, interpreting this data is difficult because it spans vastly different timescales: fast, millisecond-to-second dynamics within a single trial (e.g., sensory processing or motor execution) and slow, trial-to-trial changes (e.g., learning or shifts in cognitive state).

Standard dimensionality reduction tools like Principal Components Analysis (PCA) often struggle with this multi-scale structure. Researchers typically either average across trials—discarding trial-to-trial variability—or concatenate trials into a single large matrix. Concatenation often leads to "mixed" components that are difficult to interpret due to the "rotation problem," where different coordinate systems can yield the same reconstruction error, obscuring the underlying biological variables.

Tensor Components Analysis (TCA)

To address these limitations, the authors propose Tensor Components Analysis (TCA), specifically utilizing the CANDECOMP/PARAFAC (CP) decomposition. Unlike PCA, which operates on 2D matrices (Neurons × Time), TCA treats neural data as a 3rd-order tensor (Neurons × Time × Trials).

Conceptual comparison of trial-averaged PCA, trial-concatenated PCA, and Tensor Components Analysis (TCA). TCA decomposes the data into neuron, temporal, and trial factors.

TCA approximates the data as a sum of $R$ components, each defined by the outer product of three vectors:

  1. Neuron Factors: Identifying which groups of neurons (cell assemblies) fire together.
  2. Temporal Factors: Describing the stereotypical activity pattern within a trial.
  3. Trial Factors: Capturing how the strength (gain) of that activity pattern evolves across trials, reflecting learning or behavioral shifts.

A fundamental advantage of TCA is its uniqueness. Under mild conditions, the CP decomposition has a unique solution, which naturally "demixes" biological variables into distinct, identifiable components without the ambiguity of rotation found in PCA.

Unsupervised Demixing and Performance

The study demonstrates that TCA can recover ground-truth parameters in simulated networks where both PCA and Independent Component Analysis (ICA) fail. Because TCA explicitly models the trial-to-trial gain modulation, it can separate overlapping signals that standard methods conflate.

Comparison of TCA, PCA, and ICA in recovering ground-truth factors (blue) from simulated data. TCA (purple) accurately recovers synaptic weights, input signals, and amplitudes, while PCA and ICA (red) produce mixed or noisy estimates.

The authors also emphasize the utility of Nonnegative TCA. By constraining factors to be positive, the model aligns with the additive nature of neural firing rates, leading to more stable and biologically interpretable solutions across different random initializations.

Biological Insights Across Species and Tasks

TCA was validated across diverse datasets, revealing structured dynamics that were previously hidden:

  • Rodent Maze Navigation: In calcium imaging data from the mouse medial prefrontal cortex (mPFC), TCA discovered task-relevant variables like start location and reward status in a completely unsupervised manner. Components were found to have a one-to-one correspondence with specific behavioral labels.
  • Primate BMI Learning: In macaque motor cortex recordings during Brain-Machine Interface (BMI) learning, TCA identified a two-stage learning process. It revealed a transition from a late-trial "corrective" strategy to an early-trial "optimal" strategy, with trial factors accurately predicting behavioral performance (reach time) on a trial-by-trial basis.
  • Artificial Networks: TCA successfully characterized how connectivity changes in recurrent neural networks (RNNs) as they learn motion discrimination tasks.

Limitations and Conclusion

While powerful, TCA has specific requirements. It assumes that trials can be aligned to a common time axis, often requiring "temporal warping" for variable-length behaviors. Furthermore, it assumes that trial-to-trial changes are primarily linear gain modulations of a fixed temporal pattern. If the fundamental shape of the temporal activity changes drastically over time, standard TCA may require extensions.

In conclusion, TCA provides a robust, unsupervised framework for "demixing" complex neural signals. By reducing millions of data points into a few interpretable factors, it offers a bridge between high-dimensional recordings and the low-dimensional principles governing neural computation and learning.

Summary updated

BibTeX
@misc{williams2017unsupervised,
  author = {Alex H. Williams and Tony Hyun Kim and Forea Wang and Saurabh Vyas and Stephen I. Ryu and Krishna V. Shenoy and Mark J. Schnitzer and Tamara G. Kolda and Surya Ganguli},
  title = {{Unsupervised discovery of demixed, low-dimensional neural dynamics across multiple timescales through tensor components analysis}},
  year = {2017},
  doi = {10.1101/211128},
  howpublished = {bioRxiv},
}
Figure