Latent Diffusion for Neural Spiking Data
Jaivardhan Kapoor, Auguste Schulz, Julius Vetter, Felix Pei, Richard Gao, Jakob H. Macke
Abstract
Modern datasets in neuroscience enable unprecedented inquiries into the relationship between complex behaviors and the activity of many simultaneously recorded neurons. While latent variable models can successfully extract low-dimensional embeddings from such recordings, using them to generate realistic spiking data, especially in a behavior-dependent manner, still poses a challenge. Here, we present Latent Diffusion for Neural Spiking data (LDNS), a diffusion-based generative model with a low-dimensional latent space: LDNS employs an autoencoder with structured state-space (S4) layers to project discrete high-dimensional spiking data into continuous time-aligned latents. On these inferred latents, we train expressive (conditional) diffusion models, enabling us to sample neural activity with realistic single-neuron and population spiking statistics. We validate LDNS on synthetic data, accurately recovering latent structure, firing rates, and spiking statistics. Next, we demonstrate its flexibility by generating variable-length data that mimics human cortical activity during attempted speech. We show how to equip LDNS with an expressive observation model that accounts for single-neuron dynamics not mediated by the latent state, further increasing the realism of generated samples. Finally, conditional LDNS trained on motor cortical activity during diverse reaching behaviors can generate realistic spiking data given reach direction or unseen reach trajectories. In summary, LDNS simultaneously enables inference of low-dimensional latents and realistic conditional generation of neural spiking datasets, opening up further possibilities for simulating experimentally testable hypotheses.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers11
- POCO: Scalable Neural Forecasting through Population ConditioningYu Duan, Hamza Tahir Chaudhry, Misha B. Ahrens, Christopher D. Harvey et al.NeurIPS 2025 · 8 citations
- Negative Binomial Variational Autoencoders for Overdispersed Latent ModelingYixuan Zhang, Jinhao Sheng, Wenxin Zhang, Quyu Kong et al.CVPR 2026 · 3 citations
- Energy-based Autoregressive Generation for Neural Population DynamicsNingling Ge, Sicheng Dai, Yu Zhu, Shan YuAAAI 2026 · 1 citation
- Modeling Neural Activity with Conditionally Linear Dynamical SystemsVictor Geadah, Amin Nejatbakhsh, David Lipshutz, Jonathan W. Pillow et al.NeurIPS 2025 · 1 citation
- Modelling the Effects of Hearing Loss on Neural Coding in the Auditory Midbrain with Variational ConditioningLloyd Pellatt, Fotios Drakopoulos, Shievanie Sabesan, Nicholas A. LesicaAAAI 2026 · 1 citation
Builds on21
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Scalable Diffusion Models with TransformersWilliam Peebles, Saining XieICCV 2023 · 5,568 citations
- Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
- DiffWave: A Versatile Diffusion Model for Audio SynthesisZhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao et al.ICLR 2021 · 1,902 citations
Related papers
- Latent Diffusion Transformer for Probabilistic Time Series ForecastingShibo Feng, Chunyan Miao, Zhong Zhang, Peilin ZhaoAAAI 2024 · 60 citations
- Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion ModelsYule Wang, Chengrui Li, Weihan Li, Anqi WuNeurIPS 2024 · 13 citations
- High-dimensional neuronal activity from low-dimensional latent dynamics: a solvable modelValentin Schmutz, Ali Haydaroglu, Shuqi Wang, Yixiao Feng et al.NeurIPS 2025 · 9 citations
- Targeted Neural Dynamical ModelingCole L. Hurwitz, Akash Srivastava, Kai Xu, Justin Jude et al.NeurIPS 2021 · 55 citations
- Generative Modeling of Full-Atom Protein Conformations using Latent Diffusion on Graph EmbeddingsAditya Sengar, Ali Hariri, Daniel Probst, Patrick Barth et al.NeurIPS 2025 · 7 citations
