All models

STNDT

A transformer that attends over both time and neurons to estimate firing rates from spike counts.

Neuroscience signals · 346 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (30 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.5M
Operations
346
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2022
Cited by
5 (as of 24 October 2026)
Authors
Trung Le, Eli Shlizerman
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20192
Graph hash
f79152c62cbdd43cd432a83cf7db4842efd4c3cfe1ba80ef5bc28d4f95eab633
Skeleton hash
571d714a53060cc3609299a8323dc63937a92bab4e3e85d07da5bf9398881b5c
Architecture hash
1dfed7826305693b2fccf13dcb4f49dd3ae04096202bbe20c6e02b57f2219636
Diagram SHA-256
a88c3120b38e43a043d25ddd6b5164911e3aaf528eee6e64a82f35e81bf7ddbf
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

STNDT (SpatioTemporal Neural Data Transformer) estimates the firing rates that underlie spiking recordings from a population of neurons. Its input is a matrix of spike counts, the number of spikes each neuron fires within each time bin of a trial. It builds on Neural Data Transformers (NDT), which the authors say model how population activity evolves over time while neglecting the covariation between individual neurons.

STNDT therefore learns two separate multihead attention blocks, one for the temporal relationship and one for the spatial relationship between neurons. The spatial block yields a matrix of attention weights between neurons, which is multiplied with the temporal latent state to give the spatiotemporal features. Training is unsupervised: a random subset of spike bins is masked and the transformer reconstructs the log firing rate at those bins, and a contrastive loss is added in a later finetuning stage.

The paper evaluates on four datasets from the Neural Latents Benchmark: MC_Maze, MC_RTT, Area2_Bump and DMFC_RSG. On MC_Maze it reports an ensemble of STNDT models scoring 0.3862 on co-bps and 0.2686 on fp-bps, against 0.3676 and 0.2589 for AESMTE3. Dropping the most heavily attended neurons lowered performance significantly more than dropping the same number of random neurons.

Key idea. STNDT extends Neural Data Transformers with attention across neurons as well as time, plus a contrastive loss, to estimate firing rates of neural populations.

  • stndt
  • spatiotemporal neural data transformer
  • spatio-temporal neural data transformers
  • neural population activity
  • firing rate inference
  • neural latents benchmark
  • spiking activity
  • neural population dynamics
  • spatial attention over neurons

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{le2022stndtmodelingneuralpopulation,
      title={STNDT: Modeling Neural Population Activity with a Spatiotemporal Transformer}, 
      author={Trung Le and Eli Shlizerman},
      year={2022},
      eprint={2206.04727},
      archivePrefix={arXiv},
      primaryClass={q-bio.NC},
      url={https://arxiv.org/abs/2206.04727}, 
}