Abstract
A neural system has the ability to flexibly perform many tasks, but the underlying mechanism cannot be elucidated in traditional experimental and modeling studies designed for one task at a time. Here, we trained a single network model to perform 20 cognitive tasks that may involve working memory, decision-making, categorization and inhibitory control. We found that after training, recurrent units developed into clusters that are functionally specialized for various cognitive processes. We introduce a measure to quantify relationships between single-unit neural representations of tasks, and report five distinct types of such relationships that can be tested experimentally. Surprisingly, our network developed compositionality of task representations, a critical feature for cognitive flexibility, whereby one task can be performed by recombining instructions for other tasks. Finally, we demonstrate how the network could learn multiple tasks sequentially. This work provides a computational platform to investigate neural representations of many cognitive tasks.
Introduction
The primate prefrontal cortex (PFC) is renowned for its remarkable flexibility, enabling individuals to switch between complex cognitive tasks almost instantaneously. However, most computational models in neuroscience are "specialists," optimized for a single task. This study by Yang et al. (2017) bridges the gap between artificial intelligence and cognitive neuroscience by exploring how a single recurrent neural circuit can manage the multitasking demands of the PFC. The authors investigate whether the brain employs task-specific neurons or if a generalist population with mixed selectivity underlies this flexibility.
Methods and Task Performance
The researchers developed a Recurrent Neural Network (RNN) consisting of 256 units. RNNs are particularly suited for cognitive modeling due to their internal loops, which allow for the maintenance of information over time—a prerequisite for working memory. The network was trained on a battery of 20 cognitive tasks categorized into five families: Go, Anti (inhibitory control), Decision-Making (DM), Delayed DM, and Matching.
Inputs to the network included a fixation cue, two sensory modalities encoding directions, and a "rule" input indicating the current task. Training utilized the Adam optimizer to minimize the difference between the network's output and target responses. To decode the network's internal logic, the authors introduced Task Variance (TV) to measure unit activity changes across tasks.
As shown in the performance curves, the single network successfully mastered all 20 tasks. Furthermore, it exhibited psychometric properties consistent with biological observations, such as improved accuracy in decision-making tasks with longer stimulus durations.
Functional Specialization and Clustering
Post-training analysis revealed that the network naturally organized into approximately 10 functional clusters. While some units acted as "generalists" across many tasks, others became highly specialized. For example, specific clusters emerged to handle the "Anti" task family, which requires responding in the opposite direction of a stimulus.
This specialization is evident in the recurrent weight matrix, where units within a functional group (like the Anti units) show distinct connectivity patterns, including strong self-excitation and specific inhibitory relationships with other groups.
Compositionality and Vector Logic
Perhaps the most striking finding was the emergence of "compositional" representations. By analyzing population activity in state space, the authors found that task rules are represented as vectors. This geometric structure allows for algebraic compositionality: the network can perform a novel task by mathematically combining rule instructions from known tasks. For instance, the rule for a "Delayed Anti" task can be derived by adding the "delay" component of one task to the "anti" component of another, enabling zero-shot task execution.
Discussion
While the use of backpropagation differs from biological learning, this model provides a robust framework for understanding multitask representations. The discovery of vector-like rule logic and functional clustering offers testable hypotheses for neurophysiological studies of the PFC. Future research may expand this model to include hierarchical task structures and more biologically plausible synaptic plasticity rules to further decode the complexities of human cognition.
Summary updated