Recent findings suggest that dopamine neurons have seemingly distinct roles in reinforcement1,2,3, motivation4,5 and movement6,7, and dopamine-modulating therapies relieve symptoms across a puzzling spectrum of neurological and psychiatric symptoms8. Yet, the relationship among these roles is unclear. Here we show that the tripartite functions of dopamine in mice are causally linked by a process in which phasic striatal dopamine rapidly and persistently recalibrates the propensity to move, a measure of vigour. Using a self-timed movement task, we found that single exposures to dopamine-reward transients (both endogenous and exogenously induced) exerted next-trial updates to movement timing in an unexpected manner. Rather than reinforce specific movement times, dopamine transients quantitatively changed movement timing on the next trial, 10–60 s later, with larger transients leading to earlier movements (and smaller to later), consistent with a stochastic search process that calibrates the frequency of movement. Both abrupt and gradual changes in external and internal contingencies—such as timing criterion, reward content and satiety state—caused changes in the amplitude of dopamine transients that causally altered movement timing. The rapidity and bidirectionality of the next-trial effects are difficult to reconcile with gradual synaptic plasticity, and instead point to more flexible cellular mechanisms, such as dopamine-dependent modulation of neuronal excitability. Our findings shed light on how natural reinforcement, as well as dopamine-related disorders such as Parkinson’s disease, could affect behavioural vigour.

Sources indicate that both electrical9 and optogenetic activation10,11,12 of dopamine neurons (DANs) can gradually reinforce actions10,11,12,13,14,15. It is widely believed that DANs drive gradual learning through dopamine (DA) transients, with ongoing debate over what these transients represent in reinforcement learning frameworks1,2,3,4,5,16,17,18,19,20,21,22. Yet, multiple lines of evidence suggest DA also has real-time roles in movement6,7,23,24,25,26 and motivation5,25 that are thought to be distinct from the function of DA in gradual learning6,22,24,27. For example, tonic DA levels are associated with movement vigour, with both tonic DA and vigour increasing in reward-rich environments4,5,6,27. Exogenous DA/DAN manipulations also causally modulate the probability7,23,24, number23, acceleration23,24 and variability11,28 of movements, and DA-modulating drugs are used ubiquitously in clinical settings as a tuning dial to adjust patients’ propensity to move up or down8,29. Yet, it remains unclear whether endogenous, DA-reward transients are related to the function of DA in modulating the propensity to move23,27,30,31,32.

As DA drugs bidirectionally influence the propensity to move, we suspected that the roles of DA in reinforcement and movement might be mechanistically linked by a tuning process, whereby endogenous DA transients calibrate this propensity based on feedback from recent reward history. Individual DANs encode both reward- and movement-related information32,33, suggesting that these functions may be intertwined or somehow co-dependent.

We recently showed that DANs have a causal, real-time role in movement initiation in mice performing a self-timed movement task7. Notably, in similar timing paradigms for humans and a variety of other species, hypokinetic conditions cause systematically late movement timing compared with control individuals34,35,36,37, whereas hyperkinetic conditions cause early timing38,39. Movement timing can therefore provide an intuitive, quantitative definition of propensity to move (earlier timing representing higher propensity; later timing representing lower propensity). Furthermore, because the mice in our task receive correct/incorrect feedback after each trial, they can patch their timing on the next trial to improve their chances of receiving reward, enabling us to relate outcome-related DA signalling to how mice calibrate their propensity to move based on the timing requirements of the task.

Recent findings suggest that we trained head-fixed, water-controlled mice to perform a self-timed movement task7 (Fig. 1a). On each trial, mice had to estimate elapsed time to decide when to lick after a brief cue (tone and light-emitting diode (LED)). Mice received a juice reward if the first lick occurred during a hidden reward window (3.3–7 s after the cue), which had to be discovered through trial and error. Only the first lick determined the trial outcome (unrewarded/rewarded). Correctly timed first licks triggered an immediate correct tone, whereas early first licks triggered an error tone, and failure to lick before the end of the reward window triggered a miss tone.

a, Self-timed movement task. b, Example timing distributions, pooled among same five mice as in Fig. 4. The black distribution shows the beginning of the session (trials 1–125) and the red distribution shows trials 376–500. c,d, The average outcome-related SNc (c) and striatal (d) DAN/DA signals. Shading represents the s.d. e,f, Timing-related DAN signals. e, Single examples of an early (red) and rewarded (purple) trial on trial n. f, DAN signals pooled by movement time and plotted up to 150 ms before spout contact. The x axis breaks indicate change of alignment. Pearson’s r represents the baseline GCaMP correlation with lick time on trial n + 1. g, The median change in timing on trial n + 1 as a function of first lick time on trial n (all mice, all sessions), corrected for potential regression-to-the-median effects (two-sided 10,000× bootstrap procedure; Methods). Δt represents the change in movement time (trial n + 1 minus trial n). Rewarded trials were followed by systematically earlier timing, whereas unrewarded trials (early and late) were followed by later timing. Shading represents the 95% CI.

Recent findings suggest that mice learned to self-time licks, producing timing distributions with broad variability typical of natural timing behaviour7,34,40,41,42,43 (Fig. 1b). The peak of the timing distribution reproducibly occurred at or before the earliest possible rewarded time, even in well-trained animals, consistent with findings from previous primate and rodent timing studies7,41,42,43,44 (Extended Data Fig. 1a,b). We found that this bias was due to the fact that even well-trained mice initially favoured early movement times at the beginning of each session (Fig. 1b (dashed trace)) before gradually shifting toward the reward window later in the session (Fig. 1b (red trace)). These reproducible behavioural patterns presented a unique opportunity to observe the relationship between DAN signalling and timing updates. We first exploited this natural variability in behavioural timing to examine whether DAN signalling was related to trial-to-trial timing updates. We then examined whether DAN signalling could explain longer-term trends in movement timing, which could serve as a potential calibration mechanism for the propensity to move.

We used fibre photometry to monitor intracellular Ca2+ in genetically defined DANs expressing GCaMP6f, recording from cell bodies (substantia nigra (SNc), n = 4 DAT-cre mice; ventral tegmental area, VTA, n = 3 mice) and axon terminals (dorsolateral striatum, DLS, n = 4 mice). DANs exhibited RPE-like transients: unrewarded first licks were followed by small decreases in intracellular Ca2+; rewarded trials were followed by large increases (Fig. 1c). These signals were surprisingly persistent, decaying for greater than 10 s after the reward, much longer than the off-kinetics of GCaMP6f (t1/2 < 300 ms at 37 °C)45, and lasting seconds past cessation of the lick-bout, indicating that persistence was not due to ongoing licking. The same basic RPE-like features were present across DAN recording sites (SNc, VTA, DLS) and in striatal DA release (Fig. 1d), which we monitored using fluorescent DA sensors (dLight or GRAB-DA2m), expressed in either DLS or ventrolateral dorsal striatum (VLS)46,47 (Extended Data Fig. 2a,b).

Industry observers note that in somatic Ca2+ signals, the decay of the outcome-related DA transient persisted into the baseline of the next trial (Fig. 1e), such that its amplitude was strongly correlated with a baseline offset (Pearson’s r = 0.68, 95% confidence interval (CI) = 0.59 to 0.75; Extended Data Fig. 2c). This offset was also strongly inversely correlated with timing on the next trial (Fig. 1f; Pearson’s r = −0.79, 95% CI = −0.84 to −0.73). Thus, larger outcome-related DA transients were associated with higher subsequent baseline signals and relatively early timing on the next trial, whereas smaller DA transients (and dips) were associated with lower baselines and relatively late timing. These correlations prompted us to examine whether the trial outcome might be related to changes in timing on the next trial.

Sources indicate that there were four possible trial outcomes: (1) early, (2) rewarded, (3) late (during the intertrial interval (ITI)) or (4) no lick. As mice only rarely licked too late or did not lick, we initially focused analyses on early versus rewarded outcomes. Intuitively, early (unrewarded) trials should prompt slower timing on the next trial. Conversely, rewarded trials might prompt mice to move at about the same time on the next trial. To examine this, we compared the change in the movement time between consecutive trials, Δt(n + 1) − n. A potential confound is that, on average, relatively late trials might by chance tend to be followed by earlier trials (and relatively early followed by later). This regression-to-the-median phenomenon could occur even in the absence of goal-directed timing updates. We therefore compared Δt(n + 1) − n to the timing change expected by chance (n = 17 mice, 155 sessions; Methods). We found that Δt(n + 1) − n was consistently in excess of chance (Fig. 1g). After unrewarded trials, mice moved significantly later on the next trial (update = +74 ms, 95% CI = +41 ms to +106 ms; 10,000× bootstrap procedure). However, mice moved significantly earlier after rewarded trials: rather than repeating the rewarded movement time, mice sped up (update = −317 ms, 95% CI = −406 ms to −223 ms).

According to recent reports, these effects suggest a ‘sloshing’ phenomenon whereby timing updates tended to adjust back and forth, depending on whether the animal was rewarded or not on the previous trial. This may seem unintuitive (and inconsistent with normative reinforcement learning; Discussion), but is not necessarily irrational: a thirsty mouse may want to move at the earliest possible rewarded time, but this time is uncertain—mice had to discover it through trial and error. By slowing down after early trials and speeding up after rewarded trials, this sloshing effect can cause the timing distribution to build-up around the earliest possible rewarded time.

Industry observers note that we initially were prompted to look for timing updates because of the baseline offsets in somatic DAN Ca2+ signals, but these were not clearly present in striatal DA (Fig. 1d), suggesting that the baseline signal was not communicated to the striatum. Instead, the outcome-related transient, of which the amplitude contained information similar to the baseline, was present across all recording sites (Extended Data Fig. 2a). We therefore hypothesized that the outcome-related DA-transient amplitude might predict the bidirectional timing update on the next trial. To test this, we derived a generalized linear model (GLM) predicting the change in the movement time on the next trial, Δt(n + 1) − n, from the amplitude of the outcome-related DA transient (Fig. 2a). This amplitude was encoded as the DA signal averaged over 0 to 500 ms after the previous trial’s first lick (DA; Fig. 2b). We controlled for optical artifacts and ongoing body movements by including the tdTomato photometry channel (tdT), accelerometer and/or neck EMG signals as predictors.

Sources indicate that a, GLM. accel., accelerometer. b, The average outcome-related SNc GCaMP signals (top) (4 mice, 20 sessions). Bottom, trial-by-trial variability in single-trial DAN signals. Each point is from a single trial; the signal was averaged over a 0.5 s window after the first lick (shaded rectangles). Points are jittered horizontally for clarity. c–e, GLM fit. c, Both single-trial and pooled-trial model fits for one session. P values for the DA fit coefficient were calculated using two-sided Wald tests. d,e, The distribution of R2 values for the same models (single trial (d) and pooled trial (e)) fit on all single-session datasets (all recording sites, all mice). XVal, cross-validated. f, Lick-triggered averages from each SNc GCaMP session. The thick lines indicate the average among sessions, and the thin lines show single-sessions. The black lines show trials with outcome-related DA amplitude within 1% of the amplitude predicted by the GLM to have approximately no patch in timing on the next trial (DA0); the red and blue lines show trials predicted to have the largest early shifts (red) and largest late shifts (blue; DA > 0.1 and DA < 0.8 are shown to ensure similar numbers of trials in each pool).

Recent findings suggest that across all recording sites (and both GCaMP and DA sensors), DA was independently predictive of Δt(n + 1) − n (Fig. 2c–e and Extended Data Fig. 2d). The larger the DA-transient amplitude, the larger the update on the next trial (highest DA: largest early shifts; lowest DA: largest late shifts; Fig. 2f). We report the results for the full model to show the effects of DA in excess of potential optical/movement-related confounds, although, notably, leave-one-out cross-validation (LOOCV) indicated that DA was the only predictor in the most parsimonious model (Extended Data Fig. 3a–g). Including other DA features (such as baseline or cue-evoked signals) did not improve the model (P = 0.14, paired t-test of squared residuals, LOOCV), further indicating that the relevant signal was the outcome-related DA transient.

The outcome-related DA transient was independently predictive of Δt(n + 1) − n even when models were fit on single-trial datasets from each session (Fig. 2c,e and Extended Data Fig. 2e)—which was surprising, given that single-trial photometry data are inherently noisy. We are aware of only a few of examples of single-trial DA effects detected with photometry, with variance explained in those studies ranging from R2 = 0.0001 to 0.03 (refs. 11,22,48,49). By contrast, across all of the recording sites, the R2 of the single-trial GLM was 0.18 on average (0.16 after cross-validation; Fig. 2e), suggestive of a particularly strong effect.

It has been revealed that these effects manifested on the next trial—10 to 20 s later. To determine how long effects persisted, we extended the ITI in a subset of sessions. The amplitude of the DA transient maintained its predictive power for ITIs of at least 60 s (P = 3 × 10−4, Wilcoxon rank-sum test; 3 mice, 14 sessions; Extended Data Fig. 3j,k).

Recent findings suggest that the amplitude of the DA transient was strongly correlated with trial outcome. Although this would not preclude a causal role for DA, we tested whether additional information was present in DA signals by fitting separate models for early and rewarded trials. Both early and rewarded DA-transient amplitudes showed considerable trial-by-trial variability (Fig. 2b), which had additional predictive power beyond the trial outcome (Extended Data Figs. 2f and 3h,i). These effects were also not explained away by a tendency to revert toward the median movement time (shuffled-trial-order model: P = 7.2 × 10−9, Wilcoxon rank-sum test; Extended Data Figs. 3o and 4).

Industry observers note that these findings were corroborated by linear mixed effects (LME) models of Δt(n + 1) − n that included the following predictors: (1) the aforementioned potential confounds; (2) additional variables to control for behavioural non-stationarity over the course of sessions; and (3) the DA signal at other moments during the trial (Extended Data Fig. 3l). Consistent with the single-session GLMs, outcome-related DA remained a significant predictor in both the full model and most parsimonious model (as determined by leave-one-subject-out cross-validation (LOSO-CV); Extended Data Figs. 2g and 3m,n), indicating that outcome-related effects of DA were not explained-away by these other factors. Likewise, the variance explained in the LME models was similar to that found in the single-session GLMs (predictive marginal R2 across recording sites: single-trial LME = 0.15 to 0.19 versus GLM = 0.11 to 0.18; pooled-trial LME = 0.51 to 0.76 versus GLM = 0.61 to 0.79).

Industry observers note that together, outcome-related DA transients were positioned to produce next-trial timing updates. Such effects indicate a single exposure to an endogenous DA transient was associated with a quantitative behavioural enhancement that manifested 10 to 60 s later. To our knowledge, learning effects based on trial-by-trial variability in endogenous DA-reward transients have not been observed.

According to recent reports, to test whether outcome-related DA could cause next-trial timing updates, we virally expressed channelrhodopsin (ChR2, n = 4 DAT-cre mice) in genetically defined DANs for optogenetic manipulations (Fig. 3a). To modulate outcome-related DAN signalling, we triggered stimulation in the SNc at the time of the first lick on 30% of randomly interleaved trials. Activation with ChR2 was calibrated7,32 outside the task to recapitulate endogenous DA-reward transients (Fig. 3b). During the task, activation triggered on unrewarded first licks produced outcome-related DA transients that matched the amplitude and width of the natural DA-reward transients observed on interleaved unstimulated trials (Fig. 3c and Extended Data Fig. 5a). Activation on rewarded trials slightly increased the reward-transient amplitude (Fig. 3c) but, on average, this remained within the range of unstimulated reward transients recorded on single trials during the same session (Extended Data Fig. 5b). To avoid photoswitching artifacts50 with rdLight1, we stimulated with comparatively low light power (5 mW) in the SNc, greater than 3 mm away from the striatal recording site. Control stimulations in mice expressing no opsin indicated that rdLight1 recordings were not contaminated by photoswitching50 (no-opsin control mice; Fig. 3d and Extended Data Fig. 5c,d).

Sources indicate that a, Optogenetics strategy. b, Calibration of stimulation parameters outside the context of task. Mice received 10 unexpected juice rewards (approximately 4 µl) followed by sets of 10 trials of optogenetic stimulation, with each set testing different stimulation parameters (Methods). Left, stimulation-aligned rdLight1 signals from trials using the optimal stimulation parameters in one calibration session. Right, juice-aligned signals from the same calibration session. Coloured traces show ten single trials, and the black traces show the averages. c,d, Average VLS rdLight1 signals from all trials for one example ChR2 mouse (c) and one no-opsin mouse (d). Slight differences in DA dynamics before the lick between c and d were within the normal range of inter-animal variability seen in this task7. Data for all mice are shown in Extended Data Fig. 5. e, Single-trial (one-shot) stimulation effects. The box plots show the median (centre line), 25–75th percentiles (box limits) and the furthest point within 1.5 × interquartile range (IQR) of box edges (whiskers); points beyond whiskers are outliers. n = 4 (activation) and n = 4 (no-opsin) mice; 10 sessions per mouse. Statistical analysis was performed using two-sided Wilcoxon rank-sum tests; *P < 0.05.

DAN activation caused mice to move significantly earlier than expected on the next trial, with 4 out of 4 mice showing relatively early-shifted updates after stimulated trials compared with unstimulated trials (Fig. 3e and Methods; mean ΔΔt(n + 1) − n = −88 ms, P = 0.0019, 10,000× bootstrap procedure, n = 4 mice, 40 sessions). By contrast, stimulation in the no-opsin mice had no significant effect on Δt(n + 1) − n (mean ΔΔt(n + 1) − n = −6 ms, P = 0.40, 10,000× bootstrap test, n = 4 mice, 40 sessions). These results were consistent across three additional complementary statistical analyses (Extended Data Fig. 6a,b). The change in the amplitude of the DA transient between stimulated and unstimulated trials predicted the magnitude of the optogenetic effect on timing updates (P = 0.00030; Extended Data Fig. 5e), consistent with the predictions of the GLM (Extended Data Fig. 5f). Activation also caused significant early shifting of the timing distribution of the entire session compared with interleaved sham sessions (Extended Data Figs. 5g,h and 6c). This raised the possibility that outcome-related DA may normally control the set-point of the movement timing distribution, which we operationally define as the median first lick time.

Note that we also attempted to optogenetically inhibit DANs but, similar to others (ref. 33 and J. Dudman, personal communication), we could not block the reward transient by triggering inhibition on the first lick (Methods and Extended Data Fig. 5i,j)). We therefore examined reductions in outcome-related DA through non-optogenetic manipulations (discussed in the following sections).

Counterintuitively, across timing paradigms, both rodents and primates often move too early, at the expense of a reward7,41,42,43,44 (Extended Data Fig. 1a). In our study, this early bias developed gradually over days (Extended Data Fig. 1c–f) and persisted even in expert mice with more than 70 sessions of experience7. Outcome-related DA also appeared highly skewed in this task, with disproportionately large reward transients compared with small unrewarded dips (Extended Data Fig. 7a), perhaps due to a floor effect. We also observed that high-amplitude (rewarded) DA transients caused much larger early shifts compared with relatively small late-shifts after DA dips and, overall, mice made larger updates after rewarded trials compared with unrewarded trials (median, −317 ms versus 74 ms; Fig. 1g). Together, this suggests that bias in DA signalling may explain early-biased timing behaviour.

It has been revealed that however, behaviour was not early skewed for the entire session—all mice showed marked timing changes within each session, initially moving too early, but progressively shifting to later times (Fig. 4a,b and Extended Data Fig. 7b). If allowed to work until discontinuation of licking, the timing set-point (median of the timing distribution) ultimately eventually shifted into the reward window—suggestive of timing calibration (Extended Data Fig. 7c). Importantly, GLMs were robust to this non-stationarity (Extended Data Fig. 4c).

According to recent reports, a, First-lick times (example session). Left, first-lick raster. Right, timing set-point (50-trial moving median of first-lick times; the shading highlights the s.d.). b, Left, the set-point from 11 sessions and 5 mice (shown for comparison with the paired sessions in e and f). Right, quartile 1 (Q1) to Q4: pooled first-lick times from each quartile of trials. The proportion of timed responses (excluding false starts of <0.5 s) before the cross-over: 74.4% early, 25.1% correct and 0.5% late; and after the cross-over: 47.0% early, 46.1% correct and 6.9% late. c, The average lick-triggered DA from Q1 and Q4. d, Rewarded DA amplitude (rewDA) versus the set-point cross-over into the reward window (Methods). Example session (left), rewDA (middle). and unrewarded DA amplitude (unrewDA; right) for all sessions aligned to the cross-over. SNc GCaMP sessions are shown for clarity (for all mice; 28 mice, 193 sessions; Extended Data Fig. 7i). Pearson’s r was calculated for the average rewDA versus set-point. e,f, No-juice task (as in a,b). e, First-lick raster, example session. f, All 11 paired no-juice sessions (same mice as in b). Proportion of timed responses before the cross-over: 79.3% early, 20.2% correct, 0.5% late. After: 30.1% early, 46.7% correct, 23.2% late. g, The set-point at trial 250 for all paired +juice versus no-juice sessions (5 mice, 11 sessions each task). Statistical analysis was performed using a two-sided Wilcoxon rank-sum test; P = 0.0013. The box plots show the median (centre line), 25–75th percentiles (box limits) and the furthest point within 1.5 × IQR of box edges (whiskers); the points beyond the whiskers are outliers. h, The no-juice-task lick-triggered average DA. i,j, The rewDA for the +juice versus no-juice task (5 mice, 11 sessions each task). i, Q1 signals. j, Trial-number at 50% max rewDA. Statistical analysis was performed using a two-sided Wilcoxon rank-sum test P = 0.0073. k, No-juice cross-over versus rewDA (as in d). Median change: rewDA, 55% (s.d. = 24%); unrewDA, 81% (s.d. = 24%); set-point, 32% (s.d. = 9%).

We hypothesized that changes in outcome-related DA could explain changes in the set-point. Across each session, as the set-point shifted later, (1) rewarded trials were followed by progressively smaller updates (Extended Data Fig. 7d); and (2) rewarded-DA transient amplitudes progressively declined (Fig. 4c and Extended Data Figs. 7e,f and 8). Importantly, this decline was not explained away by bleaching or optical artifacts (Methods and Extended Data Fig. 7g).

According to recent reports, rewarded DA amplitude (hereafter, rewDA) was tightly correlated with the set-point within each session (median Pearson’s r (all datasets) = −0.74; Extended Data Fig. 7h). This was not the case for movement-related/optical artifacts (median Pearson’s r = −0.02 (tdTomato); Extended Data Fig. 7h). Notably, shifts were not always gradual—rewDA decreased precipitously during abrupt set-point shifts into the reward window (28 mice, 173 sessions; all recording sites; median rewDA versus set-point Pearson’s r = −0.97; Fig. 4d and Extended Data Fig. 7i), which was not explained away by optical/movement-related artifacts (Extended Data Fig. 7h). The decline in rewDA preceded the set-point change, consistent with the causal effects observed with optogenetics (P = 0.014, 10,000× bootstrap test of rewDA/set-point cross-correlation). Reinforcement learning frameworks predict that DA-reward-transient amplitudes should decline as rewards become more expected, but these observations suggest that this decline could have a biologically meaningful, causal effect on future behaviour, which we tested as follows.

It has been revealed that together, across sessions and recording sites/modalities, the DA-reward transient amplitude decreased as timing shifted later, toward the reward window. Outcome-related DA transients also controlled trial-by-trial timing updates, and these updates became progressively smaller as behaviour became more accurate (Extended Data Fig. 7d). Together, these findings suggest an adaptive calibration process for motor timing. However, because the amplitude and set-point tended to change monotonically across the session, we tested several complementary manipulations to break the monotonicity between these co-variates, which produced late-to-early timing shifts and provided an alternative means of testing the impact of reduced DA-transient amplitude. In all settings, DA-reward transients explained bidirectional set-point changes as follows.

It has been revealed that first, we identified that well-trained mice continued to participate even when juice rewards were replaced by the usual correct tone (‘no-juice task’)—but set-point dynamics were markedly different (Fig. 4e,f and Extended Data Fig. 7j). Mice still tended to show early bias for the first approximately 150 trials but, notably, the set-point subsequently tended to suddenly shift into the reward window—significantly earlier in the session than in the +juice task (P = 0.001, Wilcoxon rank-sum test; 5 mice, 22 paired behaviour sessions; Fig. 4g). Mice continued to work for more than 700 trials per session with correct timing on most trials, exhibiting much more accurate timing than the same mice performing the +juice task on interleaved sessions.

Notably, mice still had DA reward transients in the no-juice task (in response to the correct tone; Fig. 4h), but these were narrower and smaller in amplitude than transients in the +juice task (Fig. 4i). Moreover, the transient amplitude declined significantly earlier in the session during no-juice sessions (n = 5 mice, 18 paired photometry sessions; P = 0.0073, Wilcoxon rank-sum test; Fig. 4j and Extended Data Fig. 7k–n), and the timing of this abrupt, early decline explained the rapid shift in the timing set-point (median single-session Pearson’s r = −0.78; Extended Data Fig. 7l,o). As in the +juice task, the rapid decline in rewDA preceded the set-point shift (Fig. 4k). These effects were not explained by ongoing body movements or optical artifacts (Extended Data Fig. 7l,n).

In a recent development, the persistence of high-amplitude reward transients in the +juice task suggests that juice skewed the normal timing updates: despite apparent motivation, mice received many fewer rewards/time compared to the no-juice task. The resulting early timing bias is reminiscent of the effects of DA-modulating drugs of abuse on timing behaviour, such as amphetamines38.

Second, we trained mice to alternate between blocks of trials with either no-juice rewards (correct tone only) or with juice rewards. During no-juice blocks, the set-point rapidly late-shifted into the reward window (Fig. 5a). This was reversed in +juice blocks, in which the set-point rapidly shifted earlier (n = 3 mice, 5 block changes; P = 0.032, Wilcoxon rank-sum test). The DA-reward transient amplitude explained set-point shifts (median Pearson’s r = −0.89; Extended Data Fig. 9a,b).

Sources indicate that a, Left, example alternating juice/no-juice task session (set-point: 35-trial moving median of first-lick time; Methods). Right, the set-point before and after block change (all mice, all block changes; Methods). A negative number indicates an early shift relative to the set-point at the block change. Statistical analysis was performed using a two-sided Wilcoxon rank-sum test; *P = 0.032. b, Alternating stimulation blocks (stimulation only on rewarded trials). Left, the set-point (one example stimulation session). Right, comparison of the set-point as in a (ChR2 versus no-opsin mice, all block changes, all mice). c,d, The rapid satiation (RS) task. c, Left, set-point comparison for a paired rapid satiation session (red trace) versus a control session (purple trace) from the same mouse. ‘Pause’ indicates the trial at which mouse was given free access to juice (rapid satiation) or an empty syringe (control). Right, the set-point before versus after pause (all mice, all sessions), as in b. A positive value indicates late-shifting compared with the set-point at the pause. d, The rewDA before versus after the pause (all photometry sessions, all mice). The rewDA for each session was normalized to rewDA at the block change; a negative value indicates a decrease in rewDA. e–g, The timeshift task. e, The set-point for one example +juice session. f, Set-point versus rewDA (left) or unrewDA (right); example session. g, Pearson’s r was calculated for set-point versus rewDA (purple) or unrewDA (red; all sessions and mice). For a–d, the box plots show the median (centre line), 25–75th percentiles (box limits) and the furthest point within 1.5 × IQR of box edges (whiskers); the points beyond the whiskers are outliers. Statistical analysis was performed using two-sided Wilcoxon rank-sum tests; **P < 0.01, ***P < 0.001. NS, not significant.

It has been revealed that the rapid changes in DA-transient amplitude might be correlated—but not causal—to abrupt set-point shifts. We therefore had mice alternate between blocks of either no-juice or no-juice + stimulation, in which DANs were optogenetically activated triggered on first licks that occurred either within the reward window or on all trials (n = 3 mice, 20 block changes; Extended Data Fig. 9c–i). Stimulation was calibrated to recapitulate usual juice-related DA transients without delivering liquid rewards (Fig. 3b). The set-point rapidly late-shifted during no-juice blocks, but then rapidly early-shifted during +stimulation blocks (off–on, P = 0.001; on–off, P = 0.007; Wilcoxon rank-sum test; Extended Data Fig. 9d), even when stimulation was delivered only on rewarded trials (off–on, P = 0.009; on–off, P = 0.002; n = 2 mice, 12 block changes; Fig. 5b). Stimulation did not change the set-point in the no-opsin control mice (n = 4 mice, 20 block changes; Fig. 5b and Extended Data Fig. 9d–g). The amplitude of DA-reward transients explained set-point shifts (median Pearson’s r = −0.66 (stimulation), r = −0.56 (no-opsin); Extended Data Fig. 9f–i). These results emphasize that DA-reward transients induced early shifts—rather than reinforcing rewarded movement times.

Industry observers note that third, in addition to sudden shifts, the set-point also demonstrated gradual late-drift across the session, potentially related to fatigue/satiation. We hypothesized that DA could also explain state/motivation-related shifts. We therefore tested whether rapid satiation could change DA-reward transients and set-point. After at least 100 trials of the +juice task and at least 10 rewards, the task was paused and the mice were allowed to drink ad libitum until they stopped licking available juice (n = 3 mice, 15 sessions; range = 0.75–1.8 ml; Fig. 5c,d). The task was then resumed. DA-reward transient amplitude and set-point remained highly anticorrelated (median Pearson’s r = −0.70; Extended Data Fig. 9j), but DA-reward transient amplitudes decreased precipitously after the pause (P = 8.5 × 10−5, Wilcoxon rank-sum test; n = 11 photometry sessions; Extended Data Fig. 9k), and the set-point showed significant late-shifting (P = 1.7 × 10−5, Wilcoxon rank-sum test; Extended Data Fig. 9l). By contrast, in interleaved control sessions (empty syringe; no juice during the pause), rewarded DA did not show this precipitous decrease (P = 0.0026; Fig. 5d) and there was no significant change in timing set-point (P = 0.18; Fig. 5c). Together, rapid juice consumption caused decreased DA-reward transient amplitudes and late-shifting.

Finally, to test whether endogenous changes in DA-reward transients could re-calibrate the set-point, we changed the reward window in blocks of trials (timeshift task; for example, from 7–12 s to 2–3.3 s; n = 7 mice; Fig. 5e). The upcoming reward window was not signalled and had to be discovered through trial and error. We hypothesized that DA-reward transient amplitudes would change as animals adapted to these changing timing constraints (for example, increase to produce early shifts; decrease to produce late shifts). As fatigue/satiety should increase monotonically across the session, we reasoned that early shifts would disentangle goal-directed processes from fatigue/satiation.

According to recent reports, the timeshift task produced pronounced shifts in timing behaviour, including directed changes in timing in relation to the newly introduced reward window (Fig. 5e and Extended Data Fig. 9m) and exploratory behaviour that appeared to anticipate block changes (Extended Data Fig. 9n). The amplitude of rewarded-DA transients continued to explain the set-point (median Pearson’s r = −0.64; 7 mice, 54 sessions; Fig. 5f,g). Unrewarded DA transients were also significantly correlated with the set-point (median r = −0.36; Fig. 5g) and showed larger amplitude changes than in the original +juice task (Fig. 5f), possibly due to the need for much larger set-point shifts in the timeshift task. Early shifts were accompanied by increases in DA-transient amplitude (and late shifts by decreases). These effects were not explained away by optical artifacts (tdTomato: rewarded median r = −0.20; unrewarded r = 0.10; Extended Data Fig. 9o).

Together, these results show that changes in DA-reward transients cause shifts in the timing set-point, both in relation to changing environmental conditions (such as changes in timing contingencies for reward or the presence/absence of juice rewards) and internal state (such as gradual or rapid satiation). These findings demonstrate that DA-reward transients quantitatively and adaptively calibrate the propensity to move in response to both external and internal constraints.

A cornerstone hypothesis of biological reinforcement learning is that DA-reward transients (whatever their nature3,5,16,19,51,52) lead to changes in future behaviour. However, to our knowledge, trial-by-trial variability in endogenous DA-reward transients has not been shown to relate to variability in subsequent behaviour, despite serious effort to detect such effects3,5,32,53,54. Here, we show that the amplitude of individual, native DA-reward transients is quantitatively predictive of a purposive, goal-directed upgrade to movement timing on the next trial, as much as 60 s later. This suggests a functional link between reward signalling and the calibration of the propensity to move (an aspect of vigour), unifying two seemingly distinct aspects of DA function6. The relative amplitude of rewarded/unrewarded DA transients explained asymmetry in next-trial updates, and changes in the relative amplitude causally shifted the timing set-point, allowing animals to adjust to changing timing constraints. Similar effects were induced by changes in internal/motivational state (reward identity, satiety/fatigue), demonstrating that flexibility in reward-related DA signalling mediates both strategic and motivationally driven changes to movement timing. Together, the tripartite roles of DA in reward, movement and motivation are mechanistically linked through this calibration process.

We and others have observed real-time effects of DA on movement—but over much shorter timescales (within hundreds of milliseconds before or during ongoing movements)7,23,24,25,26. Others have suggested that the endogenous effects of DA on vigour are related to slowly evolving or tonic DA signals6,22,27,30. Here we found that variability in baseline DAN Ca2+ signals could be traced back tens of seconds to variability in the amplitude of the previous trial’s outcome-related DA transient—and that variability in this transient can causally update timing on the next trial, greater than 10–60 s later, potentially by adjusting the set-point of the ramping process55,56,57.

In a recent development, exogenous DA manipulations have been shown to gradually affect future behaviour, over many exposures10,12,14,28,58,59,60 (compare with ref. 33). Amplitudes of endogenous DA transients can also decrease across learning and in response to stress or punishment2,22,61,62, but again only gradually, and not linked to changes in behavioural vigour22. Recent work showed an increased repetition of behavioural motifs associated with spontaneous DA transients in freely behaving mice11, but this was outside a goal-directed context and did not explore the effects of DA-reward transients.

On the question of why we could detect next-trial effects of endogenous DA-reward transients on behavioural vigour when previous studies did not, one possibility is that our time-to-move metric provided a more sensitive behavioural readout than discrete reinforcement learning tasks, such as bandit tasks3,53,58, which may require multiple trials for effects to become manifest. Other work examining behavioural vigour in freely behaving animals (measured based on latency to initiate trials) may have missed next-trial effects due to high variance and long latency between trial starts4,5. Nevertheless, the accumulation of the next-trial effects of DA may be related to broader correlations between DA and vigour that have been observed when averaging over long timeframes4,5. The next-trial effects of DA might also be specific to movement initiation versus movement kinematics26,48—two potentially distinct aspects of vigour. Consistent with this idea, we could not detect differences in the EMG signals related to the first lick on early versus rewarded trials.

Recent findings suggest that A recent mouse knockout model of action-potential-driven DA transients (RIMcKO) caused few gross motor deficits in these animals, although non-phasic DA release was still necessary for movement, and mice were generally less vigorous in a binary choice task27. Trial-by-trial timing updates might be absent in these mice, potentially preventing the mice from flexibly calibrating their timing based on trial outcome, therefore lowering overall vigour.

Sources indicate that DA signals are often interpreted in the framework of normative reinforcement learning models. In the simplest model, rewards might reinforce rewarded lick times, but we found that DANs instead drove changes in timing on the next trial. This could still be consistent with reinforcement learning algorithms that learn to anticipate reward-relevant events, such as temporal difference learning63. If so, an informative case would be the infrequent late trials in our task, in which mice first licked after the end of the reward window and were therefore not rewarded. Reinforcement learning algorithms (such as Q-learning64) could, in principle, learn to promote earlier movements after late trials to increase the probability of reward. Instead, we found that late trials led to late-shifting on the next trial (Fig. 1g), in conjunction with DA dips (Extended Data Fig. 10a,b). This runs counter to the normative goal of maximizing future rewards. Parsimony therefore suggests a different model. We propose that DA transients rapidly—and in a fixed manner irrespective of the trial outcome—modulate the propensity to move, with larger DA transients leading to earlier movements and smaller transients, such as dips, leading to later movements (Extended Data Fig. 10c–e). Such an innate mechanism could swiftly modulate vigour in response to action outcomes. It could also explain how DA-modulating drugs, such as amphetamines, increase vigour automatically and non-specifically without apparent learning65. Consistent with this idea, we found a similar negative correlation between DA-reward transients and trial-by-trial changes in the timing of movement when we re-analysed data from an unrelated cued-reaching task66, in which the timing of reaches had no bearing on whether reward was delivered or omitted (Extended Data Fig. 10f–h).

Sources indicate that critically, we are not arguing against the role of DA in reinforcement learning. On the contrary, rapid DA effects on vigour could operate in parallel—or even be synergistic—with slower, incremental DA-mediated reinforcement learning. For example, rapid vigour modulation could promote increased frequency and speed of all movements in reward-rich environments6, thereby increasing the number of opportunities to repeat rewarded actions that drive gradual reinforcement learning.

Regional DA heterogeneity has been proposed to mediate other aspects of reinforcement learning (such as learning across timescales, hierarchical/distributional reinforcement learning)67,68,69. We likewise observed typical regional differences in DA signals (for example, different DA-transient widths). Yet the trial-by-trial timing updates, encoded in the amplitude of the DA transient, were present everywhere we looked in the striatum. This suggests that, despite regional heterogeneity in DA dynamics, the amplitude-related timing updates of DA are broadcast more globally.

Theories have been proposed to explain the effects of DA on vigour6,70, but their biological implementations were unclear. Given our findings, any proposed mechanism should (1) support bidirectional effects on timing; (2) have rapid onset (within seconds7); and (3) persist for at least tens of seconds.

One possibility is that DAN Ca2+ could carry over from the outcome-related transient to control next-trial timing updates—but we did not detect baseline offsets in striatal DA. Gradual DA-dependent plasticity in corticostriatal synapses59 might mediate longer-term learning in the task, but is probably too slow, incremental and metabolically inefficient to support back-and-forth trial-by-trial updates. Alternatively, DA also modulates the excitability of striatal projection neurons (SPNs)71,72. A salient example is a careful striatal slice study72, which found that calibrated, transient optogenetic stimulation of DAN axons caused rapid (subsecond) yet long-lasting (minutes) increases in the firing rate of direct pathway SPNs (dSPNs)72. This excitability effect was blocked by a specific inhibitor of protein kinase A (PKA). DA transients drive increased PKA activity in dSPNs in vivo, whereas DA dips cause increased PKA activity in indirect pathway SPNs (iSPNs), with a latency of seconds and persistence for tens of seconds73, similar to the dynamics of the effects we observed. DA-driven adjustments to the balance of dSPN–iSPN excitability could conceivably scale the dynamics of the cortical–basal ganglia–thalamic circuit65,74 to bidirectionally adjust timing, and modulate vigour more generally. The scaled-dynamics hypothesis suggested by our findings provides a testable framework for understanding vigour-related symptoms in movement disorders, such as bradykinesia in Parkinson’s disease.

We used adult male and female hemizygous DAT-cre mice75 (B6.SJL-Slc6a3tm1.1(cre)Bkmn/J; The Jackson Laboratory, 020080) or wild-type C57BL/6 mice (aged 2–12 months), which were randomly assigned to each cohort. Mice were housed in a temperature (20–22 °C) and humidity (30–70%) controlled facility on a reversed night/day cycle (12 h–12 h dark–light). Behavioural sessions occurred during the dark cycle. All protocols were approved by the Harvard Institutional Animal Care and Use Committee and MIT Committee on Animal Care (Harvard IACUC protocol 1343, Animal Welfare Assurance Number A3431-01; MIT CAC protocol 2306000543). All work was performed in accordance with the NIH Guide for the Care and Use of Laboratory Animals. Surgeries were conducted under aseptic conditions with every effort to minimize suffering, as we described previously7. Mice were water deprived as we described previously7 (≥80% initial body weight) with ad libitum feeding. Histology to confirm viral expression and fibre placement was conducted as we reported previously7.

Stereotaxic coordinates (from bregma and brain surface) were as follows. For viral injection: SNc7: 3.16 mm posterior, ±1.4 mm lateral, 4.2 mm ventral; VTA7: 3.1 mm posterior, ±0.6 mm lateral, 4.2 mm ventral; DLS7: 0 mm anterior, ±2.6 mm lateral, 2.5 mm ventral; VLS46: 0.34 mm anterior, ±2.75 mm lateral, 3.7 mm ventral (rdLight1/dLight1.3), 3.2 mm ventral (D1/A2A-cre; GCaMP).

Fibre optic tips (ventral position): 200 µm 0.53 NA or 0.55 NA blunt fibre optic cannulae (Doric Lenses) or tapered fibre optic cannulae (200 µm, 0.60 NA, 1.5, 2 or 2.5 mm tapered shank, OptogeniX) were positioned at the SNc, VTA, DLS or VLS as follows: SNc/VTA7: 4.0 mm (photometry) or 3.9 mm (optogenetics); DLS7: 2.311 mm (blunt) or 4.0 mm (tapered); VLS (rdLight1/dLight1.3): 3.4 mm (blunt); VLS46 (D1/A2A-cre; GCaMP): 3.0 mm (blunt or midpoint of 2.5 mm tapered).

For photometry: optical control fluorophores were used as 500 nl alone (tdTomato: AAV1-CAG-FLEX-tdT, 5.3 × 1010 to 5.3 × 1012 genome copies (gc) per ml, UNC Vector Core; and GFP: AAV9.CB7.CI.eGFP.WPRE.rBG, 2.3 × 1012 vg per ml; Addgene, 105542) or mixed with the other following fluorophores: GCaMP6f (at the SNc or VTA): 300 nl AAV1.Syn.Flex.GCaMP6f.WPRE.SV40 (2.5 × 1013 gc per ml; Penn Vector Core) mixed 3:1 with tdTomato or mCherry (D1/A2A-cre experiments; AAV8-Syn-DIO-mCherry, 2 × 1012 gc per ml; Datta Lab); DA2m (at DLS): 200–300 nl AAV9-hSyn-DA4.4(DA2m) (3 × 1012 gc per ml; Vigene, MD) mixed 2:1 or 3:1 with tdTomato; dLight1.1 (at DLS): 300 nl AAV9.hSyn.dLight1.1.wPRE (9.6 × 1012 gc per ml, Children’s Hospital Boston) mixed 3:1 with AAV1.CB7.CI.TurboRFP.WPRE.rBG (1012 gc per ml, Penn Vector Core); rdLight1 (at VLS): 500 nl AAV2/9-Syn-RdLight1.0 (2 × 1012 gc per ml; #construct-1646-aav2-9, Canadian Neurophotonics Platform (CNP)); dLight1.3 (at VLS): 500 nl AAV2/DJ-CAG-dLight1.3b (2 × 1012 gc per ml, CNP).

For optogenetic stimulation/inhibition (bilateral at the SNc), ChR2: 1,000 nl AAV5-EF1a-DIO-hChR2(H134R)-eYFP-WPRE-pA (3.2 × 1013 gc per ml, UNC Vector Core); and stGtACR2: 300 nl AAV2/8-hSyn1-SIO-stGtACR2-FusionRed (4.7 × 1011 gc per ml, Addgene/Janelia Viral Core) were used.

Behaviour was run using a custom behavioural recording set up with an Arduino-based state system architecture coupled to a MATLAB serial interface, and behavioural data were recorded with a CED Power or Micro 1401 data acquisition system running Spike2 v.7 or 12 software from Cambridge Electronic Devices. Behavioural software was designed for use with Arduino IDE 2.3.10 and MATLAB 2023B.

Mice were head-fixed with a juice tube positioned in front of the tongue. The spout was placed ~1–1.5 mm ventral and ~1–1.5 mm anterior to the mouth. During periods when rewards were not available, a houselamp was illuminated. At the trial start, the houselamp turned off, and a random delay ensued (0.4–1.5 s) before a cue (simultaneous LED flash and 3,300 Hz tone, 100 ms) indicated start of the timing interval. The timing interval was divided into two windows, early (0–3.333 s) and reward (3.333–7 s), followed by the ITI (10 s in the usual task; 60 s in the long-ITI task). The window in which the mouse first licked determined the trial outcome (early, reward, late or no-lick). An early first lick caused an error tone (440 Hz, 200 ms) and houselamp illumination, and the mouse had to wait until the full trial interval had elapsed before beginning the ITI. Thus, there was no advantage to licking early. A first lick during the reward window caused a reward tone (5,050 Hz, 200 ms) and juice delivery (~4 µl apple juice or Gatorade; +juice task), and the houselamp remained off until the end of the trial. If the timing interval elapsed with no lick, a time-out miss tone played (131 Hz, 2 s), the houselamp turned on and the ITI commenced. During the ITI and pre-cue delay (lamp-off interval), there was no penalty or feedback for licking. Mice learned the task in three stages (beginner, intermediate and expert), as described previously7. All mice learned the task and typically worked for around 500 trials per session. Details on all other task variants and training protocols are provided in the ‘Details of behavioural tasks’ section of the Supplementary Methods.

We define regression-to-the-median (R2M) on each trial, n, as:.

Recent findings suggest that where tn is the movement time on trial n and Tn is the vector of local movement times in consideration. We say ‘in consideration’ because we cannot simply use all movement times in the session due to slow, non-stationarity in the timing distribution across the session, which might arise from processes other than learning (such as satiation/fatigue) and which necessitates a more local calculation of median(Tn) to isolate local non-stationarity arising from trial-by-trial updates. Thus, the median(Tn) is an uncertain quantity. To address this, we calculated median(Tn) using three complementary methods (detailed derivation and validation of these analyses are provided in the ‘Regression-to-the-median analyses’ section of the Supplementary Methods). The results reported were robust to the method used to estimate median(Tn).

R2Mn for each method was then compared to the true Δtn on each trial, defined as in the rest of the paper (Δtn = tn + 1 − tn; where late-shifting is positive by convention). Owing to the high level of trial-by-trial variability, we resolved Δt in excess of R2M as a significant difference between the distributions of R2Mn versus Δtn across all trials (R2M and ΔT), calculated by Wilcoxon rank-sum test. The median of each distribution was then used to calculate ΔT in excess of chance (Fig. 1g) defined as:.

In a recent development, photometry datasets were collected from all recording sites/modalities in the original +juice task. Consequently, GLM/LME-modelling and cross-over analyses were performed for all datasets. Optogenetic and task manipulations (Figs. 3–5) were all collected from the VLS rdLight1 cohort.

Fibre optics were illuminated with 475 nm blue LED light (Plexon, TX or Doric Lenses Integrated Photometry Cube) (SNc/VTA, 50μW; DLS, 35μW; VLS, 30 µW) measured at the patch cable tip with a light-power meter (Thorlabs). Green fluorescence was collected using a custom dichroic mirror (Doric Lenses) and detected with a Newport 1401 Photodiode (Newport) or integrated Doric cube. For red florescence, 550 nm lime LEDs were used (Plexon or Doric Lenses Integrated Photometry Cube). Fluorescence was allowed to recover for at least 1 day between recording sessions. To avoid optical cross-talk, the optical control channel (such as tdTomato or GFP) was recorded at one of the other implanted sites while GCaMP6f, dLight1.1/1.3/rdLight1 or DA2m were recorded simultaneously only at the other implanted sites.

Sources indicate that raw fluorescence for each session was pre-processed by removing rare singularities (single points >15 s.d. from the mean) by interpolation to obtain F(t). To correct photometry signals for bleaching, ΔF/F was calculated as:.

where F0(t) is the mean fluorescence during the 5 s preceding the current trial, as well as 5 trials before the current trial and the 5 trials after the current trial (as we characterized and validated previously)7.

To test the independent contribution of each task-related input to the photometry signal and select the best model, we used nested fitting, in which each dataset was fit multiple times (in permuted nests), with models becoming progressively more complex in subsequent nests.

According to recent reports, the outcome-related photometry signal was taken as the mean ΔF/F signal within the first 500 ms after the first lick (peak or median dF/F produced similar results). All dj design matrix predictors were 0,1 normalized.

The GLM for each nest took the form:.

where Y is the 1 × N vector of the change in the movement time between the current trial, n, and the next trial, n + 1 (Δt(n + 1) − n), where N is the total number of trials in the session; X(j) is the d × N design matrix for nest j, where the rows correspond to the dj predictors for nest j and the columns correspond to each of the N trials of Y; and Θ is the d × 1 vector of fit weights. Owing to day-to-day/mouse-to-mouse variation (ascribable to many possible sources, for example, different neural subpopulations, expression levels, behavioural states), each session was fit separately. To guard against a trivial relationship between the trial outcome and DA signal, separate models were fit for early or rewarded trials.

Model selection was performed by leave-one-out cross-validation on nested models from each session and dataset. The most predictive model was identified as the model with the lowest cross-validated MSE for each session (further details on model development and selection are provided in the ‘GLM’ section of the Supplementary Methods).

Details on the residual GLM (Extended Data Fig. 4a) are provided in the ‘Residual GLM’ section of the Supplementary Methods.

Details on the shuffled models (Extended Data Fig. 4a–c) are provided in the ‘Shuffled GLM’ section of the Supplementary Methods.

Industry observers note that LME model. As a complementary approach to the GLM modelling of Δt, we fit a LME model of the form:.

In a recent development, where \(\Delta {T}_{m,s,n}={T}_{m,s,(n+1)}-{T}_{m,s,n}\) is the upgrade to timing after trial n for each m mouse, s session and trials n = 1, …, N − 1 in each session; the notations (r) and (f) denote random and fixed effects, respectively; \({{\bf{X}}}_{m,s,n}^{(f)}\) is a row vector of covariates, and \({{\boldsymbol{\beta }}}^{(f)}\) denotes a column vector of fixed effects. Crossed random intercepts for subject and session were included to account for repeated measures. All fixed effect predictors were 0–1 normalized to allow for directly comparable coefficient values across the full range of each predictor.

It has been revealed that the LME was fit using MATLAB’s fitlme function, specified in their notation as Δt ~ X + (1|subject) + (1|session). If the design matrix was rank deficient, redundant predictors were identified by QR decomposition with column pivoting and removed before fitting. Model selection proceeded by fitting a nested sequence of models of increasing complexity; the most predictive model (best model) was selected by leave-one-subject-out cross-validation (LOSO-CV), whereby each mouse was held out in turn and predictions were generated from a model fit on the data of the remaining mice. Nesting was displayed in two sequences to highlight different forms of the model: the first sequence assessed for DA effects versus trial-outcome and R2M predictors. The second sequence included all predictors. Model selection was based on the model with the lowest predictive marginal MSE out of both sequences. Both the marginal predictive R2 (fixed effects only, reflecting population-level generalization) and conditional predictive R2 (variation explained by both fixed + random effects) were computed (and verified to be approximately equal, as expected for LOSO-CV); the model with the highest marginal predictive R2 consistently had the lowest predictive marginal MSE. These nested models were fit both for single-trial data and pooled-trial data, whereby each session’s trials were pooled into ten evenly sized bins based on the DA signal and all predictors within the bin were averaged.

Additional details on model design are provided in the ‘LME’ section of the Supplementary Methods.

Details on the bleaching analyses are provided in the ‘Bleaching analyses’ section of the Supplementary Methods.

According to recent reports, three cohorts of mice were tested: activation (ChR2, 4 mice), inhibition (stGtACR2, 4 mice; or JAWS, 1 mouse) and no-opsin (no SNc injection, 4 mice). All mice co-expressed rdLight1 at the VLS for co-monitoring of stimulation effects on DA release. All stimulations were delivered through fibre optic cannulae implanted over the SNc.

Sources indicate that we selected ChR2 (blue-activated opsin)/rdLight1 (green-excited fluorophore) as our DA co-monitoring strategy because we had previously observed problems with off-target excitation of red light activated opsins (such as ChrimsonR) during prolonged co-recording of dLight1.1 (a blue-light-excited fluorophore) in DLS (red opsins are also activated by blue light, albeit with lower efficiency, which becomes significant during hours-long time courses of photometry illumination in our behavioural sessions)7. This off-target excitation would have created a confound, because we had previously shown that DAN activation limited to the self-timing interval increases the probability of early first licks7. By contrast, ChR2 is not appreciably activated by green light (used for rdLight1 excitation), and was therefore a cleaner preparation. One challenge of blue stimulation/green-excited photometry is that the stimulation light causes a DC-offset artifact in the red photometry channel while the stimulation LED is turned on. To avoid cross-talk between the stimulation LED and the photometry recording, two complimentary correction methods were used, with similar results: (1) the brief stimulation up-times were omitted from the photometry signal (missing points filled by interpolation); or (2) the signal was decontaminated by measuring the instantaneous increase in the rdLight1 signal at the onset of each pulse of blue light, which was subtracted from the voltage trace during each pulse. Both corrections were taken before dF/F correction and yielded similar photometry signals; however, the second method had the advantage of compatibility with continuous illuminations used during stGtACR2 inhibition experiments (see below).

Stimulation parameters were initially calibrated outside the context of the task. Mice sat on the typical behavioural platform and received 10 unexpected juice rewards (approximately 4 µl each), spaced at least 15 s apart. A grid screen of stimulation parameters and light powers identified conditions that best recapitulated both the amplitude and width of the typical reward-related transient. Mice received ten stimulations with each stimulation protocol, and DA release in the VLS was monitored throughout the calibration procedure with rdLight1. The light intensity and pulse width were varied until the resulting rdLight transient matched the amplitude and width typically seen with unexpected juice rewards.

Final parameters used in activation experiments were as follows: optogenetic stimulation was delivered bilaterally through blunt fibre optics at the SNc (5 mW 465 nm LED, 10 Hz, 250 ms, 35% duty cycle). One ChR2 mouse had a partial response to 5 mW blue light and therefore received 10 mW blue light, with a larger but still partial effect (mouse X4-3-1M). One mouse from the pilot study (X4-1-1M) had different parameters for its first four sessions (10 Hz, 500 ms, 20% duty cycle), which produced slightly wider DA transients but behavioural effects consistent with the optimized parameters.

Details on inhibition experiments are provided in the ‘Stimulation parameter calibration: inhibition’ section of the Supplementary Methods.

Initial power simulations indicated that approximately 5,000 trials (10 × 500 trial sessions) would be necessary to achieve 80% power to detect a 20% change in first-lick time. Thus, at least 10 sessions of stimulation (around 500 trials each) were collected from eachmouse. Three complementary analyses examined single-trial stimulation effects (Extended Data Fig. 6b). (1) deldel: the difference in the timing update between stimulated (del1) versus unstimulated trials (del2): \(\Delta ({\Delta t}_{(n+1)-n}{)}_{\text{stim}-\text{unstim}}\,=\) \({\Delta t}_{(n+1)-n|{\text{trial}}_{n}\text{stimulated}}-{\Delta t}_{(n+1)-n|{\text{trial}}_{n}\text{unstimulated}}\). (2) dAUC: the difference in the area under the first-lick empirical continuous distribution function (eCDF) curve of the next trial (n + 1) timing distribution for stimulated versus unstimulated trials (as described previously7). (3) cdf-rank: the percentage of points in the n+1th trial eCDF after stimulated trials that were less than matching points in the n+1th trial eCDF after unstimulated trials. eCDFs were interpolated such that each point was matched between the stimulated and unstimulated curves.

Further details are provided in the ‘One-shot stimulation analysis’ section of the Supplementary Methods.

It has been revealed that in a separate set of sessions, stimulation was delivered in blocks of trials that were at least 100 trials long (no-stim blocks: no stimulation; stim blocks: stimulation triggered on 100% of correct first licks). Light powers were varied between sessions to examine different optogenetic effect sizes (0–10 mW, where 0 mW and no-opsin mice were used as controls). The magnitude of stimulation effects on behaviour and DA was quantified as the ratio (stim block:no-stim block) of the median of the timing distribution in each block (optogenetic timing effect) and the mean amplitude of the rewarded DA transient in each block (rewDA; optogenetic DA effect; further details are provided in the ‘Dose–response experiments’ section of the Supplementary Methods).

It has been revealed that dLight1.1 fibre photometry recordings were taken from the pDMSt during the cued-reaching task as previously described66. z-normalized ΔF/F was calculated over a 30 s running baseline window. Reaches were determined from the video, as described in ref. 66. The metric of DA for rewarded trials was encoded as the single-trial maximum signal within a 12 s window starting 1.5 s before the reach, minus the average baseline signal over the 1.5 s interval preceding the reach. As miss trials, defined as a reach when the pellet was omitted, were not associated with transient DA increases, the metric of DA on miss trials was designated to capture sustained DA signals. The metric of DA on miss trials was the mean signal 0.95 to 2.7 s after the cued reach (these means were not baseline subtracted). Δt-reach was defined as the reaction time on trial n + 1 minus the reaction time on trial n. A minimum ITI of 18 s was enforced to ensure a several second delay between cessation of food pellet chewing and the next trial-start. Ongoing body movements/optical artifacts were controlled for with a movement predictor, computed as a robust z-score of the absolute derivative of video pixel intensity within the video zone overlapping the position of the paws before the start of a reach. GLMs of the form Δt-reach ~ DA + movement + b0 were fit on 0–1-normalized predictors. Single-session models were fit on all sessions with over 20 trials of each category of trial. For regression models that pooled trials among sessions, regressions were fit on 0–1-normalized predictors normalized within each session.

All animal protocols were approved by the Harvard Institutional Animal Care and Use Committee and MIT Committee on Animal Care (Harvard IACUC protocol 1343, Animal Welfare Assurance number A3431-01; MIT CAC protocol 2306000543). All work was performed in accordance with the NIH Guide for the Care and Use of Laboratory Animals.

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.

In a recent development, this study used both publicly available datasets that we previously released76 (Zenodo; https://doi.org/10.5281/zenodo.4062748), as well as original datasets77 (publicly available on the DANDI Archive (RRID: SCR_017571) at https://dandiarchive.org/dandiset/002006). GLM modelling used latest data as well as reanalysed data from previous studies7,66. All behavioural manipulations (Figs. 3–5) were new data collected to test hypotheses generated from the GLM modelling in Fig. 2. Source data are provided with this paper.

All custom behavioural software is available from GitHub (https://github.com/harvardschoolofmouse/HSOMbehaviorSuite). Custom analysis tools are available with sample datasets at GitHub (https://github.com/harvardschoolofmouse/timing-task-analysis).

According to recent reports, schultz, W., Dayan, P. & Montague, P. R. A neural substrate of prediction and reward. Science 275, 1593–1599 https://doi.org/10.1126/science.275.5306.1593 (1997).

Article  CAS  PubMed  Google Scholar.

Industry observers note that schultz, W., Apicella, P. & Ljungberg, T. Responses of monkey dopamine neurons to reward and conditioned stimuli during successive steps of learning a delayed response task. J. Neurosci. 13, 900–913 https://doi.org/10.1523/JNEUROSCI.13-03-00900.1993 (1993).

Article  CAS  PubMed  PubMed Central  Google Scholar.

In a recent development, coddington, L. T., Lindo, S. E. & Dudman, J. T. Mesolimbic dopamine adapts the rate of learning from action. Nature 614, 294–302 https://doi.org/10.1038/s41586-022-05614-z (2023).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Mohebi, A. et al. Dissociable dopamine dynamics for learning and motivation. Nature 570, 65–70 https://doi.org/10.1038/s41586-019-1235-y (2019).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Hamid, A. A. et al. Mesolimbic dopamine signals the value of work. Nat. Neurosci. 19, 117–126 https://doi.org/10.1038/nn.4173 (2016).

Article  CAS  PubMed  Google Scholar.

In a recent development, niv, Y., Daw, N. D., Joel, D. & Dayan, P. Tonic dopamine: opportunity costs and the control of response vigor. Psychopharmacology 191, 507–520 https://doi.org/10.1007/s00213-006-0502-4 (2007).

Article  CAS  PubMed  Google Scholar.

Hamilos., A. E. et al. Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements. eLife 10, e62583 https://doi.org/10.7554/eLife.62583 (2021).

Albin, R. L., Young, A. B. & Penney, J. B. The functional anatomy of basal ganglia disorders. Trends Neurosci. 12, 366–375 https://doi.org/10.1016/0166-2236(89)90074-x (1989).

Article  CAS  PubMed  Google Scholar.

Recent findings suggest that olds, J. & Milner, P. Positive reinforcement produced by electrical stimulation of septal area and other regions of rat brain. J. Comp. Physiol. Psychol. 47, 419–427 https://doi.org/10.1037/h0058775 (1954).

Article  CAS  PubMed  Google Scholar.

Steinberg, E. E. et al. A causal link between prediction errors, dopamine neurons and learning. Nat. Neurosci. 16, 966–973 https://doi.org/10.1038/nn.3413 (2013).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Industry observers note that markowitz, J. E. et al. Spontaneous behaviour is structured by reinforcement without explicit reward. Nature 614, 108–117 https://doi.org/10.1038/s41586-022-05611-2 (2023).

Article  CAS  PubMed  PubMed Central  Google Scholar.

In a recent development, xiao, L. et al. A basal ganglia circuit sufficient to guide birdsong learning. Neuron 98, 208–221 https://doi.org/10.1016/j.neuron.2018.02.020 (2018).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that adamantidis, A. R. et al. Optogenetic interrogation of dopaminergic modulation of the multiple phases of reward-seeking behavior. J. Neurosci. 31, 10829–10835 https://doi.org/10.1523/JNEUROSCI.2246-11.2011 (2011).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Kim, K. M. et al. Optogenetic mimicry of the transient activation of dopamine neurons by natural reward is sufficient for operant reinforcement. PLoS ONE 7, e33612 https://doi.org/10.1371/journal.pone.0033612 (2012).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Industry observers note that tsai, H. C. et al. Phasic firing in dopaminergic neurons is sufficient for behavioral conditioning. Science 324, 1080–1084 https://doi.org/10.1126/science.1168878 (2009).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that jeong, H. et al. Mesolimbic dopamine release conveys causal associations. Science 378, eabq6740 https://doi.org/10.1126/science.abq6740 (2022).

Article  CAS  PubMed  PubMed Central  Google Scholar.

It has been revealed that starkweather, C. K., Babayan, B. M., Uchida, N. & Gershman, S. J. Dopamine reward prediction errors reflect hidden-state inference across time. Nat. Neurosci. 20, 581–589 https://doi.org/10.1038/nn.4520 (2017).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Mikhael, J. G., Kim, H. R., Uchida, N. & Gershman, S. J. The role of state uncertainty in the dynamics of dopamine. Curr. Biol. 32, 1077–1087.e1079 https://doi.org/10.1016/j.cub.2022.01.025 (2022).

Kim, H. R. et al. A unified framework for dopamine signals across timescales. Cell 183, 1600–1616.e1625 https://doi.org/10.1016/j.cell.2020.11.013 (2020).

Recent findings suggest that qian, L. et al. Prospective contingency explains behavior and dopamine signals during associative learning. Nat. Neurosci. https://doi.org/10.1038/s41593-025-01915-4 (2025).

In a recent development, gadagkar, V. et al. Dopamine neurons encode performance error in singing birds. Science 354, 1278–1282 https://doi.org/10.1126/science.aah6837 (2016).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Recent findings suggest that kasdin, J. et al. Natural behaviour is learned through dopamine-mediated reinforcement. Nature https://doi.org/10.1038/s41586-025-08729-1 (2025).

Sources indicate that da Silva, J. A., Tecuapetla, F., Paixão, V. & Costa, R. M. Dopamine neuron activity before action initiation gates and invigorates future movements. Nature 554, 244–248 https://doi.org/10.1038/nature25457 (2018).

Article  CAS  PubMed  Google Scholar.

Howe, M. W. & Dombeck, D. A. Rapid signalling in distinct dopaminergic axons during locomotion and reward. Nature 535, 505–510 https://doi.org/10.1038/nature18942 (2016).

Article  CAS  PubMed  PubMed Central  Google Scholar.

According to recent reports, ko, D. & Wanat, M. J. Phasic dopamine transmission reflects initiation vigor and exerted effort in an action- and region-specific manner. J. Neurosci. 36, 2202–2211 https://doi.org/10.1523/JNEUROSCI.1279-15.2016 (2016).

Article  CAS  PubMed  PubMed Central  Google Scholar.

It has been revealed that bakhurin, K. et al. Dopamine dynamics during stimulus-reward learning in mice can be explained by performance rather than learning. Nat. Commun. 16, 9081 https://doi.org/10.1038/s41467-025-64132-4 (2025).

Industry observers note that cai, X. et al. Dopamine dynamics are dispensable for movement but promote reward responses. Nature 635, 406–414 https://doi.org/10.1038/s41586-024-08038-z (2024).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Tang, J. C. Y. et al. Dynamic behaviour restructuring mediates dopamine-dependent credit assignment. Nature 626, 583–592 https://doi.org/10.1038/s41586-023-06941-5 (2024).

Article  CAS  PubMed  Google Scholar.

Sources indicate that cepeda, C., Murphy, K. P., Parent, M. & Levine, M. S. The role of dopamine in Huntington’s disease. Prog. Brain Res. 211, 235–254 https://doi.org/10.1016/B978-0-444-63425-2.00010-6 (2014).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Niv, Y. Neuroscience: dopamine ramps up. Nature 500, 533–535 https://doi.org/10.1038/500533a (2013).

Article  CAS  PubMed  Google Scholar.

According to recent reports, salamone, J. D. & Correa, M. The neurobiology of activational aspects of motivation: exertion of effort, effort-based decision making, and the role of dopamine. Annu. Rev. Psychol. 75, 1–32 https://doi.org/10.1146/annurev-psych-020223-012208 (2024).

Article  PubMed  Google Scholar.

In a recent development, coddington, L. T. & Dudman, J. T. The timing of action determines reward prediction signals in identified midbrain dopamine neurons. Nat. Neurosci. 21, 1563–1573 https://doi.org/10.1038/s41593-018-0245-7 (2018).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Parker, N. F. et al. Reward and choice encoding in terminals of midbrain dopamine neurons depends on striatal target. Nat. Neurosci. 19, 845–854 https://doi.org/10.1038/nn.4287 (2016).

Article  CAS  PubMed  PubMed Central  Google Scholar.

It has been revealed that merchant, H., Harrington, D. L. & Meck, W. H. Neural basis of the perception and estimation of time. Annu. Rev. Neurosci. 36, 313–336 https://doi.org/10.1146/annurev-neuro-062012-170349 (2013).

Article  CAS  PubMed  Google Scholar.

According to recent reports, malapani, C. et al. Coupled temporal memories in Parkinson’s disease: a dopamine-related dysfunction. J. Cogn. Neurosci. 10, 316–331 https://doi.org/10.1162/089892998562762 (1998).

Article  CAS  PubMed  Google Scholar.

Meck, W. H. Affinity for the dopamine D2 receptor predicts neuroleptic potency in decreasing the speed of an internal clock. Pharmacol. Biochem. Behav. 25, 1185–1189 https://doi.org/10.1016/0091-3057(86)90109-7 (1986).

Article  CAS  PubMed  Google Scholar.

Meck, W. H. Neuroanatomical localization of an internal clock: a functional link between mesolimbic, nigrostriatal, and mesocortical dopaminergic systems. Brain Res. 1109, 93–107 https://doi.org/10.1016/j.brainres.2006.06.031 (2006).

Article  CAS  PubMed  Google Scholar.

Dews, P. B. & Morse, W. H. Some observations on an operant in human subjects and its modification by dextro amphetamine. J. Exp. Anal. Behav. 1, 359–364 https://doi.org/10.1901/jeab.1958.1-359 (1958).

Article  CAS  PubMed  PubMed Central  Google Scholar.

According to recent reports, schuster, C. R. & Zimmerman, J. Timing behavior during prolonged treatment with dl-amphetamine. J. Exp. Anal. Behav. 4, 327–330 https://doi.org/10.1901/jeab.1961.4-327 (1961).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Industry observers note that gallistel, C. R. & Gibbon, J. Time, rate, and conditioning. Psychol. Rev. 107, 289–344 https://doi.org/10.1037/0033-295x.107.2.289 (2000).

Article  CAS  PubMed  Google Scholar.

Industry observers note that lee, I. H. & Assad, J. A. Putaminal activity for simple reactions or self-timed movements. J. Neurophysiol. 89, 2528–2537 https://doi.org/10.1152/jn.01055.2002 (2003).

Article  PubMed  Google Scholar.

In a recent development, kirshenbaum, A. P., Brown, S. J., Hughes, D. M. & Doughty, A. H. Differential-reinforcement-of-low-rate-schedule performance and nicotine administration: a systematic investigation of dose, dose-regimen, and schedule requirement. Behav. Pharmacol. 19, 683–697 https://doi.org/10.1097/FBP.0b013e328315ecbb (2008).

Article  CAS  PubMed  PubMed Central  Google Scholar.

According to recent reports, eckard, M. L. & Kyonka, E. G. E. Differential reinforcement of low rates differentially decreased timing precision. Behav. Processes 151, 111–118 https://doi.org/10.1016/j.beproc.2018.02.022 (2018).

Article  PubMed  PubMed Central  Google Scholar.

Sources indicate that yang, Z., Inagaki, M., Gerfen, C. R., Fontolan, L. & Inagaki, H. K. Integrator dynamics in the cortico-basal ganglia loop for flexible motor timing. Nature 649, 1244–1253 https://doi.org/10.1038/s41586-025-09778-2 (2026).

Recent findings suggest that helassa, N., Podor, B., Fine, A. & Torok, K. Design and mechanistic insight into ultrafast calcium indicators for monitoring intracellular calcium dynamics. Sci. Rep. 6, 38276 https://doi.org/10.1038/srep38276 (2016).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Recent findings suggest that chen, Z. et al. Direct and indirect pathway neurons in ventrolateral striatum differentially regulate licking movement and nigral responses. Cell Rep. 37, 109847 https://doi.org/10.1016/j.celrep.2021.109847 (2021).

Article  CAS  PubMed  Google Scholar.

Lee, J., Wang, W. & Sabatini, B. L. Anatomically segregated basal ganglia pathways allow parallel behavioral modulation. Nat. Neurosci. 23, 1388–1398 https://doi.org/10.1038/s41593-020-00712-5 (2020).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Liu, H. et al. Subsecond dopamine fluctuations do not specify the vigor of ongoing actions. Nat. Neurosci. 28, 2432–2438 https://doi.org/10.1038/s41593-025-02102-1 (2025).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that qi, J., Schreiner, D. C., Martinez, M., Pearson, J. & Mooney, R. Dual neuromodulatory dynamics underlie birdsong learning. Nature 641, 690–698 https://doi.org/10.1038/s41586-025-08694-9 (2025).

Article  CAS  PubMed  PubMed Central  Google Scholar.

It has been revealed that taniguchi, J. et al. Comment on 'Accumbens cholinergic interneurons dynamically promote dopamine release and enable motivation'. eLife 13, e95694 https://doi.org/10.7554/eLife.95694 (2024).

Berke, J. D. What does dopamine mean? Nat. Neurosci. 21, 787–793 https://doi.org/10.1038/s41593-018-0152-y (2018).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Gardner, M. P. H., Schoenbaum, G. & Gershman, S. J. Rethinking dopamine as generalized prediction error. Proc. Biol. Sci. 285, 20181645 https://doi.org/10.1098/rspb.2018.1645 (2018).

Beron, C. C., Neufeld, S. Q., Linderman, S. W. & Sabatini, B. L. Mice exhibit stochastic and efficient action switching during probabilistic decision making. Proc. Natl Acad. Sci. USA 119, e2113961119 https://doi.org/10.1073/pnas.2113961119 (2022).

Article  PubMed  PubMed Central  Google Scholar.

Sources indicate that long, C. et al. Constraints on the subsecond modulation of striatal dynamics by physiological dopamine signaling. Nat. Neurosci. 27, 1977–1986 https://doi.org/10.1038/s41593-024-01699-z (2024).

Remington, E. D., Narain, D., Hosseini, E. A. & Jazayeri, M. Flexible sensorimotor computations through rapid reconfiguration of cortical dynamics. Neuron 98, 1005–1019 https://doi.org/10.1016/j.neuron.2018.05.020 (2018).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sohn, H., Narain, D., Meirhaeghe, N. & Jazayeri, M. Bayesian computation through cortical latent dynamics. Neuron 103, 934–947 https://doi.org/10.1016/j.neuron.2019.06.012 (2019).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Maimon, G. & Assad, J. A. A cognitive signal for the proactive timing of action in macaque LIP. Nat. Neurosci. 9, 948–955 https://doi.org/10.1038/nn1716 (2006).

Article  CAS  PubMed  Google Scholar.

Industry observers note that lee, K. et al. Temporally restricted dopaminergic control of reward-conditioned movements. Nat. Neurosci. 23, 209–216 https://doi.org/10.1038/s41593-019-0567-0 (2020).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Yagishita, S. et al. A critical time window for dopamine actions on the structural plasticity of dendritic spines. Science 345, 1616–1620 https://doi.org/10.1126/science.1255514 (2014).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Industry observers note that iino, Y. et al. Dopamine D2 receptors in discrimination learning and spine enlargement. Nature 579, 555–560 https://doi.org/10.1038/s41586-020-2115-1 (2020).

Article  CAS  PubMed  Google Scholar.

In a recent development, salinas-Hernandez, X. I., Zafiri, D., Sigurdsson, T. & Duvarci, S. Functional architecture of dopamine neurons driving fear extinction learning. Neuron 111, 3854–3870 https://doi.org/10.1016/j.neuron.2023.08.025 (2023).

Article  CAS  PubMed  Google Scholar.

In a recent development, salinas-Hernandez, X. I. et al. Dopamine neurons drive fear extinction learning by signaling the omission of expected aversive outcomes. eLife 7, e38818 https://doi.org/10.7554/eLife.38818 (2018).

Industry observers note that starkweather, C. K. & Uchida, N. Dopamine signals as temporal difference errors: recent advances. Curr. Opin. Neurobiol. 67, 95–105 https://doi.org/10.1016/j.conb.2020.08.014 (2021).

Article  CAS  PubMed  Google Scholar.

Sutton, R. S. & Barto, A. G. Reinforcement Learning: an Introduction 2nd edn, 1–526 (MIT Press, 2018).

According to recent reports, costacurta, J. C., Bhandarkar, S., Zoltowski, D. M. & Linderman, S. W. Structured flexibility in recurrent neural networks via neuromodulation. Preprint at bioRxiv https://doi.org/10.1101/2024.07.26.605315 (2024).

Industry observers note that reinhold, K. et al. Striatum supports fast learning but not memory recall. Nature 643, 458–467 https://doi.org/10.1038/s41586-025-08969-1 (2025).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that mohebi, A., Wei, W., Pelattini, L., Kim, K. & Berke, J. D. Dopamine transients follow a striatal gradient of reward time horizons. Nat. Neurosci. 27, 737–746 https://doi.org/10.1038/s41593-023-01566-3 (2024).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that kato, A. & Morita, K. Striatal gradient in value-decay explains regional differences in dopamine patterns and reinforcement learning computations. J. Neurosci. 45, e0170252025 https://doi.org/10.1523/JNEUROSCI.0170-25.2025 (2025).

According to recent reports, dabney, W. et al. A distributional code for value in dopamine-based reinforcement learning. Nature 577, 671–675 https://doi.org/10.1038/s41586-019-1924-6 (2020).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Industry observers note that mcClure, S. M., Daw, N. D. & Montague, P. R. A computational substrate for incentive salience. Trends Neurosci. 26, 423–428 https://doi.org/10.1016/s0166-2236(03)00177-2 (2003).

Article  CAS  PubMed  Google Scholar.

Industry observers note that tritsch, N. X. & Sabatini, B. L. Dopaminergic modulation of synaptic transmission in cortex and striatum. Neuron 76, 33–50 https://doi.org/10.1016/j.neuron.2012.09.023 (2012).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Sources indicate that lahiri, A. K. & Bevan, M. D. Dopaminergic transmission rapidly and persistently enhances excitability of D1 receptor-expressing striatal projection neurons. Neuron 106, 277–290 https://doi.org/10.1016/j.neuron.2020.01.028 (2020).

Article  CAS  PubMed  PubMed Central  Google Scholar.

Lee, S. J. et al. Cell-type-specific asynchronous modulation of PKA by dopamine in learning. Nature 590, 451–456 https://doi.org/10.1038/s41586-020-03050-5 (2021).

Article  CAS  PubMed  Google Scholar.

Mello, G. B., Soares, S. & Paton, J. J. A scalable population code for time in the striatum. Curr. Biol. 25, 1113–1122 https://doi.org/10.1016/j.cub.2015.02.036 (2015).

Article  CAS  PubMed  Google Scholar.

Backman, C. M. et al. Characterization of a mouse strain expressing Cre recombinase from the 3’ untranslated region of the dopamine transporter locus. Genesis 44, 383–390 https://doi.org/10.1002/dvg.20228 (2006).

Article  CAS  PubMed  Google Scholar.

Hamilos, A. E., Spedicato, G., Hong, Y. & Assad, J. A. Original single session datasets from “Slowly evolving dopaminergic activity modulates the moment-to-moment probability of reward-related self-timed movements”. Zenodo https://doi.org/10.5281/zenodo.4062749 (2020).

Sources indicate that hamilos, A. E. et al. Outcome-related dopamine transients calibrate movement timing via next-trial updates to behavioral vigor. DANDI Arch. https://dandiarchive.org/dandiset/002006 (2026).

We thank L. Hou, E. Sayed, J. G. Mikhael and S. Hrvatin for discussions; M. Yang, S. L. Jacobs-Skolik, N. Hunter, V. Berezovskii, J. LeBlanc, T. LaFratta, O. Mazor and P. Gorelik for technical assistance; J. Correa Menendez, E. N. Brown and R. Jia for guidance with LME modelling; A. Nutter-Upham for preparing our data repository; and C. Harvey, S. R. Datta, M. Andermann, A. Mohebi and W. Regehr for reagents.

A.E.H. discloses support for the research and publication of this work from the Valhalla Foundation; the Centurion Foundation; and the Whitehead Fellows Program. J.A.A and B.L.S. disclose support for the research of this work from the National Institutes of Health (NIH): the National Institute of Neurological Disorders and Stroke (grant U19NS113201) and the National Eye Institute (grant n EY-12196). K.R. discloses support for the research of this work from the Helen Hay Whitney Foundation postdoctoral fellowship. The other authors declare no relevant funding. The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication. 25% of the total project costs were financed with federal funds, in the amount of US$137,500. The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH.

Whitehead Institute for Biomedical Research, Cambridge, Massachusetts, MA, USA.

Industry observers note that allison E. Hamilos, Qinxin Ding, Pichamon Assawaphadungsit, Zeynep Ozcan & Elias Norri.

Department of Neurobiology, Harvard Medical School, Boston, MA, USA.

Allison E. Hamilos, Isabella C. Wijsman, Pichamon Assawaphadungsit, Kimberly Reinhold, Bernardo L. Sabatini & John A. Assad.

Howard Hughes Medical Institute, Boston, MA, USA.

In a recent development, kimberly Reinhold & Bernardo L. Sabatini.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Search author on:PubMed Google Scholar.

Recent findings suggest that A.E.H. and J.A.A. conceived the study, designed the experiments, acquired funding, supervised the project and wrote and edited the manuscript. A.E.H. performed experiments (Figs. 1–5), wrote the code for analysis, analysed the data and wrote the first draft. I.C.W. performed experiments in Figs. 3–5. P.A. performed experiments in Fig. 3. Q.D. and Z.O. performed the experiments in Fig. 5. I.C.W., Q.D., Z.O. and P.A. assisted with experimental design, processed data and assisted with analysis. E.N. performed histology and contributed to long ITI experiments and analyses. K.R. and B.L.S. contributed data and analyses from the cued reach task. All of the authors reviewed the final manuscript.

Sources indicate that correspondence to Allison E. Hamilos.

Sources indicate that J.A.A. and B.L.S. are co-founders of OptogeniX, which produces the tapered optical fibres used in some experiments. The other authors declare no competing interests.

Sources indicate that nature thanks Talia Lerner, Genela Morris and Pavel Rueda-Orozco for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

a, Timing distributions from monkeys, rats, and mice from other studies show early-bias relative to the reward window. Right-most panel is from our previous study using the self-timed movement task. Figure panels/data were adapted and used with permission. The second panel was adapted from ref. 42 with permission from Wolters Kluwer Health.The third panel was adapted from ref. 43 with permission from Elsevier. The fourth panel was adapted from ref. 7 under a CC BY 4.0 licence. b, Timing distributions across all mice and photometry sessions (including day 5 of training onward), all trials in each session included. c, Histograms show the distribution of first-licks after the cue on each day of training with the self-timed movement task (one representative mouse; additional examples of training progress shown in figure 1 and supplement of ref. 7). This mouse was trained for 33 sessions with 500 trials/session, with no training days on weekends. All mice underwent three stages of training (“Beginner,” “Intermediate” and “Expert” levels), each of which is described in detail in the Methods. Briefly, the Beginner Task encouraged participation and learning in two ways: 1) with a permissive 0.5 s reaction window after the cue, such that if the mouse licked immediately after the cue, it was allowed to respond again on the same trial, and 2) an automatic “Pavlovian” juice reward at 5 s if the mouse had not already licked between 0.5-5 s after the cue. The Intermediate Task was the same as the Beginner Task, but there were no longer automatic Pavlovian rewards delivered at 5 s. The Expert version was the “full” version of the task, in which there was no longer a permissive reaction window. All data in the paper (except for this panel) are shown from animals performing the Expert version of the task. The mouse shown here was transitioned from the Beginner Task (blue traces) to the Intermediate Task (purple traces) on day 4 of training. Transition to the Expert Task (red traces) occurred on day 7. Y-range of histograms was maximized to clearly show the timing distribution peak; an initial reaction peak (<0.5 s) was truncated in some plots and indicated by open trace. First-lick timing distributions became stable by day 20 of training, and early timing bias persisted throughout training for all animals when juice rewards were used. d, Mean first-lick time for each day of training. Early timing bias (mean first-lick time between 2-3 s) is firmly established by day 10 and persists throughout training. e, Although the mode of these distributions remained early-shifted throughout training, the standard deviation of first-lick time decreased as the timing distribution became more stereotyped over the course of training. f, Proportion of trial outcomes across training on the Expert Task: median taken across data from the same mice as Fig. 1b (excluding “false-start” reactions [first-lick < 0.5 s]).

a, Lick-triggered averages showing outcome-related DA signals across all recording sites (mean ± s.d.). b, Recording locations for fibre photometry and example epifluorescence from a coronal brain section of a dLight1.1 cohort mouse, which indicates the blunt fibre tip and co-expression of the DA indicator and control red fluorophore in the DLS. Fibre tip placements shown for all animals in panel a (GCaMP6f: 4 SNc/DLS mice, 3 VTA mice [same cohort as SNc/DLS]; DA indicators: 4 DA2m mice, 5 dLight1.1 mice, 8 rdLight1 mice). c, Pearson’s r correlation between outcome-related DA transient amplitude and baseline DA signals. DA transient amplitude was measured as the mean DA signal within the first 500 ms after the first-lick. Baseline DA was taken as the average DA signal over the 3 s interval preceding the lamp-off event. d-e, GLM model fitting: distribution of predictive R2 values across sessions after cross-validation, as in Fig. 2d-e, but broken down here by dataset (“XVAL”, obtained by leave-1-out cross-validation, LOOCV). As expected, overall predictive (LOOCV) R2 is similar but slightly smaller than the fit-R2. Reassuringly, the model’s predictive performance was highly correlated with the S:N of the fluorescent indicator that was used (dLight1.1: 1.2x vs GCaMP6f: 18x). dLight1.1 was an early version of the dLight family of indicators, and its poor S:N was the least representative dataset—for this reason, it was omitted from the composite here (thick black line) and in Fig. 2d,e. d, Pooled-trial models fit with 10 bins of trials. e, Single-trial models. f, Single-trial SNc GCaMP6f models fit for each trial outcome separately. Left: p: DA fit-coefficient (two-sided Wald test). Blue shading: range of fit coefficients obtained by chance (10,000 fits with shuffled trial order). Right: average fit-coefficients; Error bars: 95% CI. g, LME-model coefficients for the most parsimonious (best predictive) pooled-trial model, as selected by leave-one-subject-out cross-validation (4 mice, 20 sessions). Error bars: 95% CI. LME design, model selection, and single-trial models: Extended Data Fig. 3l,m.

Recent findings suggest that a-g, GLM cross-validation and model selection. We applied leave-one-out cross-validation (LOOCV) to nested models of each session’s single-trial dataset, where the predictors varied by nest. a, Nesting strategy—the predictors used in each nested model are shown. Pooled-trial model results shown in b-d, single-trial model results shown in e-g. b/e, Distribution of most predictive models found for each session by LOOCV: the best model for each session always contained the DA signal. The most frequently selected model was Model 1 (DA-alone). c/f, Cross-validated R2 for each nested model. Colours indicate sessions from different animals. Note that all models containing the DA signal (Models 4-7) had a similar cross-validated R2 value, indicating that incorporating movement/optical confounds did not add explanatory power over the DA signal alone. d/g, Cross-validated mean squared error (MSE) for each nested model. Black line: median across sessions; Red circle: minimum median MSE. MSE was consistently higher for all models not containing the DA signal. Consistent with panel b/e, the most predictive model overall was Model 4 (DA-alone). Although the full model (Model 7) performed similarly to DA-alone (Model 4), we showed data from full models to demonstrate DA’s effects in excess of these confounding predictors. h-i: Average GLM coefficients, all signals/recording sites, all sessions, all mice; error bars: 95% CI. Small coloured dots indicate coefficients from individual mice. “Acc:” accelerometer signal (present in some cohorts of animals), “EMG/Acc:” sessions had either EMG or accelerometer present; the signal that was present was used for this predictor. Note that the optical control channel “tdt” in dLight1.1 recordings was RFPturbo, and one rdLight1 mouse (x4-1-1m) used mCherry instead of tdt. j,k: Long ITI task (example session, 1 mouse. For all mice, see panel o). Mice were trained as in the usual task, but with a 60 s ITI (rather than 10 s). j, Timed-movement raster, one session: each dot represents the first-lick time on that trial. Red line: local 50-trial running median of the timing distribution. Right panel is the same data as left but zoomed in. k, GLM fit, as in Extended Data Fig. 2. p: DA fit-coefficient (two-sided Wald test). Right: Error bars: 95% CI of fit coefficients. l-n, LME details for SNc GCaMP6f models (n = 4 mice, 20 sessions; analogous models were also fit for striatal DA indicator signals with similar results). l, LME model design—see Methods. Nesting is displayed here in two sequences to highlight different forms of the model: the first sequence assessed for DA effects vs outcome and r2m predictors. The second sequence included all predictors. Nevertheless, model selection was based on the model with the lowest predictive marginal MSE out of both sequences. m, Summary of pooled-trial model selection by marginal predictive MSE and R². Circles: MSE or R2 for each model. Green circle indicates model with best predictive performance. Error bars indicate 95% CI of predictive R² and MSE values as obtained by bootstrap resampling of the cross-validated residuals. The most predictive models contained outcome-related DA as a significant predictor (both pooled-trial and single-trial models). The most parsimonious cross-validated models specifically excluded several confounds in favour of outcome-related DA, indicating that these confounds do not account for DA’s effects on timing updates. n, Summary of DA coefficients in each nested model (error bars: 95% CI). Every model showed significant negative DA coefficient values with similar magnitudes (p < 0.05). Notably, once Trial n confounds were nested into the model, the DA coefficient stabilized in both the Pooled- and Single-Trial Models, indicating that additional predictors had little effect on DA’s contribution to the model. The best model (as determined by best predictive performance in LOSO-CV) is indicated with green square. o, Distribution of DA coefficients for true models and shuffle models, where sessions were broken into quartiles of trials to reduce non-stationarity (3 mice, 14 sessions). The DA coefficient was significantly greater in magnitude than expected from chance in both the original task and the long ITI task (error bars: 95% CI). Boxplot centre: median, box bounds: 25-75th percentiles, whiskers: furthest point within 1.5*IQR of box edges; points beyond whiskers: outliers. p: 2-sided Wilcoxon rank-sum test.

It has been revealed that a-b, Shuffle models (p: DA fit-coefficient (two-sided Wald test, exact p-values available in Source Data for this figure); error bars: 95% CI of fit coefficients). Panel a: one example session from one mouse; panel b: all sessions from all mice/datasets. The next trial’s movement time was shuffled, and the single-trial GLM (Fig. 2a) was refit on the shuffled data (10,000 shuffled datasets total). The coefficients from the 50th percentile shuffled model (50th percentile shuffled DA coefficient) were used to predict the true data (y-fit shuffle) and calculate R2 (panel a, middle). Y-fit shuffle was subtracted from the true dataset to obtain a residual dataset, and the residual model was derived by refitting the GLM on the residual dataset (panel a, right). Outcome-related DA remained a significant predictor to the residual model, both in single sessions (panel a, right-bottom panel) and across sessions for SNc GCaMP, VLS rdlight1, and DLS DA2m. DLS dlight1.1 DA signals did not remain significant after the shuffle procedure, likely due to relatively poor S:N quality in the dlight1.1 dataset. c, Comparison of true vs shuffled single-trial model DA coefficients fit on quartiles of trials in the session—same mice and sessions as in panel b. To guard against spuriously significant DA coefficients arising from non-stationarity in timing behaviour across the session, true and shuffle models were fit on quartiles of trials in each session (e.g., first quarter of trials in the session, second quarter, etc.). Consistent with the residual models in panel b, the population of true model DA coefficients was significantly larger in magnitude (more negative) than the population of mean shuffled model DA coefficients (except for DLS dlight1.1; 2-sided Wilcoxon rank-sum, p < 0.05). Outcome-related DA is thus predictive of Δt in excess of regression-to-the-median effects (see Methods) and unlikely to be explained by behavioural non-stationarity. Boxplot centre: median, box bounds: 25-75th percentiles, whiskers: furthest point within 1.5*IQR of box edges; points beyond whiskers: outliers.

According to recent reports, a, VLS rdlight1, all ChR2 stimulation sessions (stim on 30% of trials), 10 sessions/mouse. Each row is a different mouse. LED was triggered on 30% of randomly-interleaved first-licks. b, Trial-by-trial peak rewarded DA transient amplitude (“rewDA”) from 1 session. Purple arrow and dashed line indicate the first rewarded (unstimulated) trial, whose amplitude is ~0.065 dF/F—corresponding to the purple bar in the bar plot. Bar plot also shows mean peak rewDA amplitude for each stimulation condition and trial outcome (reward/no reward). Stimulated trials remained below the naturally occurring peak rewDA amplitude throughout the session and on average. c, Same analyses as panel a but for No-Opsin mice. d, Stimulation fibre locations. e, “Dose-response” relationship of stimulation strength to timing change. Left: Experimental design—see Methods. Right: Model fit (43 sessions). The change in the magnitude of rewDA was predictive of the change in timing relative to the no-stim block (DA coefficient: -0.690 s/1x DA). p: Pearson’s r, 2-sided t-test. f, Correlation of the per-session observed photometry effect (GLM coefficient) to the magnitude of the observed optogenetic timing shift (dAUC), all sessions, all mice. p: Pearson’s r, 2-sided t-test. Line: linear regression fit. g-h, Comparison of trial n + 1 first-lick distributions (all trials) from stimulation sessions (blue trace) vs interleaved sham sessions (black trace). Blue shading: early-shift effect of LED; red shading: late-shift effect. Arrow: indicates overall direction of effect. Top bars (blue/red): denotes significant difference between eCDF curves (*p < 0.025, 95% CI, 2-sided 1000x bootstrap-test). “K-S D”: signed Kolmogorov-Smirnov (K-S) distance metric (negative indicates early shift effect, p: 2-sided 2-sample K-S test). “dAUC”: difference in area under eCDF curves, p: 2-sided 10,000x permutation test. i-j: Inhibition. i, Calibration of inhibition light power and parameters outside the context of the task. Mice received 10 unexpected juice deliveries and 10 inhibitions using a ladder of light powers and continuous illumination durations. Inhibition at 5 mW power reliably induced VLS DA dips without rebound-increases at the offset of illumination. This indicates that we achieved robust DAN inhibition in this preparation. j, Inhibition with the same parameters that produced reliable dips outside the context of the task showed paradoxical effects when delivered in the context of the task. At 5 mW power, inhibition only slightly attenuated the VLS DA transient, but failed to block the DA transient on rewarded trials. Concerningly, there were also rebound increases in VLS DA at the offset of inhibition that persisted for several seconds—this was not the intended manipulation. Because this did not occur outside the context of the task, this was not explained by photoswitching artifacts or rebound excitation. We could not identify inhibition parameters that blocked the DA-reward transient or resolved the paradoxical increase in DA after light-offset. For example, increasing the light power to 10 mW produced concerning paradoxical increases in VLS DA during the illumination period and also continued to show paradoxical persistent DA increases after the offset of illumination. The overall effect of inhibition at 5 mW across 5 pilot sessions in this animal was +308 ms, consistent with a bidirectional effect of DA on timing updates. However, given that we could not reliably block the DA-transient in the context of the task, we did not proceed with this experiment and instead tested manipulations that more robustly lowered the DA transient through other means (see Fig. 5).

a, First-lick empirical continuous distribution function (eCDF) on the next trial (n + 1) after stimulated trials (blue trace) vs. after interleaved unstimulated trials (black trace) from the same session. Arrow: direction of effect. Line: eCDF. Line-shading: 95% CI; Blue bar above the plot indicates times where the eCDFs were significantly different (p < 0.025, 2-sided 1,000x bootstrap). 2-sided Kolmogorov-Smirnov distance ChR2: p = 1.0e-4; No-Opsin: p = 0.96. b, Complementary analysis methods, all sessions and mice. n = 4 ChR2 mice; n = 4 No-Opsin mice, 10 sessions/animal. All boxplots—centre: median, box bounds: 25-75th percentiles, whiskers: furthest point within 1.5*IQR of box edges; points beyond whiskers: outliers. Comparisons: stimulated vs unstimulated trials from the same (stimulated) session. Dot colours indicate whether the test statistic was significant at the individual session level (p < 0.05; p: 2-sided 10,000x bootstrap procedure, exact p-values for individual sessions provided in the Source Data for this Figure). See Methods for detailed explanation of how each metric was derived. Between-group (ChR2 vs No-Opsin) comparisons (first two rows) were performed with a 2-sided Wilcoxon rank-sum test comparing the individual session effect metrics (deldel, dAUC or cdf-rank; *p < 0.05). Composites across all mice (bottom row) compared stimulated vs unstimulated trials within each group, pooled among sessions (p: 2-sided 10,000x bootstrap procedure). We also analysed early and rewarded trials separately: Stimulation on early trials produced effects similar in magnitude and significance (ΔΔt: -83 ms, p < 0.001). Stimulation on rewarded trials was also associated with a comparable magnitude of early-shifting (ΔΔt: -57ms, p = 0.30), however based on power calculations (see Methods), which showed this analysis to be highly underpowered, we likely lacked sufficient numbers of trials after rewarded-trial sub-sampling to detect significance. c, Whole session effects: comparison of first-lick eCDFs of all trials from stimulation sessions (blue traces) vs. all trials from interleaved sham sessions (black traces). Area between the curves filled for clarity. Arrow: direction of effect. Line: eCDF. Line-shading: 95% CI; Blue/red bar above plots indicates times where eCDFs were significantly different (p < 0.025, 2-sided 1,000x bootstrap). From left: 2-sided Kolmogorov-Smirnov distance p = 1.7e-29, 1.3e-49, 3.2e-5.

According to recent reports, a, Skew in the timing distribution with respect to the reward window appears similar to asymmetry in outcome-related DA responses. b, Heatmap view of first-lick times over the course of the session, pooled across sessions and mice. The sessions shown were collected from the same mice as in panel j on paired sessions and are shown here for comparison. “Q1-4:” quartiles of trials in session, with Q1 representing the beginning of the session (i.e., trials 1-125). c, Timing set-points from 29 “extended” sessions where 5 animals were permitted to work until they discontinued licking in the task. Note these animals were not the same 5 mice as in panel b. d, Timing updates—same analysis as Fig. 1g, but calculated for trials at the beginning of the session (blue curves) vs. end of session (purple curves). Median timing change (in excess of chance), beginning half of session: -400ms, 95% CI: [-519ms, -270ms]; ending: -271ms, 95% CI: [-403ms, -143ms]; n = 17 mice, 155 sessions). To reduce non-stationarity of the timing distribution, sessions were divided into deciles of trials (Q1-10), and the timing update was then calculated as in Fig. 1g. Figure 1g showed results from the whole session, where results from all ten deciles of trials were pooled. Here, pooled results from the beginning of the session (deciles 1-5) are shown separately from those from the end of the session (deciles 6-10). Right: overlay of beginning and end of session results. The effect of trial outcome on timing updates became less skewed toward the end of the session, attributable to rewarded trials being followed by smaller updates in Q6-10 (purple trace). e, Single-trial peak amplitude DA signal within 500 ms after the first-lick shown over the course of one example session. By contrast to rewarded DA transients, unrewarded transients showed only a slight decrease in amplitude, and unrewarded timing updates (shown in panel d) likewise showed relatively less change across the session (beginning: +64 ms, 95% CI: [+22 ms, +103 ms]; end: +94 ms, 95% CI: [+35 ms, +153 ms]). f, Progression of single-trial DA transient amplitudes over the course of each session. Each line is one session. “rewDA:” reward-related DA peak amplitude; “no-rewDA:” unrewarded peak. g, Peak outcome-related tdTomato for the same sessions as panel f. h, Correlation of all single-session outcome-related DA (top) and tdt (bottom) transients with timing set-point. Thin traces: single sessions; thick traces: average. Left: SNc GCaMP6f; Middle: VLS rdLight1 signals; Right: all signals, all mice, all sessions (SNc, VTA, and DLS GCaMP6f; DLS DA2m and dLight1.1; VLS rdLight1 [no-juice and opsin sessions included]). Control rew-tdt signals were not consistently correlated with the timing set-point, arguing against a trivial correlation with ongoing body movements/optical artifacts. Pearson’s r values for each dataset—SNc GCaMP6f: r = –0.60; DLS GCaMP6f: r = –0.67; VTA GCaMP6f: r = –0.30; DLS DA2m: r = –0.70; DLS dLight1.1: r = –0.73; No-Juice (VLS rdLight1): r = –0.68; tdt (all mice): r = –0.02. i, Cross-over analyses, as in Fig. 4d,k. Median timing (“set-point”) and outcome-related DA amplitude aligned to the “cross-over” trial. Cross-over was defined as the first trial in a sequence of 5 consecutive estimates of the timing set-point within the reward window. Data shown for all mice, all signals/recording sites (including stimulation/task variant mice) for all sessions that had a crossover event (28/29 DA mice with cross-over events in the single-reward window task, 173/260 sessions). Dots: single-trial measurements; thick lines: median across datasets. Left: RewDA. Median rewDA change by cross-over=54% [std=28%]; set-point change=30% [std=20%]. Right: unrewDA. Pearson’s r calculated on the median rew/unrewDA and set-point signals across all sessions within +/- 200 trials of cross-over. Unrewarded DA transient amplitudes showed similar but noisier patterns to rewDA (median unrewDA change by cross-over=47% [std=24%]), but (unlike rewDA) cross-correlation analysis could not detect a significant lag in the set-point change relative to unrewDA (p = 0.36). j-l, Same analyses as panels b,e-g, but from paired No-Juice sessions from the same animals. Right of j: set-point comparison, all paired +Juice and No-Juice sessions (quantification: see Fig. 4g). Top of l: Example single-session set-point vs rewDA and distribution of Pearson’s r across all No Juice sessions. m-n, Comparison of +Juice and No-Juice Task (n = 5 mice, 11 paired photometry sessions). rewDA declines significantly earlier in the session in the No-Juice Task compared to the +Juice Task, but there was no difference in the 50% max point for tdt data collected on the same sessions. Boxplots—centre: median, box bounds: 25-75th percentiles, whiskers: furthest point within 1.5*IQR of box edges; points beyond whiskers: outliers. p: 2-sided Wilcoxon rank-sum test. The scatterplot points are the trial at which rewDA (panel m) or rew-tdT (panel n) reached 50% max peak amplitude for paired +Juice/No-Juice sessions. Coloured dots: the data for rdLight1 (green) or tdt (red); light grey dots: control data obtained from randomly pairing +Juice sessions from the same animal, which demonstrates that the 50%-max transient amplitude tends to occur at about the same trial on sessions from the same task-variant when collected from the same mouse. o, Additional single-session examples of cross-over analysis in the No-Juice task (analogous to Fig. 4d,k).

Q1: Beginning of session (first quartile of trials). Q4: End of session (fourth quartile). All DA/DAN recordings show decline in rewarded DA transient amplitude across the session, with comparably little change in unrewarded (early) transient amplitude. Optical artifacts (tdTomato) show the opposite direction of effect on unrewarded trials, whereas rewarded trial amplitude is similar across the session. As a comparison to the DAN and DA measurements, we also recorded GCaMP6f fibre photometry signals from striatal projection neurons (SPNs). Direct pathway SPNs (dSPNs) indicated similar patterns to DA/DAN recordings. By contrast, indirect pathway SPNs (iSPNs) showed the opposite effect on average: both early- and reward-related iSPN transient amplitudes increased toward the end of the session. This difference is consistent with the putative sign of DA’s signalling interactions with SPNs as predicted from the DA receptors these cells primarily express: dSPNs primarily express excitatory metabotropic dopamine-1-receptors, whereas iSPNs primarily express inhibitory metabotropic dopamine-2-receptors. Moreover, the increase in iSPN GCaMP6f transient amplitude toward the end of recording sessions provides supporting evidence against bleaching-related artifacts as a possible explanation for the downtrend observed in reward-related DAN/DA signals (see Methods).

a-b, Correlation of rewDA vs set-point across block changes. a: average set-point and rewDA (all block changes, all mice); b: Pearson’s r: set-point vs rewDA (all block changes, all mice). c, Alternating Stimulation Blocks task (variant of task with all trials stimulated triggered on the first-lick during stimulation blocks). Left: Example single sessions (1 ChR2 mouse, 1 No-Opsin mouse, 1 session each). Exposure to blue light initially caused a small early-shift in the No-Opsin mouse, but this was much smaller than in the ChR2 mouse and did not recur during the second stimulation block. The No-Opsin set-point trace is greyed after the arrow because the mouse did not participate on sufficient trials during blocks 4-5 to meaningfully calculate the moving median first-lick time. Right: Normalized outcome-related DA transient peak amplitude (“rewDA” or “unrewarded-DA”) in the example ChR2 session. Interestingly, a slow, gradual late-shift in the timing set-point was present even with ChR2 stimulation, and stimulated outcome-related DA-transient amplitudes declined progressively over the course of the session. d,f,h, Combined Alternating Stimulation Blocks results for all versions of this paradigm (Animals were stimulated triggered on either 30%, 60%, or 100% of first-licks during stimulation blocks (irrespective of trial outcome) or they were stimulated triggered only on first-licks that occurred during the reward window). ChR2: n = 3 mice, 20 block changes; No-Opsin: n = 4 mice, 20 block changes. d, Same layout as Fig. 5b, Boxplots—centre: median, box bounds: 25-75th percentiles, whiskers: furthest point within 1.5*IQR of box edges; points beyond whiskers: outliers. 2-sided Wilcoxon rank-sum test, *p < 0.05, **p < 0.01, ***p < 0.001. Exact p-values provided in Source Data. e, Comparison of ChR2 and No-Opsin set-point dynamics, single sessions (2 mice, 1 session each). Despite exposure to blue LED, No-Opsin mouse does not show early-shift during stimulation blocks. f-g, Single session block change set-point and rewDA dynamics. Thick trace: mean, thin traces: individual sessions. Blue: ChR2 mice, Black: No-Opsin Mice. h-i, Top: Overlay of mean set-point and rewDA dynamics at block change. Bottom: Pearson’s correlation of set-point and rewDA across h: all Alternating Stimulation Block sessions, i: all stimulation only on rewarded trials sessions. k-l, Rapid Satiation Task: comparison of set-point and rewDA dynamics for single sessions and across all sessions. p: 2-sided Wilcoxon rank-sum test comparing the average signal measured over 50 trials before and after the pause. k: Left: Single session examples shown for paired, interleaved sessions from the same mouse. Black line/dagger(‡) in the top single-session plot indicates that the interval without red dots had no rewarded trials during this particular session (the set-point was highly late-shifted with reduced participation during this time, see Fig. 5c, which is the behavioural data from this pair of sessions). Right: All photometry sessions. Thin traces: single sessions; thick: average. l: All behaviour sessions. m-n, Timeshift Task: example No-Juice session set-point dynamics. o, Unlike DA, the co-monitored tdT control channel was not consistently correlated with set-point changes and did not explain away the correlation between outcome-related DA transient amplitude and set-point (compare to Fig. 5g).

It has been revealed that a-b, First-lick triggered average VLS DA signals for different trial outcomes, rdLight1. Rare late trial DA signals are similar to unrewarded early trials, but have lower amplitude transients (note that Fig. 1g shows that these late trials are also associated with late-shifting in the median of the timing distribution on average (in excess of chance regression-to-the-median effects), consistent with the observed DA dips and the GLM results). c-e, Simplified regression models for DA transient amplitudes, broken down by trial outcome (b: coefficient for DA predictor, which was encoded in the model as the mean amplitude of DA transient; p: 2-sided Wald test—DA coefficient). DA transient amplitude predicts a proportional change in movement time on the next trial (inverse correlation) regardless of trial outcome. To avoid signal distortion, models were fit on actual change in movement time (Δt), uncorrected for “regression-to-the-median” effect, as in Fig. 2. Note that Fig. 1g (which addresses regression-to-the-median) indicates that the negative Δt observed after late/ITI trials was later-shifted than expected by chance. c, Single session example. Rewarded model DA coefficient p = 4.4e-5, 2-sided Wald test. d, Regression coefficients among sessions (Original +Juice Task and Timeshift Task sessions that had at least 10 trials of each outcome category for model fitting; n = 21/26 mice, 177/246 sessions). Violin plots—black line: mean; red line: median; width: kernel density estimate (normalized for equal maximum width for each group). e, All sessions (all trials pooled) from panel d. p: 2-sided Wald test—DA coefficient (reaction: p = 3.9e-51; early: p = 2.2e-55; reward: p = 6.3e-128; late: p = 1.3e-27). f-h, Cued reaching task, adapted from Reinhold et al.66. Mice received an optogenetic cue when a food pellet was available, and reaction times were measured as the latency between the cue and the reach. Interleaved catch trials omitted the food pellet (“miss”). Importantly, unlike the self-timed movement task, movement timing in the cued-reaching task had no bearing on whether reward was received. g, Reach-aligned striatal DA signals (dLight1.1) recorded from the posterior tail of the dorsomedial striatum (pDMSt). h, GLMs predicting trial-by-trial reach timing updates from DA and movement predictors were fit on rewarded trials within individual sessions (Left: p: 2-sided Wald test—DA coefficient). These models highlighted a similar trend to that in the self-timing task: higher peak DA amplitude predicted earlier reach times on the subsequent trial (p-value: 0.028, 1-sided t-test). For miss trials, the distribution of DA coefficients was not significantly negatively skewed when the relationship was fit within single sessions (p = 0.53, 1-sided t-test), perhaps due to the relative rarity of miss trials. To increase statistical power, models were thus also fit on data pooled across sessions (1922 miss trials; 7786 reward trials), with rewarded and miss trials analysed separately. In this pooled analysis, both trial categories showed significant effects consistent with those observed in the self-timing task (negative correlation between DA and timing updates; DA coefficient p-values for each model: Rewarded: p = 0.030; Miss: p = 0.038; 2-sided Wald test).

Supplementary Methods and mouth subject database.

Hamilos, A.E., Wijsman, I.C., Ding, Q. et al. Dopamine reward transients calibrate movement timing via next-trial updates. Nature (2026). https://doi.org/10.1038/s41586-026-11286-w.

Version of record: 02 December 2026.

DOI: https://doi.org/10.1038/s41586-026-11286-w.

Anyone you share the following link with will be able to read this content:.

Sorry, a shareable link is not presently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative.

📌 Read also:

→ Read original article