Modeling conditional distributions of neural and behavioral data with masked variational autoencoders
Extracting the relationship between high-dimensional neural recordings and complex behavior is a ubiquitous problem in neuroscience. Encoding and decoding models target the conditional distribution of neural activity given behavior and vice versa, while dimensionality reduction techniques extract low-dimensional representations thereof. Variational autoencoders (VAEs) are flexible tools for inferring such low-dimensional embeddings but struggle to accurately model arbitrary conditional distributions such as those arising in neural encoding and decoding, let alone simultaneously. Here, we present a VAE-based approach for calculating such conditional distributions. We first validate our approach on a task with known ground truth. Next, we retrieve conditional distributions over masked body parts of walking flies. Finally, we decode motor trajectories from neural activity in a monkey-reach task and query the same VAE for the encoding distribution. Our approach unifies dimensionality reduction and learning conditional distributions, allowing the scaling of common analyses in neuroscience to today's high-dimensional multi-modal datasets.
Authors
- Daniel Morales (ORCID: https://orcid.org/0000-0002-7469-0898)
- Richard Gao (ORCID: https://orcid.org/0000-0001-5916-6433)
- Pavan P Ramdya (ORCID: https://orcid.org/0000-0001-5425-4610)
- Victor Lobato Ríos (ORCID: https://orcid.org/0000-0003-2756-5856)
- Julius Vetter (ORCID: https://orcid.org/0009-0003-9839-9039)
- Auguste Schulz (ORCID: https://orcid.org/0000-0001-8616-3756)
- Pedro J. Gonçalves (ORCID: https://orcid.org/0000-0002-6987-4836)
- Jakob H. Macke (ORCID: https://orcid.org/0000-0001-5154-8912)
Institutions
- VIB-KU Leuven Center for Microbiology (BE)
- Bernstein Center for Computational Neuroscience Tübingen (DE)
- Neuroelectronics Research Flanders (BE)
- Max Planck Institute for Biology (DE)
- École Polytechnique Fédérale de Lausanne (CH)
- University of Tübingen (DE)
Publication Details
- Journal
- Cell Reports
- Published
- 2025-02-20
- DOI
- https://doi.org/10.1016/j.celrep.2025.115338
- Citations
- 2
- Primary Topic
- Neural dynamics and brain function
- Type
- article
- Field-Weighted Citation Impact
- 1.43
Funders
- Human Frontier Science Program
- Deutsche Forschungsgemeinschaft
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
- Consejo Nacional de Ciencia y Tecnología
- European Research Council
- HORIZON EUROPE Marie Sklodowska-Curie Actions