Writing

Computation through dynamics

An illustrative summary of Safaie et al. (2023): similar latent dynamics in two animals despite recordings from different neurons.

Over the past few weeks, I’ve been exploring how a deeper understanding of neural computation could help us build neural interfaces that generalize across individuals and remain reliable over time.

Today, I wanted to consolidate what I’ve learned, explore the implications of recent research, and share some of my thoughts on where this direction could lead.

This will be a longer post than usual, so I’ve included a TL;DR below.

TL;DR: The computation through dynamics framework seeks to understand how the evolution of neural population activity implements the computations underlying cognition and behavior. Research suggests that aspects of these dynamical mechanisms can be preserved across networks despite differences in their internal representations. If we can identify computational structure that is preserved across individuals and recording sessions, we may be able to leverage it to build more generalizable neural interfaces that require substantially less recalibration and individual-specific training data.

A fundamental question in neuroscience is how networks of interconnected neurons perform the computations necessary for cognition and behavior.

One way to approach this question is to investigate what information individual neurons encode.

For instance, the activity of a neuron in the motor cortex might correlate with the direction of an upcoming movement. However, knowing what information is represented by a neural population doesn’t necessarily explain how that information is maintained, transformed, or used to generate behavior.

The computation through dynamics framework approaches this problem by studying the rules governing how neural population activity evolves over time.

Imagine representing the instantaneous activity of a population of N neurons as a point in an N-dimensional state space. As neurons interact with one another and respond to external inputs, the position of this point changes. The dynamics of the system describe how its current state and inputs determine its future state. In practice, much of the variation in neural population activity can often be captured within a much lower-dimensional latent space, making it possible to study these dynamics without explicitly modeling every individual neuron.

The structure of these dynamics can implement computations. Consider a simple decision-making task in which an individual must accumulate sensory evidence before choosing between two alternatives. A neural circuit could implement this computation through dynamics that integrate incoming evidence along a particular dimension of its state space. As evidence accumulates, the neural state moves in the direction associated with one of the alternatives until a decision threshold is reached.

Similarly, a network could maintain information in working memory through stable fixed points (Sussillo & Barak, 2013). Different inputs could move the neural state toward different fixed points, where it would remain even after the original input is removed. The dynamics surrounding these points could also correct small perturbations, allowing the network to maintain information despite noise.

What I find particularly compelling about this framework is that we can begin to explain neural computation by identifying the underlying dynamical mechanisms, rather than simply identifying correlations between neural activity and behavior.

This raises a question I’ve been particularly interested in from a neurotechnology perspective. How much of this computational structure is preserved across different neural networks, and what does this mean for the ability of neural decoders to generalize across individuals?

Maheswaranathan et al. (2019) trained RNNs with different architectures on the same tasks. Their internal representations differed, but they often converged on similar dynamical mechanisms, including the structure of fixed points and the local dynamics surrounding them.

Safaie et al. (2023) found a parallel result in the brain. Low-dimensional latent dynamics underlying motor planning and execution were well preserved across animals performing similar tasks, despite being recorded from different neurons in different individuals. After aligning these latent representations, the researchers were able to decode movement across animals.

For brain-computer interfaces, separating the recorded activity from the dynamics that generate it could be extremely useful.

One of the biggest challenges in neural decoding is that the neural activity we observe can change substantially across recording sessions and individuals, even when the behavior we are trying to decode remains relatively consistent.

If some of these changes reflect differences in how a shared dynamical process is expressed or recorded, rather than changes in the process itself, we could potentially learn a model of the underlying dynamics and adapt how new neural recordings map onto that model.

NoMAD (Karpowicz et al., 2025), from SNEL, demonstrates this across recording sessions within an individual, using previously learned latent dynamics to align changing recordings and maintain decoding performance without new behavioral labels. Safaie’s results suggest that a similar approach might extend across individuals.

There are still important limitations. Similar latent trajectories don’t guarantee identical underlying dynamics, since the same trajectory can arise from different dynamics or different inputs. Convergence on similar computational mechanisms isn’t guaranteed either.

Pagan et al. (2025) found substantial variability in the neural dynamics of rats performing the same decision-making task, even among high-performing animals. Interestingly, RNNs trained using conventional gradient descent explored only a restricted portion of the possible dynamical solutions. The extent to which neural dynamics are preserved may therefore depend on the nature of the underlying computation.

This also presents a challenge when inferring dynamical mechanisms from neural recordings. Differences between models fitted to different individuals could reflect genuine differences in neural computation or simply different solutions to the same modeling problem.

One approach to addressing this is to impose constraints on how models learn neural dynamics. DynISys (Versteeg et al., 2026), a preprint I particularly enjoyed reading, explores this by constraining the mapping between latent states and neural activity while explicitly modeling communication between brain regions.

An important open question, then, is how we can reliably distinguish computational structure that is shared across individuals from structure that is genuinely individual-specific.