Flexible gating between subspaces in a neural network model of internally guided task switching
Abstract
Behavioral flexibility relies on the brains ability to switch rapidly between multiple tasks, even when the task rule is not explicitly cued but must be inferred through trial and error. The underlying neural circuit mechanism remains poorly understood. We investigated recurrent neural networks (RNNs) trained to perform an analog of the classic Wisconsin Card Sorting Test. The networks consist of two modules responsible for rule representation and sensorimotor mapping, respectively, where each module is comprised of a circuit with excitatory neurons and three major types of inhibitory neurons. We found that rule representation by self-sustained persistent activity across trials, error monitoring and gated sensorimotor mapping emerged from training. Systematic dissection of trained RNNs revealed a detailed circuit mechanism that is consistent across networks trained with different hyperparameters. The networks dynamical trajectories for different rules resided in separate subspaces of population activity; the subspaces collapsed and performance was reduced to chance level when dendrite-targeting somatostatin-expressing interneurons were silenced, illustrating how a phe-nomenological description of representational subspaces is explained by a specific circuit mechanism.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Approach
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
- Spiking recurrent neural networks represent task-relevant neural sequences in rule-dependent computation
Xiaohe Xue, Ralf D. Wimmer, … Zhe Sage Chen·Cognitive ComputationPeer-reviewed·Feb 5, 2022
- Considerations in using recurrent neural networks to probe neural dynamics
Jonathan C. Kao·Journal of NeurophysiologyPeer-reviewed·Oct 16, 2019
- Spatially heterogeneous inhibition projects sequential activity onto unique neural subspaces
Andrew B. Lehr, Arvind Kumar, Christian Tetzlaff·bioRxiv·Sep 15, 2023
- In search for the invisible: motor inhibition in monkey premotor cortex and its RNN replicas
Nicola Alboré, Andrea Galluzzi, … Maurizio Mattia·bioRxiv·Nov 24, 2025
- Convergent neural dynamical systems for task control in artificial networks and human brains
Harrison Ritz, Aditi Jha, … Jonathan D. Cohen·bioRxiv·Sep 29, 2024
- Diverse and flexible behavioral strategies arise in recurrent neural networks trained on multisensory decision making
Thomas S. Wierda, Shirin Dora, … Jorge F. Mejías·PLoS Computational BiologyPeer-reviewed·Oct 9, 2025