## Figures

## Abstract

Continuous attractor models of working-memory store continuous-valued information in continuous state-spaces, but are sensitive to noise processes that degrade memory retention. Short-term synaptic plasticity of recurrent synapses has previously been shown to affect continuous attractor systems: short-term facilitation can stabilize memory retention, while short-term depression possibly increases continuous attractor volatility. Here, we present a comprehensive description of the combined effect of both short-term facilitation and depression on noise-induced memory degradation in one-dimensional continuous attractor models. Our theoretical description, applicable to rate models as well as spiking networks close to a stationary state, accurately describes the slow dynamics of stored memory positions as a combination of two processes: (i) diffusion due to variability caused by spikes; and (ii) drift due to random connectivity and neuronal heterogeneity. We find that facilitation decreases both diffusion and directed drifts, while short-term depression tends to increase both. Using mutual information, we evaluate the combined impact of short-term facilitation and depression on the ability of networks to retain stable working memory. Finally, our theory predicts the sensitivity of continuous working memory to distractor inputs and provides conditions for stability of memory.

## Author summary

The ability to transiently memorize positions in the visual field is crucial for behavior. Models and experiments have shown that such memories can be maintained in networks of cortical neurons with a continuum of possible activity states, that reflects the continuum of positions in the environment. However, the accuracy of positions stored in such networks will degrade over time due to the noisiness of neuronal signaling and imperfections of the biological substrate. Previous work in simplified models has shown that synaptic short-term plasticity could stabilize this degradation by dynamically up- or down-regulating the strength of synaptic connections, thereby “pinning down” memorized positions. Here, we present a general theory that accurately predicts the extent of this “pinning down” by short-term plasticity in a broad class of biologically plausible network models, thereby untangling the interplay of varying biological sources of noise with short-term plasticity. Importantly, our work provides a novel theoretical link from the microscopic substrate of working memory—neurons and synaptic connections—to observable behavioral correlates, for example the susceptibility to distracting stimuli.

**Citation: **Seeholzer A, Deger M, Gerstner W (2019) Stability of working memory in continuous attractor networks under the control of short-term plasticity. PLoS Comput Biol 15(4):
e1006928.
https://doi.org/10.1371/journal.pcbi.1006928

**Editor: **Yoram Burak,
Hebrew University, ISRAEL

**Received: **April 19, 2018; **Accepted: **March 4, 2019; **Published: ** April 19, 2019

**Copyright: ** © 2019 Seeholzer et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

**Data Availability: **All relevant data are within the paper and its Supporting Information files.

**Funding: **Research was supported by the European Union Seventh Framework Program (FP7, https://ec.europa.eu/research/fp7/index_en.cfm) under grant agreement no. 604102 (Human Brain Project, M.D.) and by the Swiss National Science Foundation (http://www.snf.ch/en/Pages/default.aspx) under grant no. 200020_147200 (A.S.). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

**Competing interests: ** The authors have declared that no competing interests exist.

## Introduction

Information about past environmental stimuli can be stored and retrieved seconds later from working memory [1, 2]. Strikingly, this transient storage is achieved for timescales of seconds with neurons and synapse transmission operating mostly on time scales of tens of milliseconds and shorter [3]. An influential hypothesis of neuroscience is that working memory emerges from recurrently connected cortical neuronal networks: memories are retained by self-generating cortical activity through positive feedback [4–7], thereby bridging the time scales from milliseconds (neuronal dynamics) to seconds (behavior).

Sensory stimuli are often embedded in a physical continuum: for example, positions of objects in the visual field are continuous, as are frequencies of auditory stimuli, or the position of somatosensory stimuli on the body. Ideally, the organization of cortical working memory circuits should reflect the continuous nature of sensory information [3]. A class of cortical working memory models able to store continuously structured information is that of *continuous attractors*, characterized by a continuum of meta-stable states, which can be used to retain memories over delay periods much longer than those of the single network constituents [8]. Continuous attractors were proposed as theoretical models for cortical working memory [9–11], path integration [12–14], and other cortical functions [15–17] (see e.g. [3, 18–21] for recent reviews), well before experimental evidence was found in cortical networks [22] and the limbic system [18, 23]. The one-dimensional ring-attractor in the fly responsible for self-orientation [24, 25] is a particularly intriguing example.

Continuous attractor models have been successfully employed in the context of visuospatial working memory to explain behavioral performance [26–29], to predict the effects of neuromodulation [30, 31], or the implications of cognitive impairment [32, 33]. However, in networks with heterogeneities, the continuum of memory states quickly breaks down, since noise and heterogeneities break, transiently or permanently, the crucial symmetry necessary for continuous attractors [10, 11, 13, 16, 34–40]. For example, the stochasticity of neuronal spiking (“fast noise”) leads to transient asymmetries that randomly displace encoded memories along the continuum of states [10, 11, 35, 37, 39, 40], leading, averaged over many trials, to *diffusion* of encoded information. More drastically, introducing fixed asymmetries (“frozen noise”) due to network heterogeneities causes a *directed drift* of memories and a collapse of the continuum of attractive states to a set of discrete states. Examples of heterogeneities in biological scenarios include the sparsity of recurrent connections [13, 36], or randomness in neuronal parameters [36] and values of recurrent weights [16, 34, 38]. Since both (fast) noise and heterogeneities are expected in cortical settings, the feasibility of continuous attractors as computational systems of the brain has been called into question [3, 6, 41].

The question then arises, whether short-term plasticity of recurrent synaptic connections can rescue the feasibility of continuous attractor models. In particular, short-term depression has a strong effects on the directed drift of attractor states in rate models [42, 43], but no strong conclusions were drawn in a spiking network implementation [44]. Short-term facilitation, on the other hand, increases the retention time of memories in continuous attractor networks with noise-free [38] and, as shown parallel to this study, noisy [45] rate neurons. In simulations of continuous attractors implemented with spiking neurons for a fixed set of parameters, facilitation was reported to cause slow drift [46, 47] and a reduced amount of diffusion [47]. However, despite the large number of existing studies, several fundamental questions remain unanswered. What are the quantitative effects of short-term facilitation in more complex neuronal models and across facilitation parameters? How does short-term depression influence the strength of diffusion and drift, and how does it interplay with facilitation? Do phenomena reported in rate networks persist in spiking networks? Finally, can a single theory be used to predict all of the effects observed in simulations?

Here, we present a comprehensive description of the effects of short-term facilitation and depression on noise-induced displacement of one-dimensional continuous attractor models. Extending earlier theories for diffusion [39, 40, 45] and drift [38], we derive predictions of the amount of diffusion and drift in ring-attractor models of randomly firing neurons with short-term plasticity, providing, for the first time, a general description of bump displacement in the presence of both short-term facilitation and depression. Our theory is formulated as a rate model with noise, but since the gain-function of the rate model can be chosen to match that of integrate-and-fire models, our theory is also a good approximation for a large class of heterogeneous networks of integrate-and-fire models as long as the network as a whole is close to a stationary state. The theoretical predictions of the noisy rate model are validated against simulations of ring-attractor networks realized with spiking integrate-and-fire neurons. In both theory and simulation, we find that facilitation and depression play antagonistic roles: facilitation tends to *decrease both diffusion and drift* while depression *increases both*. We show that these combined effects can still yield reduced diffusion and drift, which increases the retention time of memories. Importantly, since our theory is, to a large degree, independent of the microscopic network configurations, it can be related to experimentally observable quantities. In particular, our theory predicts the sensitivity of networks with short-term plasticity to distractor stimuli.

## Results

We investigated, in theory and simulations, the effects of short-term synaptic plasticity (STP) on the dynamics of ring-attractor models consisting of *N* excitatory neurons with distance-dependent and symmetric excitation, and global (uniform) inhibition provided by a population of inhibitory neurons (Fig 1A). For simplicity, we describe neurons in terms of firing rates, but our theory can be mapped to more complex neurons with spiking dynamics. An excitatory neuron *i* with 0 ≤ *i* < *N* is assigned an angular position , where we identify the bounds of the interval to form a ring topology (Fig 1A). The firing rate *ϕ*_{i} (in units of Hz) for each excitatory neuron *i* (0 ≤ *i* < *N* − 1) is given as a function of the neuronal input:
(1)
Here, the input-output relation *F* relates the dimensionless excitatory *J*_{i} and inhibitory *J*_{inh} inputs of neuron *i* to its firing rate. This represents a rate-based simplification of the possibly complex underlying neuronal dynamics [48]. We assume that the excitatory input *J*_{i}(*t*) to neuron *i* at time *t* is given by a sum over all presynaptic neurons
(2)
where *w*_{ij}*s*_{j}(*t*) describes the total activation of synaptic input from the presynaptic neuron *j* onto neurons *i*. The maximal strength *w*_{ij} of recurrent excitatory-to-excitatory connections is chosen to be local in the angular arrangement of neurons, such that connections are strongest to nearby excitatory neurons (Fig 1A, red lines). The momentary input depends also on the synaptic activation variables *s*_{j}, to be defined below. Finally, connections to and from inhibitory neurons are assumed to be uniform and global (all-to-all) (Fig 1A, blue lines), thereby providing non-selective inhibitory input *J*_{inh} to excitatory neurons.

**A** Excitatory (E) neurons (red circles) are distributed on a ring with coordinates in [−*π*, *π*]. Excitatory-to-excitatory (E-E) connections (red lines) are distance-dependent, symmetric, and subject to short-term plasticity (facilitation and depression, see Eq (3)). Inhibitory (I) neurons (blue circles) project to all E and I neurons (blue lines) and receive connection from all E neurons (gray lines). Only outgoing connections from shaded neurons are displayed. In simulations with integrate-and-fire neurons, each neuron also receives noisy excitatory spike input generated by independent homogeneous Poisson processes. **B1** Example simulation: E neurons fire asynchronously and irregularly at low rates until (dotted line) a subgroup of E neurons is stimulated (external cue), causing them to spike at elevated rates (red dots, input was centered at 0, starting at *t* = 2*s* for 1*s*). During and after (dashed line) the stimulus, a bump state of elevated activity forms and sustains itself after the external cue is turned off. The spatial center of the population activity is estimated from the momentary firing rates (red line, plotted from *t* = 2.5*s* onward). Inset: Activity profile in the bump state, centered at 0. **B2** Center positions of 20 repeated spiking simulations for 10 different initial cue positions each for a network with short-term depression (*U* = 1, *τ*_{x} = 150*ms*). Random E-E connections (with connection probability *p* = 0.5) lead to directed drift in addition to diffusion. Right: Normalized histogram (200 bins) of final positions at time *t* = 13.5. **C** Illustration of quantities used in theoretic calculations. Neurons in the bump fire at rates *ϕ*_{0,i} (dashed black line, compare to B1, inset) due to the steady-state synaptic input *J*_{0,i} (blue line). Movement of the bump center causes a change of the synaptic input (orange line). **D** Diffusion along the attractor manifold is calculated (see Eq (5)) as a weighted sum of the neuronal firing rates in the bump state (dashed black line). Spiking noise (red line) is illustrated as a random deviation from the mean rate with variance proportional to the rate. The symmetric weighting factors (blue lines show for varying *U*) are non-zero at the flanks of the firing rate profile. Stronger short-term depression and weaker facilitation increase the magnitude of weighting factors. **E** Deterministic drift is calculated as a weighted sum (see Eq (7)) of systematic deviations of firing rates from the bump state (frozen noise): a large positive firing rate deviation in the left flank (red line) will cause movement of the center position to the left (red arrow) because the weighting factors (blue lines show for varying *U*) are asymmetric.

As a model of STP, we assume that excitatory-to-excitatory connections are subject to short-term facilitation and depression, which we implemented using a widely adopted model of short-term synaptic plasticity [49]. The *outgoing* *synaptic activations* *s*_{j} of neuron *j* are modeled by the following system of ordinary differential equations:
(3)
The synaptic time scale *τ*_{s} governs the decay of the synaptic activations. The timescale of recovery *τ*_{x} is the main parameter of depression. While the recovery from facilitation is controlled by the timescale *τ*_{u}, the parameter 0 < *U* ≤ 1 controls the baseline strength of unfacilitated synapses as well as the timescale of their strengthening. For fixed *τ*_{u}, we consider smaller values of *U* to lead to a “stronger” effect of facilitation, and take *U* = 1 as the limit of non-facilitating synapses.

As a reference implementation of this model, we simulated networks of spiking conductance-based leaky-integrate-and-fire (LIF) neurons with (spike-based) short-term plastic synaptic transmission (Fig 1B1, see *Spiking network model* in Materials and methods for details). For these networks, under the assumption that neurons fire with Poisson statistics and the network is in a stationary state, neuronal firing can be approximated by the input-output relation *F* of Eq (1) [50, 51] (see *Firing rate approximation* in Materials and methods), which allows us to map the network into the general framework of Eqs (1) and (2). In the stationary state, synaptic depression will lead to a saturation of the synaptic activation variables *s*_{j} at a constant value as firing rates increase. This nonlinear behavior enables spiking networks to implement bi-stable attractor dynamics with relatively low firing rates [46, 52] similar to saturating NMDA synapses [11, 47]. Since we found that without depression (for *τ*_{x} → 0) the bump state was not stable at low firing rates (in agreement with [52]), we always keep the depression timescale *τ*_{x} at positive values.

Particular care was taken to ensure that networks display nearly identical bump shapes (similar to Fig 1B1, inset; see also S1 Fig), which required the re-tuning of network parameters (recurrent conductance parameters and the width of distance-dependent connections; see *Optimization of network parameters* in Materials and methods) for each combination of the STP parameters above.

Simulations with spiking integrate-and-fire neurons generally show a bi-stability between a *non-selective* state and a *bump* state. In the non-selective state, all excitatory neurons emit action potentials asynchronously and irregularly at roughly identical and low firing rates (Fig 1B1, left of dotted line). The bump state can be evoked by stimulating excitatory neurons localized around a given position by additional external input (Fig 1B1, red dots). After the external cue is turned off, a self-sustained firing rate profile (“bump”) emerges (Fig 1B1, right of dashed line, and inset) that persists until the network state is again changed by external input. For example, a short and strong uniform excitatory input to all excitatory neurons causes a transient increase in inhibitory feedback that is strong enough to return the network to the uniform state [11].

During the bump state, fast fluctuations in the firing of single neurons transiently break the perfect symmetry of the firing rate profile and introduce small random displacements along the attractor manifold, which become apparent as a random walk of the center position. If the simulation is repeated for several trials, the bump has the same shape in each trial, but information on the center position is lost in a *diffusion*-like process. We additionally included varying levels of biologically plausible sources of heterogeneity (frozen noise) in our networks: *random connectivity* between excitatory neurons (E-E) and heterogeneity of the single neuron properties of the excitatory population [36], realized as a random distribution of leak reversal potentials. Heterogeneities makes the bump *drift* away from its initial position in a directed manner. For example, the bump position in the randomly connected (*p* = 0.5) network of Fig 1B1 shows a clear upwards drift towards center positions around 0. Repeated simulations of the same attractor network with bumps initialized at different positions provide a more detailed picture of the combined drift and diffusion dynamics: bump center trajectories systematically are biased towards a few stable fixed points (Fig 1B2) around which they are distributed for longer simulation times (histogram in Fig 1B2, *t* = 13.5*s*). The theory developed in this paper aims at analyzing the above phenomena of drift and diffusion of the bump center.

### Theory of diffusion and drift with short-term plasticity

To untangle the observed interplay between diffusion and drift and investigate the effects of short-term plasticity, we derived a theory that reduces the microscopic network dynamics to a simple one-dimensional stochastic differential equation for the bump state. The theory yields analytical expressions for diffusion coefficients and drift fields, that depend on short-term plasticity parameters, the shape of the firing rate profile of the bump, as well as the neuron model chosen to implement the attractor.

First, we *assume* that the system of Eq (3) together with the network Eqs (1) and (2) has a 1-dimensional manifold of meta-stable states, i.e. the network is a ring-attractor network as described in the introduction. This entails, that the network dynamics permit the existence of a family of solutions that can be described as a self-sustained and symmetric bump of firing rates *ϕ*_{0,i}(*φ*) = *F*(*J*_{0,i}(*φ*)) with corresponding inputs *J*_{0,i}(*φ*) (for 0 ≤ *i* < *N*). Importantly, the center *φ* of the bump can be located at any arbitrary position . For example, if *ϕ*_{0,i}(0) is a solution with input *J*_{0,i}(0), then is also a solution with input . This solution is illustrated in Fig 1C for a bump centered at *φ* = 0. Second, we assume that the number *N* of excitatory neurons is large (*N* → ∞), such that we can think of the possible positions *φ* as a continuum. Third, we assume that network heterogeneities are small enough to capture their effect as a linear (first order) perturbation to the stable bump state. Our final assumption is that neuronal firing is noisy, with spike counts distributed as Poisson processes, and that we are able to replace the shot-noise of Poisson spiking by white Gaussian noise with the same mean and autocorrelation, similar to earlier work [39, 53]; see *Diffusion* in Materials and methods, and Discussion. Under these assumptions, we are able to reduce the network dynamics to a **one-dimensional Langevin equation**, describing the dynamics of the center *φ*(*t*) of the firing rate profile (see *Analysis of drift and diffusion with STP* in Materials and methods):
(4)
Here, *η*(*t*) is white Gaussian noise with zero mean and correlation function 〈*η*(*t*), *η*(*t*′)〉 = *δ*(*t* − *t*′).

The first term is diffusion characterized by a **diffusion strength** B^{1}, which describes the random displacement of bump center positions due to fluctuations in neuronal firing. For *A*(*φ*) = 0 this term causes diffusive displacement of the center *φ*(*t*) from its initial position *φ*(*t*_{0}), with a mean (over realizations) squared displacement of positions 〈[*φ*(*t*) − *φ*(*t*_{0})]^{2}〉 = *B* ⋅ (*t* − *t*_{0}) that, during an initial phase, increases linearly with time [14, 54, 55], before saturating due to the circular domain of possible center positions [39]. Our theory shows (see *Diffusion* in Materials and methods) that the coefficient *B* can be calculated as a weighted sum over the neuronal firing rates (Fig 1D)
(5)
where is the change of the input to neuron *i* under shifts of the center position (Fig 1C, orange line), and *S* is a normalizing constant that tends to increase additionally with the synaptic time constant *τ*_{s}.

The analytical factors *C*_{i} express the spatial dependence of the diffusion coefficient on the short-term plasticity parameters through
(6)
^{1}In Brownian motion, the *diffusion constant* is usually defined as *D* = *B*/2. The dependence of the single summands in Eq (5) on short-term plasticity parameters is visualized in Fig 1D, where we see that: a) due to the squared spatial derivative of the bump shape and the squared factors *C*_{i}/*S*, the important contributions to the sum arise primarily from the flanks of the bump; b) for a fixed bump shape, summands increase with stronger short-term depression (larger *τ*_{x}) and decrease with stronger short-term facilitation (smaller *U*, larger *τ*_{u}).

The second term in Eq (4) is the **drift field***A*(*φ*), which describes deterministic drifts due to the inclusion of heterogeneities. For heterogeneity caused by variations in neuronal reversal potentials and random network connectivity, we calculate (see *Frozen noise* in Materials and methods) systematic deviations Δ*ϕ*_{i}(*φ*) of the single neuronal firing rates from the steady-state bump shape that depend on the current position *φ* of the bump center. In *Drift* in Materials and Methods, we show that the drift field is then given by a weighted sum over the firing rate deviations:
(7)
with weighing factors depending on the spatial derivative of the bump shape and the parameters of the synaptic dynamics through the same factors *C*_{i}/*S*. This is illustrated in Fig 1E: in contrast to Eq (5) summands are now asymmetric with respect to the bump center, since the spatial derivative is not squared.

### Analytical considerations

To calculate the diffusion and drift terms of the last section, we assume the number of neurons *N* to be large enough to treat the center position *φ* as continuous: this allows us (similar to [39]) to derive projection vectors (see *Projection of dynamics onto the attractor manifold* in Materials and methods) that yield the dynamics of the center position. However, the actual projection yields sums over the system size N, whose scaling we made explicit (see *System size scaling* in Materials and methods). For the diffusion strength (cf. Eq (5)) we find a scaling as as , in agreement with earlier work [11, 14, 36, 39, 46]. For drift fields caused by random connectivity, we find a scaling with the connectivity parameter *p* and the system size *N* to leading order as , whereas drift fields due to heterogeneity of leak potentials (and other heterogeneous single-neuron parameters) will scale as , both in accordance with earlier results [16, 36, 38, 46].

In addition to reproducing the previously known scaling with the system size *N*, our theory exposes the scaling of both drift and diffusion with the parameters *τ*_{x}, *τ*_{u}, and *U* of short-term depression and facilitation via the analytical pre-factors *C*_{i}/*S* appearing in Eqs (5) and (7). Our result extends the calculation of the diffusion constant [39] to synaptic dynamics with short-term plasticity: In the limiting case of no facilitation and depression (*U* → 1, *τ*_{x} → 0ms), the pre-factor reduces to *C*_{i} = 1 and the normalization factor simplifies to , where is the derivative of the firing rate of neuron *i* at its steady-state input *J*_{0,i}. For static synapses we thereby recover the known result for diffusion [39, Eq. S18], but also add an analogous relation for the drift . Our approach relies on the existence of a stationary bump state (which is stable for large noise-free homogeneous networks), around which we calculate drift and diffusion as perturbations. Following earlier work [11, 50, 52], we use in our simulations with spiking integrate-and-fire neurons a slow synaptic time constant (*τ*_{s} = 100ms) as an approximation of recurrent (NMDA mediated) excitation. While our theory captures the effects of changing this time constant *τ*_{s} in the pre-factors *C*_{i}/*S*, we did not check in simulations whether the bump state remains stable and whether our theory remains valid for very short time constants for *τ*_{s}.

Finally, two limiting cases are worth highlighting. First, for strong facilitation (*U* → 0) we obtain pre-factors , indicating that (i) this limit will leave residual drift and diffusion which (ii) will both be controlled by the time constants for facilitation (*τ*_{u}) and synaptic transmission (*τ*_{s}), with no dependence upon depression. Second, for vanishing facilitation (*U* → 1 and *τ*_{u} → 0) we find that the normalization factor *S* will tend to zero if the depression time constant *τ*_{x} is increased to a finite value *τ*_{x,c}. Through the pre-factors *C*_{i}/*S* this, in turn, yields exploding diffusion and drift terms (see S8 Fig). While this is a general feature of bump systems with short-term depression, the exact value of the critical time constant *τ*_{x,c} depends on the firing rates and neural implementation of the bump state (see section 6 in S1 Text): for the spiking network investigated here, we find a critical time constant *τ*_{x,c} = 223.9ms (see S8 Fig). In networks with both facilitation and depression, the critical *τ*_{x,c} increases as facilitation becomes stronger (see S8 Fig).

### Prediction of continuous attractor dynamics with short-term plasticity

To demonstrate the accuracy of our theory, we chose random connectivity as a first source of frozen variability. Random connectivity was realized in simulations by retaining only a random fraction 0 < *p* ≤ 1 (connection probability) of excitatory-to-excitatory (EE) connections. The uniform connections from and to inhibitory neurons are taken as all-to-all, since the effects of making these random or sparse would have only indirect effects on the dynamics of the bump center positions.

Our theory accurately predicts the drift-fields *A*(*φ*) (see Eq (7)) induced by frozen variability in networks with short-term plasticity (Fig 2). Briefly, for each neuron 0 ≤ *i* < *N*, we treat each realization of frozen variability as a perturbation Δ_{i} around the perfectly symmetric system and use an expansion to first order of the input-output relation *F* to calculate the resulting changes in firing rates (see *Frozen noise* for details):
(8)
The resulting terms are then used in Eq (7) to predict the magnitude of the drift field *A*(*φ*) for any center position *φ*, which will, importantly, depend on STP parameters. The same approach can be used to predict drift fields induced by heterogeneous single neuron parameters [36] (see next sections) and additive noise on the E-E connection weights [16, 38].

All networks have the same instantiation of random connectivity (*p* = 0.5), similar to Fig 1B1. **A** Centers of excitatory population activity for 50 repetitions of 13.5*s* delay activity, for 20 different positions of initial cues (cue is turned off at *t* = 0) colored by position of the cues. Left: no facilitation (*U* = 1). Right: with facilitation (*U* = 0.1). **B** Drift field as a function of the bump position. The theoretical prediction (blue line, see Eq (7)) of the drift field is compared to velocity estimations along the trajectories shown in A, colored by the line they were estimated from. The thick black line shows the binned mean of data points in 60 bins. For comparison, the predicted drift field for *U* = 0.1 is plotted (thin dashed line). Left: no facilitation (*U* = 1), for comparison the theoretical prediction for the case *U* = 0.01 is plotted as a dashed line. Right: with facilitation (*U* = 0.01). **C** Trajectories under the same conditions as in A, but obtained by forward-integrating the one-dimensional Langevin equation, Eq (4). **D** Normalized histograms of final positions at time *t* = 13.5 for data from spiking simulations (gray areas, data from A) and forward solutions of the Langevin equations (blue areas, data from C). Other STP parameters were: *τ*_{u} = 650*ms*, *τ*_{x} = 150*ms*.

We first simulated spiking networks with only short-term depression and without facilitation (Fig 2A, left, same network as in Fig 1B1), for one instantiation of random (*p* = 0.5) connectivity. Numerical estimates of the drift in spiking simulations (by measuring the displacement of bumps over time as a function of their position, see *Spiking simulations* in Materials and methods for details) yielded drift-fields in good agreement with the theoretical prediction (Fig 2B, left). At points where the drift field prediction crosses from positive to negative values (e.g. Fig 2B, left, ), we expect stable fixed points of the center position dynamics in agreement with simulation results, which show trajectories converging to these points. Similarly, unstable fixed points (negative-to-positive crossings) can be seen to lead to a separation of trajectories (e.g. Fig 2A, left, ). In regions where the positional drifts are predicted to lie close to zero (e.g. Fig 2A, left *φ* = 0) the effects of diffusive dynamics are more pronounced. Finally, numerical integration of the full 1-dimensional Langevin equation Eq (4) with coefficients predicted by Eqs (5)–(7), produces trajectories with dynamics very similar to the full spiking network (Fig 2C, left). When comparing the center positions after 13.5*s* of delay activity between the full spiking simulation and the simple 1-dimensional Langevin system, we found very similar distributions of final positions (Fig 2D, left, compare to Fig 1B1, histogram). Our theory thus produces an accurate approximation of the dynamics of center positions in networks of spiking neurons with STP, thereby reducing the complex dynamics of the whole network to a simple equation. It should be noted that, in regions with strong drift or steep negative-to-positive crossings, the numerically estimated drift-fields deviate from the theory due to under-sampling of these regions as trajectories move quickly through them, yielding fewer data points. In *Short-term plasticity controls drift* we additionally show that the theory, as it relies on a linear expansion of the effects of heterogeneities on the neuronal firing rates, tends to generally over-predict drift-fields as heterogeneities become stronger.

Introducing strong short-term facilitation (*U* = 0.1) reduces the predicted drift fields (Fig 2B, left, dashed line), which resemble a scaled-down version of the drift-field for the unfacilitated case. We confirmed this theoretical prediction by simulations including facilitation (Fig 2A, right): the resulting drift fields show significant reduction of speeds (Fig 2B, right) while zero crossings remained similar to the unfacilitated network, similar to the results in [38]. Theoretical predictions of the drift fields with bump shapes extracted from these simulations again show an accurate prediction of the dynamics (Fig 2B, right). Thus, as before, forward integrating the simple 1-dimensional Langevin-dynamics yields trajectories (Fig 2C, right) highly similar to those of the full spiking network, with closely matching distributions of final positions (Fig 2D, right), indicative of a matching strength of diffusion. In summary, our theory predicts the effects of STP on the joint dynamics of diffusion and drift due to network heterogeneities, which we will show in detail in the next sections.

### Short-term plasticity controls diffusion

To isolate the effects of STP on diffusion, we simulated networks *without frozen noise* for various STP parameters. For each combination of parameters, we simulated 1000 repetitions of 13.5*s* delay activity (after cue offset) distributed across 20 uniformly spaced initial cue positions (see Fig 3A for an example). From these simulations, the strength of diffusion was estimated by measuring the growth of variance (over repetitions) of the distance of the center position from its initial position as a function of time (see *Spiking simulations* in Materials and methods for details). For all parameters considered, this growth was well fit by a linear function (e.g. Fig 3A, inset), the slope of which we compared to the theoretical prediction obtained from the diffusion strength *B* (Eq (5)).

**A** Center positions of 20 repeated simulations of the reference network (*U* = 1, *τ*_{x} = 150ms) for 10 different initial cue positions each. Inset: Estimated variance of deviations of center positions *φ*(*t*) from their positions *φ*(0.5) at *t* = 0.5*s* (purple) as a function of time (〈[*φ*(*t*) − *φ*(0.5)]^{2}〉), together with linear fit (dashed line). The slope of the dashed line yields an estimate of *B* (Eq (5)). **B,C** Diffusion strengths estimated from simulations (dots, error bars show 95% confidence interval, estimated by bootstrapping) compared to theory. Dashed lines show theoretical prediction using firing rates measured from the reference network (*U* = 1, *τ*_{x} = 150*ms*), while crosses are theoretical estimates using firing rates measured for each set of STP parameters separately (crosses). **B** Diffusion strength as a function of facilitation parameter *U*. Inset shows zoom of region indicated in the dashed area in the lower left. Increasing the facilitation time constant *τ*_{u} = 650*ms* (blue) to *τ*_{u} = 1*s* (orange) affects diffusion only slightly. In panels A and B, the depression time constant is *τ*_{x} = 150*ms*. **C** Diffusion strength as a function of depression time constant *τ*_{x}. Results for three different values of *U* are shown (note the change in scale). Colors indicate the two different values for the facilitation time constant also used in panel B.

We find that facilitation and depression control the amount of diffusion along the attractor manifold in an antagonistic fashion (Fig 3B and 3C). First, increasing facilitation by lowering the facilitation parameter *U* from its baseline *U* = 1 (no facilitation) towards *U* = 0, while keeping the depression time constant *τ*_{x} = 150*ms* fixed, decreases the measured diffusion strength over an order of magnitude (Fig 3B, dots). On the other hand, increasing the facilitation time constant *τ*_{u} from *τ*_{u} = 650*ms* to *τ*_{u} = 1000*ms* (Fig 3B, orange and blue dots, respectively) only slightly reduces diffusion. Our theory further predicts that increasing the facilitation time constants above *τ*_{u} = 1*s* will not lead to large reductions in the magnitude of diffusion (see S2 Fig). Second, we find that increasing the depression time constant *τ*_{x} for fixed *U*, thereby slowing down recovery from depression, leads to an increase of the measured diffusion (Fig 3C). More precisely, increasing the depression time constant from *τ*_{x} = 120*ms* to *τ*_{x} = 200*ms* leads only to slight increases in diffusion for strong facilitation (*U* = 0.1), but to a much larger increase for weak facilitation (*U* = 0.8).

For a comparison of these simulations with our theory, we used two different approaches. First, we estimated the diffusion strength by using the precise shape of the stable firing rate profile extracted separately for each network with different sets of parameters. This first comparison with simulations confirms that the theory closely describes the dependence of diffusion on short-term plasticity for each parameter set (Fig 3B, crosses). The observed effects could arise directly from changes in STP parameters for a fixed bump shape, or indirectly since STP parameters also influence the shape of the bump. To separate such direct and indirect effects, we used for a second comparison a theory with fixed bump shape, i.e. the bump shape measured in a “reference network” (*U* = 1, *τ*_{x} = 150*ms*) and extrapolated curves by changing only STP parameters in Eq (5). This leads to very similar predictions (Fig 3B, dashed lines) and supports the following conclusions: a) the diffusion to be expected in attractor networks with similar observable quantities (mainly, the bump shape) depends only on the short-term plasticity parameters; b) the bump shapes in the family of networks we have investigated are sufficiently similar to be approximated by measurement in a single reference network. It should be noted that the theory tends to slightly over-estimate the amount of diffusion, especially for small facilitation *U* (see Fig 3B and 3C left). This may be because slower bump movement decreases the firing irregularity of flank neurons, which deviates from the Poisson firing assumption of our theory (see Discussion). However, given the simplifying assumptions needed to derive the theory, the match to the spiking network is surprisingly accurate.

### Short-term plasticity controls drift

Having established that our theory is able to predict the effect of STP on diffusion, as well as drift for a single instantiation of random connectivity, we wondered how different sources of heterogeneity (frozen noise) would influence the drift of the bump. We considered two sources of heterogeneity: First, random connectivity as introduced above, and second, heterogeneity of the leak reversal potential parameters of excitatory neurons: leak reversal potentials of excitatory neurons are given by *V*_{L} + Δ_{L}, where Δ_{L} is normally distributed with zero mean and standard deviation *σ*_{L} [36]. The resulting fields can be calculated by calculating the resulting perturbations to the firing rates of neurons by Eq (8) (see *Frozen noise* in Materials and methods for details).

The theory developed so far allowed us to predict drift-fields for a given realization of frozen noise, controlled by the noise parameters *p* (for random connectivity) and *σ*_{L} (for heterogeneous leak reversal-potentials) (see S3 Fig for a comparison of predicted drift fields to those measured in simulations for varying STP parameters and varying strengths of frozen noises). We wondered, whether we could take the level of abstraction of our theory one step further, by predicting the magnitude of drift fields from the frozen noise parameters only, independently of a specific realization. First, the expectation of drift fields under the distributions of the frozen noises vanishes for any given position: 〈*A*(*φ*)〉_{frozen} = 0, where the expectation 〈.〉_{frozen} is taken over both noise parameters. We thus turned to the expected squared magnitude of drift fields under the distributions of these parameters (see *Squared field magnitude* in Materials and methods for the derivation):
(9)
where *s*_{0,j} is the steady-state synaptic activation. Here, we introduced the derivatives of the input-output relation with respect to the noise sources that appear in Eq (8): is the derivative with respect to the steady state synaptic input, and is the derivative with respect to the perturbation in the leak potential. In *Squared field magnitude* in Materials and Methods, we show that Eq (9) is independent of the center position *φ*, and can be estimated from simulations as the variance of the drift field across positions, averaged over an ensemble of network instantiations.

We defined the root of the expected squared magnitude of Eq (9) as the *expected field magnitude*:
(10)
This quantity predicts the magnitude of the deviations of drift-fields from zero that are expected from the parameters that control the frozen noise—in analogy to the standard deviation for random variables, it predicts the standard deviation of the fields. To compare this quantity to simulations, we varied both heterogeneity parameters. First, the connectivity parameter *p* was varied between 0.25 and 1. Second, for heterogeneities in leak reversal-potentials, we chose values for the standard deviation *σ*_{L} of leak-reversal potentials between 0*mV* and 1.5*mV*, which lead to a similar range of drift magnitudes as those of randomly connected networks. For each combination of heterogeneities and STP parameters (networks had either random connections or heterogeneous leaks) we then realized 18–20 networks, for which we simulated 400 repetitions of 6.5*s* of delay activity each (20 uniformly spaced positions of the initial cue). We then estimated the drift-field numerically by recording displacements of bump centers along their trajectories (as in Fig 2A and 2B) and measured the standard deviation of the resulting fields across all positions.

Similar to the analysis of diffusion above, we find that facilitation and depression elicit antagonistic control over the magnitude of drift fields. In both simulations and theory, we find (Fig 4A and 4B) that the expected field magnitude *decreases* as the effect of facilitation is *increased* from unfacilitated networks (*U* = 1) through intermediate levels of facilitation (*U* = 0.4) to strongly facilitating networks (*U* = 0.1). Our theory predicts this effect surprisingly well, which we validated twofold (as for the diffusion magnitude). First, we used Eq (10) with all parameters and coefficients estimated from each spiking simulation separately (Fig 4A and 4B, plus-signs and crosses). Second, we extrapolated the theoretical prediction by using coefficients in Eq (9) from the unfacilitated reference network only (*U* = 1, *τ*_{x} = 150*ms*) but changed the facilitation and heterogeneity parameters (Fig 4A and 4B, dashed lines). The largest differences between the extrapolated and full theory are seen for *U* < 1 and randomly connected networks (*p* < 1), which we found to result from the fact that bump shapes for these networks tended to be slightly reduced under random and sparse connectivity (e.g. the top firing rate is reduced to ∼ 35*Hz* for *U* = 0.1, *p* = 0.25). Generally, as noise levels increase, our theory tends to over-estimate the squared magnitude of fields, since we rely on a linear expansion of perturbations to the firing rates to calculate fields (Eq (8)). Such deviations are expected as the magnitude of firing rate perturbations increases, and could be counter-acted by including higher-order terms. Since in the theory facilitation (and depression) only scales the firing rate perturbations (Eq (7)), these deviations can also be observed across facilitation parameters. Finally, we performed a similar analysis to investigate the effect of short-term depression on drift fields. Here, we varied the depression time constant *τ*_{x} for randomly connected networks with *p* = 0.6, by simulating networks with combinations of short-term plasticity parameters from *U* ∈ {0.1, 0.4, 0.8} and *τ*_{x} ∈ {120*ms*, 160*ms*, 200*ms*} (Fig 4C). We find that an increase of the depression time constant leads to increased magnitude of drift fields, which again is well predicted by our theory.

**A** Expected magnitude of drift fields as a function of the sparsity parameter *p* of recurrent excitatory-to-excitatory connections. Dots are the standard deviation of fields estimated from 400 trajectories (see main text) of each network, averaged over 18–20 realizations for each noise parameter and facilitation setting (error bars show 95% confidence of the mean). Theoretical predictions (dashed lines) are given by Eq (10) extrapolated from the reference network (*U* = 1, *τ*_{x} = 150). For validation, we also estimated Eq (10) with coefficients measured from each simulated network separately (plus signs). The depression time constant was *τ*_{x} = 150ms. **B** Same as in panel A, with heterogeneous leak-reversal potentials as the source of frozen noise. Validation predictions are plotted as crosses. **C** Same as in panels A,B but varying the depression time constant *τ*_{x} for a fixed level of frozen noise (random connectivity, *p* = 0.6). In all panels, the facilitation time constant was *τ*_{u} = 650ms.

### Short-term plasticity controls memory retention

The theory developed in previous sections shows that diffusion and drift of the bump center *φ* are controlled antagonistically by short-term depression and facilitation. In a working memory setup, we can view the attractor dynamics as a noisy communication channel [56] that maps a set of initial positions *φ*(*t* = 0*s*) (time of the cue offset in the attractor network) to associated final positions *φ*(*t* = 6.5*s*), after a memory retention delay of 6.5*s*. We used the distributions of initial and (associated) final positions to investigate the combined impact of diffusion and drift on the retention of memories (Fig 5A). Because of diffusion, distributions of positions will widen over time, which degrades the ability to distinguish different initial positions of the bump center (Fig 5A, top). Additionally, directed drift of the dynamics will contract distributions of different initial positions around the same fixed points, making them essentially indistinguishable when read out (Fig 5A, bottom).

**A** Illustration of the effects of diffusion (top) and additional drift (bottom) on the temporal evolution of distributions of initial positions *p*(start) towards distributions of final positions *p*(end) over 6.5*s* of delay activity. The bump is always represented by its center position *φ*. Two peaks in the distribution of initial positions *φ*(0) and their corresponding final positions *φ*(6.5) are highlighted by colors (purple, red), together with example trajectories of the center positions. Top: Diffusion symmetrically widens the initial distribution. Bottom: Strong drift towards one single fixed point of bump centers (*φ* = 0) makes the origin of trajectories indistinguishable. **B** Normalized mutual information (MI, see text for details) of distributions of initial and final bump center positions in working memory networks for different STP parameters and heterogeneity parameters(blue: strong facilitation, see legend in panel D). Dots and triangles are average MI (18–20 realizations, error bars show 95% CI) obtained from spiking network simulations. Lines show average MI calculated from Langevin dynamics for the same networks, repetitions and realizations (see text, shaded area shows 95% CI). Heterogeneity parameters are *σ*_{L} (triangles, in units of *mV*) and 1 − *p* (circles), where *p* is the connection probability. **C** Expected displacement |Δ*φ*|(1*s*) for the same networks as in panel B. Dashed lines indicate displacement induced by diffusion only (), solid lines show the total displacement (including displacement due to drift, calculated as the expected field magnitude ). **D** Same as panel B, with x-axis showing the expected field magnitude. **E** Same as panel B, with x-axis showing the expected displacement. In panels B-D, all STP parameters except *U* were kept constant at *τ*_{u} = 650ms, *τ*_{x} = 150ms.

As a numerical measure of this ability of such systems to retain memories over the delay period, we turned to mutual information (MI), which provides a measure of the amount of information contained in the readout position about the initially encoded position [57, 58]. To measure MI from simulations (see *Mutual information measure* in Materials and methods), we analyzed network simulations for varying short-term facilitation parameters (*U*) and magnitudes of frozen noises (*p* and *σ*_{L}) (same data set as Fig 4A and 4B). We recorded the center positions encoded in the network at the time of cue-offset (*t* = 0) and after 6.5*s* of delay activity, and used binned histograms (100 bins) to calculate discrete probability distributions of initial (*t* = 0) and final positions (*t* = 6.5). For each trajectory simulated in networks of spiking integrate-and-fire neurons, we then generated a trajectory starting at the same initial position by using the Langevin equation Eq (4) that describes the drift and diffusion dynamics of center positions. The MI calculated from the resulting distributions of final positions (again at *t* = 6.5) for each network serve as the theoretical prediction for each network. As a reference, we used the spiking network without facilitation (*U* = 1, *τ*_{u} = 650*ms*, *τ*_{x} = 150*ms*) and no frozen noises (*p* = 1, *σ*_{L} = 0*mV*) and normalized the MI of all other networks (both for spiking simulations and theoretical predictions) with respect to the reference, yielding the measure of *relative MI* presented in Fig 5B–5E.

We found that the relative MI decreased compared to the reference network as network heterogeneities were introduced (Fig 5B, green). This was expected, since directed drift caused by heterogeneities leads to a loss of information about initial positions. There were two effects of increased short-term facilitation (by decreasing the parameter *U*). First, diffusion was reduced, which was visible in a vertical shift of the relative MI for facilitated networks (Fig 5A, orange and blue, at 0 heterogeneity). Second, the effects of frozen noise decreased with increasing facilitation, which was visible in the slopes of the MI decrease (see also S4 Fig). The MI obtained by integration of the Langevin equations (see above) matched those of the simulations well (Fig 5A, lines). From earlier results, we expected the drift-fields to be slightly over-estimated by the theory as the heterogeneity parameters increase (Fig 4), which would lead to an under-estimation of MI. We did observe this here, although for *U* = 1 the effect was slightly counter-balanced by the under-estimated level of diffusion (cf. Fig 3A, right), which we expected to increase the MI. For networks with stronger facilitation (*U* = 0.1), we systematically over-estimated diffusion (cf. Fig 3, left), and therefore under-estimated MI.

Using our theory, we were able to simplify the functional dependence between MI, short-term plasticity, and frozen noise. Combining the effects of both diffusion and drift into a single quantity for each network, we replaced the field *A*(*φ*) by our theoretical prediction in Eq (4) and forward integrated the differential equation for a time interval Δ*t* = 1*s*, to arrive at the *expected displacement* in 1*s*:
(11)
This quantity describes the expected absolute value of displacement of center positions during 1*s*: it increases as a function of the frozen noise distribution parameters (Fig 5C), but even in the absence of frozen noise it is nonzero due to diffusion. Plotting the MI data in dependence of the first term only (), shows that the MI curves collapse onto a single curve for each facilitation parameter (Fig 5D). Finally, plotting the MI data against |Δ*φ*|(1*s*) we find that all data collapse on to nearly a single curve (Fig 5E). Thus, the effects of the two sources of frozen noise (corresponding to 〈*A*^{2}〉_{frozen}) and diffusion (corresponding to *B*) are unified into a single quantity |Δ*φ*|(1*s*).

We performed the same analyses on a large set of network simulations with fixed random connectivity (*p* = 0.6) and varying STP parameters for both depression (*τ*_{x}) and facilitation (*U*) (same data set as in Fig 4C). Increasing the short-term depression time constant *τ*_{x} leads to decreased relative MI with a positive offset induced through stronger facilitation (Fig 6A, blue line). Calculating the expected displacement for these network configurations collapsed the data points mostly onto the same curve as earlier (Fig 6B). For strong depression combined with weak facilitation (*τ*_{x} = 200*ms*, *U* = 0.8), the drop-off of the relative MI saturates earlier, indicating that for these strongly diffusive networks the effect on MI may not be sufficiently captured by its relationship to |Δ*φ*|(1*s*).

**A** Same as Fig 5B, for network simulations with varying *τ*_{x} and *U* (see legend in panel B). MI is normalized to the same value as there. **B** Same as panel A, with x-axis showing the expected displacement. Gray data points and lines are the data plotted in Fig 5E. The facilitation time constant was kept constant at *τ*_{u} = 650ms.

### Linking theory to experiments: Distractors and network size

The abstraction of our theory condenses the complex dynamics of bump attractors in spiking integrate-and-fire networks into a high-level description of a few macroscopic features, which in turn allows matching the theory to behavioral experiments. Here, we demonstrate how such quantitative links could be established using two different features: 1) the sensitivity of the working memory circuit to distractors, and 2) the stability of working memory expressed by the expected displacement. We stress that our model is a simplified description of biological circuits, in which several further sources of variability and also dynamical processes influencing displacement should be expected (see Discussion). Thus, at the current level of simplification, the results presented in this section should be seen as proofs of principle rather than quantitative predictions for a cortical setting.

#### Predicting the sensitivity to distractor inputs.

In a biological setting, drifts introduced by network heterogeneities (frozen noise) could be significantly reduced by (long-term) plasticity [36]. To measure the intrinsic stability of continuous attractor models, earlier studies [11, 47, 59] have proposed to use *distractor inputs* (Fig 7A): providing a short external input centered around a position *φ*_{D} to the network, the center position of an existing bump state will be biased towards the distracting input, with stronger biases appearing for closer distractors. In the context of our theory, we consider a weak distractor as an additional heterogeneity that induces drift. Therefore the time scale of bump drift caused by distractor-induced heterogeneity enables us link our theory to behavioral experiments [59].

**A** While a bump (“Bump”) is centered at an initial angle *φ*_{0} (chosen to be 0), additional external input causes neurons centered around the position *φ*_{D} to fire at elevated rates (“Distractor”). The theory predicts the shape and magnitude of the induced drift field (“Field”) and the mean bump center *φ*_{1} after 250ms of distractor input. Gray trajectories are example simulations of bump centers of the corresponding Langevin equation Eq (4). **B** Mean final positions *φ*_{1} of bump centers (1000 repetitions, shaded areas show 1 standard deviation) as a function of the distractor input location *φ*_{D}. Increased short-term facilitation (blue: strong facilitation, *U* = 0.1; orange: intermediate facilitation, *U* = 0.4; green: no facilitation *U* = 1) leads to less displacement due to the distractor input. Other STP parameters were kept constant at *τ*_{u} = 650ms, *τ*_{x} = 150ms. **C** Same as panel B, for three different depression time constants *τ*_{x}, while keeping *U* = 0.8, *τ*_{u} = 650ms fixed. **D** Same as panel B, with a broader bump half-width (*σ*_{g} = 0.8rad ≈ 45.8 deg). All other panels use the same bump half-width as in the rest of the study (*σ*_{g} = 0.5rad ≈ 28.7 deg) (see S1 Fig).

Our theory can readily yield quantitative predictions for the distractor paradigm. To accommodate distractor inputs in the theory, we assume that they cause some units *i* to fire at elevated rates *ϕ*_{0,i} + Δ*ϕ*_{i}, which will introduce a drift field according to Eq (7) (Fig 7A, purple dashed line). The resulting dynamics (Eq (4)) of diffusion and drift during the presentation of the distractor input then allow us to calculate the expected shift of center positions as a function of all network parameters, including those of short-term plasticity. Repeating this paradigm for varying positions of the distractor inputs (see *Distractor analysis* in Materials and methods for details), our theory predicts that strong facilitation will strongly decrease both the effect and radial reach of distractor inputs (Fig 7B, blue), when compared to the unfacilitated system (Fig 7B, green)—in qualitative agreement with simulation results involving a related (cell-intrinsic) stabilization mechanism [47]. Conversely, we predict that longer recovery from short-term depression tends to increase the sensitivity to distractors (Fig 7C). The total displacement caused by a distractor input is found by integrating the resulting dynamics of Eq (4) over the stimulus duration. As such, the magnitude of the displacement will increase both with the amplitude and the duration of the distractor input. Finally, our theory demonstrates that the bump shape, in particular the width of the bump, influence the radial reach of distractor inputs (Fig 7D).

#### Relating displacement to network size in working memory networks.

The simple theoretical measure of expected displacement |Δ*φ*|(1*s*) introduced in the last section can be related to behavioral experiments: a value of |Δ*φ*|(1*s*) = 1.0 deg lies in the upper range of experimentally reported deviations due to diffusive and systematic errors in behavioral studies [60, 61]. What are the microscopic circuit compositions that can attain such a (high) level of working memory stability? In particular, since an increase in network size can reduce diffusion [11] and the effects of random heterogeneities [16, 36, 38, 46], we turned to the question: *which networks size would be needed to yield this level of stability in a one-dimensional continuous memory system*?

To address the question of network size, we extended our theory to include the size *N* of the excitatory population as an explicit parameter (see *System size scaling* in Materials and methods for details). Using numerical coefficients in Eq (4) extracted from the spiking simulation of a reference network (*U* = 1, *τ*_{x} = 150 and *N*_{E} = 800), we extrapolated the theory by changing the system size *N* and short-term plasticity parameters. We then constrained parameters of our theory by published data (Table 1). Short-term plasticity parameters were based on two groups of strongly facilitating synapses found in a study of mammalian (ferret) prefrontal cortex [62]. The same study reported a general probability *p* = 0.12 of pyramidal cells to be connected. However, for pairs of pyramidal cells that were connected by facilitating synapses, the study found a high probability of reciprocal connections (*p*_{rec} = 0.44): thus if neuron A was connected to neuron B (with probability *p*), neuron B was connected to neuron A with high probability (*p*_{rec}), resulting in a non-random connectivity. To approximate this in the random connectivities supported by our theory, we evaluated a second, slightly elevated, level of random connectivity, that has the same mean connection probability as the non-random connectivity with these additional reciprocal connections: *p* + *p* ⋅ *p*_{rec} = 0.1728. For the standard deviation of leak reversal-potentials *σ*_{L}, we used values measured in two studies [63, 64].

The resulting theory makes quantitative predictions for combinations of network size *N* and all other parameters that yield the desired levels of working memory stability (Table 1, see also S5 Fig). Network sizes were all smaller than 10^{6} neurons, with values depending most strongly on the value of the facilitation parameter *U* and the magnitude of the leak reversal-potential heterogeneities *σ*_{L}. Since the expected field magnitude scales weakly () with the recurrent connectivity *p*, increasing *p* lead only to comparatively small decreases in the predicted network sizes. Finally, we see that the increasing the reliability of networks comes at a high cost: decreasing the expected displacement to |Δ*φ*|(1*s*) = 0.5 deg [60] increases the required number of neurons by nearly a number of 4 for both facilitation settings we investigated. Nevertheless, these network sizes still lie within anatomically reasonable ranges [65].

In summary, we have provided a proof of principle, that the high-level description of our theory can be used to predict network sizes, by exposing features that can be constrained by experimental measurements. Given the simplifying assumptions of our models and the sources of variability that we could include at this stage, continuous attractor networks with realistic values for the strength of facilitation and depression of recurrent connections could achieve sufficient stability, even in the presence of biological variability.

## Discussion

We presented a theory of drift and diffusion in continuous working memory models, exemplified on a one-dimensional ring attractor model. Our framework generalizes earlier approaches calculating the effects of fast noise by projection onto the attractor manifold [37, 39, 40] by including the effects of short-term plasticity (see [45] for a similar analysis for facilitation only). Our approach further extends earlier work on drift in continuous attractors with short-term plasticity [38] to include diffusion and the dynamics of short-term depression. Our theory predicts that facilitation makes continuous attractors robust against the influences of both dynamic noise (introduced by spiking variability) and frozen noise (introduced by biological variability) whereas depression has the opposite effect. We use this theory to provide, together with simulations, a novel quantitative analysis of the interaction of facilitation and depression with dynamic and frozen noise. We have confirmed the quantitative predictions of our theory in simulations of a ring-attractor implemented in a network model of spiking integrate-and-fire neurons with synaptic facilitation and depression, and found theory and simulation to be in good quantitative agreement.

In Section *Short-term plasticity controls memory retention*, we demonstrated the effects of STP on the information retained in continuous working memory. Using our theoretical predictions of drift and diffusion we were able to derive the expected displacement |Δ*φ*| as a function of STP parameters and the frozen noise parameters, which provides a simple link between the resulting Langevin dynamics of bump centers and mutual information (MI) as a measure of working memory retention. Our results can be generalized in several directions. First, the choice of 1*s* of forward integrated time for |Δ*φ*| (Eq (11)) was arbitrary. While a choice of ∼ 2*s* lets the curves in Fig 5E collapse slightly better, we chose 1*s* to avoid further heuristics. Second, we expect values of MI to decrease as the length of the delay period is increased. Our choice of 6.5*s* is comparable to delay periods often considered in behavioral experiments (usually 3-6s) [61, 66, 67]. However, a more rigorous link between the MI measure and the underlying attractor dynamics would be desirable. Indeed, for noisy channels governed by Fokker-Planck equations, this might be feasible [68], but goes beyond the scope of this work.

In Section *Linking theory to experiments: Distractors and network size*, we demonstrated that the high-level description of the microscopic dynamics obtained by our theory allows its parameters to be constrained by experiments. Considering that our model is a simplified description of its biological counterparts (see next paragraph), these demonstrations are to be seen as a proof of principle as opposed to quantitative predictions. However, since distractor inputs can be implemented in silico as well as in behavioral experiments (see e.g. [59]), they could eventually provide a quantitative link between continuous attractor models and working memory systems, by matching the resulting distraction curves. Our theory goes beyond previous models in which these distraction curves had to be extracted through repeated microscopic simulations for single parameter settings [47]. We further used our theory to derive bounds on network parameters, in particular the size of networks, that lead to “tolerable” levels of drift and diffusion in the simplified model. For large magnitudes of frozen noise our theory tends to over-estimate the expected magnitude of drift-fields slightly (cf. Fig 4). Thus, we expect the predictions made here to be upper bounds on network parameters needed to achieve a certain expected displacement. Finally, while the predictions of our theory might deviate from biological networks, they could be applied to accurately characterize the stability of, and the effects of inputs to, bump attractor networks implemented in neuromorphic hardware for robotics applications [69].

Our results show, that strong facilitation (small values of *U*) does not only slow down directed drift [38], but also efficiently suppresses diffusion in spiking continuous attractor models. However, in delayed response tasks involving saccades, that presumably involve continuous attractors in the prefrontal cortex [11, 22], one does observe an increase of variability in time [66]: quickly accumulating systematic errors (alike drift) [61] as well as more slowly increasing variable errors (with variability growing linear in time, alike diffusion) have been reported [60]. Indeed, there are several other possible sources of variability in cortical working memory circuits, which we did not consider here. In particular, we expect that heterogeneous STP parameters [62], noisy synaptic transmission and STP [70] or noisy recurrent weights [38] (see *Random and heterogeneous connectivity* in Materials and methods), for example, will induce further drift and diffusion beyond the effects discussed in this paper. Additionally, variable errors might be introduced elsewhere in the pathway between visual input and motor output (but see [71]) or by input from other noisy local circuits during the delay period [72]. Note that we excluded AMPA currents from the recurrent excitatory interactions [11]. However, since STP acts by presynaptic scaling of neurotransmitter release, it will act symmetrically on both AMPA and NMDA receptors so that an analytical approach similar to the one presented here is expected to work.

Several additional dynamical mechanisms might also influence the stability of continuous attractor working memory circuits. For example, intrinsic neuronal currents that modulate the neuronal excitability [47] or firing-rate adaptation [73] affect bump stability. These and other effects could be accommodated in our theoretical approach by including their linearized dynamics in the calculation of the projection vector (cf. *Projection of dynamics onto the attractor manifold* in Materials and methods). Fast corrective inhibitory feedback has also been shown to stabilize spatial working memory systems in balanced networks [74]. On the timescale of hours to days, homeostatic processes counteract the drift introduced by frozen noise [36]. Finally, inhibitory connections that are distance-dependent [11] and show short-term plasticity [75] could also influence bump dynamics.

We have focused here on ring-attractor models that obtain their stable firing-rate profile due to perfectly symmetric connectivity. Our approach can also be employed to analyze ring-attractor networks with short-term plasticity in which weights show (deterministic or stochastic) deviations from symmetry (see *Frozen noise* in Materials and methods for stochastic deviations). Although not investigated here, continuous line-attractors arising through a different weight-symmetry should be amenable to similar analyses [39]. Finally, it should be noted that adequate structuring of the recurrent connectivity can also positively affect the stability of continuous attractors [14]. For example, translational asymmetries included in the structured heterogeneity can break the continuous attractor into several isolated fixed points, which can lead to decreased diffusion along the attractor manifold [58].

We provided evidence that short-term synaptic plasticity controls the sensitivity of attractor networks to both fast diffusive and frozen noise. Control of short-term plasticity via neuromodulation [76] would thus represent an efficient “crank” for adapting the time scales of computations in such networks. For example, while cortical areas might be specialized to operate in certain temporal domains [7, 77], we show that increasing the strength of facilitation in a task-dependent fashion could yield slower and more stable dynamics, without changing the network connectivity. On the other hand, modulating the time scales of STP could provide higher flexibility in resetting facilitation-stabilized working memory systems to prepare them for new inputs [47], although there might be evidence for residual effects of facilitation between trials [45, 78]. By changing the properties of presynaptic calcium entry [79], inhibitory modulation mediated via GABA_{B} and adenosine A_{1} receptors can lead to increased facilitatory components in rodent cerebellar [80] and avian auditory synapses [81]. Dopamine, serotonin and noradrenaline have all been shown to differentially modulate short-term depression (and facilitation when blocking GABA receptors) at sensorimotor synapses [82]. Interestingly, next to short-term facilitation on the timescale of seconds, other dynamic processes up-regulate recurrent excitatory synaptic connections in prefrontal cortex [62]: synaptic augmentation and post-tetanic potentiation operate on longer time scales (up to tens of seconds), and might be able to support working memory function [83]. While the long time scales of these processes might again render putative short-term memory networks inflexible, there is evidence that they might also be under tight neuromodulatory control [84]. Finally, any changes in recurrent STP properties of continuous attractors (without retuning networks as done here) will also lead to changes in the stable firing rate profiles, with further effects on their dynamical stability (see final section of the Discussion). This interplay of effects remains to be investigated in more detail.

### Comparison to earlier work

Similar to an earlier theoretical approach using a simplified rate model [38], we find that the slowing of drift by facilitation depends mainly on the facilitation parameter *U*, while the time constant *τ*_{u} has a less pronounced effect. While the approach of [38] relied on the projection of frozen noise onto the derivative of the first spatial Fourier mode of the bump shape along the ring, here we reproduce and extend this result (1) for arbitrary neuronal input-output relations and (2) a more detailed spatial projection that involves the full synaptic dynamics and the bump shape. While, our theory can also accommodate noisy recurrent connection weights as frozen noise, as used in in [38] (see *Frozen noise* in Materials and methods for derivations), the drifts generated by these heterogeneities were generally small compared to diffusion and the other sources of heterogeneity.

A second study investigated short-term facilitation and showed that it reduces drift and diffusion in a spiking network, for a fixed setting of *U* (although the model of short-term facilitation differs slightly from the one employed here) [47]. Contrary to what we find here, these authors find that an increase in *τ*_{u} leads to increased diffusion, while we find that an increase over the range they investigated (∼ 0.5*s* − 4*s*) would decrease the diffusion by a factor of nearly two. More precisely, for our shape of the bump state (which we keep fixed) we predict a reduction from ∼ 26 to ∼ 16 *deg*^{2}/*s* for a similar setting of facilitation *U*. These differences might arise from an increasing width of the bump attractor profile for growing facilitation time constants in [47], which would then lead to increased diffusion in our model. Whether this effect persists under the two-equation model of saturating NMDA synapses used there remains to be investigated. Finally, increasing the time constant of recurrent NMDA conductances has been shown to also reduce diffusion [47], in agreement with our theory, according to which the normalization constant *S* increases with *τ*_{s} [39].

A study performed in parallel to ours [45] used a similar theoretical approach to calculate diffusion with short-term facilitation in a rate-based model with external additive noise, but did not compare the results for varying facilitation parameters. The authors report a short initial transient of stronger diffusion as synapses facilitate, followed by weaker diffusion that is dictated by the fully facilitated synapses. Our theory, by assuming all synaptic variables to be at steady-state, disregards the initial strong phase of diffusion. We also disregarded such initial transients when comparing to simulations (see *Numerical methods*).

In a study that investigated only a single parameter value for depression (*τ*_{x} = 160*ms*, no facilitation) in a network of spiking integrate-and-fire neurons similar to the one investigated here, the authors observed no apparent effect of short-term depression on the stability of the bump [44]. In contrast, we find that stronger short-term depression will indeed increase both diffusion and directed drift along the attractor. Our result agrees qualitatively with earlier studies in rate models, which showed that synaptic depression, similar to neuronal adaptation [10, 85], can induce movement of bump attractors [42, 43, 86, 87]. In particular, simple rate models exhibit a regime where the bump state moves with constant speed along the attractor manifold [42]. We did not find any such directed movement in our networks, which could be due to fast spiking noise which is able to cancel directed bump movement [85].

### Extensions and shortcomings

The coefficients of Eq (4) give clear predictions as to how drift and diffusion will depend on the shape of the bump state and the neural transfer function *F*. The relation is not trivial, since the pre-factors *C*_{i} and the normalization constant *S* also depend on the bump shape. For the diffusion strength Eq (5), we explored this relation numerically, by artificially varying the shape of the firing rate profile (while extrapolating other quantities). Although a more thorough analysis remains to be performed, a preliminary analysis shows (see S6 Fig) that diffusion increases both with bump width and top firing rate, consistent with earlier findings [11, 32].

Our theory can be used to predict the shape and effect of drift fields that are generated by localized external inputs due to distractor inputs; see Section *Linking theory to experiments: Distractors and network size*. Any localized external input (excitatory or inhibitory) will cause a deviation Δ*ϕ*_{i} from the steady-state firing rates, which, in turn, generates a drift field by Eq (7). This could predict the strength and location of external inputs that are needed to induce continuous shifts of the bump center at given speeds, for example when these attractor networks are designed to track external inputs (see e.g. [10, 88]). It should be noted that in our simple approximation of this distractor scheme, we assume the system to remain at approximately steady-state, i.e. that the bump shape is unaffected by the additional external input, except for a shift of the center position. For example, we expect additional feedback inhibition (through the increased firing of excitatory neurons caused by the distractor input) to decrease bump firing rates. A more in depth study and comparison to simulations will be left for further work.

Our networks of spiking integrate-and-fire neurons are tuned to display balanced inhibition and excitation in the inhibition dominated uniform state [53, 89], while the bump state relies on positive currents, mediated through strong recurrent excitatory connections (cf. [44] for an analysis). Similar to other spiking network models of this class, this mean–driven bump state shows relatively low variability of neuronal inter-spike-intervals of neurons in the bump center [90, 91] (see also next paragraph). Nevertheless, neurons at the flanks of the bump still display variable firing, with statistics close to that expected of spike trains with Poisson statistics (see S7 Fig), which may be because the flank’s position slightly jitters. Since the non-zero contributions to the diffusion strength are constrained to these flanks (cf. Fig 1D), the simple theoretical assumption of Poisson statistics of neuronal firing still matches the spiking network quite well. As discussed in *Short-term plasticity controls diffusion*, we find that our theory over-estimates the diffusion as bump movement slows down for small values of *U*—this may be due to a decrease in firing irregularity in stable bumps in particular in the flank neurons, at which the Poisson assumption becomes inaccurate.

More recent bump attractor approaches allow networks to perform working memory function with a high firing variability also during the delay period [3], in better agreement with experimental evidence [92]. These networks show bi-stability, where both stable states show balanced excitation and inhibition [90] and the higher self-sustained activity in the delay activity is evoked by an increase in fluctuations of the input currents (noise-driven) rather than an increase in the mean input [93]. This was also reported for a ring-attractor network (with distance-dependent connections between all populations), where facilitation and depression are crucial for irregularity of neuronal activity in the self-sustained state [46]. Application of our approach to these setups is left for future work.

## Materials and methods

### Analysis of drift and diffusion with STP

For the following, we define a concatenated 3 ⋅ *N* dimensional column vector of state variables **y** = (**s**^{T}, **u**^{T}, **x**^{T})^{T} of the system Eq (3). Given a (numerical) solution of the stable firing rate profile we can calculate the stable fixed point of this system by setting the l.h.s. of Eq (3) to zero. This yields steady-state solutions for the synaptic activations, facilitation and depression variables **y**_{0} = (**s**_{0}, **u**_{0}, **x**_{0}):
(12)

We then linearize the system Eq (3) at the fixed point **y**_{0}, introducing a change of variables consisting of perturbations around the fixed point: **y** = **y**_{0} + *δ* **y** = **y**_{0} + (*δ* **s**^{T}, *δ* **u**^{T}, *δ* **x**^{T}) and *ϕ*_{i} = *ϕ*_{0,i} + *δϕ*_{i}. To reach a self-consistent linear system, we further assume a separation of time scales between the neuronal dynamics and the synaptic variables, in that the neuronal firing rate changes as an immediate function of the (slow) input. This allows replacing , where we introduce the shorthand . Finally, keeping only linear orders in all perturbations, we arrive at the linearized system equivalent of Eq (3):
(13)
Here, dots between vectors indicate element-wise multiplication, the operator creates diagonal matrices from vectors, and *W* = (*w*_{ij}) is the synaptic weight matrix of the network.

#### Projection of dynamics onto the attractor manifold.

To project the dynamical system Eq (13) onto movement of the center position *φ* of the firing rate profile, we assume that *N* is large enough to treat the center position *φ* as a continuous variable. We also assume that the network implements a ring-attractor: the system dynamics are such that the firing rate profile can be freely shifted to different positions along the ring, changing the center position *φ*, while retaining the same shape. All other possible directions of change in this system are assumed to be constrained by the system dynamics. In the system at hand, this implies that the matrix *K* of Eq (13), which captures the linearized dynamics around any of these fixed points, will have a *zero eigenvalue* corresponding to the eigenvector of a change of the dynamical variables under a change of position *φ*, while all other eigenvalues are negative [39].

Formally, the column eigenvector to the eigenvalue 0 is given by changes in the state variables as the bump center position *φ* is translated along the manifold:
(14)
Let *e*_{l} be the associated row left-eigenvector (also to eigenvalue 0) of *K*, normalized such that:
(15)
In Section 1 of S1 Text, we show that the eigenvector *e*_{l} projects the system Eq (13) onto dynamics of of the center position:
(16)

Under the linearized ring-attractor dynamics *K*, the center position is thus not subject to any dynamics, making it susceptible to any displacements by noise.

#### Calculation of the left eigenvector *e*_{l}.

If the matrix *K* is symmetric, the left and right eigenvectors *e*_{l} and *e*_{r} for the same eigenvalue 0 are the transpose of each other. Unfortunately, here this is not the case (see Eq (13)), and we need to compute the unknown vector *e*_{l}, which will depend on the coefficients of the known vector *e*_{r}. In particular, we look for a parametrized vector **y**′(**y**) = (**t**^{T}(**y**), **v**^{T}(**y**), **z**^{T}(**y**))^{T} that for **y** = *e*_{r} fulfills the transposed eigenvalue equation of the left eigenvector:
(17)
In Section 2 of S1 Text, we derive variables **y**′ that fulfill the transposed dynamics and for which it holds that , thus fulfilling the condition Eq (17). In this case we know that (due to uniqueness of the 1-dimensional eigenspace associated to the 0 eigenvalue) the vector **y**′^{T} is proportional to *e*_{l}:
(18)
where *S* is a proportionality constant and is the change of the steady-state input arriving at neuron *i* under shifts of the center position *φ*.

Finally, the proportionality constant *S* can be calculated by using Eq (18) in Eq (15) (see Section 3 of S1 Text for details):
(19)
where is the linear change of the firing rate of neuron *i* at its steady-state input *J*_{0,i}.

#### Diffusion.

To be able to describe diffusion on the continuous attractor, we need to extend the model by a treatment of the noise induced into the system through the variable process of neuronal spike emission. Starting from Eq (3), we assume that neurons *i* fire according to independent Poisson processes *ξ*_{i}(*t*) = ∑_{k} *δ*(*t* − *t*_{i,k}), where *t*_{i,k} is a Poisson point process with time-dependent rate *ϕ*_{i}. The variability of the point process *ξ*_{i}(*t*) introduces noise in the synaptic variables. We assume that the shot-noise (jump-like) nature of this process is negligible, given that we average all individual contributions over the network (see below), allowing us to capture the neurally induced variability simply as white noise with variance proportional to the incoming firing rates [48, 53], , where *η*_{i} are white Gaussian noise processes with mean 〈*η*_{i}〉 = 0, and correlation function 〈*η*_{i}(*t*)*η*_{j}(*t*′)〉 = *δ*(*t* − *t*′)*δ*_{ij}. This model of *ξ*_{i}(*t*) preserves the mean and the auto-correlation function of the original Poisson processes. Here, we introduce diffusive noise for each synaptic variable separately, but later average their *linear* contributions over the large population, when projecting onto movement along the continuous manifold (see below, and also [39], Supplementary Material] for a discussion).

Substituting the noisy processes *ξ*_{i}(*t*) for *ϕ*_{i}(*t*) in Eq (3) results in the following system of 3⋅*N* coupled Ito-SDEs:
(20)
Note that the noise inputs *η*_{i} to the synaptic variables for neuron *i* are all identical, since they result from the same presynaptic spike train.

Linearizing this system around the noise-free steady-state Eq (12) and considering only the unperturbed noise (we neglect multiplicative noise terms by replacing the terms ), we arrive at the linearized system equivalent of Eq (20): (21) Note that the same vector of white noises appears three times.

Left-multiplying this system with the eigenvector *e*_{l} yields a stochastic differential equation for the center position (cf. Eq (16)):
(22)
Through the normalization by *S* (Eq (18)), which sums over all neurons, the individual contributions *e*_{l,k} become small as the number of neurons *N* increases (this scaling is made explicit in *System size scaling*). Thus, for large networks we average the small contributions of many single noise sources, which validates the diffusion approximation above.

In Section 4 of S1 Text, we show that we can rewrite Eq (22) by introducing a single Gaussian white noise process with intensity *B* (Eq (5) of the main text), that matches the correlation function of the summed noises:
(23)
where *η* is a white Gaussian noise process with 〈*η*〉 = 0 and 〈*η*(*t*)*η*(*t*′)〉 = *δ*(*t* − *t*′). Note, that the value of *B* is the same under changes of the center position *φ*: these correspond to index-shifting (mod *N*) all vectors in Eq (5), which leaves the sum invariant.

#### Drift.

While the diffusion coefficient calculated above is invariant with respect to shifts of the bump center, the directed drift introduced by frozen variability depends on the momentary bump center position *φ*. In the following we compare the heterogeneous network with bump centered at *φ* to a homogeneous network (without frozen noise) with the bump also centered at *φ*. The unperturbed firing rate profile in the homogeneous network with bump at *φ* will be denoted by , which is the standard profile but centered at *φ*. Since we choose the standard profile to be centered at −*π*, we have .

We want to derive a compact expression for the directed drift of the bump in the heterogeneous network with frozen noise. Given a bump center position *φ*, we first shift the origin of the coordinate system that describes the angular position on the ring of neurons such that the firing rate profile is centered at the standard position *φ*_{0} = −*π*. In a system with frozen variability, the actual firing rate profile of the bump is
(24)
where summarize the linear firing rate perturbations caused by a small amount of heterogeneities. These firing rate perturbations stem from any deviation of the neural system from the “baseline” case and change with the center position *φ* of the bump. The resulting drift field derived from a linearization of the dynamics will thus depend on the center position. In subsection *Frozen noise* we calculate the perturbations induced by random network connectivity, as well as heterogeneous leak reversal-potentials in excitatory neurons of the spiking network.

The firing rate perturbations Eq (24) add an additional term in the linearized equations Eq (21): (25)

As before, we left-multiply by the left eigenvector *e*_{l}, thereby projecting the dynamics onto changes of the center position. This eliminates the linear response kernel *K* and yields a drift-term in the SDE Eq (23) (see Section 5 of S1 Text for details):
(26)

Here, *ϕ*_{0,i} is the firing rate of the *i*th neuron in a homogeneous network with the bump centered at −*π* and Δ*ϕ*_{i}(*φ*) is the firing rate change of this neuron caused by heterogeneities where the heterogeneities are calculated under the assumption that (before shift of the coordinate system) the bump is at *φ*.

In the above equation, we have assumed that the number of neurons *N* is large enough to treat the center position as a continuous variable *φ* ∈ [−*π*, *π*) with the associated drift-field *A*(*φ*) in Eq (7). In practice, we calculate this drift field according to the first term in Eq (26) for each realizable center position (for 0 ≤ *k* < *N*), which yields a discretized field. It is important to note that this field will vary nearly continuously with changes in these discretized center positions. Intuitively, the sum weighs the vector of firing-rate perturbations with a smooth function of the smoothly varying firing-rate profile (the coefficients in the sum). Shifts in the center position *φ*_{k} yield (to first order) index-shifts in the vector of firing-rate perturbations (see *Frozen noise*), equivalent to index-shifts of the vector of firing rates . Thus, small changes in center positions will lead to small changes in the summands of Eq (26). While our results validate the approach, a more rigorous proof of these arguments will be left for future work.

### Spiking network model

Spiking simulations are based on a variation of a popular ring-attractor model of visuospatial working memory of [11] (and used with variations in [27, 29, 32, 36, 47]). The recurrent excitatory connections of the original network model have been simplified, to allow for faster simulation as well as analytical derivations of the recurrent synaptic activation. The implementation details are given below, however the major changes are: 1) all recurrent excitatory conductances are voltage independent; 2) a model of synaptic short-term plasticity via facilitation and depression [49, 94, 95] is used to dynamically regulate the weights of the incoming spike-trains 3) recurrent excitatory conductances are computed as linear filters of the weighted incoming spike trains instead of the second-order kinetics for NMDA saturation used in [11].

#### Neuron model.

Neurons are modeled by leaky integrate-and-fire dynamics with conductance based synaptic transmission [11, 50]. The network consists of recurrently connected populations of *N*_{E} excitatory and *N*_{I} inhibitory neurons, both additionally receiving external spiking input with spike times generated by *N*_{ext} independent, homogeneous Poisson processes, with rates *ν*_{ext}. We assume that external excitatory inputs are mediated by fast AMPA receptors, while, for simplicity, recurrent excitatory currents are mediated only by slower NMDA channels (as in [11]).

The dynamics of neurons in both excitatory and inhibitory populations are governed by the following system of differential equations indexed by *i* ∈ {0, …, *N*_{E/I} − 1}:
(27)
where *P* ∈ {L,Ext,I,E}, *V* denotes voltages (membrane potential) and *I* denotes currents. Here, *C*_{m} is the membrane capacitance and *V*_{L}, *V*_{E}, *V*_{I} are the reversal potentials for leak, excitatory currents, and inhibitory currents, respectively. The parameters *g*_{P} for *P* ∈ {L,Ext,I,E} are fixed scales for leak (L), external input (Ext) and recurrent excitatory (E) and inhibitory (I) synaptic conductances, which are dynamically gated by the unit-less gating variables . These gating variables are described in detail below, however we set the leak conductance gating variable to . For excitatory neurons, we refer to the excitatory and inhibitory conductance scales by *g*_{EE} ≡ *g*_{E} and *g*_{EI} ≡ *g*_{I}, respectively. Similarly, for inhibitory neurons, we refer to the excitatory and inhibitory conductance scales by *g*_{IE} ≡ *g*_{E} and *g*_{II} ≡ *g*_{I}, respectively.

The model neuron dynamics (Eq 27) are integrated until their voltage reaches a threshold *V*_{thr}. At any such time, the respective neuron emits a spike and its membrane potential is reset to the value *V*_{res}. After each spike, voltages are clamped to *V*_{res} for a refractory period of *τ*_{ref}. See the Tables in S1 and S2 Tables. for parameter values used in simulations.

#### Synaptic gating variables and short-term plasticity.

The unit-less synaptic gating variables for *P* ∈ {Ext,I} (external and inhibitory currents) are exponential traces of the spike trains of all presynaptic neurons *j* with firing times *t*_{j}:
(28)
where pre(P) indicates all neurons presynaptic to the neuron *i* for the the connection type *P*. The factors are unit-less synaptic efficacies for the connection from neuron *j* to neuron *i*. For the excitatory gating variables of inhibitory neurons (IE denotes connections from E to I neurons) we also use the linear model of Eq (28) with time constant *τ*_{IE} = *τ*_{E}.

For excitatory to excitatory conductances, we use a well established model of synaptic short-term plasticity (STP) [49, 94, 95] which provides dynamic scaling of synaptic efficacies depending on presynaptic firing. This yields two additional dynamical variables, the facilitating synaptic efficacy *u*_{j}(*t*), as well as the fraction of available synaptic resources *x*_{j}(*t*) of the outgoing connections of a presynaptic neuron *j*, which are implemented according to the following differential equation:
(29)
Here, the indices and indicate that for the incremental update of the variables upon spike arrival, we use the values of the respective variables immediately before the spike arrival [95]. Note that the variable *U* appears in the equation for *u*(*t*) both as the steady-state value in the absence of spikes and as a scale for the update per spike.

The dynamics of recurrent excitatory-to-excitatory transmission with STP are then given by gating variables that linearly filter the incoming spikes scaled by facilitation and depression:
(30)
(31)
Here, pre(EE) indicates all excitatory neurons that make synaptic connections to the neuron *i*. See ‘S2 Table’ for synaptic parameters used in simulations. Note that a synapse *j* that has been inactive for a long time is described by variables and and *s*_{j} = 0 so that the initial strength of the synaptic connection is [49].

The system of Eqs (29)–(31) is a spiking variant of the rate-based dynamics of Eq (3), with a variable related to the input *J*_{i} (cf. Eq (2)). In Subsection *Firing rate approximation* we will make this link explicit.

#### Network connectivity.

All connections except for the recurrent excitatory connections are all-to-all and uniform, with unit-less connection strengths set to and for inhibitory neurons additionally . The recurrent excitatory connections are distance-dependent and symmetric. Each neuron of the excitatory population with index *i* ∈ {0, …, *N*_{E} − 1} is assigned an angular position . Recurrent excitatory connection weights from neuron *j* to neuron *i* are then given by the Gaussian function *w*^{EE}(*θ*) as (see the Table in S2 Table for parameters used in simulations):
(32)

Additionally, for each neuron we keep the integral over all recurrent connection weights normalized, resulting in the normalization condition This normalization ensures that varying the maximum weight *w*_{+} will not change the total recurrent excitatory input if all excitatory neurons fire at the same rate. Here, we choose *w*_{+} as a free parameter constraining the baseline connection weight to:

#### Firing rate approximation.

We first replace the synaptic activation variables *s*^{P}(*V*, *t*) for *P* ∈ {I, ext} by their expectation values under input with Poisson statistics. We assume that the inhibitory population fires at rates *ν*_{I}. For the linear synapses this yields
(33)
(34)

For the recurrent excitatory-to-excitatory synapses with short-term plasticity, we set the differential Eq (29) to zero, and also average them over the Poisson statistics. Akin to the “mean-field” model of [49], we average the steady-state values of facilitation and depression separately over the Poisson statistics. This implicitly assumes that facilitation and depression are statistically independent, with respect to the distributions of spike times—while this is not strictly true, the approximations work well, as has been previously reported [49]. This allows a fairly straightforward evaluation of the mean steady-state value of the combined facilitation and depression variables 〈*u*_{j} *x*_{j}〉, under the assumption that the neuron *j* fires at a mean rate *ν*_{j} with Poisson statistics, and yields rate approximations of the steady-state values similar to Eq (12):
(35)

We now assume that the excitatory population of *N*_{E} neurons fires at the steady-state rates *ϕ*_{j} (0 ≤ *j* < *N*). To calculate the synaptic activation of excitatory-to-excitatory connections , we set Eq (30) to zero, and average over Poisson statistics (again neglecting correlations), which yields〈*s*_{j}〉 = *τ*_{E}〈*u*_{j} *x*_{j}〉*ϕ*_{j} and . Let the the normalized steady-state input *J*_{i} be:
(36)
The steady-state input Eq (36) links the general framework of Eq (2) to the spiking network. The additional factor 1/*N*_{E} is introduced to make the scaling of the excitatory-to-excitatory conductance with the size of the excitatory population *N*_{E} explicit, which will be used in *System size scaling*. To see this, we assume that the excitatory conductance scale of excitatory neurons *g*_{EE} is scaled such that the total conductance is invariant under changes of *N*_{E} [96]: , for some fixed value . This yields the total excitatory-to-excitatory conductance with *J*_{i} as introduced above, where the scaling with *N*_{E} is now shifted to the input variable *J*_{i}.

For the synaptic activation of excitatory to inhibitory connections, we get the mean activations: (37)

We then follow [50] to reduce the differential equations of Eq (27) to a dimensionless form. The main difference consists in the absence of the voltage dependent NMDA conductance, which is achieved by setting the two associated parameters *β* → 0, *γ* → 0 in [50], to arrive at:
(38)
(39)
(40)
(41)
where are effective timescales of external and inhibitory inputs, and is a dimensionless scale for the excitatory conductance. Here, *μ*_{i} is the bias of the membrane potential due to synaptic inputs, and *σ*_{i} measures the scale of fluctuations in the membrane potential due to random spike arrival approximated by the Gaussian process *η*_{i}.

The mean firing rates *F* and mean voltages 〈*V*_{i}〉 of populations of neurons governed by this type of differential equation can then be approximated by:
(42)
(43)
(44)
(45)

#### Derivatives of the rate prediction.

Here we calculate derivatives of the input-output relation (Eq (42)) that will be used below in *Frozen noise*.

The expressions for drift and diffusion (see *Analysis of drift and diffusion with STP*) contain the derivative of the input-output relation *F* (Eq (42)) with respect to the recurrent excitatory input *J*_{i}. Note, that *F* depends on *J*_{i} through all three arguments *μ*_{i}, *σ*_{i} and *τ*_{i}. First, we define *X*(*u*) ≡ exp(*u*^{2})[1 + erf(*u*)], and the shorthand *F*_{i} = *F*[*μ*_{i}, *σ*_{i}, *τ*_{i}]. The derivative can then be readily evaluated as (to shorten the notation in the following, we skip noting the evaluation points for derivatives in the following):
(46)
where *α*/*β* stands as a placeholder for either function, and the expressions for *α* and *β* are given in Eqs (43) and (44).

A second expression involving the derivative of Eq (42) is which appears in the theory when estimating firing rate perturbations caused by frozen heterogeneities in the leak potentials of excitatory neurons (see Eq (54)). The resulting derivatives are almost similar, which can be seen by the fact that replacing in Eq (27) only leads to an additional term in Eq (39). Thus, for neuron *i* the derivative can be evaluated to
(47)

In practice, given a vector *ϕ*_{i,0} of firing rates in the attractor state, as well as the mean firing rate of inhibitory neurons *ν*_{I}, we evaluate the right hand side of Eqs (46) and (47) by replacing *F*_{i} → *ϕ*_{i,0}. This allows efficiently calculating the derivatives without having to perform any numerical integration. The two terms will be exactly equal if *ϕ*_{0,i} is a self-consistent solution of Eq (42) for firing rates of the excitatory neurons across the network. We used numerical estimates of *ϕ*_{i,0} and *ν*_{I} that were measured from simulations and were very close to firing-rate predictions for all networks we investigated.

#### Optimization of network parameters.

We used an optimization procedure [97] to retune network parameters to produce approximately similar bump shapes as the parameters of short-term plasticity are varied. Briefly, we replace the network activity *ϕ*_{j} in the total input *J*_{i} of Eq (36) by a parametrization
(48)
Approximating sums with integrals we arrive at
where *J*_{i}(*g*) indicates that the total input depends on the parameters *g*_{0}, *g*_{1}, *g*_{σ}, *g*_{r} of the parametrization *g*.

We then substitute this relation in Eq (42) to arrive at a self-consistency relation between the parametrized network activity *g*(*θ*_{i}) at the position of neuron *i* and the firing-rate *F* predicted by the theory:
(49)
The argument *g* indicates the dependence of quantities upon the parameters of the bump parametrization Eq (48). The explicit dependence of the voltage 〈*V*_{i}〉 on *g* is obtained by substituting *ϕ*_{i} → *g*(*θ*_{i}) in Eq (45).

We then optimized networks to fulfill Eq (49). First, we imposed the following targets for the parameters of *g*: *g*_{0} = 0.1Hz, *g*_{1} = 40Hz, *ν*_{E,basal} = 0.5Hz, *ν*_{I,basal} = 3Hz. For all networks we chose *w*_{+} = 4.0, *g*_{r} = 2.5. The following parameters were then optimized: *ν*_{I}, *g*_{σ}, *g*_{EE} (excitatory conductance *g*_{E} on excitatory neurons); *g*_{IE} (excitatory conductance *g*_{E} on inhibitory neurons); *g*_{EI} (inhibitory conductance *g*_{I} on excitatory neurons); *g*_{II} (inhibitory conductance *g*_{I} on inhibitory neurons). The basal firing rates (firing rates in the uniform state of the network, prior to being cued) yielded two equations from Eq (49) by setting *w*_{+} = 1. This left 4 free parameters, which were constrained by evaluating Eq (49) at 4 points as described in [97]. The basal firing rates were chosen to be fairly low to make the uniform state more stable (as in [44]). This procedure does not yield a fixed value for *g*_{σ}, since *g*_{σ} is optimized for and is not set as a target value. We thus iterated the following until a solution was found with *g*_{σ} ≈ 0.5: a) change the width of the recurrent weights *w*_{σ}; b) optimize network parameters as described here; c) optimize the expected bump shape for the new network parameters to predict *g*_{σ}. The resulting parameter values are given in Table in S2 Table.

### Frozen noise

#### Random and heterogeneous connectivity.

Introducing random connectivity, we replace the recurrent weights in Eq (36) by:
(50)
Here, *p*_{ij} ∈ {0, 1} are Bernoulli variables, with *P*(*p*_{ij} = 1) = *p*, where the connectivity parameter *p* ∈ (0, 1] controls the overall sparsity of recurrent excitatory connections. For *p* = 1 the entire network is all-to-all connected. Additionally, we provide derivations for additive synaptic heterogeneities (as in [38]), where {*η*_{ij}|1 ≤ *i*, *j* ≤ *N*_{E}} are independent, normally distributed random variables with zero mean and unit variance. We did not investigate this type of heterogeneity in the main text, since increasing *σ*_{w} lead to a loss of the attractor state before creating large enough directed drifts to be comparable to the other sources of frozen noise considered here—most of the small effects were “hidden” behind diffusive displacement [85]. Nevertheless, we included this case in the analysis here for completeness.

Let the center position of the bump be (for 0 ≤ *k* < *N*). Subject to the perturbed weights, the recurrent steady-state excitatory input *J*_{i}(*φ*_{k}) Eq (36) to any excitatory neuron can be written as the unperturbed input *J*_{0,i}(*φ*_{k}) plus an additional input arising from the perturbed connectivity. Note that the synaptic steady-state activations *s*_{0,j}(*φ*_{k}) change with varying bump centers—in the following, we denote :
Note that *J*_{0,i}(*φ*_{k}) is an index-shifted version of the steady-state input: *J*_{0,i}(*φ*_{k}) = *J*_{0,i−k}. However, such a relation does not hold for , since the random numbers *p*_{ij} will change the resulting value for varying center positions.

We calculate the firing rate perturbations *δϕ*_{i}(*φ*_{k}) resulting from the additional input by a linear expansion around the steady-state firing rates *ϕ*_{0,i}(*φ*_{k}) → *ϕ*_{0,i}(*φ*_{k}) + *δϕ*_{i}(*φ*_{k}). These evaluate to:
(51)
See *Derivatives of the rate prediction* for the derivation of the function for the spiking network used in the main text.

In the sum of Eq (7), we keep the firing rate profile centered at *φ*_{0} while calculating the drift for varying center positions. To accommodate the shifted indices resulting from moving center positions, we re-index the summands to yields the perturbations *ϕ*_{0,i} → *ϕ*_{0,i} + Δ*ϕ*_{i}(*φ*_{k}) used there:
(52)

#### Heterogeneous leak reversal potentials.

We further investigated random distributions of the leak reversal potential *V*_{L}. These are implemented by the substitution
(53)
where the are independent normally distributed variables with zero mean, i.e. . The parameter *σ*_{L} controls the standard deviation of these random variables, and thus the noise level of the leak heterogeneities.

Let for 0 ≤ *k* < *N* be the center position of the bump. First, note that the heterogeneities do not depend on the center position *φ*_{k}, since they are single neuron properties. As in the last section, we calculate the firing rate perturbations *δϕ*_{i}(*φ*_{k}) resulting from the additional input by a linear expansion around the steady-state firing rates *ϕ*_{0,i}(*φ*_{k}) → *ϕ*_{0,i}(*φ*_{k}) + *δϕ*_{i}(*φ*_{k}):
(54)
Here, is the derivative of the input-output relation of neuron *i* in a bump centered at *φ*_{k}, with respect to the leak perturbation. We introduced as a shorthand notation for this derivative, since it is evaluated at the steady-state input *J*_{i,0}(*φ*_{k}). For the spiking network of the main text, this is derived in *Derivatives of the rate prediction*.

In the sum of Eq (7), we keep the firing rate profile centered at *φ*_{0} while calculating the drift for varying center positions. As in the last section, we re-index the sum to yield the perturbations *ϕ*_{0,i} → *ϕ*_{0,i} + Δ*ϕ*_{i}(*φ*_{k}) used there:
(55)

#### Squared field magnitude.

Using the equation of the drift field in Eq (7), and the firing rate perturbations Eqs (51)–(54), it is straight forward to see that for any center position *φ* the expected drift field averaged over the noise parameters is 0, since all single firing rate perturbations vanish in expectation. In the following we calculate the variance of the drift field averaged over noise realizations, which turns out to be additive with respect to the two noise sources.

We begin by calculating the correlations between frozen noises caused by random connectivity and leak heterogeneities. For the Bernoulli distributed variables *p*_{ij} it holds that 〈*p*_{ij}〉 = *p*, 〈*p*_{ij} *p*_{lk}〉 = *δ*_{il}*δ*_{jk}*p* + (1 − *δ*_{il}*δ*_{jk})*p*^{2}. For the other independent random variables it holds that . Again, the weight heterogeneities are only included for completeness—all analyses of the main text assume that *σ*_{w} = 0.

For the correlations between the perturbations we then know that (for brevity, we omit the dependence on the center position *φ*):

Starting from Eq (7), we use as a firing rate perturbation the sum of firing rate perturbations from both Eqs (51) and (54). With the pre-factor , the expected squared field averaged over ensemble of frozen noises is then: (56)

One can see directly that the two last terms are invariant under shifts of the bump center *φ*, since these introduce symmetric shifts of the indexes *i*. Similarly, it is easy to see that the first term is also invariant. Let *φ*′ be shifted to the right by one index from *φ*. It then holds that:
The final equation holds since, in ring-attractor networks, consists of index-shifted rows of the same vector (see e.g. *Network connectivity* for the spiking network weights).

In summary, 〈*A*(*φ*)^{2}〉_{frozen} will evaluate to the same quantity 〈*A*^{2}〉_{frozen} for all center positions *φ*. In the main text, we use this fact to estimate 〈*A*^{2}〉_{frozen} from simulations, by additionally averaging over the all center positions and interchanging the ensemble and positional averages:
Thus, we can compare the value of 〈*A*^{2}〉_{frozen} to the mean squared drift field over all center positions, averaged over instantiations of noises.

#### System size scaling.

Generally, sums over the discretized intervals [−*π*, *π*) as they appear in Eqs (5) and (7) will scale with the number *N* chosen for the discretization of the positions on the continuous ring . Consider two discretizations of the ring, partitioned into *N*_{1} and *N*_{2} uniformly spaced bins of width and . We can then approximate integrals over any continuous (Riemann integrable) function *f* on the ring by the two Riemann sums:
(57)
where, (for *N*_{2} and *φ*_{2,i} analogously) are points in the bins [98].

Numerical quantities for the results of the main text have been calculated for *N*_{E} = 800. In the following we denote all of these quantities with an asterisk (*). To generalize these results to arbitrary system size *N*, we replace sums over *N* bins by scaled sums over *N*_{E} bins using the relation Eq (57):

First, we find that the normalization constant scales as , and thus (dots indicate the summands, which are omitted for clarity) for the diffusion strength B (cf. Eq (5)): (58)

For the drift magnitude we turn to the expected squared drift magnitude calculated earlier (cf. Eq (56)), for which we find that (setting *σ*_{w} → 0 for simplicity, as throughout the main text):
(59)
Note, that we could not resolve this scaling in dependence of , since the two sources of frozen noise (connectivity and leak heterogeneity) show different scaling with *N*.

### Numerical methods

#### Spiking simulations.

All network simulations and models were implemented in the NEST simulator [99]. Neuronal dynamics are integrated by the Runge-Kutta-Fehlberg method as implemented in the GSL library [100] (gsl_odeiv_step_rkf45)—this forward integration scheme is used in the NEST simulator for all conductance-based models (at the time of writing). The short-term plasticity model is integrated exactly, based on inter-spike intervals. Code for network simulations is available at https://github.com/EPFL-LCN/pub-seeholzer2018.

#### Simulation protocol.

In all experiments (except those involving bi-stability, see below) spiking networks were simulated for a transient initial period of *t*_{initial} = 500*ms*. To center the network in an attractor state at a given angle −*π* ≤ *φ* < *π*, we gave an initial cue signal by stimulating neurons (0.2 ⋅ *N*_{E} neurons for networks with facilitation parameter *U* > 0.1 and 0.18 ⋅ *N*_{E} neurons for *U* ≤ 0.1) centered at *φ* by strong excitatory input mediated by additional Poisson firing onto AMPA receptors (0.5*s* at 3kHz followed by 0.5*s* at 1.5kHz) with connections scaled down by a factor of *g*_{signal} = 0.5. The external input ceased at *t* = *t*_{off} = 1.5*s*. For simulations to estimate the diffusion we simulated until *t*_{max} = 15*s*, yielding 13.5*s* of delay activity after the cue offset. For simulations to estimate drift we set *t*_{max} = 8*s*, yielding 6.5*s* of delay activity after the cue offset.

For simulations exploring the bi-stability between the uniform state and a bump state (Fig 1B1), we added an additional input prior to the spontaneous state. We stimulated simultaneously 20 excitatory neurons around 4 equally spaced cue points each (80 neurons in total, 500ms, 1.5kHz, AMPA connections scaled by a factor *g*_{signal} = 2). This was applied to settle networks into the uniform state more stably—without this perturbation, networks sometimes approached the bump state after being uniformly initialized. In both figures, we show population activity only after this initial stimulus was applied.

#### Estimation of centers and mean bump shapes.

To estimate centers of bump states, simulations were run until *t* = *t*_{max} and spikes were recorded from the excitatory population and converted to firing rates by convolving them with an exponential kernel (*τ* = 100*ms*) [101] and then sampled at resolution 1ms. This results in vectors of firing rates *ν*_{j}(*t*), 0 ≤ *j* ≤ *N*_{E} − 1 for every time *t*. We calculated the population center *φ*(*t*) for time *t* by measuring the phase of the first spatial Fourier coefficient of the firing rates. This is given by For all analyses below, we identify *t* = 0 to be the time *t* = *t*_{off} of the initial cue.

To measure the mean bump shapes, we first rectified the vectors *ν*_{j}(*t*) for every *t* by rotating the vector until *φ*(*t*) = 0. We then sampled the rectified firing rates starting from 1*s* after cue offset at intervals of 20ms, which were used to calculate the mean firing rates. S1 Fig shows mean rates for each simulation averaged over the ∼ 1000 repetitions performed in the diffusion estimation (below).

#### Exclusion of bump trajectories.

Sometimes bump trajectories would leave the attractor state and return to the uniform state. We identified these trajectories in all experiments by identifying maximal firing rates across the population that dropped below 10Hz during the delay period. The such identified repetitions were excluded from the analyses, which occurred mostly in networks with no facilitation for *τ*_{x} = 150*ms*, *τ*_{u} = 650*ms*: at *U* = 1, we excluded 222/1000 repetitions from the diffusion estimation, while for all other *U* ≤ 0.8 at most 15/1000 were excluded. Increasing the depression time constant also lead to less stable attractor states: for *τ*_{x} = 200*ms*, *τ*_{u} = 650*ms* and *U* = 0.8, we had to exclude 250/1000 repetitions. During the simulations for drift estimation, we observed that frozen noise also leads to less stable bumps under weak facilitation for random and sparse connectivity (*p* ≪ 1) and high leak variability (*σ*_{L} ≫ 0).

#### Diffusion estimation.

Diffusion was estimated for each combination of network parameters by simulating 1000 repetitions (10 initial cue positions, 100 repetitions each) of 13.5*s* of delay activity. Center positions *φ*_{k}(*t*) were estimated for each repetition *k* as described above. We then calculated for each repetition the offset relative to the position at 500*ms* by Δ*φ*_{k}(*t*) = *φ*_{k}(*t* − 500*ms*) − *φ*_{k}(500*ms*), effectively discarding the first 500*ms* after cue-offset. The time-dependent variance of *K* repetitions (excluding those repetitions in which the bump state was lost, see above) was then calculated as . The diffusion strength can then be estimated from the slope of a linear least-squares regression (using the Scipy method *scipy.stats.linregress* [102]) to the variance as a function of time: *V*(*t*) ≈ *D*_{0} + *D* ⋅ *t*, where the intercept *D*_{0} is included to account for initial transients. We estimated confidence intervals by bootstrapping [103]: sampling K elements out of the K repetitions with replacement (5000 samples) and estimating the confidence level of 0.95 by the bias corrected and accelerated bootstrap implemented in *scikits-bootstrap* [104]. As a control, we calculated confidence intervals for *D* additionally by Jackknifing: after building a distribution of estimates of D on *K* one-left-out samples of all repetitions, the standard error of the mean can be calculated and is multiplied by 1.96 to obtain the 95% confidence interval [105]—confidence intervals obtained by this method were almost indistinguishable from confidence intervals obtained by bootstrapping.

#### Drift estimation.

Drift was estimated numerically for each combination of network and frozen noise parameters by simulating 400 repetitions (20 initial cue positions, 20 repetitions each) of 6.5*s* of delay activity. Centers positions *φ*_{k}(*t*) were estimated for all *K* repetitions (excluding those repetitions in which the bump state was lost, see above) as explained above. We then computed displacements in time by computing a set of discrete differences
where we chose *dt* = 1.5*s* and *t*_{0} ∈ {500*ms*, 700*ms*, 900*ms*, …, 1900*ms*}. All differences are calculated with periodic boundary conditions on the circle [−*π*, *π*), i.e. the maximal difference was *π*/*dt*. We then calculated a binned mean (100 bins on the ring, unless mentioned otherwise) of differences calculated for all *K* trajectories, to approximate the drift-fields as a function of positions on the ring.

#### Mutual information measure.

We are estimating the mutual information between a set of initial positions *x* ∈ [0, 2*π*) and associated final positions *y*(*x*) ∈ [0, 2*π*) of the trajectories of a continuous attractor network over a fixed delay period of *T*. For our results, we take *T* = 6.5*s*. We constructed binned and normalized histograms (with bin size *n* = 100, but see below) as approximate probability distributions of initial positions and all final positions (with bins indexed by 1 ≤ *i* ≤ *n*), as well as the bivariate probability distribution .

Using these, we can calculate the mutual information as [56, 57] . Note, that the sum effectively counts only nonzero entries of *r*_{ij} (trajectories that started in bin *i* and ended in bin *j*): these imply that *p*_{i} ≠ 0 (a trajectory started in bin *i*) and *q*_{j} ≠ 0 (a trajectory ended in bin *j*), which makes the sum well defined. Although the value of MI depends on the number of bins *n*, in Figs 5 and 6 we normalize MI to that of the reference network (*U* = 1, no frozen noise, see *Short-term plasticity controls memory retention*), which leaves the resulting plot nearly invariant under a change of bin numbers.

#### Numerical integration of Langevin equations.

Numerically integration of the homogeneous Langevin equations (Eq (4)) describing drift and diffusion of bump positions *φ* ∈ [−*π*, *π*) (with circular boundary conditions) has been implemented as a *C* extension in Cython [106] to the Python language [107]. Since the drift fields *A*(*φ*) are estimated on a discretization of the interval [−*π*, *π*) into *N* bins, we first interpolate drift fields *A* given as *N* discretized values to obtain continuous fields—interpolations are obtained using cubic splines on periodic boundary conditions using the class *gsl_interp_cspline_periodic* of the Gnu Scientific Library [100].

For forward integration of the Langevin equation Eq (4) from time *t* = 0, we start from an initial position *φ*_{0} = *φ*(*t* = 0). Given a time resolution *dt* (unless otherwise stated we use *dt* = 0.1*s*) and a maximal time *t*_{max} we repeat the following operations until we reach *t* = *t*_{max}:
Here, for each iteration *r* is a random number drawn from a normal distribution with zero mean and unit variance (〈*r*〉 = 0 and 〈*r*^{2}〉 = 1). The last step is performed to implement the circular boundary conditions on [−*π*, *π*).

Code implementing this numerical integration scheme is available at https://github.com/EPFL-LCN/pub-seeholzer2018-langevin.

#### Distractor analysis.

For the distractor analysis in Fig 7, we let 40 neurons centered at the distractor position fire at rates increased by 20Hz, yielding a vector of firing rate perturbations Δ*ϕ*_{0,i} = 20Hz if |*i* − *j*| ≤ 20 and Δ*ϕ*_{0,i} = 0Hz otherwise. The vectors Δ*ϕ*_{0,i} for each distractor position *φ*_{D} are then used in Eq (7) to calculate the corresponding drift fields. To calculate the final position *φ*_{1} after 250ms of presenting the distractor, we generate 1000 trajectories starting from *φ*_{0} = 0 by integrating the Langevin equation Eq (4) for 250ms (*dt* = 0.01), the final positions of which are used to measure mean and standard deviation of *φ*_{1}. For the broader bump in Fig 7D, we stretched (and interpolated) the firing rates *ϕ*_{0} as well as the associated vectors *J*_{0} and along the x-axis to obtain vectors for bumps of the desired width, and then re-calculated the values of .

## Supporting information

### S1 Fig. Spiking networks produce similar stable firing rate profiles across parameters.

For each choice of short-term plasticity parameters *U*, *τ*_{u}, and *τ*_{x}, we tuned the recurrent conductances (*g*_{EE}, *g*_{EI}, *g*_{IE}, *g*_{II}) and the width *σ*_{w} of the distance-dependent weights (cf. Eq (32)) such that the “bump” shape of the stable firing rate profile is close to a generalized Gaussian with parameters *g*_{0} = 0.1Hz, *g*_{1} = 40.0Hz, *g*_{σ} = 0.5, *g*_{r} = 2.5. See *Optimization of network parameters* in Materials and methods for details, S2 Table. for parameter values after tuning, and S1 Table. for parameters that stay constant. **A** After tuning, the resulting firing rate profiles for different parameter values of *U* and *τ*_{u} are very similar. Averaged mean firing rates in bump state, measured from ∼ 1000 spiking simulations. **A1-A3** Remaining slight parameter-dependent changes of bump shapes, measured by fitting the generalized Gaussian *ν*(*θ*) to the measured firing rate profiles displayed in A. **A1** Top firing rate *g*_{1}. **A2** Half-width parameter *g*_{σ}. **A3** Sharpness parameter *g*_{r}. **B and B1-B3** Same as in A and A1-A3, for additional variation of the depression time scale *τ*_{x}.

https://doi.org/10.1371/journal.pcbi.1006928.s001

(TIF)

### S2 Fig. Theoretical prediction of diffusion strength as a function of STP parameters.

All color values display diffusion magnitude estimated from B in Eq (4) with bump shape estimated from the reference network (*U* = 1, *τ*_{x} = 150ms, compare Fig 3B and 3C, dashed lines). Units of color values are with values of level lines as indicated. **A** Diffusion as function of facilitation *U* and depression time constant *τ*_{x}. Facilitation time constant was *τ*_{u} = 650*ms*. **B** Diffusion as function of facilitation *U* and facilitation time constant *τ*_{u}. Depression time constant was *τ*_{x} = 150*ms*. **C** Diffusion as function of depression time constant *τ*_{x} and facilitation time constant *τ*_{u}. Facilitation U was *U* = 0.5.

https://doi.org/10.1371/journal.pcbi.1006928.s002

(TIF)

### S3 Fig. Comparison of theoretically predicted fields to simulations.

**A** Averaged root mean square error (RMSE) between predicted fields (Eq (7)) and fields extracted from simulations (mean over 18-20 networks, error bars show 95% confidence of the mean). Both frozen noise parameters (*σ*_{L} and 1 − *p*) are plotted on the same x-axis. **B** Normalized RMSE: each RMSE is normalized by the range (max − min) of the joint data of simulated and predicted fields it is calculated on. Colors as in A. **C** Average RMSE (same data as in A) plotted as a function of the mean expected field magnitude (estimated separately for each network, then averaged). Colors as in A. **D** Worst (top) and best (bottom) match between predicted field (blue line) and field extracted from simulations (black line) of the group with the largest mean RMSE in panels A, C (*U* = 1, 1 − *p* = 0.75). Shaded areas show 1 standard deviation of points included in the binned mean estimate (100 bins) of the extracted field.

https://doi.org/10.1371/journal.pcbi.1006928.s003

(TIF)

### S4 Fig. Mutual information normalized to compare slopes.

Same data as in Fig 5B, but MI is normalized to the average MI of each spiking network without heterogeneities (leftmost dot for each green, orange, and blue group of curves/dots), making explicitly visible the change in slope of the drop-off as heterogeneity parameters are increased. Dashed lines connect the means, for visual guidance.

https://doi.org/10.1371/journal.pcbi.1006928.s004

(TIF)

### S5 Fig. Theoretical predictions of working memory stability.

All panels show theoretically predicted expected displacement over 1 second (Eq (11)) for networks with random and sparse connections (*p* = 0.12) and leak reversal potential heterogeneity (*σ*_{L} = 1.7*mV*). White lines show displacement contour lines for 1, 2 and 5deg. **A** Displacement as a function of the facilitation time constant *τ*_{u} and facilitation *U* for *τ*_{x} = 150*ms* and *N* = 5000.**B** Displacement as a function of system size and facilitation *U* for *τ*_{x} = 150*ms* and *τ*_{u} = 650*ms*. **C-D** Displacement as a function of depression time constant *τ*_{x} and facilitation *U* for *N* = 5000 (C) and *N* = 20000 (D). In both panels *τ*_{u} = 650*ms*.

https://doi.org/10.1371/journal.pcbi.1006928.s005

(TIF)

### S6 Fig. Dependence of diffusion strength B on shape parameters.

Diffusion was calculated from Eq (5) with bump solutions . The values of and were calculated by fitting and extrapolating (linearly, for *ϕ*_{0} > 40.31Hz) curves and *ϕ*_{0} → *J*_{0} that were obtained from the numerical values extracted for *g*_{1} = 40.31Hz, *g*_{σ} = 0.51 by theory (see *Firing rate approximation* in Materials and methods). Thus, any nonlinearity or saturation of the inputs and input-output relation for *ϕ*_{0} > 40.31Hz was not included. This approximate analysis shows that the major dependence of the diffusion expected in the system is on the bump width *g*_{σ}, although a minor dependence on *g*_{1} is seen.

https://doi.org/10.1371/journal.pcbi.1006928.s006

(TIF)

### S7 Fig. Short-term plasticity does not affect spiking statistics.

Mean firing rate, coefficient of variation of the inter-spike interval distribution (CV), and local CV (*CV*_{2} [92]) for two attractor networks with different STP parameters. All measures were computed on spike-trains measured over a period of 4*s*, recorded 500*ms* after offset of the external input which was centered at angle 0. Across STP parameters, networks display similarly reduced CVs for increased mean firing rates, leading to large CVs for neurons located in the flanks of the firing rate profile and low CVs for neurons located near the center. **A** Networks with large diffusion coefficient (*U* = 0.8, *τ*_{u} = 650*ms*, *τ*_{x} = 200*ms*) that underwent non-stationary diffusion during the recording of spikes: the measured mean firing rates (gray line) differ visibly from the firing rates estimated after centering the firing rate distribution at each point in time. Due to this non-stationarity, CVs at intermediate firing rates appear elevated, while the local CV (*CV*_{2}) shows values close to stationary networks (see B). **B** The same network as in *A*, with strong facilitation (*U* = 0.1). Reduced diffusion leads to a nearly stationary firing rate profile, and coincident CV and *CV*_{2} measures.

https://doi.org/10.1371/journal.pcbi.1006928.s007

(TIF)

### S8 Fig. Diverging normalization constant *S* for increasing depression time constants *τ*_{x} leads to diverging diffusion.

All plots show quantities related to Eqs (5) and (7) for varying depression time constants *τ*_{x} and facilitation strength *U*. The coefficients appearing therein are estimated from the spiking network used in the main text with *U* = 1, *τ*_{x} = 150*ms*, *τ*_{u} = 650*ms*. **A** The normalization constant *S* (“Normalizer”) of Eqs (5) and (7) shows zero crossings as *τ*_{x} is increased beyond facilitation-dependent critical values. **B** Diffusion strength *B* of Eq (5) without the normalization constant (equal to *B* ⋅ *S*^{2}). **C** The full diffusion strength *B* of Eq (5) shows diverging values at the same critical points of *tau*_{x}. Color legend on the right hand side shows values of *U*.

https://doi.org/10.1371/journal.pcbi.1006928.s008

(TIF)

### S1 Table. Parameters for spiking simulations.

Parameter values are modified from [11] and [50]. For recurrent conductances see the table in S2 Table.

https://doi.org/10.1371/journal.pcbi.1006928.s010

(PDF)

### S2 Table. Conductance and connectivity parameters for spiking simulations.

For all networks we set *w*_{+} = 4.0. Recurrent conductance parameters are given for combinations of short-term plasticity parameters according to the following notation. *g*_{EE}: excitatory conductance *g*_{E} on excitatory neurons; *g*_{IE}: excitatory conductance *g*_{E} on inhibitory neurons; *g*_{EI}: inhibitory conductance *g*_{I} on excitatory neurons; *g*_{II}: inhibitory conductance *g*_{I} on inhibitory neurons.

https://doi.org/10.1371/journal.pcbi.1006928.s011

(PDF)

## Acknowledgments

The authors thank Tilo Schwalger and Johanni Brea for helpful discussions and feedback.

## References

- 1. Goldman-Rakic PS. Cellular Basis of Working Memory. Neuron. 1995;14(3):477–485. pmid:7695894
- 2. Constantinidis C, Wang XJ. A Neural Circuit Basis for Spatial Working Memory. The Neuroscientist. 2004;10(6):553–65. pmid:15534040
- 3. Chaudhuri R, Fiete I. Computational Principles of Memory. Nature Neuroscience. 2016;19(3):394–403. pmid:26906506
- 4. Curtis CE, D’Esposito M. Persistent Activity in the Prefrontal Cortex during Working Memory. Trends in Cognitive Sciences. 2003;7(9):415–423. pmid:12963473
- 5. Durstewitz D, Seamans JK, Sejnowski TJ. Neurocomputational Models of Working Memory. Nature Neuroscience. 2000;3:1184–91. pmid:11127836
- 6. Barak O, Tsodyks M. Working Models of Working Memory. Current Opinion in Neurobiology. 2014;25:20–24. pmid:24709596
- 7. Duarte R, Seeholzer A, Zilles K, Morrison A. Synaptic Patterning and the Timescales of Cortical Dynamics. Current Opinion in Neurobiology. 2017;43:156–165. pmid:28407562
- 8. Amari Si. Dynamics of Pattern Formation in Lateral-Inhibition Type Neural Fields. Biological cybernetics. 1977;87:77–87.
- 9. Camperi M, Wang XJ. A Model of Visuospatial Working Memory in Prefrontal Cortex: Recurrent Network and Cellular Bistability. Journal of Computational Neuroscience. 1998;5(4):383–405. pmid:9877021
- 10.
Hansel D, Sompolinsky H. Modeling Feature Selectivity in Local Cortical Circuits. In: Koch C, Segev I, editors. Methods in Neural Modeling. from Synapses to Networks. MIT Press; 1998. p. 499–567.
- 11. Compte A, Brunel N, Goldman-Rakic PS, Wang XJ. Synaptic Mechanisms and Network Dynamics Underlying Spatial Working Memory in a Cortical Network Model. Cerebral Cortex. 2000;10:910–923. pmid:10982751
- 12. Samsonovich A, McNaughton BL. Path Integration and Cognitive Mapping in a Continuous Attractor Neural Network Model. Journal of Neuroscience. 1997;17(15):5900–20. pmid:9221787
- 13. Stringer SM, Trappenberg TP, Rolls ET, de Araujo IET. Self-Organizing Continuous Attractor Networks and Path Integration: One-Dimensional Models of Head Direction Cells. Network. 2002;13(2):217–42. pmid:12061421
- 14. Burak Y, Fiete IR. Accurate Path Integration in Continuous Attractor Network Models of Grid Cells. PLOS Computational Biology. 2009;5(2):e1000291. pmid:19229307
- 15. Ben-Yishai R, Bar-Or RL, Sompolinsky H. Theory of Orientation Tuning in Visual Cortex. Proceedings of the National Academy of Sciences. 1995;92(9):3844–8.
- 16. Zhang K. Representation of Spatial Orientation by the Intrinsic Dynamics of the Head-Direction Cell Ensemble: A Theory. Journal of Neuroscience. 1996;16(6):2112–2126. pmid:8604055
- 17. Seung HS. Continuous Attractors and Oculomotor Control. Neural Networks. 1998;11(7):1253–1258.
- 18. Knierim JJ, Zhang K. Attractor Dynamics of Spatially Correlated Neural Activity in the Limbic System. Annual Review of Neuroscience. 2012;35:267–85. pmid:22462545
- 19. Moser EI, Roudi Y, Witter MP, Kentros C, Bonhoeffer T, Moser MB. Grid Cells and Cortical Representation. Nature Reviews Neuroscience. 2014;15(7):466–481. pmid:24917300
- 20. Burak Y. Spatial Coding and Attractor Dynamics of Grid Cells in the Entorhinal Cortex. Current Opinion in Neurobiology. 2014;25:169–175. pmid:24561907
- 21. Wu S, Wong KYM, Fung CCA, Mi Y, Zhang W. Continuous Attractor Neural Networks: Candidate of a Canonical Model for Neural Information Representation. F1000Research. 2016;5.
- 22. Wimmer K, Nykamp DQ, Constantinidis C, Compte A. Bump Attractor Dynamics in Prefrontal Cortex Explains Behavioral Precision in Spatial Working Memory. Nature Neuroscience. 2014;17(3):431–439. pmid:24487232
- 23. Yoon K, Buice MA, Barry C, Hayman R, Burgess N, Fiete IR. Specific Evidence of Low-Dimensional Continuous Attractor Dynamics in Grid Cells. Nature Neuroscience. 2013;16(8):1077–1084. pmid:23852111
- 24. Seelig JD, Jayaraman V. Neural Dynamics for Landmark Orientation and Angular Path Integration. Nature. 2015;521(7551):186–191. pmid:25971509
- 25. Kim SS, Rouault H, Druckmann S, Jayaraman V. Ring Attractor Dynamics in the Drosophila Central Brain. Science. 2017; p. eaal4835.
- 26. Macoveanu J, Klingberg T, Tegnér J. A Biophysical Model of Multiple-Item Working Memory: A Computational and Neuroimaging Study. Neuroscience. 2006;141(3):1611–8. pmid:16777342
- 27. Wei Z, Wang XJ, Wang DH. From Distributed Resources to Limited Slots in Multiple-Item Working Memory: A Spiking Network Model with Normalization. Journal of Neuroscience. 2012;32(33):11228–40. pmid:22895707
- 28. Roggeman C, Klingberg T, Feenstra HEM, Compte A, Almeida R. Trade-off between Capacity and Precision in Visuospatial Working Memory. Journal of Cognitive Neuroscience. 2014;26(2):211–222. pmid:24047380
- 29. Almeida R, Barbosa Ja, Compte A. Neural Circuit Basis of Visuo-Spatial Working Memory Precision: A Computational and Behavioral Study. Journal of Neurophysiology. 2015;114(3):1806–1818. pmid:26180122
- 30. Cano-Colino M, Almeida R, Compte A. Serotonergic Modulation of Spatial Working Memory: Predictions from a Computational Network Model. Frontiers in Integrative Neuroscience. 2013;7. pmid:24133418
- 31. Cano-Colino M, Almeida R, Gomez-Cabrero D, Artigas F, Compte A. Serotonin Regulates Performance Nonmonotonically in a Spatial Working Memory Network. Cerebral Cortex. 2014;24(9):2449–2463. pmid:23629582
- 32. Murray JD, Anticevic A, Gancsos M, Ichinose M, Corlett PR, Krystal JH, et al. Linking Microcircuit Dysfunction to Cognitive Impairment: Effects of Disinhibition Associated with Schizophrenia in a Cortical Working Memory Model. Cerebral Cortex. 2012.
- 33. Cano-Colino M, Compte A. A Computational Model for Spatial Working Memory Deficits in Schizophrenia. Pharmacopsychiatry. 2012;45(S 01):S49–S56. pmid:22565235
- 34. Tsodyks M, Sejnowski T. Associative Memory and Hippocampal Place Cells. Neural Systems. 1995;6:81–86.
- 35. Spiridon M, Gerstner W. Effect of Lateral Connections on the Accuracy of the Population Code for a Network of Spiking Neurons. Network. 2001;12(4):409–21. pmid:11762897
- 36. Renart A, Song P, Wang XJ. Robust Spatial Working Memory through Homeostatic Synaptic Scaling in Heterogeneous Cortical Networks. Neuron. 2003;38(3):473–85. pmid:12741993
- 37. Wu S, Hamaguchi K, Amari Si. Dynamics and Computation of Continuous Attractors. Neural Computation. 2008;20(4):994–1025. pmid:18085986
- 38. Itskov V, Hansel D, Tsodyks M. Short-Term Facilitation May Stabilize Parametric Working Memory Trace. Frontiers in Computational Neuroscience. 2011;5(October):40–40. pmid:22028690
- 39. Burak Y, Fiete IR. Fundamental Limits on Persistent Activity in Networks of Noisy Neurons. Proceedings of the National Academy of Sciences. 2012;109(43):17645–17650.
- 40.
Kilpatrick ZP, Ermentrout B. Wandering Bumps in Stochastic Neural Fields. arXiv:12053072 [math, nlin, q-bio]. 2012.
- 41. Brody C, Romo R, Kepecs A. Basic Mechanisms for Graded Persistent Activity: Discrete Attractors, Continuous Attractors, and Dynamic Representations. Current Opinion in Neurobiology. 2003; p. 204–211. pmid:12744975
- 42. York LC, van Rossum MCW. Recurrent Networks with Short Term Synaptic Depression. Journal of Computational Neuroscience. 2009;27(3):607–620. pmid:19578989
- 43. Romani S, Tsodyks M. Short-Term Plasticity Based Network Model of Place Cells Dynamics. Hippocampus. 2015;25(1):94–105. pmid:25155013
- 44. Barbieri F, Brunel N. Irregular Persistent Activity Induced by Synaptic Excitatory Feedback. Frontiers in Computational Neuroscience. 2007;1. pmid:18946527
- 45. Kilpatrick ZP. Synaptic Mechanisms of Interference in Working Memory. Scientific Reports. 2018;8(1).
- 46. Hansel D, Mato G. Short-Term Plasticity Explains Irregular Persistent Activity in Working Memory Tasks. The Journal of Neuroscience. 2013;33(1):133–49. pmid:23283328
- 47. Pereira J, Wang XJ. A Tradeoff Between Accuracy and Flexibility in a Working Memory Circuit Endowed with Slow Feedback Mechanisms. Cerebral Cortex. 2015;25(10):3586. pmid:25253801
- 48.
Gerstner W, Kistler WM. Spiking Neuron Models: Single Neurons, Populations, Plasticity. Cambridge University Press; 2002.
- 49. Tsodyks M, Pawelzik K, Markram H. Neural Networks with Dynamic Synapses. Neural Computation. 1998;10(4):821–835. pmid:9573407
- 50. Brunel N, Wang X. Effects of Neuromodulation in a Cortical Network Model of Object Working Memory Dominated by Recurrent Inhibition. Journal of Computational Neuroscience. 2001;11:63–85. pmid:11524578
- 51. Richardson M. Firing-Rate Response of Linear and Nonlinear Integrate-and-Fire Neurons to Modulated Current-Based and Conductance-Based Synaptic Drive. Physical Review E. 2007;76(2):1–15.
- 52. Wang XJ. Synaptic Basis of Cortical Persistent Activity: The Importance of NMDA Receptors to Working Memory. The Journal of Neuroscience. 1999;19(21):9587–603. pmid:10531461
- 53. Brunel N. Dynamics of Sparsely Connected Networks of Excitatory and Inhibitory Spiking Neurons. Journal of Computational Neuroscience. 2000;8(3):183–208. pmid:10809012
- 54.
van Kampen NG. Stochastic Processes in Physics and Chemistry. 2nd ed. North Holland; 1992.
- 55.
Gardiner C. Stochastic Methods: A Handbook for the Natural and Social Sciences. 4th ed. Springer; 2009.
- 56. Latham PE, Roudi Y. Mutual Information. Scholarpedia. 2009;4(1):1658.
- 57.
Cover TM, Thomas JA. Elements of Information Theory. John Wiley & Sons; 2012.
- 58. Kilpatrick ZP, Ermentrout B, Doiron B. Optimizing Working Memory with Heterogeneity of Recurrent Cortical Excitation. Journal of Neuroscience. 2013;33(48):18999–19011. pmid:24285904
- 59. Macoveanu J, Klingberg T, Tegnér J. Neuronal Firing Rates Account for Distractor Effects on Mnemonic Accuracy in a Visuo-Spatial Working Memory Task. Biological Cybernetics. 2007;96(4):407–419. pmid:17260154
- 60. Ploner CJ, Gaymard B, Rivaud S, Agid Y, Pierrot-Deseilligny C. Temporal Limits of Spatial Working Memory in Humans. European Journal of Neuroscience. 1998;10(2):794–797. pmid:9749746
- 61. White JM, Sparks DL, Stanford TR. Saccades to Remembered Target Locations: An Analysis of Systematic and Variable Errors. Vision Research. 1994;34(1):79–92. pmid:8116271
- 62. Wang Y, Markram H, Goodman PH, Berger TK, Ma J, Goldman-Rakic PS. Heterogeneity in the Pyramidal Network of the Medial Prefrontal Cortex. Nature Neuroscience. 2006;9(4):534–42. pmid:16547512
- 63. Yang CR, Seamans JK, Gorelova N. Electrophysiological and Morphological Properties of Layers V-VI Principal Pyramidal Cells in Rat Prefrontal Cortex in Vitro. Journal of Neuroscience. 1996;16(5):1904–1921. pmid:8774458
- 64. Dégenètais E, Thierry AM, Glowinski J, Gioanni Y. Electrophysiological Properties of Pyramidal Neurons in the Rat Prefrontal Cortex: An In Vivo Intracellular Recording Study. Cerebral Cortex. 2002;12(1):1–16. pmid:11734528
- 65. Collins CE, Turner EC, Sawyer EK, Reed JL, Young NA, Flaherty DK, et al. Cortical Cell and Neuron Density Estimates in One Chimpanzee Hemisphere. Proceedings of the National Academy of Sciences. 2016;113(3):740–745.
- 66. Funahashi S, Bruce CJ, Goldman-Rakic PS. Mnemonic Coding of Visual Space in the Monkey’s Dorsolateral Prefrontal Cortex. Journal of Neurophysiology. 1989; p. 331–349. pmid:2918358
- 67. Chafee MV, Goldman-Rakic PS. Matching Patterns of Activity in Primate Prefrontal Area 8a and Parietal Area 7ip Neurons During a Spatial Working MemoryTask. Journal of Neurophysiology. 1998;79(6):2919–2940. pmid:9636098
- 68.
Wibisono A, Jog V, Loh PL. Information and Estimation in Fokker-Planck Channels. arXiv preprint arXiv:170203656. 2017.
- 69. Sandamirskaya Y. Dynamic Neural Fields as a Step toward Cognitive Neuromorphic Architectures. Frontiers in Neuroscience. 2014;7. pmid:24478620
- 70. Pan B, Zucker RS. A General Model of Synaptic Transmission and Short-Term Plasticity. Neuron. 2009;62(4):539–554. pmid:19477155
- 71. Brunton BW, Botvinick MM, Brody CD. Rats and Humans Can Optimally Accumulate Evidence for Decision-Making. Science. 2013;340(6128):95–98. pmid:23559254
- 72. Selemon LD, Goldman-Rakic PS. Common Cortical and Subcortical Targets of the Dorsolateral Prefrontal and Posterior Parietal Cortices in the Rhesus Monkey: Evidence for a Distributed Neural Network Subserving Spatially Guided Behavior. Journal of Neuroscience. 1988;8(11):4049–4068. pmid:2846794
- 73. Roach JP, Ben-Jacob E, Sander LM, Zochowski MR. Formation and Dynamics of Waves in a Cortical Model of Cholinergic Modulation. PLoS Comput Biol. 2015;11(8):e1004449. pmid:26295587
- 74. Lim S, Goldman MS. Balanced Cortical Microcircuitry for Spatial Working Memory Based on Corrective Feedback Control. Journal of Neuroscience. 2014;34(20):6790–6806. pmid:24828633
- 75. Anwar H, Li X, Bucher D, Nadim F. Functional Roles of Short-Term Synaptic Plasticity with an Emphasis on Inhibition. Current Opinion in Neurobiology. 2017;43:71–78. pmid:28122326
- 76. Nadim F, Bucher D. Neuromodulation of Neurons and Synapses. Current Opinion in Neurobiology. 2014;29:48–56. pmid:24907657
- 77. Murray JD, Bernacchia A, Freedman DJ, Romo R, Wallis JD, Cai X, et al. A Hierarchy of Intrinsic Timescales across Primate Cortex. Nature Neuroscience. 2014;17(12):1661–1663. pmid:25383900
- 78.
Barbosa Ja, Constantinidis C, Compte A. Synaptically Imprinted Memories Reignite Bump-Attractor Dynamics Prior to Stimulus in a Visuo-Spatial Working Memory Task; 2017. http://www.crm.cat/en/Activities/Curs_2016-2017/Documents/Barbosa_abs_talk.pdf.
- 79. Oh M, Zhao S, Matveev V, Nadim F. Neuromodulatory Changes in Short-Term Synaptic Dynamics May Be Mediated by Two Distinct Mechanisms of Presynaptic Calcium Entry. Journal of Computational Neuroscience. 2012;33(3). pmid:22710936
- 80. Kreitzer AC, Regehr WG. Modulation of Transmission during Trains at a Cerebellar Synapse. Journal of Neuroscience. 2000;20(4):1348–1357. pmid:10662825
- 81. Brenowitz S, David J, Trussell L. Enhancement of Synaptic Efficacy by Presynaptic GABAB Receptors. Neuron. 1998;20(1):135–141. pmid:9459449
- 82. Barrière G, Tartas M, Cazalets JR, Bertrand SS. Interplay between Neuromodulator-Induced Switching of Short-Term Plasticity at Sensorimotor Synapses in the Neonatal Rat Spinal Cord. The Journal of Physiology. 2008;586(Pt 7):1903–1920. pmid:18258661
- 83. Hempel CM, Hartman KH, Wang XJ, Turrigiano GG, Nelson SB. Multiple Forms of Short-Term Plasticity at Excitatory Synapses in Rat Medial Prefrontal Cortex. Journal of Neurophysiology. 2000;83(5):3031–3041. pmid:10805698
- 84. Sakurai A, Katz PS. State-, Timing-, and Pattern-Dependent Neuromodulation of Synaptic Strength by a Serotonergic Interneuron. Journal of Neuroscience. 2009;29(1):268–279. pmid:19129403
- 85. Laing CR, Longtin A. Noise-Induced Stabilization of Bumps in Systems with Long-Range Spatial Coupling. Physica D: Nonlinear Phenomena. 2001;160(3):149–172.
- 86. Wang H, Lam K, Fung CCA, Wong KYM, Wu S. Rich Spectrum of Neural Field Dynamics in the Presence of Short-Term Synaptic Depression. Physical Review E. 2015;92(3):032908.
- 87. Mi Y, Lin X, Wu S. Neural Computations in a Dynamical System with Multiple Time Scales. Frontiers in Computational Neuroscience. 2016;10. pmid:27679569
- 88. Fung C, Wong K, Wu S. A Moving Bump in a Continuous Manifold: A Comprehensive Study of the Tracking Dynamics of Continuous Attractor Neural Networks. Neural Computation. 2010;22(3):752–792. pmid:19922292
- 89. Wang XJ. Synaptic Reverberation Underlying Mnemonic Persistent Activity. Trends in Neurosciences. 2001;24(8):455–63. pmid:11476885
- 90. Renart A, Moreno-Bote R, Wang XJ, Parga N. Mean-Driven and Fluctuation-Driven Persistent Activity in Recurrent Networks. Neural Computation. 2007;19(1):1–46. pmid:17134316
- 91. Barbieri F, Brunel N. Can Attractor Network Models Account for the Statistics of Firing during Persistent Activity in Prefrontal Cortex? Frontiers in neuroscience. 2008;2(1):114–122. pmid:18982114
- 92. Compte A, Constantinidis C, Tegnér J, Raghavachari S, Chafee MV, Goldman-Rakic PS, et al. Temporally Irregular Mnemonic Persistent Activity in Prefrontal Neurons of Monkeys During a Delayed Response Task. Journal of Neurophysiology. 2003;90(5):3441–3454. pmid:12773500
- 93. Mongillo G, Hansel D, van Vreeswijk C. Bistability and Spatiotemporal Irregularity in Neuronal Networks with Nonlinear Synaptic Transmission. Physical Review Letters. 2012;108(15):158101. pmid:22587287
- 94. Markram H, Wang Y, Tsodyks M. Differential Signaling via the Same Axon of Neocortical Pyramidal Neurons. Proceedings of the National Academy of Sciences. 1998;95(9):5323–8.
- 95. Mongillo G, Barak O, Tsodyks M. Synaptic Theory of Working Memory. Science. 2008;319(5869):1543–1546. pmid:18339943
- 96.
Gerstner W, Kistler WM, Naud R, Paninski L. Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition. Cambridge University Press; 2014.
- 97.
Seeholzer A, Deger M, Gerstner W. Efficient Low-Dimensional Approximation of Continuous Attractor Networks. arXiv:171108032 [q-bio]. 2017.
- 98.
Forster O. Analysis 1: Differential- und Integralrechnung einer Veränderlichen. Springer-Verlag; 2016.
- 99.
Bos H, Morrison A, Peyser A, Hahne J, Helias M, Kunkel S, et al. NEST 2.10.0; 2015. https://doi.org/10.5281/zenodo.44222.
- 100.
Galassi M, Davies J, Theiler J, Gough B, Jungman G, Booth M, et al. GNU Scientific Library Reference Manual. 3rd ed.; 2009.
- 101. Nawrot M, Aertsen A, Rotter S. Single-Trial Estimation of Neuronal Firing Rates: From Single-Neuron Spike Trains to Population Activity. Journal of Neuroscience Methods. 1999;94:81–92. pmid:10638817
- 102.
Jones E, Oliphant T, Peterson. SciPy.Org—SciPy.Org; 2017. http://scipy.org/.
- 103.
Efron B, Tibshirani RJ. An Introduction to the Bootstrap. CRC Press; 1994.
- 104.
Evans C. Scikits-Bootstrap; 2017. https://github.com/cgevans/scikits-bootstrap.
- 105. Abdi H, Williams L. Jackknife. Encyclopedia of research design. 2010; p. 1–10.
- 106. Behnel S, Bradshaw R, Citro C, Dalcin L, Seljebotn DS, Smith K. Cython: The Best of Both Worlds. Computing in Science Engineering. 2011;13(2):31–39.
- 107. Oliphant TE. Python for Scientific Computing. Computing in Science & Engineering. 2007;9(3):10–20.