Efficient Working Memory Maintenance via High-Dimensional Rotational Dynamics

Laura Mantoan Ritter, Angus ChadwickbioRxiv 2025

Abstract

Working memory (WM) is fundamental to higher-order cognition, yet the circuit mechanisms through which memoranda are maintained in neural activity after removal of sensory input remain subject to vigorous debate. Prominent theories propose that stimuli are encoded in either stable and persistent activity patterns configured through attractor mechanisms or dynamic and time-varying activity patterns brought about through functionally-feedforward network architectures. However, cortical circuits exhibit heterogeneous responses during WM tasks that are challenging to reconcile with either hypothesis. We hypothesised that these complex response dynamics could emerge from an optimally noise-robust and energetically efficient solution to WM tasks. We show that, in contrast to previous theories, networks optimised for efficient WM encoding exhibit high-dimensional rotational dynamics. We find direct evidence for these rotational dynamics in large-scale recordings from monkey prefrontal cortex. Our findings suggest that the complex and dynamic response properties of WM circuits emerge from efficient coding principles.

Introduction

How does the brain hold onto a thought? This question lies at the heart of working memory (WM) research. For decades, the field has been split between two dominant paradigms. Attractor models suggest that information is stored in stable, persistent firing patterns. While these models are metabolically efficient, they are notoriously fragile; small amounts of neural noise can cause the memory to "drift" and degrade over time. Conversely, feedforward models propose that information is passed through a sequence of neurons like a relay race. These models are robust to noise but require significant metabolic energy to amplify signals as they move through the chain.

Neither model perfectly captures the complex, time-varying activity observed in the prefrontal cortex (PFC) during memory tasks. This study investigates whether these "messy" dynamics are actually an optimal solution to a fundamental trade-off: maximizing accuracy (noise-robustness) while minimizing metabolic cost (energetic efficiency).

Methods: Solving for Efficiency

The researchers employed a normative approach, optimizing continuous-time Recurrent Neural Networks (RNNs) to find the mathematically "best" solution for WM maintenance. The optimization targeted two primary goals:

  1. Maximizing the Signal-to-Noise Ratio (SNR): Ensuring the decoded stimulus remains clear over time.
  2. Minimizing Firing Rates: Using metabolic energy as a constraint.

By applying gradient descent to these linear networks and benchmarking them against a Bayesian upper bound, the authors identified a unique dynamical motif that outperformed traditional models.

Results: The Rotational "Goldilocks" Solution

The optimized networks did not settle into stable attractors, nor did they simply pass information forward. Instead, they developed high-dimensional rotational dynamics.

Comparison of Attractor, Feedforward, and Optimised (Rotational) dynamics across SNR, scaling, and energy metrics.

As shown in Figure 1, the rotational dynamics represent a "middle ground" that captures the best of both worlds. While attractor models (Row A) show a rapid decay in SNR over time and feedforward models (Row B) require exponential increases in energy as the network size grows, the optimized rotational networks (Row C) maintain high SNR with a significantly lower and more stable energy footprint. Adding more neurons to a rotational network actually decreases the energy cost per neuron to maintain performance, a scaling property not seen in feedforward architectures.

Dynamic Coding and Orthogonal Subspaces

One of the most striking features of these rotational networks is "dynamic coding." In these systems, a neuron's tuning is not fixed; its selectivity for a stimulus changes over time as the representation rotates through high-dimensional space. This rotation occurs in orthogonal subspaces, allowing the network to store multiple pieces of information (e.g., color and location) without interference.

Evolution of network dynamics and cross-temporal decoding performance.

Figure 2 illustrates how these dynamics evolve. In the "Rotational" panel (C), the neural trajectories form spiraling patterns. The cross-temporal decoding maps (E) reveal that while information is maintained (high probability correct), the specific "code" used to represent it changes over time, a hallmark of dynamic coding that has been frequently observed in biological recordings but was previously difficult to explain.

Biological Validation in the Monkey PFC

To test if these theoretical predictions hold true in biology, the authors analyzed large-scale Neuropixel recordings from monkeys performing a spatial WM task. Using Targeted Dimensionality Reduction (TDR), they found that the monkey PFC data was remarkably consistent with the optimized rotational model ($R^2 = 0.73$). The neural trajectories in the monkey brain exhibited the same spiraling signatures and stable information plateaus predicted by the efficiency-optimized theory.

Discussion and Implications

These findings suggest that the "messy" and time-varying nature of cortical activity is not a bug, but a feature of an energetically efficient system. Interestingly, these biological solutions closely resemble State Space Models (SSMs) like HiPPO or Mamba used in modern AI, suggesting a convergence between biological evolution and machine learning in how to best compress and store temporal information. While the current study focuses on linear dynamics, it provides a robust framework for understanding WM, suggesting that the brain's "scratchpad" relies on complex, oscillatory activity to keep information stable yet efficient.

Summary updated

BibTeX
@misc{ritter2025efficient,
  author = {Laura Mantoan Ritter and Angus Chadwick},
  title = {{Efficient Working Memory Maintenance via High-Dimensional Rotational Dynamics}},
  year = {2025},
  doi = {10.1101/2025.09.08.674838},
  howpublished = {bioRxiv},
}
Figure