The human brainโ€™s knack for improvisation is easy to take for granted. Once youโ€™ve learned to drive, adapting to a rental carโ€™s unfamiliar controls is mildly annoying, not a multi-week retraining project. Learn to bake bread, and a decent cake is mostly a matter of remixing skills you already have.

A new Nature study from Princeton neuroscientists suggests that this everyday flexibility rests on a very particular kind of neural reuse: the brain snaps together reusable patterns of activityโ€”โ€œcognitive Legosโ€โ€”to build new tasks on the fly.

Working with two rhesus macaques, Sina Tafazoli, Timothy Buschman and colleagues trained the animals to perform three related but distinct categorization tasks. Each trial showed a colorful, morphing blob that varied independently in shape (between a bunny-like and a T-like figure) and color (between red and green). The monkeys had to decide either โ€œwhich shape?โ€ or โ€œwhich color?โ€ and report their judgment with an eye movement to one of four targets. Crucially, the tasks were built from shared components: two tasks used the same color categorization but different eye-movement responses, while another shared the motor responses but switched which feature (shape vs. color) mattered.



By juggling these overlapping demands, the animals were effectively playing cognitive mix-and-match. That set-up allowed the researchers to test a simple question with big implications: does the brain literally reuse the same neural โ€œblocksโ€ when tasks share ingredients, or does it learn each task as a separate, opaque routine?

While the monkeys worked, the team recorded from hundreds of neurons across five regions, focusing on the lateral prefrontal cortex (LPFC), a hub of cognitive control. All of the regions carried information about the current task, the stimulus features, the chosen movement and whether the animal was rewarded. But in LPFC, patterns of activity corresponding to โ€œred vs. green,โ€ โ€œbunny vs. T,โ€ and specific eye-movement directions formed stable, low-dimensional โ€œsubspacesโ€ that were shared across tasks. A classifier trained on LPFC activity to read out color in one task, for example, could decode color in another task that used different movementsโ€”evidence that the same neural subspace was being reused rather than rebuilt from scratch.

Those shared subspaces werenโ€™t static labels; they were dynamically chained together. During the most compositional taskโ€”categorizing color but responding with the shape taskโ€™s eye-movement axisโ€”LPFC activity first evolved along the shared โ€œcolorโ€ subspace and then flowed into the shared โ€œmotorโ€ subspace corresponding to the appropriate response direction. Trial-by-trial analyses showed that the strength of color encoding at one moment predicted motor encoding tens of milliseconds later, suggesting a true transformation from one building block to the next.


Science = Truth Graffiti T-Shirt โ€ข Unisex STEM Tee โ€ข Street Art Science Shirt โ€ข Gift for Scientist, Teacher, Nerd

The brain also appeared to regulate which blocks were active based on what the animal believed the current task was. When task contingencies quietly changed between blocks, performance improved gradually as the monkeys inferred which of the three tasks they were now facing. LPFC activity during fixation carried a signature of that โ€œtask belief,โ€ and as that internal estimate shifted, the relevant sensory subspaceโ€”say, color rather than shapeโ€”was amplified, while now-irrelevant information was damped.

โ€œYou repurpose existing skills and combine them with new ones,โ€ Tafazoli explains in the accompanying press release, describing how the brain leans on old components to meet new demands.

Buschman likens these modules to programmer-style functions that can be wired together as needed. โ€œBy snapping together these โ€˜cognitive Legos,โ€™ the brain is able to build new tasks,โ€ he says. In other words, the prefrontal cortex doesnโ€™t learn a bespoke solution for each situation; it learns a reusable library and a way to call the right functions in sequence.

That picture dovetails with a large body of work positioning prefrontal cortex as the control center for goal-directed behavior and task switching, coordinating what information is relevant and which actions should follow. Cognitive scientists have long argued that human intelligence depends on compositionalityโ€”the ability to combine known elements into new structures, from sentences to recipes to problem-solving strategies. The new study puts concrete neural machinery under that abstract idea, showing how compositionality might be implemented in real populations of neurons.

The findings also sharpen a contrast with todayโ€™s most powerful AI systems. Deep neural networks can rival humans on individual benchmarks, but when theyโ€™re trained sequentially on different tasks they tend to overwrite what they previously knew, a problem known as catastrophic forgetting or catastrophic interference. โ€œA major issue with machine learning is catastrophic interference,โ€ Tafazoli notes, arguing that the brainโ€™s modular strategy helps avoid this fate by reusing and selectively activating existing blocks instead of reconfiguring the entire system for each new skill.

Researchers in machine learning are already exploring ways to bake compositionality and modularity into artificial networks, from meta-learning architectures that can recombine learned functions to continual-learning algorithms that protect important parameters. The Princeton work gives those engineering efforts a fresh biological target: shared task subspaces that can be flexibly engaged or suppressed as circumstances change.

Perhaps most tantalizing are the potential clinical echoes. Disorders such as obsessive-compulsive disorder and some forms of schizophrenia are marked by rigid, perseverative behavior and difficulty shifting mental sets, often linked to disrupted function in prefrontal circuits. If flexible behavior depends on being able to reconfigure and recombine cognitive blocks, then understanding how those blocks breakโ€”or fail to switch offโ€”could ultimately inform new interventions. As Tafazoli puts it, โ€œImagine being able to help people regain the ability to shift strategies, learn new routines, or adapt to change.โ€

There are caveats. The tasks here are deliberately stripped-down, far from the messy, multi-layered demands of real life, and the study relies on invasive recordings in monkeys, not humans reporting their thoughts. It remains to be seen how neatly these prefrontal subspaces map onto the constructs psychologists use to measure cognitive flexibility, or whether similar building blocks underlie language, social reasoning and abstract conceptual learning.

Still, by opening a window onto how brains recycle their own activity patterns, the work offers a rare glimpse of general intelligence in actionโ€”not as a monolithic โ€œIQ,โ€ but as a smart way of reusing old tools to meet new challenges.


Endnotes

  1. Sina Tafazoli et al., โ€œBuilding compositional tasks with shared neural subspaces,โ€ Nature (2025).
  2. โ€œโ€˜Cognitive Legosโ€™ help the brain build complex behaviors,โ€ Princeton University news release via EurekAlert, 26 Nov 2025.
  3. Naomi P. Friedman & Akira Miyake, โ€œThe role of prefrontal cortex in cognitive control and executive function,โ€ Molecular Psychiatry 27, 2022.
  4. Barbara Pomiechowska & Brenden M. Lake, โ€œCompositionality in minds, brains and machines: a unifying framework,โ€ 2024 preprint; and Brenden M. Lake et al., โ€œBuilding machines that learn and think like people,โ€ Behavioral and Brain Sciences 40, 2017.
  5. Ali Behrouz et al., โ€œContinual Learning and Catastrophic Forgetting: A Survey,โ€ arXiv preprint (2024); and James Kirkpatrick et al., โ€œOvercoming catastrophic forgetting in neural networks,โ€ PNAS 114, 2017.
  6. Susanne E. Ahmari & Michael J. Dougherty, โ€œThe prefrontal cortex and OCD,โ€ Neuropsychopharmacology 46, 2021; and P.L. Remijnse et al., โ€œCognitive Inflexibility in Obsessive-Compulsive Disorder and Major Depression,โ€ PLOS ONE 8, 2013.


Scientists develop light-controlled method to trigger brain signals
Researchers created artificial synaptic vesicles that use near-infrared light for precise neurotransmitter …
A built-in odometer: new study reveals how the brain measures distance
Scientists study path integration in mice, revealing how the brain tracks distance …

Leave a Reply

Trending

Discover more from Scientific Inquirer

Subscribe now to keep reading and get access to the full archive.

Continue reading