Nature NeuroscienceNeurosciencePeer-reviewed journal article
Flexible multitask computation in recurrent networks utilizes shared dynamical motifs
Abstract
Flexible computation is a hallmark of intelligent behavior. Yet, little is known about how neural networks contextually reconfigure for different computations. Humans are able to perform a new task without extensive training, presumably through the composition of elementary processes that were previously learned. Cognitive scientists have long hypothesized the possibility of a compositional neural code, where complex neural computations are made up of constituent components; however, the neural substrate underlying this structure remains elusive in biological and artificial neural networks. Here we identified an algorithmic neural substrate for compositional computation through the study of multitasking artificial recurrent neural networks. Dynamical systems analyses of networks revealed learned computational strategies that mirrored the modular subtask structure of the task-set used for training. Dynamical motifs such as attractors, decision boundaries and rotations were reused across different task computations. For example, tasks that required memory of a continuous circular variable repurposed the same ring attractor. We show that dynamical motifs are implemented by clusters of units and are reused across different contexts, allowing for flexibility and generalization of previously learned computation. Lesioning these clusters resulted in modular effects on network performance: a lesion that destroyed one dynamical motif only minimally perturbed the structure of other dynamical motifs. Finally, modular dynamical motifs could be reconfigured for fast transfer learning. After slow initial learning of dynamical motifs, a subsequent faster stage of learning reconfigured motifs to perform novel tasks. This work contributes to a more fundamental understanding of compositional computation underlying flexible general intelligence in neural systems. We present a conceptual framework that establishes dynamical motifs as a fundamental unit of computation, intermediate between the neuron and the network. As more whole brain imaging studies record neural activity from multiple specialized systems simultaneously, the framework of dynamical motifs will guide questions about specialization and generalization across brain regions.
- research focus: benchmarking
- research focus: software / tool
- approach: statistical model
- approach: experimental assay
- Citations
- 217
- FWCI
- 26.66
- Field percentile
- top 1%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Interpretable compositional computation with recurrent neural networks
Louis Pezon, Alexander van Meegen·bioRxiv·Jun 29, 2026
- Multitasking Recurrent Networks Utilize Compositional Strategies for Control of Movement
John Lazzari, Shreya Saxena·bioRxiv·Sep 10, 2025
- Reusable modular architecture enables flexible cognitive operations in the mouse brain and artificial recurrent networks
Yuma Osako, Greggory R. Heller, … Mriganka Sur·Nature NeurosciencePeer-reviewed·Aug 17, 2026
- Biologically plausible learning in recurrent neural networks reproduces neural dynamics observed during cognitive tasks
Thomas Miconi·eLifePeer-reviewed·Feb 23, 2017
- Parallel processing of orthogonal manifolds enables zero-shot composition in recurrent networks
Yuma Osako, Aineias Arango, Toshitake Asabuki·bioRxiv·Jun 17, 2026
- Building compositional tasks with shared neural subspaces
Sina Tafazoli, Flora Bouchacourt, … Timothy J. Buschman·NaturePeer-reviewed·Nov 26, 2025