Flow-field inference from neural data using deep recurrent networks

Timothy Doyeon Kim, Thomas Zhihao Luo, Tankut Can, Kamesh Krishnamurthy, Jonathan W. Pillow, Carlos D Brody

Neural computations underlying processes such as decision-making, working memory, and motor control are thought to emerge from the collective dynamics of large neural populations. While modern recording techniques can capture hundreds of neurons simultaneously, the resulting data is high-dimensional and inherently noisy. The prevailing theory suggests this activity resides on a simpler, low-dimensional "manifold." However, existing methods to map these dynamics often rely on rigid linear assumptions, struggle with task-irrelevant noise, or produce geometrically inconsistent latent spaces across training runs.

To address these challenges, this paper introduces FINDR (Flow-field Inference from Neural Data using deep Recurrent networks), an unsupervised deep learning framework designed to uncover the hidden "rules of motion" governing neural population activity. By explicitly separating task-relevant signals from background noise, FINDR enables the discovery of stable, interpretable flow fields that reveal how the brain processes information.

The FINDR Framework

FINDR is built upon a Sequential Variational Autoencoder (VAE) architecture that combines the flexibility of neural networks with the structure of stochastic differential equations (SDEs).

Overview of the FINDR framework

The model introduces several key innovations to overcome the limitations of previous approaches:

  • Gated MLP Dynamics: Instead of assuming linear transitions, FINDR uses a gated Multi-Layer Perceptron (MLP) to model the drift function of an SDE. This allows it to learn highly complex, nonlinear flow fields—essentially a vector map indicating the likely future state of the neural population.
  • Disentangled Latent Space: The architecture explicitly separates neural activity into a low-dimensional task-relevant latent representation and a task-irrelevant time-varying bias. This disentanglement ensures that the inferred dynamics accurately reflect the core computations rather than background fluctuations.
  • Geometric Identifiability: Through specific post-training transformations (such as SVD and PCA), FINDR ensures that the latent space is geometrically consistent. This means the distances and angles within the model reliably reflect the true structure of the neural data across different training initializations.

Experimental Validation and Key Insights

The authors validated FINDR using both synthetic datasets (a "flip-flop" memory task with complex attractor geometries) and biological data (recordings from 67 choice-selective neurons in the frontal cortex of rats performing an auditory decision-making task).

Superior Reconstruction and Efficiency FINDR consistently outperformed baseline models like SLDS, rSLDS, and GPFA in predicting held-out neural activity. Notably, it achieved high accuracy with just two latent dimensions, whereas competing models required significantly higher dimensionality to reach comparable performance.

Attractor Discovery By reducing the complex activity of the rat frontal cortex to a low-dimensional space, FINDR successfully visualized computational "attractors." The model revealed two distinct "slow points" in the flow field, corresponding to the animal's memory of the evidence for "left" and "right" decisions.

Reliability Across Folds FINDR's inferred flow fields demonstrated remarkable geometric consistency across different data subsets. In the rat decision-making task, the identified attractors were consistent across five different training/test splits (Pearson correlation of $|r| \approx 0.94$). This contrasts with other state-of-the-art methods that often produce topologically consistent but geometrically warped spaces, complicating physical interpretation.

Limitations and Future Directions

While FINDR represents a significant step forward in neural dynamics inference, the authors note a few limitations. Like many deep learning models, it performs best with large datasets containing many neurons and trials; its efficacy on highly sparse data remains an area for future exploration. Additionally, the current framework provides a point estimate of the flow field without quantifying the uncertainty of the inferred dynamics.

Future iterations could extend FINDR to infer unknown external inputs driving brain activity, rather than relying solely on known task variables. Ultimately, FINDR offers a powerful, interpretable lens for neuroscientists to test attractor-based theories of computation across various domains, from motor control to sensory processing.

Summary updated

BibTeX
@inproceedings{kim2025flow,
  author = {Timothy Doyeon Kim and Thomas Zhihao Luo and Tankut Can and Kamesh Krishnamurthy and Jonathan W. Pillow and Carlos D Brody},
  title = {{Flow-field inference from neural data using deep recurrent networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ZLC4B9oQWX},
}
Figure