Spatially-embedded recurrent neural networks reveal widespread links between structural and functional neuroscience findings

Jascha Achterberg, Danyal Akarca, Dj Strouse, John Duncan, Duncan E. Astle

Abstract

Brain networks exist within the confines of resource limitations. As a result, a brain network must overcome metabolic costs of growing and sustaining the network within its physical space, while simultaneously implementing its required information processing. To observe the effect of these processes, we introduce the spatially-embedded recurrent neural network (seRNN). seRNNs learn basic task-related inferences while existing within a 3D Euclidean space, where the communication of constituent neurons is constrained by a sparse connectome. We find that seRNNs, similar to primate cerebral cortices, naturally converge on solving inferences using modular small-world networks, in which functionally similar units spatially configure themselves to utilize an energetically-efficient mixed-selective code. As all these features emerge in unison, seRNNs reveal how many common structural and functional brain motifs are strongly intertwined and can be attributed to basic biological optimization processes. seRNNs can serve as model systems to bridge between structural and functional research communities to move neuroscientific understanding forward.

Introduction

A fundamental challenge in neuroscience is bridging the gap between brain structure—the physical connectome—and brain function—the neural activity that drives behavior. Biological brains are characterized by specific structural motifs, such as modularity, sparsity, and "small-world" connectivity. However, the evolutionary and developmental drivers of these motifs are not fully understood. While standard artificial neural networks (ANNs) are powerful functional models, they typically lack physical embodiment, treating neurons as abstract units in a non-spatial matrix. This study introduces spatially-embedded recurrent neural networks (seRNNs) to investigate how physical constraints, specifically the metabolic cost of long-distance wiring, shape the emergence of biological brain motifs.

Methods: The seRNN Framework

The seRNN is a recurrent neural network where 100 hidden units are assigned fixed coordinates on a $5 \times 5 \times 4$ grid. Unlike abstract RNNs, the seRNN is trained using a spatial loss function that penalizes long-distance connections:

$$L = L_{Task} + \gamma ||W \odot D \odot C||$$

In this equation, $W$ is the weight matrix, $D$ is the Euclidean distance matrix, and $C$ is a "communicability" term that rewards connections facilitating efficient signal flow. This framework forces the network to optimize for task performance while minimizing the "cost" of its physical architecture.

Overview of the seRNN framework, including spatial embedding in Euclidean (a) and topological (b) spaces, the neuronal unit model (c), and the training regularization scheme (d).

Experimental Task: One-Step Inference

To evaluate functional performance, the networks were trained on a one-choice inference task, a simplified version of navigation tasks used in macaque research. In each trial, the network receives a "goal location" stimulus, followed by a 10-step delay period requiring memory maintenance, and finally two "choice options." The network's objective is to identify the choice closest to the original goal. The researchers compared 1,000 seRNNs against 1,000 L1-regularized baseline RNNs (which encourage sparsity without considering physical distance) across various regularization strengths.

The one-step inference task requires the network to maintain a goal direction in memory and select the correct choice option after a delay.

Key Insights and Results

Emergence of Biological Motifs

The study found that modularity and small-world connectivity emerge naturally in seRNNs within a specific "critical window" of regularization. If the spatial penalty is too low, the network remains a dense, inefficient mess; if too high, it becomes too sparse to function. Within the optimal range, modularity emerged as the most economical way to process information while minimizing wiring costs.

Functional Co-localization and Mixed Selectivity

seRNNs exhibited functional co-localization, where neurons coding for the same task variables physically clustered together, mirroring the "tuning maps" found in primate visual and prefrontal cortices. Additionally, seRNNs developed "mixed-selective" neurons—units responding to multiple task variables simultaneously. This coding scheme proved significantly more energy-efficient, achieving high task performance with lower mean unit activation compared to non-spatial models.

Performance and Topology

Both seRNNs and L1 baselines achieved high validation accuracy (>95%). However, seRNNs showed significantly higher modularity ($p = 2.24 \times 10^{-82}$) and small-worldness ($p = 2.82 \times 10^{-19}$). The topology of seRNNs was best described by "homophily" rules, matching empirical data from human adolescent connectomes and rodent micro-circuits.

Discussion

seRNNs demonstrate that many structural and functional motifs of the biological brain can be attributed to basic biological optimization processes. While the model simplifies certain biological realities—such as the lack of separate excitatory/inhibitory neurons or dynamic neuron migration—it provides a robust framework for bridging structural and functional neuroscience. Future work could extend this model to multi-task environments and dynamic developmental simulations to further uncover the principles of neural organization.

Summary updated

Abstract

ABSTRACT Brain networks exist within the confines of resource limitations. As a result, a brain network must overcome metabolic costs of growing and sustaining the network within its physical space, while simultaneously implementing its required information processing. To observe the effect of these processes, we introduce the spatially-embedded recurrent neural network (seRNN). seRNNs learn basic task-related inferences while existing within a 3D Euclidean space, where the communication of constituent neurons is constrained by a sparse connectome. We find that seRNNs, similar to primate cerebral cortices, naturally converge on solving inferences using modular small-world networks, in which functionally similar units spatially configure themselves to utilize an energetically-efficient mixed-selective code. As all these features emerge in unison, seRNNs reveal how many common structural and functional brain motifs are strongly intertwined and can be attributed to basic biological optimization processes. seRNNs can serve as model systems to bridge between structural and functional research communities to move neuroscientific understanding forward.
BibTeX
@article{achterberg2023spatially,
  author = {Jascha Achterberg and Danyal Akarca and DJ Strouse and John Duncan and Duncan E. Astle},
  title = {{Spatially-embedded recurrent neural networks reveal widespread links between structural and functional neuroscience findings}},
  journal = {Nat. Mac. Intell},
  year = {2023},
  doi = {10.1038/s42256-023-00748-9},
}
Figure