Building compositional tasks with shared neural subspaces
Sina Tafazoli, Flora Bouchacourt, Adel Ardalan et al. · Nature · 2025
Abstract Cognition is highly flexible—we perform many different tasks 1 and continually adapt our behaviour to changing demands 2,3 . Artificial neural networks trained to perform multiple tasks will reuse representations 4 and computational components 5 across tasks. By composing tasks from these subcomponents, an agent can flexibly switch between tasks and rapidly learn new tasks 6,7 . Yet, whether such compositionality is found in the brain is unclear. Here we show the same subspaces of neural activity represent task-relevant information across multiple tasks, with each task flexibly engaging these subspaces in a task-specific manner. We trained monkeys to switch between three compositionally related tasks. In neural recordings, we found that task-relevant information about stimulus features and motor actions were represented in subspaces of neural activity that were shared across tasks. When monkeys performed a task, neural representations in the relevant shared sensory subspace were transformed to the relevant shared motor subspace. Monkeys adapted to changes in the task by iteratively updating their internal belief about the current task and then, based on this belief, flexibly engaging the shared sensory and motor subspaces relevant to the task. In summary, our findings suggest that the brain can flexibly perform multiple tasks by compositionally combining task-relevant neural representations.
Cited by 46 works. doi:10.1038/s41586-025-09805-2
Authors
- Sina Tafazoli
- Flora Bouchacourt
- Adel Ardalan
- Nikola T. Markov
- Motoaki Uchimura
- Marcelo Gomes Mattar
- Nathaniel D. Daw
- Timothy J. Buschman
References
- Nonparametric Tests Against Trend
- An Integrative Theory of Prefrontal Cortex Function
- Overcoming catastrophic forgetting in neural networks
- Nonparametric statistical testing of EEG- and MEG-data
- Learning without Forgetting
- Building machines that learn and think like people
- A modified Mann-Kendall trend test for autocorrelated data
- The influence of autocorrelation on the ability to detect trend in hydrological series
- How to Grow a Mind: Statistics, Structure, and Abstraction
- Context-dependent computation by recurrent dynamics in prefrontal cortex