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
Working memory (WM) is a fundamental building block of intelligence (Baddeley, 1992). Storing items temporarily in WM enables animals to decouple motor actions from direct sensory input, facilitating flexible and adaptive behaviour and the learning of associations between temporally discontiguous events (Miller and Cohen, 2001). The neural basis of WM has long been thought to rely on persistent activity, with neurons firing both stably and selectively to specific memoranda throughout the delay between sensory input and motor response (Fuster and Alexander, 1971; Fuster, 1973; Funahashi et al., 1989; Goldman-Rakic, 1995). However, recent studies focusing on population-level neural representations during WM tasks have instead found highly dynamic neural activity patterns throughout the delay (Stokes et al., 2013; Stokes, 2015; Sreenivasan et al., 2014; Lundqvist et al., 2018; Stroud et al., 2024a; Daie et al., 2023). These findings suggest that the persistent activity hypothesis, and the mechanistic models inspired by it, are in need of revision.
Classic attractor models of WM dynamics, inspired by the persistent activity hypothesis, postulate that WM contents are stored in stable attractor states of population activity throughout the delay (Seung, 1996; Wang, 2001). In contrast, functionally-feedforward models propose that WM contents are stored in sequences of neural activity spanning the delay (Ganguli et al., 2008; Goldman, 2009; Harvey et al., 2012; Daie et al., 2023). However, neither attractor nor feedforward models can account for dynamic coding properties of WM circuits (Stroud et al., 2024a). While a hybrid model with transient feedforward amplification of external input into a stable attractor accounts for many aspects of dynamic coding (Stroud et al., 2023), attractor mechanisms are highly suboptimal in the presence of noise; recall precision deteriorates rapidly after stimulus offset due to noisy drift of the internal stimulus representation (Ganguli et al., 2008; Lim and Goldman, 2012; Burak and Fiete, 2012).
We asked whether the complex and dynamic activity patterns observed during WM tasks could be explained by a recurrent network architecture optimised for 1) robustness to neuronal noise and 2) energetic efficiency. In particular, noise introduces errors in WM tasks, and accurate WM performance therefore requires noise-resilient dynamics (Orhan and Ma, 2023; Stroud et al., 2024b; Burak and Fiete, 2012; Panichello et al., 2019). Moreover, there is considerable pressure to minimise the energic cost of neural circuit computations (Laughlin, 2001; Padamsey et al., 2022). We therefore developed a novel method to identify solutions to WM tasks that perform optimally in the presence of ongoing noise fluctuations and with minimal metabolic cost.
Surprisingly, the solutions that emerged from this method departed substantially from all previous models (Seung, 1996; Ganguli et al., 2008; Goldman, 2009; Stroud et al., 2023). In particular, we found that rotational dynamics, which are widely observed in a variety of non-WM tasks (Churchland et al., 2012; Aoi et al., 2020; Libby and Buschman, 2021), substantially outperformed the attractor and feedforward WM solutions in terms of both noise-robustness and energetic cost. These dynamics were integrated into high-dimensional feedforward-rotational motifs that closely resembled, but substantially outperformed, state-of-the-art State Space Models (SSMs) recently developed for analysis of time series data (Voelker et al., 2019; Gu et al., 2020, 2023). Moreover, these solutions recapitulated a wide range of functional properties of WM circuits, including dynamic coding at the single-neuron and population level (Spaak et al., 2017), and were present in large-scale recordings from prefrontal cortex of monkeys performing a classic spatial WM task (Panichello et al., 2024).
Our findings suggest that normative pressures on noise-robustness and energetic cost shape the complex dynamics of WM circuits. Given their similarity to SSMs, we suggest that the feedforward-rotational dynamics employed by WM circuits forms a high-dimensional substrate for flexible computation on temporally distributed data (Voelker et al., 2019; Gu et al., 2020, 2023). Beyond WM tasks, the method we develop to optimise noisy RNNs enables integration of the computation-through-dynamics framework with efficient coding theories (Averbeck et al., 2006; Sussillo, 2014; Vyas et al., 2020), allowing rigorous investigation of noise-robust and metabolically efficient dynamics across diverse cognitive tasks.
Results
Optimal Dynamics for Working Memory Tasks
We sought to determine the optimal dynamics for a WM task in which one of several possible input stimuli must be decoded from the response of a network after a delay, with ongoing noise inputs corrupting the stimulus representation over time (Figure 1, Figure 2A,B). For linear networks driven by Gaussian noise, the performance of an optimal decoder can be quantified as a signal-to-noise ratio (SNR, see Methods). We derived this SNR for a set of canonical linear WM models both analytically and numerically (Supplementary Figure S1, Supplementary Material). To test the optimality of these linear networks, we derived a Bayesian upper bound that holds for arbitrary nonlinear networks (Supplementary Figure S2, Supplementary Material).

Models for working memory dynamics.
A: Attractor networks generate a set of slow, non-interacting dynamical modes that store stimuli in a stable code after stimulus removal. B: Feedforward dynamics involve directed interactions over a sequence of dynamical modes, and store stimuli in a dynamic sequence of neural activity. C: Optimised networks exhibit complex, high-dimensional rotational dynamics. D: Information maintanence in each network in the presence of noise (with 10 neurons, optimised for stimulus readout at t = 10). Attractor networks rapidly lose information after stimulus offset due to accumulation of noise (top). Feedforward and optimised networks can achieve close to theoretically optimal decoding performance up to the optimised readout time. E: Stimulus encoding improves as the number of neurons (or dynamical modes) increases in feedforward and optimised networks, but not in attractor networks. F: The energetic cost (measured as the squared magnitude of the network response integrated over time) increases exponentially with the number of neurons for feedforward networks (note log scale on y axis), is independent of the number of neurons for attractor networks, and decreases with the number of neurons for optimised networks.

Optimisation of a two-neuron network for a WM task.
A: Networks were optimised to maximise the discrimination of two noisy input stimuli after a delay. B: Responses of the optimised network to each stimulus. C: Dynamics of the network at four points during optimisation: the initial network (left), the final network before feedforward dynamics emerged (middle left), the final network before rotational dynamics emerged (middle right) and the network at convergence (right). Trajectories show the mean network response for each stimulus, with solid lines up to the optimised decision time and dashed lines thereafter. Insets show the decomposition of the network into dynamical modes (Schur decomposition). D: Response distributions under each stimulus at the decision time. E: Performance of a decoder optimised for time t and tested on time t′. Dashed lines show the optimised decision time.
We first considered the performance of two classic models for WM tasks - attractor and feedforward networks (Seung, 1996; Ganguli et al., 2008; Goldman, 2009). Attractor networks generate a set of slow, non-interacting dynamical modes that can be used to load and store information over the delay (Figure 1A, Supplementary Figure S1A). We found analytically that attractor networks are highly susceptible to noise (Figure 1D top, Supplementary Figure S1B-D), with the signal-to-noise ratio for discrimination of different input stimuli decaying exponentially after stimulus offset (Supplementary Material). In contrast, feedforward networks utilise a directed chain of dynamical modes to store a stimulus in an activity sequence that spans the delay (Figure 1B, Supplementary Figure S1E-G) (Ganguli et al., 2008; Goldman, 2009). We found that, in contrast to attractor networks, feedforward networks maintain a near-optimal SNR for a period of time after stimulus removal (Figure 1D middle, Supplementary Figure S1I-K). Moreover, for feedforward networks, but not attractor networks, the SNR increases as the number of neurons is increased (Figure 1E top vs middle, Supplementary Figure S1J). However, feedforward networks require strong, amplifying feedforward connectivity and an exponential increase in firing rates to achieve these SNR improvements (Figure 1F top vs middle, Supplementary Figure S1F-H). Thus, attractor networks are energetically cheap but highly susceptible to noise, while feedforward networks are energetically costly but substantially more noise-robust.
We asked whether solutions exist which outperform these hand-crafted attractor and feedforward networks in terms of noise-robustness and energetic cost. To this end, we optimised the recurrent connectivity of networks to achieve maximal response SNR while imposing a penalty on firing rates, using a novel method that performs gradient descent on these quantities directly (see Methods). Surprisingly, the optimised networks departed significantly from classic attractor and feedforward networks. Instead, they exhibited complex oscillatory dynamics distributed over a range of frequencies (Figure 1C). Remarkably, these networks simultaneously outperformed feedforward networks in terms of SNR and attractor networks in terms of energetic cost. As in feedforward networks, the SNR increased with the number of neurons in the network. However, unlike attractor or feedforward networks, their energetic cost simultaneously decreased (Figure 1F bottom). Moreover, the SNR of the optimised networks approached the theoretical upper bound for any (potentially nonlinear) network, suggesting that the assumption of linear dynamics was not a limiting factor.
Taken together, we find that networks optimised for WM performance exhibit a novel solution that is both noise-robust and energetically efficient, substantially outperforming classic attractor and feedforward models. We next sought to understand the dynamical mechanisms employed by these optimised networks.
Efficient Working Memory Encoding via Amplifying Rotational Dynamics
To gain insight into the dynamical solutions employed by the optimised networks, we considered a minimal model of the WM task comprising a network of two neurons receiving input from one of two stimuli presented as an instantaneous pulse (Figure 2A,B). The network was driven to stationary state by Gaussian noise before stimulus onset and optimised to maximise the SNR for discrimination of the two input stimuli after a delay, with or without a penalty on energetic cost (see Methods).
Three distinct phases were observed as the network performance progressively converged toward an optimised solution (Figure 2C, Supplementary Figure S3). In the first phase of optimisation, an approximate line attractor was formed (Figure 2C second panel). During the second phase there was a transition from attractor to feedforward dynamics (Figure 2C third panel). The final phase showed a transition to rotational dynamics (Figure 2C final panel). Similar dynamics emerged in networks with and without a penalty on energetic cost (Supplementary Figure S3).
We asked whether this rotational solution was a specific consequence of our choice of loss function, optimisation procedure, and task setup, or a general feature of optimal dynamics for WM tasks. To test whether these findings were sensitive to the loss function and optimisation method, we investigated the solutions learned by backpropagation-through-time (BPTT) with a squared error loss, using an analytical solution in the limit of large batch size (see Methods). Remarkably, this method produced near-identical weight trajectories to those produced by optimisation of the SNR (Supplementary Figure S4). Moreover, we showed that optimising the SNR is mathematically equivalent to optimising the probability of correct choice, suggesting that incremental learning rules based on trial-to-trial feedback should lead to similar learning trajectories (Supplementary Material). To exclude other factors that may bias the networks towards rotational solutions, we investigated the influence of 1) the range of delays the network was optimised for 2) the initial network weights 3) the initial state covariance at the time of stimulus onset 4) the length of the stimulus period relative to the delay. Rotational dynamics emerged in all settings (Supplementary Figures S4-S7), including the limiting case where the stimulus was presented continuously until the decision time, i.e. an evidence integration task (Supplementary Figure S7).
The robust emergence of rotational dynamics suggests that these solutions are more noise-resilient than attractor or feedforward mechanisms. We therefore investigated how networks integrate noisy sensory input to form an efficient output population code. We plotted the distribution of noisy network responses to each stimulus at the optimised decision time (Figure 2D). Response SNR is high if these response distributions have minimal overlap (Averbeck et al., 2006). At all stages of optimisation, recurrent integration and amplification of sensory input generated elliptical response distributions with low and high variance dimensions (Figure 2D, 2nd-4th panels). Moreover, for attractor and feedforward networks, common amplification of signal and noise caused the stimulus-coding direction to be aligned to the principal noise direction (Figure 2D, 2nd and 3rd panels). Thus, attractor and feedforward networks had strong information-limiting correlations (Moreno-Bote et al., 2014). In contrast, alignment between signal and noise was reduced in the rotational network (Figure 2D, rightmost panel). Thus, the rotational network acted to both amplify the input signal and minimise corruption of the signal by amplified noise (Supplementary Figure S8).
To determine how the optimal decoder varied over the delay in each network, we implemented a cross-temporal decoding analysis (Figure 2E). For attractor networks, information was encoded along a stable coding direction that was independent of delay time. In contrast, the feedforward and rotational networks exhibited signatures of dynamic coding (Stokes et al., 2013) - decoding performance depended on the disparity between the times the decoder was trained and tested on. Thus, rotational dynamics achieves optimally noise-robust WM performance through a dynamic population code.
Higher-Dimensional Networks Employ Feedforward-Rotational Sequences
Having characterised the optimal WM dynamics for two-dimensional networks, we next investigated the properties of higher-dimensional networks optimised to solve the task. Classic work has shown that feedforward networks are optimal for WM tasks in discrete-time networks, and can also outperform attractor networks in continuous-time networks (Ganguli et al., 2008; Goldman, 2009; Lim and Goldman, 2012). More recently, continuous-time State Space Models (SSMs) such as the Legendre Memory Unit (LMU) have been developed, which compute an online approximation of their recent input history in terms of a set of temporal basis functions and achieve state-of-the-art performance on memory tasks (Voelker et al., 2019; Gu et al., 2020, 2023). However, the optimal solution for WM tasks has not been resolved.
Numerically optimised networks exhibited a combination of feedforward and rotational dynamics. For optimised N-dimensional networks, all eigenvalues were complex, meaning that the network contained N/2 rotational planes (Figure 3A,D, Supplementary Figure S9). Although distributed across neurons, task-relevant input targeted a single dynamical mode, which elicited a feedforward cascade of activity through these rotational planes (Figure 3A,D). The LMU was based on a fundamentally different architecture, but exhibited rotational structure similar to the optimised network (Figure 3B, Supplementary Figure S9). Both the LMU and optimised networks departed substantially from classic feedforward models (Figure 3C). However, despite the similarity of the optimised networks to the LMU, the optimised networks substantially outperformed both feedforward networks and LMUs on the task (Figure 3E).

Numerically optimised higher-dimensional networks.
A-C: Left: Functional connectivity between dynamical modes of an optimised 6-dimensional network (A), Legendre Memory Unit (B) and feedforward network (C). In each network, the stimulus input targets a single source mode and is cascaded through the other modes. Right: The response of each mode to two input stimuli. D: Left: The inputs (top) and weight matrix (bottom) of an optimised 10-dimensional network. Right: The Schur basis of the weight matrix, which represents interactions between the dynamical modes (as in A). E: The SNR of network output at the optimised decision time, compared to that of an optimal feedforward network, a Legendre Memory Unit and an attractor network. F: Comparison of the filter applied by the network to task inputs vs that of the Bayesian ideal observer solution. The ideal observer applies a delay filter which assigns a non-zero weight only to inputs at the time of stimulus presentation while filtering out pre- and post-stimulus noise input. The LMU and and optimised networks approximate this filter using a set of oscillatory basis functions. Attractor networks can only implement constant or exponentially decaying filters.
To understand the relative performance of these networks, we compared them to the theoretically optimal ideal observer solution (Supplementary Figure S2). This optimal solution requires the network-readout cascade to implement a delay filter, assigning a positive weight to inputs at the time of stimulus presentation and zero weight to inputs at all other times to avoid integration of pre- and post-stimulus noise. We found that only the LMU and optimised networks could successfully approximate this optimal filter, with attractor networks weighting all times equally and feedforward networks assigning positive weights to a broad range of times before and after stimulus presentation (Figure 3F). Moreover, the optimised network better approximated this ideal observer solution than the LMU, with a more sharply peaked filter around the time of stimulus presentation that enabled reduced weighting of input noise onto the readout. This sharply peaked filter was formed as a weighted combination of oscillatory modes, which provide a more flexible basis for approximating complex input-output functions than purely decaying modes.
These findings suggest that a novel dynamical mechanism combining feedforward and rotational motifs enables optimally noise-robust WM maintenance. In particular, the optimised networks compute an online approximation of their recent input history in terms of a class of oscillatory basis functions, enabling accurate approximation of a wide range of input-output functions by varying the readout weights (Voelker et al., 2019; Gu et al., 2020, 2023).
Multiple Stimuli are Encoded in Orthogonal Rotational Subspaces
So far we have considered the optimal linear dynamics for a two-stimulus WM task (Voitov and Mrsic-Flogel, 2022; Daie et al., 2023). We next investigated WM tasks with arbitrary numbers of stimuli. As in classic delayed match to sample WM tasks, we considered a circular variable θ ∈ [0, 2π), for example the spatial location of a stimulus in the visual field or the colour of stimulus (Goldman-Rakic, 1995; Panichello et al., 2019). We optimised a minimal four-neuron network with cosine-tuned stimulus input (Figure 4A) for maximal response SNR after the delay.

Working memory for multiple stimuli.
A: Tuning curves of feedforward input to 4 neurons for a set of 8 stimuli. B: The inputs are constrained to a circle within a two-dimensional plane spanned by two basis vectors. C: The optimised network comprised two orthogonal, non-interacting subspaces, each of which integrated inputs along separate basis vector. D: Each plane exhibited rotational dynamics identical to that of networks optimised to discriminate two stimuli. Note that overlapping traces were shifted slightly for visualisation purposes. E: The response tuning curves changed dynamically over the delay, with two neurons switching to their anti-preferred stimulus. F: Cross-temporal pattern similarity analysis revealed dynamic coding early in the delay and stable coding throughout the rest of the delay. G: The representional geometry of the population response remained stable throughout the delay.
Both the stimulus inputs and network responses could be viewed within a four-dimensional state space, with the stimulus inputs constrained to a two-dimensional subspace (Figure 4B). Thus, each stimulus input could be described as a weighted sum of two orthogonal basis vectors (Figure 4B, coloured arrows). The optimised network comprised two orthogonal, non-interacting rotational subspaces (Figure 4C). Each subspace selected the input projection onto one of the two basis vectors and fed this into a private recurrent dimension via an amplifying rotational dynamics identical to that of networks optimised for two-stimulus discrimination (Figure 4D). Thus, each of the two orthogonal subspaces selectively maintained information about the magnitude of input along one of the two input dimensions, and a linear readout could reconstruct the stimulus by linearly weighting the responses within the two subspaces (see Supplementary Material).
Remarkably, this simple four-dimensional network exhibited a range of properties observed in prefrontal cortex and other brain areas during WM tasks. For example, a subset of neurons exhibited “switching selectivity”, whereby their tuning preference dynamically changed over the delay period towards their anti-preferred stimulus (Figure 4E) (Spaak et al., 2017; Libby and Buschman, 2021; Cavanagh et al., 2018). Moreover, cross-temporal pattern similarity analysis revealed dynamic coding early in the delay but stable coding throughout the remainder of the delay (Figure 4F) (Spaak et al., 2017; Stroud et al., 2024a). Finally, this dynamic code unfolded within a stable representational geometry, as estimated by the pairwise distances between population responses to different stimuli (Figure 4G)(Spaak et al., 2017).
Thus, a simple four-dimensional network optimised to perform a multi-stimulus WM task replicates wide range of properties of WM circuits via rotational dynamics in a set of orthogonal, non-interacting subspaces.
Prefrontal Cortex Exhibits Multi-Dimensional Rotational Dynamics in a Working Memory Task
The above findings suggest that rotational dynamics is optimal for WM tasks and accounts for features of dynamic coding found in the prefrontal cortex (PFC) and other brain regions. We next asked whether signatures of rotational dynamics could be found directly in large-scale recordings of neural circuit activity during WM tasks. To this end, we analysed neuropixel recordings from PFC of monkeys performing a classic spatial WM task (Panichello et al., 2024). On each trial of the experiment, a brief (50 ms) visual stimulus was presented at one of eight spatial locations. After a delay of 1.4-1.6 seconds, the monkeys reported the remembered stimulus via an eye movement to the corresponding location.
To uncover task-related neural dynamics in the data, we implemented a novel variant of Targeted Dimensionality Reduction (TDR) (Mante et al., 2013; Aoi et al., 2020). Specifically, we modelled activity of neuron i at time t on trial k as

where θ(k) was the stimulus presented on trial k. The stimulus-dependent factors f(θ), g(θ) and temporal factors wp,i(t) were fitted directly to the observed neural responses using least squares regression (Methods). The resulting model offered a compact description of the neural population responses in terms of a set of stimulus-dependent factors shared across neurons and temporal factors shared across stimuli.
To quantify the quality of model fit, we compared the post-stimulus time histograms (PSTHs) of each neuron under the TDR model to their true PSTHs. Despite being heavily underparameterised (37.5% as many TDR parameters as PSTH data points), the TDR model accurately fit the diverse PSTHs of neurons in the data (R2 = 0.73 ± 0.06, mean±std over 25 recording sessions, Figure 5A). Moreover, using cross-validation to predict PSTHs on held out data, we found that a TDR model with two stimulus-dependent subspaces (f(θ) and g(θ)) was optimal (Figure 5B red bars), and performed substantially better than a baseline model in which the PSTHs formed on the training data were used to predict the PSTHs on the validation data (Figure 5B, grey bar). This suggested that the structure of the TDR model successfully captured shared stimulus- and time-dependent population structure in the data.

Rotational dynamics in monkey PFC during a spatial WM task.
A: PSTHs of two neurons for each of the 8 stimuli in the task (coloured lines). The TDR fit is shown in black. B: Cross- validation performance of the TDR model with different numbers of stimulus components (red bars). A baseline model in which the PSTH formed on the training data is used to predict the PSTH on the test data is shown for comparison (grey bar). Error bars show mean ± SEM over 12 sessions (sessions were excluded if the R2 for the baseline model was negative). Grey traces show individual sessions (note that the optimal number of subspaces was 2 for all included sessions). C: The stimulus factors f(θ), g(θ) learned from a TDR fit to simulated data under the models. D: The stimulus-loadings of a TDR fit to experimental data (a single recording session with 586 neurons). E: The population PSTHs (principal components of w1(t)) for each of the models. Note that the population PSTHs of w2(t) were identical to those of w1(t) for all models. F. As in E, but for experimental data. The second subspace w2(t) is shown in Supplementary Figure S10C. G: The alignment between the subspaces spanned by w1(t), w2(t) and w1(t′), w2(t′) for each of the models. H: Left: As in G, but for experimental data. I: The SNR of responses of the three models (computed on antipodal stimulus pairs). SNRs were computed assuming stationary state covariance, in contrast to Figure 1 which assumed a zero variance initial state. J: The cross-validated SNR of experimentally-recorded responses projected onto the TDR Principal Component subspace (mean±SEM over 4 antipodal stimulus pairs).
Given that the TDR model provided an excellent fit to the data, we next sought to compare the population structure it identified to that expected under competing models for WM dynamics. We considered classic attractor models (Seung, 1996), feedforward models (Ganguli et al., 2008; Goldman, 2009), and task-optimised models with rotational dynamics (Figures 1-4). A TDR model with two stimulus subspaces and no stimulus-independent subspace (w0,i(t) = 0) yielded an exact fit to the PSTHs generated by each WM model (R2 = 1). The stimulus factors f(θ), g(θ) were identical across all WM models considered, reflecting the circular structure of the stimulus set used in the task (Figure 5C). The temporal factors wp,i(t) evolved in low-dimensional subspaces captured by a small number of principal components (PCs) (Supplementary Figure S10B left). TDR applied to neural data revealed a similar low-dimensional encoding (Figure 5D, Supplementary Figure S10B right), albeit with an additional stimulus-independent subspace w0,i(t) not present in classic WM models (Machens et al., 2010; Cueva et al., 2020).
To investigate the structure of population activity in the low-dimensional stimulus-dependent subspaces, we plotted the top PCs of the temporal factors wp,i(t), which can be understood as low-dimensional “population PSTHs” (Figure 5E). The neural data exhibited highly rotational trajectories, which closely matched those of the rotational model and departed substantially from the attractor and feedforward models (Figure 5F). To quantify dynamic coding across models and data, we computed the cross-temporal alignment between the planes spanned by w1(t), w2(t) and w1(t′), w2(t′) (Figure 5G,H, Supplementary Figure S10D,E). When applied to the optimised rotational model and experi-mental data, this revealed classic signatures of dynamic coding, with the coding subspace at stimulus time and early delay period being orthogonal to that of the late delay. Attractor and feedforward models failed to replicate this dynamic code. While a recently proposed hybrid feedforward-attractor model accounted for the cross-temporal subspace alignment (Stroud et al., 2023), it exhibited lower-dimensional dynamics and population PSTHs that did not match those of the data (Supplementary Figure S10B-E).
Finally, we computed the response SNR for discrimination of antipodal stimulus pairs at each time point (Figure 5I,J). When computing the SNR we assumed that that the networks were driven to stationary state by noise input before stimulus onset. As a consequence, the SNR of an attractor network was low at all time points due to excessive integration of pre-stimulus noise along the slow attractor mode. In constrast, feedforward and optimised networks achieved substantially higher SNR, with an initial decrease after stimulus onset followed by a stable plateau (Figure 5I). Computing the cross-validated SNR of experimentally measured responses, projected into the six-dimensional TDR PC subspace, revealed a remarkably similar time course to that of the optimised model (Figure 5J).
Taken together, only the optimised model could account for the population PSTHs, dynamic coding properties, and SNR dynamics of the experimental data. Thus, neural activity in PFC during WM tasks is inconsistent with previous models involving attractor or feedforward dynamics. In contrast, rotational dynamics, emerging from directly optimised models, accurately accounts for the joint stimulus- and time-dependent neural population structure observed of PFC circuits during WM tasks.
Discussion
We developed a novel method for optimisation of continuous-time RNNs driven by noisy inputs to solve cognitive tasks and leveraged this framework to find the optimally noise-robust and energetically efficient dynamics for working memory (WM). The solutions we identified combine functionally-feedforward and rotational dynamics, and substantially outperform all previously proposed linear models of WM (Seung, 1996; Ganguli et al., 2008; Stroud et al., 2023; Voelker et al., 2019). Moreover, these solutions provide a parsimonious explanation of a wide range of functional properties of WM circuits, including the widely observed phenomenon of dynamic coding (Stokes et al., 2013; Stokes, 2015; Spaak et al., 2017; Stroud et al., 2024a; Spaak et al., 2017; Cavanagh et al., 2018; Libby and Buschman, 2021). Thus, we suggest that WM circuits are adapted for efficient computation.
Although our theoretical analysis was restricted to linear networks, several lines of argument suggest that our conclusions apply to nonlinear networks. First, the nonlinear dynamics of PFC during simple tasks has been shown to be well approximated by a linear dynamical system (Machens et al., 2010; Soldado-Magraner et al., 2024), and the dynamical solutions of task-trained nonlinear RNNs in WM and other tasks can often be qualitatively captured by linear approximations (Mante et al., 2013; Stroud et al., 2023). Second, we derived a non-dynamical Bayesian ideal observer analysis that places strong constraints on the optimal dynamics of any (linear or nonlinear) dynamical solution to the WM task, and showed that optimal linear networks achieve this upper bound. Third, we analysed large-scale recordings from monkey PFC during a WM task using a non-dynamical TDR analysis, and showed that the population structure was consistent with optimal rotational dynamics but not classic attractor or feedforward models (Seung, 1996; Ganguli et al., 2008; Goldman, 2009) or recently proposed hybrid feedforward-attractor models (Stroud et al., 2023).
Although rotational dynamics have not previously been considered for WM tasks, they have been observed across a wide range of brain areas and tasks, including in PFC in contextual decision-making tasks (Aoi et al., 2020) and in auditory cortex in implicit short-term memory tasks (Libby and Buschman, 2021). Moreover, high-dimsensional dynamics distributed across multiple brain regions have been observed in WM tasks (Voitov and Mrsic-Flogel, 2022; Daie et al., 2023). Indeed, although we analysed experimental data collected from to PFC, we speculate that the theoretically optimal rotational dynamics we identify may be distributed across a wide network of regions of the brain that participate in the task (Christophel et al., 2017; Voitov and Mrsic-Flogel, 2022).
While, to our knowledge, feedforward-rotational dynamics have not been previously considered in the neuroscience literature, their properties can be understood in light of State Space Models (SSMs) recently developed for machine learning applications. SSMs such as the Legendre Memory Unit, MAMBA and HiPPO are built upon linear dynamical systems which are mathematically optimised to compute an online approximation of their recent input history in terms of a set of orthogonal polynomials (Voelker et al., 2019; Gu et al., 2020, 2023). We found that networks optimised for WM tasks exhibit qualitatively similar properties to these SSMs, but substanitally outperform them in the WM tasks we consider. This suggests that WM circuits may compute an online approximation of their input history in terms of an orthogonal basis of oscillatory functions. Given that SSMs now achieve state-of-the-art performance on a plethora of time-series tasks, the high-dimensional rotational solutions implemented by WM circuits may be suitable for a wide range of complex tasks beyond simple delayed recall paradigms typically studied experimentally. In particular, arbitrary functions of an SSM’s recent input history can be reconstructed through simple linear readouts, providing a flexible substrate for memory-based computation (Gu et al., 2023). This use of flexible high-dimensional representations mirrors those used by PFC for complex cognitive tasks (Fusi et al., 2016), but extends them to the time domain. Thus, we suggest that PFC dynamically computes a high-dimensional, optimally compressed representation of its input history for general-purpose computation on temporally distributed data.
Methods
Task Setup
We considered continuous-time recurrent linear networks driven by noisy inputs:

The input comprised a stimulus at time t = 0 and ongoing Gaussian noise ui(s, t) = ũ(t)ui(s) + ni(t) where 
For all networks, the input noise was set to σn = 1. The inputs were modelled as ui(sj) = u0 cos(ŝi−sj), where the stimuli were sj ∈ {0, π/2} for two-stimulus tasks and sj = 2π(j − 1)/Nstim for multi-stimulus tasks, and the stimulus preferences were ŝi ∈ {0, π/2} or ŝi = 2π(j − 1)/N. We set u0 = σn/ ∥u(s1) − u(s2)∥ for two-stimulus tasks and u0 = σn/ ∥u(s1) − u(sN/2)∥ for multi-stimulus tasks in order to ensure that the input signal-to-noise ratio was normalised to 1. For multi-stimulus tasks, the inputs could be decomposed into basis vectors u(s) = c1(s)b1 + c2(s)b2, where b1 = cos ŝ, b2 = sin ŝ spanned a two-dimensional input space embedded in N-dimensional state space.
We analysed the SNR of an optimal linear readout of the stimulus, given by SNR 


The SNR was computed directly, without sampling noisy trajectories of the system, using a Lyapunov equation to compute the covariance matrix and matrix exponentials to compute the mean response to each stimulus (see Supplementary Material). We also analysed the response energy of the network, defined as 
Attractor and Feedforward Network Models
Hand-crafted networks were constructed via their Schur form A = QT Q⊺ where Q is a unitary matrix and T is a lower triangular matrix. For two-stimulus tasks, Q was constructed such that Q:,1 = b and all other columns of Q were orthogonal, with b = (u(s2) − u(s1))/∥u(s2) − u(s1)∥ the input linear discriminant. For multi-stimulus tasks, Q contained the two orthogonal basis vectors spanning the input space b1, b2. Specifically, we set Q:,1 = b1 and Q:,N/2+1 = b2, with the remaining columns orthogonal. In this case, T was divided into four equal-sized blocks, TMultiStim = [T, 0; 0, T], with T equal to that of the two-stimulus model (described for each network below). Responses of networks were often plotted in the Schur basis xSchur(t) = Q⊺x(t).
For attractor networks, T was diagonal, with Tii = λi = −1/τi where λi are the eigenvalues and τi are the decay time constants of the dynamical modes. The network had a slow dynamical mode τ1 = τslow and fast dynamical modes τi>1 = τfast, which with the above choice of Q ensured that the input linear discriminant was loaded onto the slowest dynamical mode (Chadwick et al., 2023).
Feedforward networks were constructed as Tij = τ −1δij + ωδi,j+1, where τ is the time constant of each mode and ω is the feedforward weight from mode i − 1 to mode i. This ensured that the input linear discriminant was loaded onto the source mode of T.
The hybrid feedforward-attractor model in Supplementary Figure S10 differed from the feedforward model in two ways. First, we included only one feedforward connection. Second, this feedforward connection fed from a rapidly decaying mode into a slow attractor mode (Stroud et al., 2023). In particular, we set T22 = −1/τslow, with Tii = −1/τfast for i ≠ 2. The feedforward connection was set as T21 = ω.
For Figure 1, we considered a two-stimulus task. Networks had a fixed initial state x(si, 0) = 0 (i.e., with zero initial state covariance) and a stimulus was presented for Tcue = 1 (in arbitrary units of time). The SNR for stimulus discrimination was calculated at the decision time td = 10. Attractor networks had τslow = 104. Feedforward networks had ω = 5 and τ selected to maximise SNR.
For Figure 3, we considered a two-stimulus task in which networks were driven to stationary state by noise input before stimulus onset and received a delta pulse input, with td = 50. The SNR of attractor and feedforward networks was computed analytically using their optimal parameters (see Supplementary Material). However, because the optimal feedforward network has infinitely strong feedforward weights, we instead plotted the trajectories of this network with τ = 6.25, ω = 0.5 (where τ was selected as the optimal value in the limit ω → ∞).
For Figures 5 and S10, we considered an eight-stimulus task, with Tcue = 1 and td = 10. Attractor networks had N = 6 neurons, with slow time constants τslow = 100 and fast time constants τfast = 1. Feedforward networks had N = 12 neurons with τ = 5 and ω = 0.5. Hybrid feedforward-attractor models had N = 6 neurons with τfast = 1, τslow = 100 and ω = 1. Note that the results we present are independent of N for attractor and hybrid feedforward-attractor models (if N ≥ 2 and N ≥ 4 respectively), but not feedforward models.
Optimised Networks
We minimised the following loss function:

where the first term quantifies the decoder performance L(t) = Σ i>j 1/SNR(si, sj, t) weighted over delays by l(t) and the second term quantifies the energy of responses weighted by the regularisation parameter β. The weighting function was set as l(t) = δ(t − td) (where td is the decision time), with the exception of Supplementary Figure S4 where we set l(t) = 1 for 0 ≤ t ≤ td and 0 otherwise. We set β = 10−6 for Figures 1 and S3 and β = 0 otherwise. For delta input tasks we set td = 50, and for finite cue tasks, we set Tcue = 1, td = 10 (with the exception of Supplementary Figure S7, where Tcue was systematically varied).
We computed the gradient 

To transform the optimised networks from neuron space to the space of dynamical modes, we performed a real Schur decomposition on the weight matrix ASchur = Q⊺AQ, uSchur = Q⊺u where Q is an orthogonal matrix and ASchur is a block upper-triangular matrix. Given that the Schur decomposition is non-unique, we exploited a set of invariances to transform the Schur decomposition into a standardised form (see Supplementary Material for details).
Analysis of Learning Dynamics
We selected networks at four stages of optimisation to plot the flow fields, Schur modes, and responses:
1) the initial unoptimised network 2) the initial attractor network, before non-normality had increased 3) the final network before eigenvalues became complex 4) the network at convergence.
For each iteration of optimisation, we computed the SNR (defined above) and the projection of the mean and covariance of responses onto the unit length readout vector 

The decay time constants and rotational periods of dynamical modes were computed as as τ = −1/ℛ(λ) and ν = 2π/ℐ(λ) respectively, where λi = ℛ(λ) ± iℐ(λ) were the eigenvalues of A. The alignment of modes with the input discriminant b were computed using either eigendecomposition or Schur decomposition. For two-neuron networks with real eigenvalues, we computed the dot product between each unit length left eigenvector of A (defined as A⊺vi = λvi) and the input linear discriminant b. For higher-dimensional networks or networks with complex eigenvalues, we computed the dot product between the Schur vectors (columns of Q) and b. The non-normality of the dynamics was computed as 
To optimise networks via backpropagation through time, we used analytically derived gradients in the limit of infinite batch size (Supplementary Figure S4, see Supplementary Material for derivation). We used a squared error loss ℒ = Σs⟨∥w · x(s, t) + c − s∥2⟩ (where the expecation was taken over trials) and optimised A using gradient descent 


Analysis of Dynamic Coding
In Figure 2D, we plotted ellipses of one standard deviation of the response distribution 
For Figure 2E, we performed a cross-temporal decoding analysis on networks at different stages of optimisation using standard signal detection theory measures. Labelling s1 = 0, s2 = 1, the optimal decoder uses a binarised linear readout ŝ(c, w, t) = Θ(w(t)⊺x(s, t) + c(t)), with 




For Supplementary Figure S8, the signal, noise, and signal-noise-alignment were computed for networks at each stage of optimisation as signal 

To replicate the analyses performed on experimental data by (Spaak et al., 2017), we computed the cross-temporal pattern similarity 
Legendre Memory Unit
The Legendre Memory Unit is governed by the equations

where u(t) is a scalar input time series, τ is a global network time constant, Aij are the recurrent network weights, bi is an input loading vector and wi are the readout weights (Voelker et al., 2019; Voelker, 2019). Classic results from control theory provide methods to optimise the parameters of the above system such that the output y(t) is related to the input u(t) by a desired transfer function f, i.e. y ≈ (u ⋆ f)(t) where ⋆ is convolution (Partington, 2004; Brockett, 2015). Voelker (2019) considered the case of a delay transfer function 
The parameters of the LMU are found by forming a Padé approximation of the desired transfer function in the Laplace domain (Partington, 2004; Brockett, 2015; Voelker et al., 2019). The resulting system can be written in multiple equivalent bases, all of which implement an identical transfer function. In the standard Legendre basis of the LMU, the recurrent weight matrix is given by:

and the input vector is given by bi = (2i)(−1)i−1. In this basis, the activations xi(t) represent the delayed inputs as 




The controllable canonical form provides an alternative representation of the LMU, where the weight matrix is given by Ai1 = −ν1, Ai,i − 1 = νi, with Aij = 0 otherwise, and the inputs are given by bi = [ν1, 0, …, 0]⊺ (where νi = (N + i −1)(N − i + 1)/i for i = 1…N). In this basis, the inputs target only the first neuron of the network, consistent with the Schur basis for the optimised and hand-crafted networks. We therefore presented results in controllable canonical form in the main text, and compared to results in the Legendre basis in the Supplementary Material. However, we note that the two forms of the LMU are fully equivalent, with identical eigenvalues and SNR.
We simulated responses of the LMU for varying numbers of units N and varying time constant τ. Inputs comprised a delta pulse with ongoing Gaussian noise u(s, t) = δ(t)u(s) + n(t). We set n(t) ∼ N(0, 1) and u(s) = ±u0, with u0 chosen to normalise the input SNR to 1. We computed the mean and stationary state covariance of responses 

Analysis of Electrophysiological Data
We analysed publicly available data from (Panichello et al., 2024). Stimuli were presented for 50 ms, followed by a delay of 1400-1600 ms after which monkeys were cued to report the remembered stimulus. We analysed data during the period from stimulus onset (0 ms) to the end of the shortest delay (1400 ms). As preprocessing steps, the raw spiking data were converted into spike counts within 25 ms bins using a sliding window of step size 5 ms. We discarded error trials and subtracted the mean spike count of each neuron (averaged over both time bins and trials). All analyses were applied to individual experimental sessions and repeated over multiple sessions to verify consistency. For Figure 5F,H,J, we used session 22-10-21. For Supplementary Figure S10, we used sessions 22-10-24, 22-10-21 and 22-10-19.
We fitted the targeted dimensionality reduction (TDR) model

to the mean-subtracted spike counts 
For cross-validation, we split the data into two subsets of randomly selected trials of equal size. The TDR model was fit to each split and used to predict the remaining split. We reported the cross-validated coefficient of determination

where 




For application of TDR to classic WM models, we simulated the PSTHs (without noise) of each model under each stimulus and fit a TDR model to this set of PSTHs. We observed that a TDR model with no time component w0,i was sufficient to fit these simulated PSTHs exactly, and therefore omitted this term.
Having fit the TDR model to data, we computed the Principal Component (PC) subspaces by taking the singular value decomposition of the matrix (Wp)i,t = wp,i(t). Writing Wp = USV ⊺, where S is a diagonal matrix containing the singular values in descending order, the columns of U contained the N-dimensional basis vectors in neural state space and the rows of SV ⊺ contained the population PSTHs. Before computing these subspaces, we first exploited several invariances of the model to transform the fitted parameters wp,i(t) and fp(θ) into a standard form (Supplementary Material, cf Aoi et al. (2020)). We plotted these population PSTHs within the top three PCs of W1 and W2, and plotted the singular value spectra (diagonal of S) to assess the dimensionality of each subspace p ∈ {0, 1, 2}.
Subspace alignments were computed using random two-way splits over trials, as for the cross-validation analysis. Given the vectors 




To compute the SNR of the data in the TDR Principal Component Subspace, we used a similar two-fold cross-validation split as above. First, a TDR model was fitted to the full dataset (without cross-validation). Given this fit, we formed the matrix Wconcat = [W1, W2] to obtain an N × 2T matrix describing the set of neural activity patterns generated over stimuli and time points. We per-formed a singular value decomposition Wconcat = USV ⊺ and projected the binned spiking data onto the top six PCs as 


Data availability
The current manuscript involves only computational modelling and previously published data. Modelling code are available on GitHub and previously published data are available on Dryad (http://doi.org/10.5061/dryad.kkwh70sct).
Supplementary Material
A Network Model
We considered a linear dynamical system governing the evolution of the network state x(t) via the differential equation

which had as parameters the connectivity matrix A and the stimulus-dependent input u(s, t) where the stimulus was labelled s. The input

consisted of a stimulus-dependent vector u(s) indicating the direction in state space along which the network was driven by the stimulus s at the time of stimulus presentation ts, and temporally uncorrelated Gaussian white noise n(t) ∼𝒩(0, Σn), ⟨n(t)n⊺(t′)⟩ = Σnδ(t − t′). We also considered extensions to temporally extended inputs u(s, t) = u(s)ũ(t) + n(t) where ũ(t) was a boxcar function (as in Figure 1).
Given the initial condition x0 = x(t0), Equation 1 has the general solution for t ≥ t0

Inserting Equation 2 into Equation 3 gives (for t, ts ≥ t0)

where Θ(t) is the Heaviside step function. Using the shorthand for the stimulus-conditioned and marginal means of a variable a as 


and

where we assumed that the initial condition is distributed as 



B Loss Functions and Their Derivatives
We consider the case where one of M possible input stimuli s ∈ {0, …,M −1} is presented, and optimised the performance of an optimal decoder of s from the network response x(t). Since the response statistics are Gaussian with stimulus-independent covariance, the performance of an optimal decoder when M = 2 is given by a linear readout ŝ = Θ(wLD · x(t) + c), where 

In particular, the probability of correct choice is 


For two-stimulus tasks, we therefore defined the loss function 

The derivative of this loss function with respect to the weights is

where M · N = Trace(MN⊺) = Σi,j MijNij denotes a sum over elements. Given the derivatives 

For the general setting of networks with N neurons, M stimuli, and a penalty on response energy, we optimised the loss

where 

C Derivatives of the Network Statistics with Respect to the Weights
To perform gradient descent on this loss function, we computed the derivatives of the mean 
Derivative of mean response
The derivative of the mean response (Equation 4) is

The loss functions we consider depend on the difference in mean response to the two stimuli 

The derivative of the matrix exponential can be computed numerically (Najfield and Havel, 1995; Al-Mohy and Higham, 2008), and a solver is available via the expm_frechet function in SciPy’s Linear Algebra library.
Derivative of response covariance
The derivative of the covariance (Equation 5) requires the solution of two Lyapunov equations, with numerical solvers widely available. The first Lyapunov equation is the result of integrating 

where 

where 







Limiting cases for response covariance
Two special cases allowed us to neglect the role of the initial condition-driven covariance 



Derivative of the network energy term
The energy E and its gradient 

D Relationship to Backpropagation and Other Learning Rules
The loss function and optimisation procedure described above are based on the trial-averaged statistics of the network response. How does this relate to learning rules that operate based on trial-to-trial feedback, such as reward-based Hebbian learning, backpropagation through time, or reinforcement learning? To address this question, we show that 1) in the limit of slow learning rate, any learning rule that maximises the fraction of correct choices based on trial-by-trial feedback will converge to the same weight updates as our method 2) in the limit of large batch size, backpropagation through time on a squared error loss function produces similar weight updates to our method and converges to the same solution.
Relationship to learning from trial-by-trial feedback
The objective we optimise L = 1/SNR is directly related to the probability of a correct decision pcorrect using an optimal decoder, since 




Relationship to backpropagation through time
Methods which do not explicitly optimise the probability of correct choice may nevertheless yield very similar learning dynamics to those produced by our method. To illustrate this finding, we derive analytical expressions for the updates generated via backpropagation through time (BPTT) and show that numerical implementation of these updates generates near-identical weight trajectories to those produced by our method. Specifically, we consider BPTT on the continuous-time linear recurrent neural network 

We consider the squared error loss function L(td) = (w · x(td) + c − s)2 = (ŝ − s)2. The terms in Equation (7) are the 

We next consider the stationary state limit t0 → −∞, with

Inserting the expressions derived above for 


where 


Each of the above integrals I1, I2, I3 can be reformulated as a Lyapunov or Sylvester equation, with numerically efficient and stable solvers available. In particular, I2 = lyap(A⊺, ww⊺) and I3 = lyap(A, Σn). Integrating I1 by parts gives 


where Q = (V ⊺wu⊺V −⊺) ⊙ S, with 

To complete the BPTT algorithm, we require updates for the readout weights w and threshold c. These updates are given as follows:

These readout parameters could be updated via gradient descent alongside the recurrent weights A. However, if we assume that the updates of the recurrent weights are slow relative to the readout weights, we can set


where 

with w obtained by inserting this expression into Equation (12). Taken together, the full BPTT algorithm involves iteratively using Equations (12-13) to update readout weights followed by Equations (8-10) to update the recurrent weights (summed over stimuli and time points). An implementation of this algorithm is shown in Supplementary Figure S4.
E Optimal Solution to Task: An Ideal Observer Analysis
We consider an ideal observer of the network input u(s, t) = u(s)ũ(t) + n(t) tasked with reporting the stimulus identity s ∈ {0, 1} at time td. Assuming that the input noise is Gaussian, stimulus-independent, and temporally uncorrelated, the optimal solution involves two steps: 1) projecting the inputs onto the linear discriminant vector 
We consider a linear projection and temporal filtering of the input time series u(s, t ≤ td) onto a vector w and filter 

In particular, the above SNR is maximised when 

The above solution requires a filter that depends on the optimised readout time, also known as a time-varying linear filter. In contrast, a fixed filter optimised for a single readout time td will have a suboptimal output SNR for t ≠ td

To illustrate these solutions, we provide examples from three tasks: first, a working memory task with instantaneous inputs, ũδ(t) = δ(t − ts); second, an evidence integration task where ũΘ(t) = Θ(t − ts); third, a working memory task where the stimulus appears for a fixed interval of time, modelled as a “boxcar” function ũ∏(t) = Θ(t − ts) − Θ(t − (ts + T)). The optimal time-varying filters for these tasks are fδ(t, td) = δ(td − ts − t), fΘ(t, td) = Θ(td − ts − t), f∏(t, td) = Θ(td − ts − t) − Θ(td − ts − T − t).
Following Equation (14), these filters give rise to the following SNRs:

These solutions are illustrated in Supplementary Figure S2, where we also show the performance of fixed filters optimised for a single readout time (Equation (15)).
F Analysis of Linear Dynamical System Task Performance
We next sought to determine the performance of linear network models on the working memory task. The above ideal observer analysis provides an upper bound on the SNR of network responses, and suggests that networks could be suboptimal due to two factors: 1) a failure to correctly combine inputs to different neurons via a suboptimal projection w, or 2) a failure to correctly combine inputs across time via the wrong temporal filtering f.
We show that attractor networks (those with orthogonal eigenvectors, also called normal networks) perform poorly on working memory tasks, with their SNR decaying at best as 
In the following we consider networks receiving delta pulse inputs 



F.1 SNR Along Individual Dynamical Modes
Previous work has suggested that alignment of dynamical modes with the input linear discriminant provides a neural mechanism for working memory and evidence integration tasks (Seung, 1996; Mante et al., 2013; Chadwick et al., 2023; Stroud et al., 2023; Pagan et al., 2024). We therefore first investigated the SNR along individual dynamical modes of a network.
To decompose the dynamics into individual modes, we use the eigendecomposition 


Thus,

where 

Optimal dynamics at stationary state
If the network is initialised at stationary state with respect to the input noise (i.e. if t0 → −∞), the response SNR is

This solution is optimised when the left eigenvector is aligned to the input discriminant, i.e. 

Optimal dynamics for fixed initial state
If the network is initialised at a fixed (i.e. zero-variance) initial condition x0 at time t0 ≤ ts = 0, the response SNR is:

Plotting this equation numerically as a function of λk = −1/τk for different values of t0 shows that stable dynamics (λk < 0) are optimal when |t0| > t, neutrally stable dynamics (λk = 0) are optimal when |t0| = t, and unstable dynamics (λk > 0) are optimal when |t0| < t (Supplementary Figure S6B-D). The optimal λk scales monotonically with t0, respectively approaching infinitely strong amplification λk → ∞ as t0 → 0 and the stationary state solution 
These solutions are highly suboptimal with respect to the ideal observer solution. This suboptimality arises because an individual eigenmode implements an exponential filter with time constant τk = −1/λk, and therefore integrates noise before and after stimulus presentation. The ideal observer solution has a narrow integration time window but a long memory time constant, and departs substantially from a simple exponential filter.
F.2 Attractor Networks
For attractor (normal) networks, the eigenvectors form an orthogonal basis with 

and the response covariance is

where the last step assumed that 

The SNR of network output at time t is

where SNR(vk, t) is the single-mode SNR given in equation (16). The SNR of an attractor network is therefore maximised when a single eigenmode is aligned to the input discriminant, i.e. vk = b, in which case the solution reduces to that of single modes considered above, with all other modes having zero SNR.
Thus, attractor networks perform poorly on the working memory task, with SNR decaying exponentially over time due to noise (and decaying as 1/td as a function of the optimised delay). We next show how functionally-feedforward (non-normal) and rotational dynamics can improve upon attractor mechanisms.
F.3 Preliminary: The Real and Complex Schur Decomposition
While the eigendecomposition of the matrix A is sufficient to characterise the dynamics and task-performance of a normal network, this description often obscures the transient dynamics of non-normal and rotational networks (Ganguli et al., 2008; Goldman, 2009; Murphy and Miller, 2009). Instead we turned to the Schur decomposition to characterise such networks. Here we briefly describe the real and complex forms of the Schur decomposition that we use extensively in the following sections.
Complex Schur Decomposition
Any matrix A ∈ ℝN ×N can be expressed in Schur form as A = ULU † where U ∈ ℂN ×N is a unitary matrix, i.e. U −1 = U † where U † := (U⊺)∗, and L ∈ ℂN ×N is an upper-triangular matrix, i.e. Li,i+k = 0 for all k < 0. Given a connectivity matrix A, the off-diagonal elements of L describe “functionally-feedforward” weights between a set of orthogonal neural activity patterns (Schur modes, i.e. columns of U). However, when A has complex eigenvalues, the elements of both U and L become complex-valued, which complicates this interpretation.
Real Schur Decomposition
When some eigenvalues are complex, a more interpretable basis in which to analyse the dynamics is given by the real Schur decomposition A = QT Q⊺, where Q and T are real-valued matrices, with Q−1 = Q⊺ (i.e., Q is an orthogonal matrix) and T a block upper-triangular matrix

Here, K is the number of real eigenvalues plus the number of pairs of complex conjugate eigenvalues and the diagonal blocks Bi are either 1×1 submatrices corresponding to real eigenvalues of A (i.e., Bi = λk) or 2 × 2 submatrices corresponding to complex conjugate eigenvalue pairs (with 
Two-Dimensional Case
A matrix with eigendecomposition 



A matrix A ∈ ℝ2 with complex eigenvalues λr ± iλω can be written in real Schur form as A = QT Q⊺ where

with 

Importantly, these results for two-dimensional systems also apply to any 2 × 2 submatrix Bi in the N-dimensional real Schur decomposition.
Invariances of the Real Schur Decomposition
The Schur decomposition is non-unique: each ordering of eigenvalues leads to a different Q and T. For the real Schur decomposition, this can be factored into an ordering of blocks and an ordering within 2 × 2 blocks. Within a 2 × 2 block, the ordering of eigenvalues makes only a superficial difference to the resulting decomposition. In particular, if k, k + 1 corresponds to a rotational plane (i.e., if Tk:k+1,k:k+1 = Bi for some i), the change of Schur basis Q = [q1, q2, …, qk, qk+1, …, qN] → [q1, q2, …, qk+1, qk, …, qN] and T:,k ↔ T:,k+1, Tk,: ↔ Tk+1,: yields another real Schur decomposition with ϵ → −1/ϵ. A further invariance for both real and complex Schur decompositions is to reverse the sign of a mode, i.e. Q = [q1, q2, …, qk, …, qN] → [q1, q2, …, qk, …, qN], Tk,: → −Tk,:, T:,k → −T:,k with ϵ → −ϵ. Through this combination of reordering and sign-reversal of real Schur modes, it is possible to select a real Schur decomposition for which rotations are clockwise or anticlockwise (ϵ ≷ 0) and have their major axis aligned to the x- or y-axis (|ϵ| ≷ 1), and have either positive or negative loading onto the input discriminant (qk · b ≷ 0). For numerically optimised networks, we utilised these invariances to define a unique Schur decomposition in which 1) the decay time constants τ = −1/λr are in descending order from input to output mode 2) elliptical orbits have their major axis aligned to the x axis (|ϵ| > 1) 3) rotations in each plane are clockwise (ϵ > 0) 4) the input mode to each plane has positive alignment with the input discriminant.
F.4 Two-Dimensional Feedforward Networks
We first considered the performance of feedforward (non-normal) networks with real eigenvalues on the working memory task. We restrict our analysis to the stationary state limit t0 → −∞. Using the Schur basis discussed in Section F.3, the dynamics of a two-dimensional non-normal network with real eigenvalues decouples into two equations:

The mean and variance of responses along the first mode are given by the single-mode analysis in Section F.1:

For the second mode these are given by

and

where we omitted the explicit form of the 𝒪(ω) interaction term for brevity. In the non-normal limit ω → ∞, the response SNR along the output Schur mode becomes:

This SNR behaves non-monotonically as a function of time, reaching a peak at a finite time before decaying back to zero. This non-monotonic timecourse is due to the transfer of information from the input to output mode over time, and the fact that the readout is restricted to the output mode - the SNR of the optimal (time-varying) readout decreases monotonically due to a shift in weighting of the readout from input to output mode over time (Section F.6).
For a given choice of eigenvalues, the SNR is maximal at the delay td = log(λ2/λ1)/(λ1 − λ2). How should the eigenvalues then be chosen in order to optimise response SNR at a particular delay td? Writing λ1 = λ, λ2 = λ − δλ and taking the limit δλ → 0, we have td = log(1 − δλ/λ)/δλ ≈ −1/λ and

where the inequality gives the behaviour of a network with λ optimised for the delay td, and 
F.5 Two-Dimensional Rotational Networks
We next considered a two-dimensional rotational network for which the two eigenvalues and eigenvectors of the weight matrix A form a complex conjugate pair λ, λ∗ and v, v∗ (where x∗ = Re(x) −iIm(x) is complex conjugation). Using the results of Section F.3, the mean and stationary state covariance of the network response can be computed in the real Schur basis as

where we defined ũ = Q⊺u and assumed that 
The covariance matrix can be inverted directly as

The SNR of the rotational network takes on a simple form when the input linear discriminant is aligned to the one of the Schur modes. In particular, setting Δũ1 = 0, the SNR is

The SNR when ϵ = 1 is identical to that of a normal network with real eigenvalue λ = λr (given by 
F.6 N-Dimensional Functionally-Feedforward Networks
We next considered delay line architectures, in which multiple feedforward modes are chained together in sequence (Ganguli et al., 2008; Goldman, 2009). Previous studies have shown that such architectures maximise the SNR of discrete-time linear dynamical systems, provided the number of neurons is equal to or greater than the number of time steps in the delay (Ganguli et al., 2008). However, the optimal dynamics for continuous-time networks, or for discrete-time networks with more time steps than neurons, was not determined. While Goldman (2009) considered a continuous-time network and showed that a delay line architecture can generate responses with memory time constant proportional to the number of neurons, they did not consider noise robustness or show that such architectures are optimal. We derive analytical expressions for the signal-to-noise ratio of a continuous-time delay line and show that, although SNR scales with the number of neurons, it is outperformed by the rotational solutions obtained via numerical optimisation (Supplementary Figure S1, Figure 3F).
F.6.1 Mean and Covariance of Network Response
We considered networks with Aij = λδij + ωδi,j−1 (we choose a lower-triangular rather than upper-triangular decomposition for this analysis as it leads to simpler indices in the following derivations). This network is known as a homogeneous delay line Ganguli et al. (2008). In this basis, the network is structurally feedforward with each element i corresponding to a single neuron. However, a rotation of the connectivity matrix A → QAQ⊺ produces a functionally-feedforward network for which the feedforward structure acts on Schur modes rather than single neurons.
The matrix exponential for the homogeneous delay line can be computed directly from its power series, 



F.6.2 Response SNR of Individual Schur Modes
In this section, we place a tractable lower bound on the total response SNR by computing the SNR of the ith Schur mode. Writing 

In the limit ω → ∞ the first term in the sum dominates, giving

where SNRnormal(t) is the SNR of a normal network with a left eigenvector aligned to the input discriminant and Stirling’s approximation was used for i ≫ 1. This SNR is maximised for a delay td when λ = −(i − 1/2)/td, with

Thus, although the optimal response SNR decays as 1/td, it also grows with the number of neurons as 
F.6.4 Response SNR of Optimal Population Readout
The previous section considered the performance of a single-mode readout, which is in general suboptimal. We next derive a general expression for the SNR of the optimal readout of the delay line, and calculate this SNR explicitly for the two-dimensional case.
The SNR of the network response at time t along a readout w is

This can be written as:

where 


Thus, the factor m(t) · P −1m(t) measures the gain in performance introduced by non-normal integration.
To determine the behaviour of this SNR in the large ω limit, we define 

In the limit ω → ∞, this becomes

where 


Two-Dimensional Case
For a two-dimensional network, 











We numerically plot the solution to Equation (17) for different values of N (with optimal λ) in Figure 3F), finding an approximately linear scaling of response SNR with the number of neurons N.
F.7 Encoding Multidimensional Stimulus Spaces Using Orthogonal Subspaces
For tasks in which multiple stimuli s ∈ {s0, s2, …, sM−1} can be presented, we considered the SNR for each stimulus pair SNR(si, sj, t). Here, we show how networks optimised for discrimination of two stimuli can naturally be composed to form networks that discriminate arbitrarily many stimuli within a P-dimensional space with SNR for any stimulus pair equal to that of an N-dimensional network optimised exclusively for that stimulus pair. The assumption that inputs span a linear subspace is true in particular for the case of cosine-tuned inputs considered in the main text (where P = 2), but we present results for the general case here.
− ∝ ∈
To construct such a network, we start with an N-dimensional network optimised for discrimination of two stimuli s1, s2, with A = QT Q⊺ and u(s2) u(s1) b ℝ N. We then use this network to construct a network that discriminates a set of input stimuli that span a P-dimensional subspace of a PN-dimensional space, i.e. 



and with 



We can then compute the signal-to-noise ratio for any stimulus pair

where SNR2−Stim(si, sj) is the SNR of the original two-stimulus network A for discrimination of a pair of inputs with 
Thus, by aligning an orthogonal subspace to each stimulus dimension 
G Targeted Dimensionality Reduction
Given a set of measured responses x(k)(t) of N neurons, over K trials with stimuli stim(k) = θ(k), and T time points per trial, we fit the model:

where wp(t) are neuron- and time-dependent factors and fp(θ(k)) are stimulus-dependent factors. This equation can be written in matrix form as:

where

Thus, given an estimate of the set of P vectors 
To solve for fp(θ) given estimates of wp(t), note that:

where 



The TDR model has a number of invariances that we exploited to convert the model into a standard form. First, the stimulus factors can be written as 







Supplementary Figures

Behaviour of attractor (normal) and functionally-feedforward (non-normal) networks on the WM task with delta pulse stimulus input and stationary state covariance.
A: Normal networks can be characterised by a set of independent eigenmodes. Each eigenmode applies an independent filter 


Bayesian deal observer solutions to WM and perceptual decision-making tasks.
A: Stimuli can be optimally discriminated based on network input by first projecting these inputs onto their linear discriminant, then convolving them with a delay filter matched to the readout time td and applying a threshold operation (not shown). B: Signal-to-noise ratio of network input vs time for the WM task with delta pulse stimulus input. C: A linear time-varying linear filter f(td, τ) = δ(td − ts − τ) achieves the optimal response SNR. D: The SNR of filter output is infinite at the optimised readout time td. The optimal time-varying filter achieves perfect performance at all times t > ts, while a static filter can achieve optimal performance only at the optimised delay td. E: The SNR of filter output vs time for static filters optimised for each readout time. F: In a perceptual decision-making task in which the stimulus is presented continuously, the SNR of network input is zero before stimulus onset and constant after stimulus onset, requiring temporal integration to achieve a high output SNR. G: The optimal time-varying filter for this task integrates the history of network input for all times t > ts, but assigns zero weight to inputs at times t < ts. H: Response SNR for the optimal time-varying filter grows linearly after stimulus onset, while an optimal static filter has bounded performance. J-M: When the stimulus appears for a fixed interval of time Tcue, the optimal filter integrates network input during the stimulus period (with an integration window Tcue) and then delays this input for a period td − ts − Tcue.

Influence of energetic penalty on learned dynamics.
A: As in Figure 2C, but showing the linear discriminant and two dynamical modes (Schur modes) at each stage of optimisation (without energy penalty). B: The mean separation and variance of responses along the readout vector at the decision time, at each iteration of the optimisation process for networks with and without a penalty on energetic cost. C: The SNR of responses for the two networks. D: The total energy of the network response (time-integrated squared norm of firing rate vector). E: The time constants of the two dynamical modes. Before the transition to rotational dynamics, the time constants are determined by the (real) eigenvalues. After the transition, they are given by the real and imaginary parts of a complex-conjugate pair of eigenvalues. F: The angle between each input mode (left eigenvector) and the input linear discriminant. After the transition to rotational dynamics the input Schur mode is shown. G: Non-normality of the dynamics matrix A (normalised between 0 and 1, see Methods).

Comparison of networks optimised using 1) SNR loss vs backpropagation through time (BPTT) with mean squared error (MSE) loss, 2) loss evaluated at a single time point vs all time points over the delay, and 3) a fixed decoder vs a time-varying decoder.
Top row: Network optimised using BPTT with MSE loss at a single time point td = 50. Second row: Optimisation with the SNR loss, weighted equally at all delays 

Rotational solutions are insensitive to initial network weights.
Each row shows four phases of the optimisation of a network with different random weight initialisation.

Effect of initial state covariance on optimal dynamics.
A: We derived analytical solutions for a one-dimensional integrator with recurrent weight λ receiving inputs from one of two stimuli given by u(s0, t) = −δ(t − ts) + n(t) and u(s1, t) = δ(t − ts) + n(t). The integrator is inititialised at a fixed (zero variance) initial condition at a time ts −t0 and the readout occurs at time ts +td, where ts is the stimulus time. Thus, noise accumulates for a time window t0 before stimulus onset. B: The response SNR at the readout time depends on the values of t0 and λ. C, D: The optimal value of λ is positive for t0 < td and negative for t0 > td, reflecting a transition from leaky integrator to unstable amplifier as the pre-stimulus noise integration time window t0 is decreased. E: Numerically optimised networks exhibit rotational dynamics, but the damping rate exhibits the predicted transition from stable and

Effect of length of stimulus period and initial state covariance on optimal dynamics.
Top row shows effect of changing the length of the stimulus period Tcue. The readout time was td = 50 and networks were driven by noise for a period t0 = 100 before stimulus onset (at ts = 0). All optimised networks had complex eigenvalues, and the differences in trajectories were primarily due different input durations Tcue rather than changes in flow fields. Bottom row shows effect of varying the duration of pre-stimulus noise accumulation t0 for networks with the stimulus presented continuously from t = 0 to t = td = 50. The network optimised with t0 = 0 learned a classic line attractor solution to the task, which is known to be optimal in this setting (Gold and Shadlen, 2007). In contrast, for t0 > 0 a line attractor would generate substantial pre-stimulus variability, and so is no longer optimal. In this case, networks must trade off integration during stimulus presentation against avoidance of integration of pre-stimulus noise (Supplementary Figure S2F-I). All networks optimised with t0 > 0 had complex eigenvalues, suggesting that rotational dynamics are optimal for evidence integration tasks in which pre-stimulus noise influences task performance. Note that, although the trajectories during the stimulus presentation (solid lines) use the linear part of the curved rotational trajectories, noise inputs before stimulus onset would have been integrated for a longer period of time and therefore would be rotated through the curved part of the trajectories (dashed lines), thereby reducing their influence on the decoder.

A: The signal (squared norm of vector separating two stimulus-evoked mean responses), noise (total variance of responses to either stimulus) and signal-noise-alignment (see Methods) for each network as a function of time during the delay. Vertical dashed black line shows optimised decision time td. Note that networks were initialised at stationary state, so that noise statistics do not vary during the delay. B: The performance of the optimal readout at each time following stimulus onset (grey line). Red lines show the analytically computed optimal normal and two-dimensional non-normal or rotational networks.

Rotational structure in optimised networks vs the Legendre Memory Unit (LMU).
A: Representation of the LMU in the Legendre basis. B: Equivalent representation of the LMU in the Controllable Canonical Basis. C: The rotational periods (given by imaginary parts of eigenvalues) of the LMU. Note that the eigenvalues are the same in the two bases in A and B. D: The ratio of each rotational period with that of the output rotational plane. E: The damping times (given by real parts of eigenvalues) of the LMU. F-H: As in C-E, but for the numerically optimised networks.

A: Stimulus loadings f(θ), g(θ) in TDR models fit to data simulated from each WM model (left panel, all models yield identical results), and three experimental recording sessions (right three panels). B: Principal component spectrum of wp(t) matrices of TDR models fit to simulated data (left panel) and three experimental sessions (right three panels). For the simulated data, only w1(t) is shown, but w2(t) has an identical spectrum and w0(t) = 0. For the experimental recordings, all three matrices are shown, with singular values normalised by the maximum singular value of w1(t). C: Responses to each stimulus along the top principal components of w1(t) and w2(t) for the amplification into attractor model (left) and three recording sessions. Other models are shown in Figure 5. D: The alignment of the plane spanned by w1(t), w2(t) and the plane spanned by w1(t′), w2(t′) (left: amplification into attractor model, right: data). E: Alignment of w1(t) and w1(t′) (left: amplification into attractor model, right: data).
Acknowledgements
We thank Alex Cayco-Gajic, Arthur Pellegrino, Sina Tootoonian, Matt Nolan and Matt Panichello for valuable feedback. We are particularly grateful to Matt Panichello and Tirin Moore for provision of experimental data. This work was supported in part by the Biotechnology and Biological Sciences Research Council [BB/Y513957/1].
Additional information
Funding
UKRI | Biotechnology and Biological Sciences Research Council (AFRC) (BB/Y513957/1)
Angus Chadwick
References
- Computing the fréchet derivative of the matrix exponential, with an application to condition number estimationSIAM J. Matrix Analysis Applications 30:1639–1657https://doi.org/10.1137/080716426Google Scholar
- Prefrontal cortex exhibits multidimensional dynamic encoding during decision-makingNature Neuroscience https://doi.org/10.1038/s41593-020-0696-5PubMedGoogle Scholar
- Neural correlations, population coding and computationNat Rev Neurosci https://doi.org/10.1038/nrn1888PubMedGoogle Scholar
- Working memoryScience 255:556–559https://doi.org/10.1126/science.1736359PubMedGoogle Scholar
- Finite Dimensional Linear SystemsPhiladelphia, PA: Society for Industrial and Applied Mathematics Google Scholar
- Fundamental limits on persistent activity in networks of noisy neuronsProceedings of the National Academy of Sciences https://doi.org/10.1073/pnas.1117386109PubMedGoogle Scholar
- Reconciling persistent and dynamic hypotheses of working memory coding in prefrontal cortexNature Communications 9https://doi.org/10.1038/s41467-018-05873-3PubMedGoogle Scholar
- Learning shapes cortical dynamics to enhance integration of relevant sensory inputNeuron https://doi.org/10.1016/j.neuron.2022.10.001PubMedGoogle Scholar
- The distributed nature of working memoryTrends in Cognitive Sciences 21:111–124https://doi.org/10.1016/j.tics.2016.12.007PubMedGoogle Scholar
- Neural population dynamics during reachingNature https://doi.org/10.1038/nature11129PubMedGoogle Scholar
- Low-dimensional dynamics for working memory and time encodingProceedings of the National Academy of Sciences 117:23021–23032https://doi.org/10.1073/pnas.1915984117PubMedGoogle Scholar
- Feedforward amplification in recurrent networks underlies paradoxical neural codingbiorxiv https://doi.org/10.1101/2023.08.04.552026PubMedGoogle Scholar
- Mnemonic coding of visual space in the monkey’s dorsolateral prefrontal cortexJournal of Neurophysiology 61:331–349https://doi.org/10.1152/jn.1989.61.2.331PubMedGoogle Scholar
- Why neurons mix: high dimensionality for higher cognitionCurrent Opinion in Neurobiology 37:66–74https://doi.org/10.1016/j.conb.2016.01.010PubMedGoogle Scholar
- Unit activity in prefrontal cortex during delayed-response performance: neuronal correlates of transient memoryJournal of Neurophysiology 36:61–78https://doi.org/10.1152/jn.1973.36.1.61PubMedGoogle Scholar
- Neuron activity related to short-term memoryScience 173:652–654https://doi.org/10.1126/science.173.3997.652PubMedGoogle Scholar
- Memory traces in dynamical systemsProceedings of the National Academy of Sciences 105:18970–18975https://doi.org/10.1073/pnas.0804451105PubMedGoogle Scholar
- The neural basis of decision makingAnnual Review of Neuroscience 30:535–574https://doi.org/10.1146/annurev.neuro.29.051605.113038PubMedGoogle Scholar
- Memory without feedback in a neural networkNeuron 61:621–634https://doi.org/10.1016/j.neuron.2008.12.012PubMedGoogle Scholar
- Cellular basis of working memoryNeuron 14:477–485https://doi.org/10.1016/0896-6273(95)90304-6PubMedGoogle Scholar
- Hippo: Recurrent memory with optimal polynomial projectionsIn:
- Larochelle H
- Ranzato M
- Hadsell R
- Balcan M
- Lin H
- How to train your HIPPO: State space models with generalized orthogonal basis projectionsIn: International Conference on Learning Representations Google Scholar
- Choice-specific sequences in parietal cortex during a virtual-navigation decision taskNature https://doi.org/10.1038/nature10918PubMedGoogle Scholar
- Neural tuning and representational geometryNat Rev Neurosci https://doi.org/10.1038/s41583-021-00502-3PubMedGoogle Scholar
- Energy as a constraint on the coding and processing of sensory informationCurrent Opinion in Neurobiology 11:475–480https://doi.org/10.1016/s0959-4388(00)00237-3PubMedGoogle Scholar
- Rotational dynamics reduce interference between sensory and memory representationsNature neuroscience https://doi.org/10.1038/s41593-021-00821-9PubMedGoogle Scholar
- Noise Tolerance of Attractor and Feedforward Memory ModelsNeural Computation 24:332–390https://doi.org/10.1162/neco_a_00234PubMedGoogle Scholar
- Working memory: Delay activity, yes! persistent activity? maybe notThe Journal of Neuroscience 38:7013–7019https://doi.org/10.1523/jneurosci.2485-17.2018PubMedGoogle Scholar
- Functional, but not anatomical, separation of “what” and “when” in prefrontal cortexJ Neurosci https://doi.org/10.1523/jneurosci.3276-09.2010PubMedGoogle Scholar
- Context-dependent computation by recurrent dynamics in prefrontal cortexNature 503:78–84https://doi.org/10.1038/nature12742PubMedGoogle Scholar
- An integrative theory of prefrontal cortex functionAnnu Rev Neurosci https://doi.org/10.1146/annurev.neuro.24.1.167PubMedGoogle Scholar
- Information-limiting correlationsNat Neurosci https://doi.org/10.1038/nn.3807PubMedGoogle Scholar
- Balanced amplification: A new mechanism of selective amplification of neural activity patternsNeuron 61:635–648https://doi.org/10.1016/j.neuron.2009.02.005PubMedGoogle Scholar
- Derivatives of the matrix exponential and their computationAdvances in Applied Mathematics https://doi.org/10.1006/aama.1995.1017Google Scholar
- A diverse range of factors affect the nature of neural representations underlying short-term memoryNat Neursci https://doi.org/10.1038/s41593-018-0314-yGoogle Scholar
- Neocortex saves energy by reducing coding precision during food scarcityNeuron 110:280–296https://doi.org/10.1016/j.neuron.2021.10.024PubMedGoogle Scholar
- A new theoretical framework jointly explains behavioral and neural variability across subjects performing flexible decision-makingbioRxiv https://doi.org/10.1101/2022.11.28.518207Google Scholar
- Error-correcting dynamics in visual working memoryNat Commun https://doi.org/10.1038/s41467-019-11298-3PubMedGoogle Scholar
- Intermittent rate coding and cue-specific ensembles support working memoryNature https://doi.org/10.1038/s41586-024-08139-9PubMedGoogle Scholar
- Linear Operators and Linear Systems: An Analytical Approach to Control Theory, volume 60 of London Mathematical Society Student TextsCambridge University Press Google Scholar
- How the brain keeps the eyes stillProceedings of the National Academy of Sciences https://doi.org/10.1073/pnas.93.23.13339PubMedGoogle Scholar
- Inferring context-dependent computations through linear approximations of prefrontal cortex dynamicsScience Advances 10:eadl4743https://doi.org/10.1126/sciadv.adl4743PubMedGoogle Scholar
- Stable and dynamic coding for working memory in primate prefrontal cortexJ Neurosci 37:6503–6516https://doi.org/10.1523/jneurosci.3364-16.2017PubMedGoogle Scholar
- Revisiting the role of persistent neural activity during working memoryTrends in cognitive sciences https://doi.org/10.1016/j.tics.2013.12.001PubMedGoogle Scholar
- Calculation of signal detection theory measuresBehav Res Methods Instrum Comput https://doi.org/10.3758/bf03207704PubMedGoogle Scholar
- Dynamic coding for cognitive control in prefrontal cortexNeuron https://doi.org/10.1016/j.neuron.2013.01.039PubMedGoogle Scholar
- ‘activity-silent’ working memory in prefrontal cortex: a dynamic coding frameworkTrends in Cognitive Sciences 19:394–405https://doi.org/10.1016/j.tics.2015.05.004PubMedGoogle Scholar
- The computational foundations of dynamic coding in working memoryTrends Cogn Sci https://doi.org/10.1016/j.tics.2024.02.011PubMedGoogle Scholar
- Optimal information loading into working memory explains dynamic coding in the prefrontal cortexProc Natl Acad Sci https://doi.org/10.1073/pnas.2307991120PubMedGoogle Scholar
- Effects of noise and metabolic cost on cortical task representationseLife https://doi.org/10.7554/elife.94961.1Google Scholar
- Neural circuits as computational dynamical systemsCurrent Opinion in Neurobiology 25:156–163https://doi.org/10.1016/j.conb.2014.01.008PubMedGoogle Scholar
- An introduction to matched filtersIRE Transactions on Information Theory 6:311–329https://doi.org/10.1109/TIT.1960.1057571Google Scholar
- Dynamical Systems in Spiking Neuromorphic HardwareUniversity of Waterloo Google Scholar
- Legendre memory units: Continuous-time representation in recurrent neural networksIn: Advances in Neural Information Processing Systems Google Scholar
- Cortical feedback loops bind distributed representations of working memoryNature https://doi.org/10.1038/s41586-022-05014-3PubMedGoogle Scholar
- Computation through neural population dynamicsAnnual Review of Neuroscience 43:249–275https://doi.org/10.1146/annurev-neuro-092619-094115PubMedGoogle Scholar
- Synaptic reverberation underlying mnemonic persistent activityTrends in neurosciences 24:455https://doi.org/10.1016/s0166-2236(00)01868-3PubMedGoogle Scholar
- Intermittent rate coding and cue-specific neuronal ensembles support working memoryDryad Digital Repository https://doi.org/10.5061/dryad.kkwh70sct
Article and author information
Author information
Version history
- Preprint posted:
- Sent for peer review:
- Reviewed Preprint version 1:
Cite all versions
You can cite all versions using the DOI https://doi.org/10.7554/eLife.111445. This DOI represents all versions, and will always resolve to the latest one.
Copyright
© 2026, Laura Ritter & Angus Chadwick
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 0
- downloads
- 0
- citations
- 0
Views, downloads and citations are aggregated across all versions of this paper published by eLife.