Demonstrations
Each demonstration runs a model from our research, and the memory demonstrations pair it with a task you can do yourself.
The interactive demonstrations could not start. They need JavaScript, which may be disabled or blocked in this browser.
Social decision making
We model how a group decides when to flee a threat.
SOCIAL ESCAPE
Faster and more accurate than a lone animal
Each animal accumulates evidence about a threat and flees when its belief reaches a threshold. A neighbor’s flight is evidence for a threat, and its stillness is evidence against, a correction captured by one social discounting rate α (Kilpatrick, 2026).
Compare α = 0 with intermediate α.
Model description and references
Each animal holds a belief x, dx = (μH − αλf·x) dt + σ dW, with H the threat indicator and f the fraction still present. It flees at threshold, and each departure raises the remaining beliefs. A reduced caricature, not the fitted model; bars show 400 simulated encounters.
Decisions under uncertainty
We model how evidence accumulates to a commitment when the right answer can change.
DRIFT-DIFFUSION MODEL
Why old evidence has to be discounted
We compare two observers of the same noisy evidence. One adds it all up; the other discounts the past at a rate set by how often the world changes.
The classical account of evidence accumulation is the drift-diffusion model, introduced by Ratcliff (1978) and developed through the random-dot motion work of the 1990s and 2000s, in which an observer integrates noisy evidence until it reaches a bound. Adding up every observation without discount is optimal there, and the paradigm assumes what makes it so: that the right answer holds still.
When the source can change, old evidence is not merely less useful but actively misleading, and an observer who has piled up belief without discounting it cannot be talked out of that belief. Glaze, Kable and Gold (2015) derived the normative alternative, in which the running belief is discounted by a nonlinear function of the assumed change rate, so confidence saturates instead of growing without bound. Much of our work asks what follows from that: how the change rate itself is learned, what the decision rule should be, and what people actually do.
When the source changes often, the undiscounted observer falls to chance while the discounting one keeps up. When it never changes, not discounting is the better strategy.
Model description and references
Each line is an independent drift-diffusion trajectory: dx = μ dt + σ dW. A trajectory stops at either boundary. Raising the threshold typically trades speed for accuracy when the evidence has a consistent direction. This demonstration uses fixed evidence and dimensionless time.
- R. Ratcliff. A theory of memory retrieval. Psychological Review, 1978.
- J.I. Gold & M.N. Shadlen. The neural basis of decision making. Annu. Rev. Neurosci., 2007.
- I. Kalburge, A. Dallstream, K. Josić, Z.P. Kilpatrick, L. Ding & J.I. Gold. Human decision-makers terminate evidence accumulation using flexible decision rules. eLife, 2026.
- T.L. Eissa, J.I. Gold, K. Josić & Z.P. Kilpatrick. Suboptimal human inference inverts the bias–variance trade-off for decisions with asymmetric evidence. PLoS Comput. Biol., 2022.
- K. Schapiro, K. Josić, Z.P. Kilpatrick & J.I. Gold. Strategy-dependent effects of working-memory limitations on human perceptual decision-making. eLife, 2022.
- N.W. Barendregt, K. Josić & Z.P. Kilpatrick. Analyzing dynamic decision-making models using Chapman–Kolmogorov equations. J. Comput. Neurosci., 2019.
- Z.P. Kilpatrick, W.R. Holmes, T.L. Eissa & K. Josić. Optimal models of decision-making in dynamic environments. Curr. Opin. Neurobiol., 2019.
- K.P. Nguyen, K. Josić & Z.P. Kilpatrick. Optimizing sequential decisions in the drift-diffusion model. J. Math. Psychol., 2019.
- A. Veliz-Cuba, Z.P. Kilpatrick & K. Josić. Stochastic models of evidence accumulation in changing environments. SIAM Review, 2016.
Working memory
We pair a model of a memory wandering on a continuous attractor with the delayed-estimation task that measures the wandering.
BUMP ATTRACTOR
A memory that wanders
In the model, a localized activity bump wanders around a ring, and structure in the connectivity can anchor it near preferred locations.
Persistent neural activity was first characterized in the oculomotor delayed response (ODR) task of Funahashi, Bruce and Goldman-Rakic (1989). A monkey fixates while a cue flashes at one of several peripheral locations, holds that location through a delay of one to six seconds, then saccades to it. Neurons in dorsolateral prefrontal cortex turned out to have memory fields: elevated firing throughout the delay, tuned to a particular cue direction. Compte, Brunel, Goldman-Rakic and Wang (2000) showed that a recurrent network with local excitation and broad inhibition sustains exactly that pattern, as a localized bump of activity on a ring of cue directions. Because the bump sits on a continuous attractor, noise slides it along the ring at no energetic cost, so the remembered angle wanders, and error grows with the delay. That wandering is what this simulation shows.
Sliders update the running model. Reset starts a new realization.
Model description and references
A reduced phase model: dθ = −a sin(mθ) dt + σ dW. The displayed bump is a wrapped Gaussian centered at θ; the lower trace shows its position over time. This illustrates bump-center motion rather than solving a full neural-field equation. Increasing attraction can reduce wandering near a preferred location while biasing the representation toward that location.
- S. Funahashi, C.J. Bruce & P.S. Goldman-Rakic. Mnemonic coding of visual space in the monkey’s dorsolateral prefrontal cortex. J. Neurophysiol., 1989.
- A. Compte, N. Brunel, P.S. Goldman-Rakic & X.-J. Wang. Synaptic mechanisms and network dynamics underlying spatial working memory in a cortical network model. Cerebral Cortex, 2000.
- Z.P. Kilpatrick & B. Ermentrout. Wandering bumps in stochastic neural fields. SIAM J. Appl. Dyn. Syst., 2013.
- H.L. Cihak & Z.P. Kilpatrick. Multiscale motion and deformation of bumps in stochastic neural fields with dynamic connectivity. Multiscale Model. Simul., 2024.
- T.L. Eissa & Z.P. Kilpatrick. Learning efficient representations of environmental priors in working memory. PLoS Comput. Biol., 2023.
- H.L. Cihak, T.L. Eissa & Z.P. Kilpatrick. Distinct excitatory and inhibitory bump wandering in a stochastic neural field. SIAM J. Appl. Dyn. Syst., 2022.
- Z.P. Kilpatrick. Ghosts of bump attractors in stochastic neural fields: bottlenecks and extinction. Discrete Contin. Dyn. Syst. B, 2016.
- D.B. Poll & Z.P. Kilpatrick. Stochastic motion of bumps in planar neural fields. SIAM J. Appl. Math., 2015.
- P.C. Bressloff & Z.P. Kilpatrick. Nonlinear Langevin equations for wandering patterns in stochastic neural fields. SIAM J. Appl. Dyn. Syst., 2015.
- Z.P. Kilpatrick, B. Ermentrout & B. Doiron. Optimizing working memory with heterogeneity of recurrent cortical excitation. J. Neurosci., 2013.
DELAYED ESTIMATION
Holding a color in mind
A color appears for one second, disappears during a delay, and then you recreate it using the hue slider.
This is the continuous-report descendant of the ODR task behind the bump-attractor simulation. Funahashi and colleagues had the animal report a remembered location with a saccade; modern delayed-estimation tasks ask the observer to reproduce a remembered feature on a continuous scale, which turns every trial into a signed error instead of a hit or a miss and so exposes the whole error distribution rather than just an accuracy. The version here uses color rather than spatial position, following Eissa & Kilpatrick (2023). Both are circular variables, which is why the same ring-attractor mathematics applies to either, and why error grows with the delay in both.
Two strands of our own work sit behind this. Heterogeneity in recurrent excitation is what creates the preferred locations that buy precision at the cost of bias (Kilpatrick, Ermentrout and Doiron, 2013); and when more than one item is held at once, synaptic dynamics govern how they interfere with each other (Kilpatrick, 2018).
Press Start trial to see a color.
0 trials completed
During the response, the central swatch shows your selected color. The score is the shortest distance around the color wheel, in degrees.
Model description and references
Target hues here are drawn uniformly, so there is no environmental prior to learn. In the experiments this is adapted from, the distribution of targets is deliberately non-uniform, and observers come to bias their reports toward the more common values, trading accuracy on rare stimuli for precision on frequent ones. Panichello, DePasquale, Pillow and Buschman (2019) showed that this is what discrete attractor dynamics do: they pull a memory toward a few stable values, adding bias but suppressing wandering. That is the same mechanism as the preferred locations in the bump attractor, and the reason a learned prior can make a memory more accurate on average while making it systematically wrong about rare stimuli.
- S. Funahashi, C.J. Bruce & P.S. Goldman-Rakic. Mnemonic coding of visual space in the monkey’s dorsolateral prefrontal cortex. J. Neurophysiol., 1989.
- P.M. Bays & M. Husain. Dynamic shifts of limited working memory resources in human vision. Science, 2008.
- M.F. Panichello, B. DePasquale, J.W. Pillow & T.J. Buschman. Error-correcting dynamics in visual working memory. Nature Communications, 2019.
- H.L. Cihak & Z.P. Kilpatrick. Robustly encoding certainty in a metastable neural circuit model. Phys. Rev. E, 2024.
- T.L. Eissa & Z.P. Kilpatrick. Learning efficient representations of environmental priors in working memory. PLoS Comput. Biol., 2023.
- K. Schapiro, K. Josić, Z.P. Kilpatrick & J.I. Gold. Strategy-dependent effects of working-memory limitations on human perceptual decision-making. eLife, 2022.
- Z.P. Kilpatrick, B. Ermentrout & B. Doiron. Optimizing working memory with heterogeneity of recurrent cortical excitation. J. Neurosci., 2013.
- Z.P. Kilpatrick. Synaptic mechanisms of interference in working memory. Sci. Rep., 2018.
- N. Krishnan, D.B. Poll & Z.P. Kilpatrick. Synaptic efficacy shapes resource limitations in working memory. J. Comput. Neurosci., 2018.
- S. Carroll, K. Josić & Z.P. Kilpatrick. Encoding certainty in bump attractors. J. Comput. Neurosci., 2014.
- Z.P. Kilpatrick. Interareal coupling reduces encoding variability in multi-area models of spatial working memory. Front. Comput. Neurosci., 2013.
Educational models with illustrative parameters, not fitted experimental results. Simulations stay in your browser. Reduced-motion settings start animations paused.