JEDI: Jointly Embedded Inference of Neural Dynamics

Anirudh Jamkhandi, Ali Korojy, Olivier Codol, Guillaume Lajoie, Matthew G. Perich
3/11/2026
q-bio.NCcs.AIcs.LG

No official code found. Best implementation: sinthlab/JEDI (2 stars, last commit 2026-03-16).

Abstract

Animal brains flexibly and efficiently achieve many behavioral tasks with a single neural network. A core goal in modern neuroscience is to map the mechanisms of the brain's flexibility onto the dynamics underlying neural populations. However, identifying task-specific dynamical rules from limited, noisy, and high-dimensional experimental neural recordings remains a major challenge, as experimental data often provide only partial access to brain states and dynamical mechanisms. While recurrent neural networks (RNNs) directly constrained neural data have been effective in inferring underlying dynamical mechanisms, they are typically limited to single-task domains and struggle to generalize across behavioral conditions. Here, we introduce JEDI, a hierarchical model that captures neural dynamics across tasks and contexts by learning a shared embedding space over RNN weights. This model recapitulates individual samples of neural dynamics while scaling to arbitrarily large and complex datasets, uncovering shared structure across conditions in a single, unified model. Using simulated RNN datasets, we demonstrate that JEDI accurately learns robust, generalizable, condition-specific embeddings. By reverse-engineering the weights learned by JEDI, we show that it recovers ground truth fixed point structures and unveils key features of the underlying neural dynamics in the eigenspectra. Finally, we apply JEDI to motor cortex recordings during monkey reaching to extract mechanistic insight into the neural dynamics of motor control. Our work shows that joint learning of contextual embeddings and recurrent weights provides scalable and generalizable inference of brain dynamics from recordings alone.

View on arXivView PDF

Code Implementations(1)

sinthlab/JEDICommunity25%

Official code for paper "JEDI: Jointly Embedded Inference of Neural Dynamics"

20Shell, PythonMar 16, 20267 months ago

Similar Papers

Cite this paper

@article{jamkhandi2026jedi,
  title  = {JEDI: Jointly Embedded Inference of Neural Dynamics},
  author = {Anirudh Jamkhandi and Ali Korojy and Olivier Codol and Guillaume Lajoie and Matthew G. Perich},
  year   = {2026},
  eprint = {2603.10489},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.10489v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.10489.svg)](https://codeofpaper.com/paper/2603.10489)

Discussion