Identifying Connectivity Distributions from Neural Dynamics Using Flows
Abstract
Connectivity structure shapes neural computation, but inferring this structure from population recordings is degenerate: multiple connectivity structures can generate identical dynamics. Recent work uses low-rank recurrent neural networks (lrRNNs) to infer low-dimensional latent dynamics and connectivity from observed activity, enabling a mechanistic interpretation of the dynamics. However, standard approaches for training lrRNNs can recover spurious structures irrelevant to the underlying dynamics. We first characterize the identifiability of connectivity structures in lrRNNs and determine conditions under which a unique solution exists. To find such solutions, we develop an inference framework based on maximum entropy and continuous normalizing flows (CNFs), trained via flow matching. Instead of estimating a single connectivity matrix, our method learns a distribution over connection weights that is maximally unbiased over unidentifiable components while matching the observed dynamics. This approach captures complex yet necessary distributions such as heavy-tailed connectivity found in empirical data. We validate our method on synthetic datasets with connectivity structures that generate multistable attractors, limit cycles, and ring attractors, and demonstrate its applicability in recordings from rat frontal cortex during decision-making. Our framework shifts circuit inference from recovering connectivity to identifying which connectivity structures are computationally required, and which are artifacts of underconstrained inference.
Lay Summary
The brain uses a set of rules—which we call "dynamics"—to perform computation (e.g., decision-making, working memory, navigation...). How do these rules—or dynamics—arise from the way neurons in our brain are connected to each other? Inferring connectivity from dynamics alone is fundamentally challenging because many different connectivities can generate identical dynamics. To address this, we identified the mathematical source of this degeneracy, and developed a framework that infers, among the set of possible connectivities, the simplest one that is consistent with the data. This helps us tell apart which component of the inferred connectivity is necessary for the observed dynamics, and which is just guesswork. This allows us to focus on the component of the connectivity that matters, and generate sharper, experimentally testable hypotheses about how the brain works.