JEDI: Jointly Embedded Inference of Neural Dynamics

The paper introduces JEDI, a hierarchical model that jointly learns shared embeddings over recurrent neural network weights to robustly infer generalizable, task-specific neural dynamics from noisy, high-dimensional experimental recordings, successfully recovering underlying mechanistic structures and providing insights into motor control.

Anirudh Jamkhandi, Ali Korojy, Olivier Codol, Guillaume Lajoie, Matthew G. Perich

Published Thu, 12 Ma
📖 5 min read🧠 Deep dive

Imagine your brain is a massive, bustling orchestra. It has thousands of musicians (neurons) playing together to create everything from a simple tap of your foot to a complex symphony like playing the guitar or solving a math problem.

The big mystery in neuroscience is: How does the same orchestra play so many different songs?

Usually, when scientists try to figure out how the brain works, they look at the sheet music (the connections between neurons) for just one song. But the brain is smarter than that. It can switch songs instantly, change the tempo, and improvise, all while using the same group of musicians.

Enter JEDI (Jointly Embedded Inference of Neural Dynamics). Think of JEDI not as a single song, but as a super-smart conductor who can instantly rewrite the sheet music for the orchestra depending on what song needs to be played next.

Here is how it works, broken down into simple concepts:

1. The Problem: The "One-Size-Fits-All" Trap

Imagine you have a robot that can only play one song perfectly. If you ask it to play a different song, it fails.

  • Old Science: Scientists used to build computer models (like Recurrent Neural Networks) that were like that robot. They would train a model to understand one specific behavior (like a monkey reaching for a banana). Once trained, the model was "stuck" in that one mode. It couldn't easily switch to a new behavior without being completely retrained.
  • The Reality: The brain is flexible. It uses the same neurons to reach for a banana, then to scratch an itch, then to type a text message. The "wiring" (the connections) changes slightly to fit the new task, but the core machinery stays the same.

2. The Solution: The "Contextual Conductor" (JEDI)

JEDI is a new type of AI model that acts like a dynamic conductor.

  • The Orchestra (The Brain): This is the network of neurons.
  • The Sheet Music (The Weights): This is the specific pattern of connections that tells the neurons how to fire.
  • The Conductor's Baton (The Context Embedding): This is the secret sauce. JEDI learns a "context" for every situation.
    • If the task is "Reach Left," the conductor waves the baton a certain way, and the sheet music instantly rearranges itself to make the orchestra play the "Reach Left" song.
    • If the task is "Reach Right," the baton waves differently, and the sheet music rearranges again for the "Reach Right" song.

JEDI doesn't just memorize the songs; it learns the rules for how to rearrange the sheet music based on the context.

3. How It Learns: The "Master Recipe"

Instead of writing a new recipe for every single dish (every single trial of an experiment), JEDI learns a Master Recipe Book.

  • It looks at a bunch of different recordings of brain activity.
  • It realizes: "Oh, when the monkey is reaching for a red target, the neurons act like this. When it's a blue target, they act like that."
  • It creates a shared "space" where these different behaviors live. It learns that "Red Target" and "Blue Target" are neighbors in this space, and it knows exactly how to tweak the neural connections to move from one to the other.

4. The Magic: Seeing the Invisible

The coolest part of JEDI is that it doesn't just predict what the brain will do; it tells us why it does it.

By looking at the "sheet music" (the weights) that JEDI generates, scientists can see the hidden structure of the brain's logic:

  • The "Fixed Points": Imagine the brain is a ball rolling on a hilly landscape. Sometimes the ball gets stuck in a valley (a "fixed point"). JEDI can find these valleys. It showed that when a monkey is preparing to move, the brain settles into a specific "waiting valley." When the "Go!" signal comes, the ball rolls out of the valley toward the movement.
  • The "Edge of Chaos": JEDI discovered that during movement, the brain's activity hovers on a very specific edge—like a tightrope walker. It's stable enough not to fall apart, but unstable enough to be super fast and flexible. This explains how we can move so quickly and precisely.

5. Why This Matters

Before JEDI, if you wanted to understand how the brain handles 100 different tasks, you might need 100 different models. JEDI is like a universal translator. It takes a messy, noisy recording of brain activity and says:

"I see the pattern. I know that this specific 'context' triggers this specific 'dynamical rule.' And I can use that same rule to predict what happens in a situation I've never seen before."

In a nutshell:
JEDI is a tool that helps us understand that the brain isn't a static machine with one set of rules. It's a flexible, shape-shifting system. JEDI gives us the map to see how the brain reshapes its own wiring on the fly to handle the infinite variety of things we do every day. It turns the "black box" of the brain into a readable, understandable story of dynamics and flexibility.