Working memory expands shared task representations in cortex

E. Mika Diamanti, Lucas Pinto, Manuel Schottdorf, Abigail A. Russo, Stephan Y. Thiberge, Carlos D. Brody, David W. TankbioRxiv 2025

Abstract

Cognition is thought to emerge from the flexible organization of neural activity, yet how this organization reconfigures across behaviors varying in cognitive load remains unclear. We investigated how the structure of working-memory representations in the cortex compares to task representations that do not involve working memory. We used a task-switching paradigm in virtual reality, where mice alternated between a navigation-based working-memory task and a simpler task with matched sensorimotor demands. During behavior, we simultaneously imaged three cortical areas: higher visual area AM, and two association areas—premotor (M2) and retrosplenial cortex. At the single-neuron level, trial-averaged activity appeared similar across tasks. However, pairwise correlations decreased during the working-memory task, particularly in association areas. In addition, the corresponding linear task subspace explained the variance of both tasks equally well, whereas the simpler task subspace failed to do so, suggesting an asymmetric relationship between them. Nonlinear dimensionality reduction revealed a shared low-dimensional structure across tasks. Yet, the organization of neuronal firing fields along this shared structure accounted for the difference in pairwise correlations: in the working-memory task, firing fields were more disjoint, especially among neurons in association areas that formed sequences along the memory dimension. Moreover, the degree of overlap between these firing fields predicted the mice's behavioral reliance on working memory. We conclude that behaviors varying in cognitive demands are supported by a single low-dimensional neural structure, which can expand or contract depending on cognitive load. We thus provide a framework for how task representations across the cortex reconfigure to support cognitive processes.

Introduction

A central mystery in neuroscience is how the brain's "hardware" (neural populations) flexibly supports different "software" (behavioral tasks) as cognitive complexity changes. Specifically, when moving from a simple, stimulus-driven behavior to one requiring working memory (WM), it remains unclear whether the brain recruits distinct neural circuits or reshapes existing activity patterns. While previous research has identified sustained activity and sequential firing as hallmarks of WM, the global reconfiguration of the neural "state space"—the geometric structure of population activity—during task switching has not been fully characterized.

Experimental Framework

To address this, researchers utilized a task-switching paradigm in virtual reality. Mice navigated a T-maze, alternating between a high-WM load "Towers" task (counting visual cues to decide a turn) and a low-WM load "Visually Guided" task (following a simple landmark). Crucially, sensorimotor demands like running and visual input were matched between tasks.

Using a random-access two-photon mesoscope, the team performed large-scale imaging of approximately 27,000 neurons across three cortical regions: the premotor cortex (M2), retrosplenial cortex (RSC), and higher visual area (AM). The analysis combined linear subspace methods (PCA) with nonlinear manifold inference (MIND) to reconstruct the low-dimensional "surface" upon which neural activity evolves.

The Geometric Asymmetry of Task Representations

A key finding of the study is the "asymmetry of complexity." Analysis of the linear subspaces revealed that the dimensions used by the brain during the WM task (Towers) were broad enough to capture the activity of the simpler task. Conversely, the subspace defined by the visually guided task was too narrow to explain the WM activity.

Asymmetry in task subspace representation and neural correlations. Panels show correlation matrices (g), variance explained by components (j), and the variance explained index (l).

This suggests that the WM task represents a geometric expansion of the simpler behavior. While both tasks share an underlying nonlinear manifold "backbone," the WM task stretches this structure, causing neurons to distribute themselves across a larger volume of the state space. This expansion is reflected in the variance explained (VE) index: the visually guided subspace had a negative VE index (median -0.11), failing to capture WM activity, whereas the WM subspace captured both tasks equally well.

Neural Decorrelation and Cortical Specialization

Despite trial-averaged activity looking similar across tasks at the single-neuron level, the population dynamics showed a significant drop in pairwise correlations during the WM task. This decorrelation was not merely noise reduction but a structural consequence of the manifold expansion. In the Towers task, neurons that fired at similar times in the simple task "spread out," making their manifold firing fields more disjoint.

Average pairwise correlations between (h) and within (i) cortical areas decrease significantly during the working-memory task compared to the visually guided task.

These effects—both the manifold expansion and the correlation drop—were significantly more pronounced in association areas (M2 and RSC) than in the primary visual area (AM). Furthermore, the degree to which a mouse's manifold fields became disjoint predicted its behavioral reliance on evidence accumulation, linking the geometric structure of neural activity directly to cognitive performance.

Conclusion

This research suggests that working memory does not require a separate neural "room" but rather a stretching of the existing cortical "floorplan." By expanding a shared low-dimensional manifold, the brain allows neurons to become more specialized and their activity more independent to meet higher cognitive demands. Future work will be needed to determine if these principles extend to subcortical structures and how these expanded representations are constructed during the learning process.

Summary updated

BibTeX
@misc{diamanti2025working,
  author = {E. Mika Diamanti and Lucas Pinto and Manuel Schottdorf and Abigail A. Russo and Stephan Y. Thiberge and Carlos D. Brody and David W. Tank},
  title = {{Working memory expands shared task representations in cortex}},
  year = {2025},
  doi = {10.1101/2025.09.29.679345},
  howpublished = {bioRxiv},
}
Figure