Deep inference of latent dynamics with spatio-temporal super-resolution using selective backpropagation through time

Feng Zhu, Andrew R. Sedler, Harrison A. Grier, Nauman Ahad, Mark A. Davenport, Matthew T. Kaufman, Andrea Giovannucci, Chethan Pandarinath

Abstract

Neuroscientific recordings often face a fundamental trade-off between spatial and temporal resolution. This paper introduces Selective Backpropagation Through Time (SBTT), a training strategy for deep generative models that enables the reconstruction of high-fidelity neural population dynamics from sparse, irregularly sampled data. By integrating SBTT into the LFADS framework, the authors demonstrate "spatio-temporal super-resolution," recovering high-frequency brain activity even when only a fraction of neurons are observed at any given time. Validated on both synthetic and real-world electrophysiology and calcium imaging datasets, SBTT maintains high decoding performance with up to 90% data loss, offering a path toward more power-efficient neural interfaces.

Introduction: The Bandwidth Bottleneck

A persistent challenge in systems neuroscience is the "bandwidth bottleneck." Researchers must typically choose between recording from a few neurons at high speeds (high temporal resolution) or many neurons at slower rates (high spatial resolution). In two-photon calcium imaging, scanning lasers visit neurons sequentially, leading to staggered sampling where significant activity may be missed between frames. In high-density electrophysiology, the sheer volume of data from thousands of electrodes creates immense power and heat constraints, particularly for wireless brain-computer interfaces (BCIs).

Standard recurrent neural networks (RNNs) struggle with these gaps because they expect a complete data matrix at every time step. Traditional methods often resort to interpolation or smoothing, which can blur high-frequency features or fail entirely when data is extremely sparse.

Overview of the spatio-temporal trade-off and the SBTT model architecture.

Methods: Selective Backpropagation Through Time (SBTT)

The authors propose SBTT to allow models to learn from incomplete observations without being corrupted by missing values. The core innovation lies in how the model handles the loss function during training.

  1. Architecture: SBTT is integrated into Latent Factor Analysis via Dynamical Systems (LFADS), a variational autoencoder that uses RNNs to infer the latent dynamics of neural populations.
  2. Zero-Filling: Missing data points are filled with zeros at the input layer, allowing the RNN to maintain a continuous internal state across time.
  3. Selective Loss: During the backward pass, the gradient of the loss function is manually set to zero for any missing data points. This ensures the model only updates its weights based on actual observations, while its internal "latent dynamics" learn to fill in the gaps.
  4. Dynamics as a Prior: By training on sparse data, the model learns the underlying "physics" of the neural population. Because neural activity is low-dimensional and coordinated, the model can use the activity of observed neurons to infer the state of unobserved ones.

Key Results and Robustness

The researchers tested SBTT across macaque electrophysiology, synthetic Lorenz systems, and mouse calcium imaging.

Robustness to Data Loss

In macaque motor cortex data, SBTT demonstrated remarkable resilience to simulated bandwidth limits. Even when 80% of the samples were randomly dropped, the model's ability to decode hand velocity remained nearly identical to its performance on the full dataset. As shown in Figure 3, SBTT (AutoLFADS) significantly outperformed standard baselines like Gaussian Process Factor Analysis (GPFA) and Neural Data Transformer (NDT) as the fraction of dropped samples increased.

SBTT maintains high decoding accuracy and inferred rate quality even with up to 90% data loss.

Spatio-Temporal Super-Resolution

In calcium imaging simulations, SBTT achieved "super-resolution" by recovering signals at frequencies higher than the microscope's frame rate. By leveraging the staggered timing of sequential scans, the model could reconstruct 15Hz dynamics from a 33Hz sampling rate—a task where conventional smoothing methods failed. On real mouse imaging data, the inferred rates from SBTT were more predictive of the animal's actual movements than the raw deconvolved calcium events.

Discussion and Future Directions

SBTT offers a powerful framework for maximizing the information extracted from limited neural recordings. By exploiting the inherent redundancy in neural populations, it enables high-fidelity inference with significantly reduced data requirements.

However, several challenges remain. Realizing the power-saving potential for BCIs will require hardware capable of efficient "flicker" sampling. Additionally, while the motor cortex exhibits relatively low-dimensional dynamics, the generalizability of this approach to more complex or stochastic brain regions requires further investigation. Future work will focus on adapting SBTT for real-time, closed-loop applications.

Summary updated

BibTeX
@inproceedings{zhu2021deep,
  author = {Feng Zhu and Andrew R. Sedler and Harrison A. Grier and Nauman Ahad and Mark A. Davenport and Matthew T. Kaufman and Andrea Giovannucci and Chethan Pandarinath},
  title = {{Deep inference of latent dynamics with spatio-temporal super-resolution using selective backpropagation through time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=ct-6HqN_HP7},
}
Figure