A flexible framework for simulating and fitting generalized drift-diffusion models
Open accessPublished version of a preprint
Abstract
The drift-diffusion model (DDM) is an important decision-making model in cognitive neuroscience. However, innovations in model form have been limited by methodological challenges. Here, we introduce the generalized drift-diffusion model (GDDM) framework for building and fitting DDM extensions, and provide a software package which implements the framework. The GDDM framework augments traditional DDM parameters through arbitrary user-defined functions. Models are solved numerically by directly solving the Fokker-Planck equation using efficient numerical methods, yielding a 100-fold or greater speedup over standard methodology. This speed allows GDDMs to be fit to data using maximum likelihood on the full response time (RT) distribution. We demonstrate fitting of GDDMs within our framework to both animal and human datasets from perceptual decision-making tasks, with better accuracy and fewer parameters than several DDMs implemented using the latest methodology, to test hypothesized decision-making mechanisms. Overall, our framework will allow for decision-making model innovation and novel experimental designs.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
A generalized drift-diffusion model including exponentially collapsing bounds and a leaky integrator produces a better fit with BIC of -705.
“To accommodate this, we introduced additional model components [Generalized DDM (49)] including exponentially collapsing bounds (6) and a leaky integrator (30) that produce a better fit (BIC of −705).”
From Neural correlates of perceptual decision-making in the primary somatosensory cortex (2026) · cites this paper as [49]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
No citation lists for this paper
No citation lists for this paper yet — checked again daily.
References 98 · Cited by 133
Research works printed but not linked: 84
- Alexandrowicz RW 2020 The diffusion model visualizer: an interactive tool to understand the diffusion model parameters Psychological Research 84 1157 1165 10.1007/s00426-018-1112-6 30361811 PMC7239816 · DOI
- Anderson TW 1960 A modification of the sequential probability ratio test to reduce the sample size The Annals of Mathematical Statistics 31 165 197 10.1214/aoms/1177705996 · DOI
- Ashby FG 1983 A biased random walk model for two choice reaction times Journal of Mathematical Psychology 27 277 297 10.1016/0022-2496(83)90011-1 · DOI
- Atiya NAA Zgonnikov A O'Hora D Schoemann M Scherbaum S Wong-Lin K 2020 Changes-of-mind in the absence of new post-decision evidence PLOS Computational Biology 16 e1007149 10.1371/journal.pcbi.1007149 32012147 PMC7018100 · DOI
- Beck Andres 2004 Extreme Programming Explained Addison Wesley
- Blurton SP Kesselmeier M Gondan M 2017 The first-passage time distribution for the diffusion model with variable drift Journal of Mathematical Psychology 76 7 12 10.1016/j.jmp.2016.11.003 · DOI
- Boehm U Annis J Frank MJ Hawkins GE Heathcote A Kellen D Krypotos A-M Lerche V Logan GD Palmeri TJ van Ravenzwaaij D Servant M Singmann H Starns JJ Voss A Wiecki TV Matzke D Wagenmakers E-J 2018 Estimating across-trial variability parameters of the diffusion decision model: expert advice and recommendations Journal of Mathematical Psychology 87 46 75 10.1016/j.jmp.2018.09.004 · DOI
- Bogacz R Brown E Moehlis J Holmes P Cohen JD 2006 The physics of optimal decision making: a formal analysis of models of performance in two-alternative forced-choice tasks Psychological Review 113 700 765 10.1037/0033-295X.113.4.700 17014301 · DOI
- Brown SD Ratcliff R Smith PL 2006 Evaluating methods for approximating stochastic differential equations Journal of Mathematical Psychology 50 402 410 10.1016/j.jmp.2006.03.004 18574521 PMC2435510 · DOI
- Brunton BW Botvinick MM Brody CD 2013 Rats and humans can optimally accumulate evidence for decision-making Science 340 95 98 10.1126/science.1233912 23559254 · DOI
- Chandrasekaran C Hawkins GE 2019 ChaRTr: an R toolbox for modeling choices and response times in decision-making tasks Journal of Neuroscience Methods 328 108432 10.1016/j.jneumeth.2019.108432 31586868 PMC6980795 · DOI
- Cisek P Puskas GA El-Murr S 2009 Decisions in changing conditions: the urgency-gating model Journal of Neuroscience 29 11560 11571 10.1523/JNEUROSCI.1844-09.2009 19759303 PMC6665752 · DOI
- Ditterich J 2006a Evidence for time-variant decision making European Journal of Neuroscience 24 3628 3641 10.1111/j.1460-9568.2006.05221.x 17229111 · DOI
- Drugowitsch J Moreno-Bote R Churchland AK Shadlen MN Pouget A 2012 The cost of accumulating evidence in perceptual decision making Journal of Neuroscience 32 3612 3628 10.1523/JNEUROSCI.4010-11.2012 22423085 PMC3329788 · DOI · Paper page
- Drugowitsch J DeAngelis GC Klier EM Angelaki DE Pouget A 2014a Optimal multisensory decision-making in a reaction-time task eLife 3 e03005 10.7554/eLife.03005 24929965 PMC4102720 · DOI
- Drugowitsch J Moreno-Bote R Pouget A 2014b Optimal decision-making with time-varying evidence reliability Ghahramani Z Welling M Cortes C Weinberger K. Q Lawrence N. D Advances in Neural Information Processing Systems 27 Curran Associates, Inc 748 756
- Drugowitsch J 2016 Fast and accurate monte carlo sampling of first-passage times from Wiener Diffusion models Scientific Reports 6 20490 10.1038/srep20490 26864391 PMC4750067 · DOI
- Erlich JC Brunton BW Duan CA Hanks TD Brody CD 2015 Distinct effects of prefrontal and parietal cortex inactivations on an accumulation of evidence task in the rat eLife 4 e05457 10.7554/eLife.05457 25869470 PMC4392479 · DOI
- Evans NJ Hawkins GE Boehm U Wagenmakers EJ Brown SD 2017 The computations that support simple decision-making: a comparison between the diffusion and urgency-gating models Scientific Reports 7 16433 10.1038/s41598-017-16694-7 29180789 PMC5703954 · DOI
- Evans NJ Hawkins GE 2019 When humans behave like monkeys: feedback delays and extensive practice increase the efficiency of speeded decisions Cognition 184 11 18 10.1016/j.cognition.2018.11.014 30553935 · DOI
- Farashahi S Ting CC Kao CH Wu SW Soltani A 2018 Dynamic combination of sensory and reward information under time pressure PLOS Computational Biology 14 e1006070 10.1371/journal.pcbi.1006070 29584717 PMC5889192 · DOI
- Forstmann BU Ratcliff R Wagenmakers EJ 2016 Sequential sampling models in cognitive neuroscience: advantages, applications, and extensions Annual Review of Psychology 67 641 666 10.1146/annurev-psych-122414-033645 26393872 PMC5112760 · DOI
- Freyer F Roberts JA Ritter P Breakspear M 2012 A canonical model of multistability and scale-invariance in biological systems PLOS Computational Biology 8 e1002634 10.1371/journal.pcbi.1002634 22912567 PMC3415415 · DOI
- Ghezzi C Jazayeri M Mandrioli D 2002 Fundamentals of Software Engineering Pearson
- Grasman RPPP Wagenmakers E-J van der Maas HLJ 2009 On the mean and variance of response times under the diffusion model with an application to parameter estimation Journal of Mathematical Psychology 53 55 68 10.1016/j.jmp.2009.01.006 · DOI
- Hanks TD Mazurek ME Kiani R Hopp E Shadlen MN 2011 Elapsed decision time affects the weighting of prior probability in a perceptual decision task Journal of Neuroscience 31 6339 6352 10.1523/JNEUROSCI.5613-10.2011 21525274 PMC3356114 · DOI · Paper page
- Harty S Murphy PR Robertson IH O'Connell RG 2017 Parsing the neural signatures of reduced error detection in older age NeuroImage 161 43 55 10.1016/j.neuroimage.2017.08.032 28811254 · DOI
- Hawkins GE Forstmann BU Wagenmakers EJ Ratcliff R Brown SD 2015a Revisiting the evidence for collapsing boundaries and urgency signals in perceptual decision-making Journal of Neuroscience 35 2476 2484 10.1523/JNEUROSCI.2410-14.2015 25673842 PMC6605613 · DOI
- Hawkins GE Wagenmakers EJ Ratcliff R Brown SD 2015b Discriminating evidence accumulation from urgency signals in speeded decision making Journal of Neurophysiology 114 40 47 10.1152/jn.00088.2015 25904706 PMC4495756 · DOI
- Holmes WR Trueblood JS 2018 Bayesian analysis of the piecewise diffusion decision model Behavior Research Methods 50 730 743 10.3758/s13428-017-0901-y 28597236 · DOI
- Huk AC Shadlen MN 2005 Neural activity in macaque parietal cortex reflects temporal integration of visual motion signals during perceptual decision making Journal of Neuroscience 25 10420 10436 10.1523/JNEUROSCI.4684-04.2005 16280581 PMC6725829 · DOI · Paper page
- Laming DRJ 1968 Information Theory of Choice-Reaction Times Academic Press 10.1111/j.2044-8317.1969.tb00423.x · DOI
- Lerche V Voss A Nagler M 2017 How many trials are required for parameter estimation in diffusion modeling? A comparison of different optimization criteria Behavior Research Methods 49 513 537 10.3758/s13428-016-0740-2 27287445 · DOI
- Lerche V Voss A 2016 Model complexity in diffusion modeling: benefits of making the model more parsimonious Frontiers in Psychology 7 1324 10.3389/fpsyg.2016.01324 27679585 PMC5020081 · DOI
- Lewis M Fedor A Öllinger M Szathmáry E Fernando C 2014 Modelling reaction times in non-linear classification tasks del Pobil A. P Chinellato E Martinez-Martin E Hallam J Cervera E Morales A From Animals to Animats 13 Springer International Publishing 53 64 10.1007/978-3-319-08864-8_6 · DOI
- Li Z 1997 Immersed interface methods for moving interface problems Numerical Algorithms 14 269 293 10.1023/A:1019173215885 · DOI
- Malhotra G Leslie DS Ludwig CJH Bogacz R 2018 Time-varying decision boundaries: insights from optimality analysis Psychonomic Bulletin & Review 25 971 996 10.3758/s13423-017-1340-6 28730465 PMC5990589 · DOI
- McKerns MM Strand L Sullivan T Fang A Aivazis MAG 2012 Building a framework for predictive science Proceedings of the 10th Python in Science Conference
- Meyer GH 1978 The numerical solution of stefan problems with front-tracking and smoothing methods Applied Mathematics and Computation 4 283 306 10.1016/0096-3003(78)90001-2 · DOI
- Millner AJ Gershman SJ Nock MK den Ouden HEM 2018 Pavlovian control of escape and avoidance Journal of Cognitive Neuroscience 30 1379 1390 10.1162/jocn_a_01224 29244641 · DOI
- Mulder MJ Wagenmakers EJ Ratcliff R Boekel W Forstmann BU 2012 Bias in the brain: a diffusion model analysis of prior probability and potential payoff Journal of Neuroscience 32 2335 2343 10.1523/JNEUROSCI.4156-11.2012 22396408 PMC6621823 · DOI
- Murphy PR Boonstra E Nieuwenhuis S 2016 Global gain modulation generates time-dependent urgency during perceptual choice in humans Nature Communications 7 13526 10.1038/ncomms13526 27882927 PMC5123079 · DOI
- Nelder JA Mead R 1965 A simplex method for function minimization The Computer Journal 7 308 313 10.1093/comjnl/7.4.308 · DOI · Paper page
- Nguyen KP Josić K Kilpatrick ZP 2019 Optimizing sequential decisions in the drift-diffusion model Journal of Mathematical Psychology 88 32 47 10.1016/j.jmp.2018.11.001 31564753 PMC6764782 · DOI
- Nocedal J Wright SJ 2006 Numerical Optimization Springer 10.1007/b98874 · DOI
- Ossmy O Moran R Pfeffer T Tsetsos K Usher M Donner TH 2013 The timescale of perceptual evidence integration can be adapted to the environment Current Biology 23 981 986 10.1016/j.cub.2013.04.039 23684972 · DOI
- Pinto L Koay SA Engelhard B Yoon AM Deverett B Thiberge SY Witten IB Tank DW Brody CD 2018 An Accumulation-of-Evidence task using visual pulses for mice navigating in virtual reality Frontiers in Behavioral Neuroscience 12 36 10.3389/fnbeh.2018.00036 29559900 PMC5845651 · DOI
- Purcell BA Heitz RP Cohen JY Schall JD Logan GD Palmeri TJ 2010 Neurally constrained modeling of perceptual decision making Psychological Review 117 1113 1143 10.1037/a0020311 20822291 PMC2979343 · DOI
- Ratcliff R 1978 A theory of memory retrieval Psychological Review 85 59 108 10.1037/0033-295X.85.2.59 · DOI · Paper page
- Ratcliff R 1985 Theoretical interpretations of the speed and accuracy of positive and negative responses Psychological Review 92 212 225 10.1037/0033-295X.92.2.212 3991839 · DOI
- Ratcliff R 2008 The EZ diffusion method: too EZ? Psychonomic Bulletin & Review 15 1218 1228 10.3758/PBR.15.6.1218 19001593 PMC2715153 · DOI
- Ratcliff R Smith PL Brown SD McKoon G 2016 Diffusion decision model: Current issues and history Trends in Cognitive Sciences 20 260 281 10.1016/j.tics.2016.01.007 26952739 PMC4928591 · DOI · Paper page
- Ratcliff R Tuerlinckx F 2002 Estimating parameters of the diffusion model: approaches to dealing with contaminant reaction times and parameter variability Psychonomic Bulletin & Review 9 438 481 10.3758/BF03196302 12412886 PMC2474747 · DOI · Paper page
- Roxin A Ledberg A 2008 Neurobiological models of two-choice decision making can be reduced to a one-dimensional nonlinear diffusion equation PLOS Computational Biology 4 e1000046 10.1371/journal.pcbi.1000046 18369436 PMC2268007 · DOI
- Shinn M Ehrlich D Lee D Murray JD Seo H 2020 Confluence of timing and reward biases in perceptual decision-making dynamics The Journal of Neuroscience JN-RM-0544-20 10.1523/JNEUROSCI.0544-20.2020 32839233 PMC7534922 · DOI
- Shinn M 2020 Refinement type contracts for verification of scientific investigative software Chakraborty S Navas J. A Verified Software. Theories, Tools, and Experiments Cham Springer International Publishing 143 160 10.1007/978-3-030-03592-1 · DOI
- Simen P Balci F de Souza L Cohen JD Holmes P 2011 A model of interval timing by neural integration Journal of Neuroscience 31 9238 9253 10.1523/JNEUROSCI.3121-10.2011 21697374 PMC3142662 · DOI
- Smith PL 2000 Stochastic dynamic models of response time and accuracy: a foundational primer Journal of Mathematical Psychology 44 408 463 10.1006/jmps.1999.1260 10973778 · DOI
- Srivastava V Feng SF Cohen JD Leonard NE Shenhav A 2017 A martingale analysis of first passage times of time-dependent Wiener diffusion models Journal of Mathematical Psychology 77 94 110 10.1016/j.jmp.2016.10.001 28630524 PMC5473348 · DOI
- Storn R Price K 1997 Differential evolution - a simple and efficient heuristic for global optimization over continuous spaces Journal of Global Optimization 11 341 359 10.1023/A:1008202821328 · DOI · Paper page
- Tavares G Perona P Rangel A 2017 The attentional drift diffusion model of simple perceptual Decision-Making Frontiers in Neuroscience 11 468 10.3389/fnins.2017.00468 28894413 PMC5573732 · DOI
- Thura D Beauregard-Racine J Fradet CW Cisek P 2012 Decision making by urgency gating: theory and experimental support Journal of Neurophysiology 108 2912 2930 10.1152/jn.01071.2011 22993260 · DOI
- Thura D Cisek P 2014 Deliberation and commitment in the premotor and primary motor cortex during dynamic decision making Neuron 81 1401 1416 10.1016/j.neuron.2014.01.031 24656257 · DOI
- Tsetsos K Chater N Usher M 2012 Salience driven value integration explains decision biases and preference reversal PNAS 109 9659 9664 10.1073/pnas.1119569109 22635271 PMC3386128 · DOI
- Usher M McClelland JL 2001 The time course of perceptual choice: the leaky, competing accumulator model Psychological Review 108 550 592 10.1037/0033-295X.108.3.550 11488378 · DOI · Paper page
- van Ravenzwaaij D Donkin C Vandekerckhove J 2017 The EZ diffusion model provides a powerful test of simple empirical effects Psychonomic Bulletin & Review 24 547 556 10.3758/s13423-016-1081-y 27352898 PMC5389995 · DOI
- van Ravenzwaaij D Oberauer K 2009 How to use the diffusion model: parameter recovery of three methods: ez, fast-dm, and DMAT Journal of Mathematical Psychology 53 463 473 10.1016/j.jmp.2009.09.004 · DOI
- Vandekerckhove J Matzke D Wagenmakers E-J 2015 Model Comparison and the Principle of Parsimony Oxford University Press 10.1093/oxfordhb/9780199957996.013.14 · DOI
- Vandekerckhove J Tuerlinckx F 2008 Diffusion model analysis with MATLAB: a DMAT primer Behavior Research Methods 40 61 72 10.3758/BRM.40.1.61 18411528 · DOI
- Verdonck S Meers K Tuerlinckx F 2016 Efficient simulation of diffusion-based choice RT models on CPU and GPU Behavior Research Methods 48 13 27 10.3758/s13428-015-0569-0 25761391 · DOI
- Voss A Voss J Lerche V 2015 Assessing cognitive processes with diffusion model analyses: a tutorial based on fast-dm-30 Frontiers in Psychology 6 336 10.3389/fpsyg.2015.00336 25870575 PMC4376117 · DOI
- Voss A Voss J 2007 Fast-dm: a free program for efficient diffusion model analysis Behavior Research Methods 39 767 775 10.3758/BF03192967 18183889 · DOI
- Voss A Voss J 2008 A fast numerical algorithm for the estimation of diffusion model parameters Journal of Mathematical Psychology 52 1 9 10.1016/j.jmp.2007.09.005 · DOI
- Wagenmakers EJ van der Maas HL Grasman RP 2007 An EZ-diffusion model for response time and accuracy Psychonomic Bulletin & Review 14 3 22 10.3758/BF03194023 17546727 · DOI
- Wagenmakers EJ Ratcliff R Gomez P McKoon G 2008a A diffusion model account of criterion shifts in the lexical decision task Journal of Memory and Language 58 140 159 10.1016/j.jml.2007.04.006 19122740 PMC2330283 · DOI
- Wagenmakers EJ van der Maas HL Dolan CV Grasman RP 2008b EZ does it! extensions of the EZ-diffusion model Psychonomic Bulletin & Review 15 1229 1235 10.3758/PBR.15.6.1229 19001594 · DOI
- Wald A 1945 Sequential tests of statistical hypotheses The Annals of Mathematical Statistics 16 117 186 10.1214/aoms/1177731118 · DOI
- Wales DJ Doye JPK 1997 Global optimization by Basin-Hopping and the lowest energy structures of Lennard-Jones clusters containing up to 110 atoms The Journal of Physical Chemistry A 101 5111 5116 10.1021/jp970984n · DOI
- Wiecki TV Sofer I Frank MJ 2013 HDDM: Hierarchical bayesian estimation of the Drift-Diffusion model in Python Frontiers in Neuroinformatics 7 14 10.3389/fninf.2013.00014 23935581 PMC3731670 · DOI · Paper page
- Wong KF Wang XJ 2006 A recurrent network mechanism of time integration in perceptual decisions Journal of Neuroscience 26 1314 1328 10.1523/JNEUROSCI.3733-05.2006 16436619 PMC6674568 · DOI · Paper page
- Zhang S Lee MD Vandekerckhove J Maris G Wagenmakers EJ 2014 Time-varying boundaries for diffusion models of decision making and response time Frontiers in Psychology 5 1364 10.3389/fpsyg.2014.01364 25538642 PMC4260487 · DOI
- Zhou X Wong-Lin K Philip H 2009 Time-varying perturbations can distinguish among integrate-to-threshold models for perceptual decision making in reaction time tasks Neural Computation 21 2336 2362 10.1162/neco.2009.07-08-817 19416080 PMC2784641 · DOI
- Zoltowski DM Pillow JW Linderman SW 2020 Unifying and generalizing models of neural dynamics during decision-making arXiv https://arxiv.org/abs/2001.04571 · arXiv
- Zylberberg A Fetsch CR Shadlen MN 2016 The influence of evidence volatility on choice, reaction time and confidence in a perceptual decision eLife 5 e17688 10.7554/eLife.17688 27787198 PMC5083065 · DOI
- Authors
- Shinn, M., Lam, N. H., & Murray, J. D.
- Affiliations
- Yale University (US)
- Corresponding author
- Shinn, Maxwell
- Venue
- eLife
- Publisher
- eLife Sciences Publications, Ltd
- Published
- 2020-08-04
- Volume
- 9
- ISSN
- 2050-084X (ISSN-L)
- PMC
- PMC7462609
- OpenAlex
- W3047413465
- Cited by
- 133
- References
- 98
- Citations by year
- 2026: 19 · 2025: 30 · 2024: 25 · 2023: 23 · 2022: 20 · 2021: 11 · 2020: 5
- FWCI
- 7.92
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- eLife (publishedVersion, cc-by)
- bioRxiv (Cold Spring Harbor Laboratory) (acceptedVersion)
- PubMed Central (publishedVersion, cc-by)
- PubMed (publishedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- National Institute of Mental Health (R01MH112746)
- Gruber Foundation
- NSERC (PGSD2-502866-2017)
- Topics
- Life Sciences › Neuroscience › Cognitive Neuroscience › Neural and Behavioral Psychology Studies
- Social Sciences › Decision Sciences › General Decision Sciences › Decision-Making and Behavioral Economics
- Life Sciences › Neuroscience › Cognitive Neuroscience › Visual perception and processing mechanisms
- Keywords
- drift-diffusion model, decision models, Fokker-Planck equation, response time distribution, maximum likelihood fitting, perceptual decision making
- MeSH terms
- Data Analysis, Animals, Decision Making, Humans, Models, Neurological, Models, Psychological, Software
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review