Extracting task-relevant preserved dynamics from contrastive aligned neural recordings
Yiqi Jiang, Kaiwen Sheng, Yujia Gao, Estefany Kelly Buchanan, Yu Shikano, Seung Je Woo, Yixiu Zhao, Tony Hyun Kim, Fatih Dinc, Scott W. Linderman, Mark J. Schnitzer
Abstract
Recent work indicates that low-dimensional dynamics of neural and behavioral data are often preserved across days and subjects. However, extracting these preserved dynamics remains challenging: high-dimensional neural population activity and the recorded neuron populations vary across recording sessions. While existing modeling tools can improve alignment between neural and behavioral data, they often operate on a per-subject basis or discretize behavior into categories, disrupting its natural continuity and failing to capture the underlying dynamics. We introduce Contrastive Aligned Neural DYnamics (CANDY), an end-to-end framework that aligns neural and behavioral data using rank-based contrastive learning, adapted for continuous behavioral variables, to project neural activity from different sessions onto a shared low-dimensional embedding space. CANDY fits a shared linear dynamical system to the aligned embeddings, enabling an interpretable model of the conserved temporal structure in the latent space. We validate CANDY on synthetic and real-world datasets spanning multiple species, behaviors, and recording modalities. Our results show that CANDY is able to learn aligned latent embeddings and preserved dynamics across neural recording sessions and subjects, and it achieves improved cross-session behavior decoding performance. We further show that the latent linear dynamical system generalizes to new sessions and subjects, achieving comparable or even superior behavior decoding performance to models trained from scratch. These advances enable robust cross-session behavioral decoding and offer a path towards identifying shared neural dynamics that underlie behavior across individuals and recording conditions. The code and two-photon imaging data of striatal neural activity that we acquired here are available at https://github.com/schnitzer-lab/CANDY-public.git.
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.
Builds on26
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- A Unified, Scalable Framework for Neural Population DecodingMehdi Azabou, Vinam Arora, Venkataramana Ganesh, Ximeng Mao et al.NeurIPS 2023 · 136 citations
- Rank-N-Contrast: Learning Continuous Representations for RegressionKaiwen Zha, Peng Cao, Jeany Son, Yuzhe Yang et al.NeurIPS 2023 · 129 citations
Related papers
- Extraction and Recovery of Spatio-Temporal Structure in Latent Dynamics Alignment with Diffusion ModelYule Wang, Zijing Wu, Chengrui Li, Anqi WuNeurIPS 2023 · 16 citations
- Robust alignment of cross-session recordings of neural population activity by behaviour via unsupervised domain adaptationJustin Jude, Matthew G. Perich, Lee E. Miller, Matthias H. HennigICML 2022 · 26 citations
- Time-Evolving Dynamical System for Learning Latent Representations of Mouse Visual Neural ActivityLiwei Huang, Zhengyu Ma, Liutao Yu, Huihui Zhou et al.NeurIPS 2025
- Targeted Neural Dynamical ModelingCole L. Hurwitz, Akash Srivastava, Kai Xu, Justin Jude et al.NeurIPS 2021 · 55 citations
- Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion ModelsYule Wang, Chengrui Li, Weihan Li, Anqi WuNeurIPS 2024 · 13 citations
