Main

Instructive signals are a core component of supervised learning systems. In the brain they are thought to be conveyed by specific classes of neurons that trigger modification of neural pathways that control behavior. CF projections from the inferior olive to the cerebellar cortex have long been hypothesized to carry neural instructive error signals for various forms of learning, including associative eyeblink conditioning and several forms of motor adaptation1,2,3,4,5,6,7,8,9.

According to the CF hypothesis, CF activity drives associative plasticity at parallel fiber inputs to cerebellar Purkinje cells, which forms the neural substrate for learning. There are several lines of evidence in support of this hypothesis. In contrast to typical ‘simple spikes’ (SSpks), which are driven by excitatory parallel fiber inputs, CFs evoke powerful ‘complex spikes’ (CSpks) in cerebellar Purkinje cells (Fig. 1a–d). Complex spikes have a unique electrophysiological signature revealing multiple ‘spikelets’ (Fig. 1d). They are associated with elevations in dendritic calcium and drive heterosynaptic plasticity at parallel fiber-to-Purkinje cell synapses10,11,12,13,14. CSpk activity is associated with sensorimotor errors for a range of behavioral tasks, with the probability of a CSpk often changing in predictable ways with the development of learning15,16,17,18,19,20,21,22 and its extinction23,24,25. Moreover, electrical stimulation of CF pathways is sufficient to substitute for an airpuff unconditioned stimulus (US) to drive eyeblink conditioning in rabbits26,27 and recent experiments have shown that optogenetic CF stimulation can trigger adaptation of the vestibulo-ocular reflex28,29 (VOR), whereas inhibition of CFs can drive extinction of eyeblink conditioning24,25.

Fig. 1: Optogenetic CF stimulation instructs eyeblink conditioning.
figure 1

a, Left: experimental scheme. The traditional airpuff US was replaced by laser stimulation and paired with a visual CS. Right: cerebellar circuit and experimental strategy. b, Optical fibers implanted in either the left IO or right eyelid region of the cerebellar cortex, where Purkinje cells were recorded. c, Example sagittal section of cerebellar cortex (similar expression was observed in 15 mice). ChR2 (green) expression in CF inputs to Purkinje cells (magenta) (Extended Data Fig. 1). d, SSpk and CSpk Purkinje cell waveforms during spontaneous and laser epochs. e, Electrophysiological traces from a Purkinje cell showing SSpks (gray dots) and CSpks (red dots) during CF-ChR2 laser stimulation in IO (CF-ChR2-IO, blue). f, Population histogram of SSpk firing rate (gray) and CSpk probability (p(CSpk)) (red) (n = 74 trials, N = 4 units from 2 mice). CSpks: spontaneous versus laser, *P = 0.02, paired Student’s t-test; SSpks: spontantaneous versus laser, P = 0.22 nonsignificant (NS), paired Student’s t-test. g,h, As for e and f, respectively, but for CF-ChR2-LE animals (CF-ChR2-LE-IO; n = 102 trials, N = 8 cells from 2 mice). CSpks: spontaneous versus laser, *P = 0.01, paired Student’s t-test; SSpks: spontaneous versus laser, P = 0.11 NS, paired Student’s t-test. i, Average eyelid closure traces ± s.e.m. (shadows) from CS + US trials of the first training session showing no reflexive eyeblink to CF-ChR2-IO stimulation (N = 7 mice, blue) and very small eye twitch in CF-ChR2-LE-IO animals (N = 4 mice, light blue). norm, normalized. j, The %CR across daily training sessions ± s.e.m. (shadows) for CF-ChR2-IO (N = 7 mice, blue) or CF-ChR2-LE-IO (N = 4 mice, light blue) laser US training. Controls: wild-type mice (no ChR2 expression) with fiber in IO and laser US (N = 2 mice, black). The %CR at the last learning session (all two-sample Student’s t-tests): CF-ChR2-IO versus controls, ***P = 1.7726 × 10−4 (7 versus 2 mice); CF-ChR2-LE-IO versus controls, ***P = 4.0836 × 10−5 (4 versus 2 mice); CF-ChR2-IO versus CF-ChR2-LE-IO, P = 0.115 NS (7 versus 4 mice). k, Average eyelid closures ± s.e.m. (shadows) from CS-only trials of sessions 2, 4 and 8 for CF-ChR2-IO experiments shown in j. The shaded rectangle indicates time US would have appeared. l, Same as k but for sessions 2, 4 and 6 of CF-ChR2-LE-IO. m, Average eyelid closures ± s.e.m. (shadows) from CS-only trials after training to a 300-ms (blue, N = 4 mice) and 500-ms (green, N = 4 mice) CS + US ISI. Peak time: *P = 0.01, paired Student’s t-test.

However, substantial confusion and controversy remain, particularly with regard to the necessity of CF instructive signals and CSpk-driven plasticity for learning8,30,31,32,33,34,35. For instance, there is substantial experimental support for an alternative model that posits that Purkinje cell SSpk modulation, rather than CF-driven CSpks, could provide relevant instructive signals for learning4,36. This hypothesis stems from the observation that sensorimotor errors that drive CF activity and subsequent Purkinje cell CSpks are often tightly linked to rapid, reflexive, corrective movements. Crucially, Purkinje cell SSpk output often correlates with these corrective movements34,37,38, raising the possibility that they could provide their own instructive signals for plasticity—either in addition to, or independently of, CSpk activity30,36,39,40,41,42,43,44. In particular, Purkinje cell SSpk modulation could instruct plasticity in the downstream cerebellar nuclei5,36, an idea that also has support from in vitro experiments of synaptic plasticity45,46.

Seemingly consistent with a possible instructive role for Purkinje cell SSpk modulation, recent work has demonstrated that pairing optogenetic stimulation of Purkinje cells, which effectively modulates SSpk activity, with ongoing movements can drive motor adaptation in multiple systems28,47,48. However, it is not clear whether this optogenetically evoked learning results from modulation of SSpk output and/or from the generation of CSpk-like dendritic calcium signals in Purkinje cells that instruct plasticity in the cerebellar cortex48.

Just as it has not been clear whether Purkinje cell SSpks could provide alternative instructive signals, it has also not been clear whether CF signaling is absolutely required for cerebellar learning. Although Purkinje cell CSpk activity often correlates with sensorimotor errors that drive behavioral learning, the extremely low rates of CSpk activity and high proportion of ‘spontaneous’ CSpks that appear not to correspond with identifiable task parameters complicate a definitive interpretation of CSpks as instructive signals34. Moreover, much of the evidence to date that has been interpreted as supporting a causal role for CF instructive signals for cerebellar learning has come from lesion studies49, pharmacological inactivations24,31 and electrical perturbations50,51 of the inferior olive (IO). These manipulations lack both cell-type and temporal specificity and are likely to have substantial, additional, unintended effects on the olivocerebellar circuit52 that are extremely difficult to control for. Until now, there has not been a precise way to selectively perturb evoked CF activity while leaving olivocerebellar function otherwise intact.

In the present study, we used cell-type-specific perturbations of CFs, Purkinje cells and other circuit elements to test their sufficiency and necessity as instructive signals for associative cerebellar learning. We combined behavioral, optogenetic and electrophysiological approaches to dissociate CF inputs and CSpk activity from reflexive movements and SSpk modulation. We find that optogenetically evoked CSpks can substitute for an airpuff US to induce learning, even in the absence of an evoked blink, whereas temporally precise optogenetic silencing of CFs completely blocks learning. Direct optogenetic stimulation of Purkinje cells can also drive learning; however, this effect was dissociable from both SSpk modulation and the corresponding evoked blink. Finally, simple ChR2 expression in CFs is associated with a subtle decrease in Purkinje cell CSpk probability that abolishes learning to a sensory US. Together, our results support a necessary and sufficient role for CFs and corresponding Purkinje cell CSpk events as instructive signals for associative cerebellar learning.

Results

We investigated neural instructive signals for delay eyeblink conditioning in head-fixed mice walking on a motorized treadmill53,54. In classic eyeblink conditioning experiments (Fig. 1a), a neutral conditioned stimulus (CS; here a white light light-emitting diode (LED)) is paired with a US (usually a puff of air directed at the eye) that reliably elicits an eyeblink unconditioned response (UR) and serves as an instructive signal for learning. CFs from the dorsal accessory part of the IO respond to the airpuff US and project to the contralateral cerebellum, where they drive CSpks in Purkinje cells in the cerebellar cortex (Fig. 1a,b). Information about the CS is conveyed to the cerebellum by mossy fibers that synapse on to granule cells, the axons of which form parallel fiber inputs that modulate SSpks in Purkinje cells. Pauses in SSpk activity in the eyelid region of the cerebellar cortex are associated with eyelid closures55,56,57,58. In the present study, we use genetic circuit dissection to distinguish between competing models in which CSpk and/or SSpk modulation provides instructive signals for eyeblink conditioning. We first asked whether direct optogenetic stimulation of CFs could substitute for a sensory (airpuff) US to drive behavioral learning (Fig. 1).

Optogenetic CF stimulation is sufficient to drive learning

To specifically target CFs, we injected a virus that allows for expression of ChR2 under control of the CaMKIIα promoter28 (AAV-CaMKII-ChR2, here termed CF-ChR2) into the dorsal accessory IO of wild-type mice (Fig. 1a,b and Methods). With this strategy, we observed selective labeling of neurons in the IO and CFs in the cerebellar cortex (Fig. 1c and Extended Data Fig. 1a–f). An optical fiber was placed either in the dorsal accessory IO25,26,28 (CF-ChR2-IO), targeting cell bodies of eyeblink-related CFs, or in the eyelid region of the cerebellar cortex56,57,58,59, targeting CF terminals (CF-ChR2-Ctx; Fig. 1b, Extended Data Fig. 1 and Methods). Laser stimulation at both sites evoked robust postsynaptic CSpk responses in cerebellar Purkinje cells, with waveforms matching those of spontaneous CSpks (Fig. 1d–f and Extended Data Fig. 1g,h). Similar electrophysiological responses were observed in mice expressing ChR2 at standard levels or with a slightly reduced viral titer (CF-ChR2-LE; fivefold lower titer; Fig. 1g,h).

To test the sufficiency of CF activity for the acquisition of learned eyelid responses, we paired a neutral visual CS with optogenetic CF stimulation in the absence of any sensory US (CF-ChR2-US; Fig. 1a). Laser stimulation alone did not elicit robust eyelid closures (Fig. 1i). Despite the absence of an eyeblink UR to the optogenetic US, conditioned eyelid closure responses (CRs) gradually emerged in response to the visual CS after repeated CS + US pairing (Fig. 1j,k). Similar learning was observed with both expression levels (Fig. 1j–l) and for fiber placements in either the IO (CF-ChR2-IO; Fig. 1d–l) or the cerebellar cortex (CF-ChR2-Ctx; Extended Data Fig. 1g–k) (although note the subtly different CR and CSpk timings in the two cases). Moreover, learning was also observed in separate experiments in which we targeted ChR2 expression to glutamatergic IO neurons with a transgenic, rather than a viral, strategy, by crossing vGlut2-Cre mice with ChR2-floxed mice60 (vglut2-Cre;ChR2; Methods) and placing the fiber in the IO (vGlut2-ChR2-IO; Extended Data Fig. 1m–p).

In general, the properties of learning to an optogenetic CF US matched those of normal sensory CS + US conditioning in wild-type mice53,54. Learning to an optogenetic US was unilateral (specific to the eye contralateral to the IO and ipsilateral to the corresponding cerebellar cortex; Extended Data Fig. 1l) and emerged over several days, with both frequency and amplitude of learned eyelid closures increasing gradually across sessions (Fig. 1j–l and Extended Data Fig. 1i,o,p); the percentage of trials with CRs (%CR) at the last learning session: CF-ChR2-IO versus airpuff US controls in Extended Data Fig. 1o, P = 0.29 NS, Student’s t-test; CF-ChR2-LE-IO versus airpuff US controls in Extended Data Fig. 1o, P = 0.54 NS, Student’s t-test. Learning also extinguished appropriately on cessation of CS + US pairing, when CSs were presented alone (Extended Data Fig. 1i).

A central feature of eyeblink conditioning is the appropriate timing of the CR, so that its peak generally coincides with the expected time of the arrival of the US61,62. This appropriate timing was also observed for learning to an optogenetic US (Fig. 1k,l and Extended Data Fig. 1j,k,p). Moreover, when the interval between CS and CF-ChR2 US onset was shifted from 300 ms to 500 ms, mice adapted the timing of their learned responses54,62 (Fig. 1m).

These results indicate that optogenetic CF activation is sufficient to substitute for an airpuff US to instruct delayed eyeblink conditioning.

Optogenetic Purkinje cell stimulation can drive learning

Optogenetic stimulation of Purkinje cells has previously been shown to instruct motor adaptation of limb and eye movements28,47,48. To investigate whether this was also true for delayed eyeblink conditioning, we placed an optical fiber at the eyelid region of the cerebellar cortex of transgenic mice expressing ChR2 under the L7 Purkinje cell-specific promoter (L7-Cre;Chr2 mice; Fig. 2a,b). Consistent with previous studies47,53,63,64,65,66,67,68, in vivo electrophysiological recordings confirmed an increase in Purkinje cell SSpk activity at the onset of low–medium intensity optogenetic stimulation, followed by a slow decrease below the baseline firing rate on cessation of the stimulation, without significant changes in CSpk activity (Fig. 2c,d and Extended Data Fig. 2a–d).

Fig. 2: Optogenetic stimulation of Purkinje cells can substitute for a US to drive learning.
figure 2

a, Experimental scheme. L7-Cre;ChR2 mice were used to photostimulate Purkinje cells, which served as a US for conditioning. b, Example coronal section of cerebellar cortex indicating fiber placement in the eyelid area of the cerebellar cortex (white arrow) and labeling Purkinje cell ChR2 expression (green) and calbindin (magenta). Similar expression and fiber placement were observed in 11 mice. c, Example electrophysiological traces of Purkinje cell SSpks (gray dots) and CSpks (red dots) in response to Pkj-ChR2 laser stimulation (orange shading). d, Population histogram of SSpk rate (gray) and CSpk probability (p(CSpk)) (red; n = 44 trials, N = 2 cells from 2 mice) (see Extended Data Fig. 2d for statistics). e, Average eyelid closures ± s.e.m. (shadows) evoked by low and medium-power Pkj-ChR2 stimulation. Note the blink at stimulus offset. Peak amplitude of evoked blink: low versus medium power, *P = 0.047, paired Student’s t-test (N = 4 mice). f, Average eyelid closures ± s.e.m. (shadows) on CS + US trials in the first training session showing the blink evoked by Pkj-ChR2-US laser stimulation (N = 4 mice). g, The %CR across training sessions ± s.e.m. (shadows) to a Pkj-ChR2 US (N = 4 mice, plotted as in Fig. 1j). h, Average eyelid traces ± s.e.m. (shadows) from CS-only trials of sessions 2, 4 and 7 of the experiments in g.

The post-stimulation inhibition of Purkinje cell SSpks is consistently observed on optogenetic stimulation in vivo47,63,64,65,66,67,68, but not in vitro with synaptic activity blocked69,70, and probably reflects synaptically mediated network effects71,72,73. In the eyelid region of the cerebellar cortex, eyelid closures are associated with decreases in the Purkinje cell SSpk firing rate55,56,57,58. Consistent with this, and with previous optogenetic studies53,56, we found that optogenetic Purkinje cell stimulation with low–medium laser intensities resulted in eyelid closures on stimulus offset and that their amplitudes scaled as a function of laser intensity (Fig. 2e).

When a visual CS was consistently paired with a US consisting of optogenetic stimulation of Purkinje cells that drove increased SSpk activity at onset and a blink at laser offset (Pkj-ChR2; Fig. 2f), robust CRs gradually emerged (Fig. 2g,h). Rates of learning and CR amplitudes were comparable to those obtained with an airpuff US53 (%CR at last learning session: Pkj-ChR2 versus airpuff US controls in Extended Data Fig. 1o, P = 0.92 NS, Student’s t-test) and also with the CF-ChR2-US used in Fig. 1j (%CR at last learning session: Pkj-ChR2 versus CF-ChR2-IO, P = 0.24 NS, Student’s t-test; Pkj-ChR2 versus CF-ChR2-LE-IO, P = 0.75 NS, Student’s t-test). Notably, CRs were timed so that the peak eyelid closure coincided with the expected time of the onset of optogenetic stimulation (Fig. 2h).

The results of Fig. 2 suggest that direct optogenetic perturbation of Purkinje cells can substitute for an airpuff US to act as an instructive signal to drive eyeblink conditioning. However, they do not allow us to disentangle possible contributions of increases and/or decreases in Purkinje cell SSpks or evoked eyelid closures. In the next set of experiments, we systematically altered the temporal relationships between these candidate instructive signals by varying laser timing, duration and intensity.

Onset of Purkinje cell stimulation drives learning

The well-timed CRs observed in eyeblink conditioning are thought to be a consequence of plasticity mechanisms acting within the cerebellar cortex that associate postsynaptic calcium events (usually CSpks) in Purkinje cells with a particular set of parallel fiber inputs active within a particular temporal window from the onset of the CS4,6,7,13,61,74. We first asked whether learning to an optogenetic Pkj-ChR2 US would yield well-timed CRs to different CS–US intervals (Fig. 3a,b). Indeed, extending the interstimulus interval (ISI) between CS and Pkj-ChR2-US onset from 200 ms to 400 ms revealed appropriate corresponding shifts in CR timing (Fig. 3c,d).

Fig. 3: Learning evoked by optogenetic Purkinje cell stimulation is temporally coupled to stimulation onset and not evoked blinks or SSpk modulation.
figure 3

a,e,i, Schemes for Pkj-ChR2-US experiments in which stimulation onset timing, duration and intensity were varied systematically to dissociate candidate instructive signals (Extended Data Fig. 2). a, US onset shifts to obtain CS + US ISIs of 200 ms (yellow) or 400 ms (orange). b, CS + US trials before training, showing evoked blinks occurring at US offset in the two conditions (N = 4 mice for each ISI, ±s.e.m. in shadows). c, CS-only trials after training, showing the dependence of timing of learned eyelid closures on timing of US onset. d, Timing of peak eyelid closures occurring later for the longer ISI. Peak time: 200-ms versus 400-ms ISI, **P = 0.009, two-sample Student’s t-test (4 versus 4 mice). Shaded rectangles indicate laser US duration and dashed lines blink onset. Each dot is one mouse; the box plots indicate median (center bar) and 25th to 75th percentiles (bottom and top borders), with whiskers extending to data extremes. e, US duration adjusted so that CS + US onset times were identical, but US offset (and blink) timing varied with respect to the CS. f, US-evoked blinks on CS + US trials occurring at stimulus offset (note temporal correspondence with blinks in b, ±s.e.m.) (Extended Data Fig. 2b–e). g,h, Learned CRs (g), and timing (h), showing timing dependence not on stimulus offset or the evoked blink, but, rather, stimulation onset (peak time: 100-ms versus 300-ms duration, P = 0.87 NS, two-sample Student’s t-test, 4 versus 2 mice). i,j, Laser intensity adjusted (i) to evoke a blink (j) (associated with a decrease in SSpks; Extended Data Fig. 2f–h) either at laser offset (orange ±s.e.m., as above) or, with higher intensities, at laser onset (lime green ±s.e.m., N = 3 mice). Laser US timings and durations were identical in the two conditions. k,l, Learned CRs (k) showing timing dependent only on time of stimulation onset and not varying with the timing of the evoked blink (l) (peak time: high versus medium laser power, P = 0.67 NS, two-sample Student’s t-test, 4 versus 3 mice) or the direction of SSpk modulation (Extended Data Fig. 2f–h).

Having thus established that learned responses to an optogenetic Purkinje cell (Pkj) US can be appropriately timed, we next varied the duration of laser stimulation (Fig. 3e and Extended Data Fig. 2b–e) to determine whether CRs were timed to match the increase in SSpk activity at the onset of Pkj-ChR2 stimulation, or its offset and the associated blink. To do this, we compared conditions in which the onset of Purkinje cell stimulation was presented at the same ISI relative to the CS, but the offset (and its respective blink) differed by 200 ms (Fig. 3e,f and Extended Data Fig. 2b–e). The CR amplitudes and timings were identical in the two groups (Fig. 3g,h). This result suggests that events associated with the onset of optogenetic stimulation, and not the decrease in the SSpk rate or the corresponding blink evoked at laser offset, are crucial for learning driven by optogenetic stimulation of Purkinje cells.

We next exploited the interrelationship of laser power, SSpk modulation and timing of the evoked blink to further disambiguate which consequences of the onset of optogenetic stimulation were responsible for optogenetically driven learning. At higher powers, laser stimulation induces a pause in Purkinje cell SSpk activity at laser onset (Extended Data Fig. 2f–h), probably owing to depolarization block75,76. Consistent with this and the well-established relationship between Purkinje cell SSpk inhibition and eyelid closures, we found that increasing laser intensity also led to a temporal shift in the timing of the optogenetically evoked blink—from laser offset to laser onset (Extended Data Fig. 2j). We took advantage of this feature to compare learning under conditions in which the timing and duration of the optogenetic US stimulation were identical, but laser power was adjusted to invert the direction of SSpk modulation and shift the timing of the evoked blink from laser offset to laser onset (Fig. 3i,j). As in the experiment presented in Fig. 3e–h, here, too, we found that CR timing depended only on the timing of laser onset, and not the timing of the evoked blink on the paired trials (Fig. 3k,l). This again suggests that the relevant instructive signal for learning occurs at the onset, and not the offset, of Purkinje cell optogenetic stimulation. Moreover, because the switch from increases in SSpk activity to pauses in SSpk activity is evoked by laser onset at high intensities (Extended Data Fig. 2f–h), it further dissociates laser onset from the modulation of Purkinje cell SSpks as the relevant instructive stimulus for learning.

Taken together, the results of Figs. 2 and 3 suggest that, although Purkinje cell optogenetic stimulation can substitute for an airpuff US to drive eyeblink conditioning, the effective instructive stimulus driving this learning is tightly linked to the onset of laser stimulation, but independent of either the direction of SSpk modulation or the blink that it evokes. One possible explanation for this finding would be if Pkj-ChR2 stimulation elevates dendritic calcium, triggering CSpk-like events that are capable of driving learning, as has been recently demonstrated for VOR adaptation48. Consistent with this possibility, we observed electrophysiological signatures of CSpk-like events at the onset of Pkj-ChR2 stimulation at higher stimulation intensities (Extended Data Fig. 2i).

If Pkj-ChR2-US stimulation drives eyeblink learning through the generation of dendritic CSpk-like events, then we would predict that Purkinje cell SSpk modulation driven by synaptic inputs rather than direct optogenetic stimulation might not be sufficient to induce learning, even if it were strong enough to evoke a blink. To test this prediction, we replaced direct Pkj-ChR2 stimulation with optogenetic stimulation of cerebellar granule cells, the axons of which form parallel fiber inputs to Purkinje cells (Gabra6-ChR2; Fig. 4a,b). As we have previously shown53, granule cell stimulation drives a blink at laser onset, consistent with net inhibition of Purkinje cells via molecular layer interneurons77 (Fig. 4c). Although this stimulation effectively modulated Purkinje cell SSpks (Fig. 4d,e) and drove a blink (Fig. 4c,f), it did not generate a CSpk-like-event (Fig. 4d,e), and pairing it with a visual CS did not result in learning (Fig. 4f–h).

Fig. 4: Optogenetic stimulation of cerebellar granule cells drives a blink but not learning.
figure 4

a, Experimental scheme. Gabra6-Cre;ChR2 mice were used to photostimulate cerebellar granule cells, which served as a US for conditioning. b, Example coronal sections (representative of six mice) of cerebellar cortex showing expression of ChR2 in granule cells (Gabra6-ChR2, magenta; Pkj-calbindin, green) and fiber placement in the eyeblink area of the cerebellar cortex (white arrow). c, Gabra6-ChR2 laser stimulation evoking intensity-dependent eyelid closures at stimulation onset (±s.e.m. in shadows). Peak amplitude of evoked blink: medium versus high power, *P = 0.03, paired Student’s t-test (N = 6 mice). d, Example electrophysiological traces of Purkinje cell SSpk (gray dots) and CSpk (red dots) modulation to Gabra6-ChR2 laser stimulation (purple shading). e, Population histograms (n = 56 trials, N = 3 cells from 2 mice) showing decrease in SSpks (spontaneous versus laser, ***P = 1.28 × 10−5, paired Student’s t-test) and no change in CSpks (spontaneous versus laser: P = 1 NS, paired Student’s t-test) on laser stimulation. f, Average eyelid closures ± s.e.m. (shadows) on CS + US trials of the first training session showing the blink evoked by Gabra6-ChR2 laser stimulation (purple, N = 6 mice). g, The %CR across sessions ± s.e.m. in shadow (N = 6 mice). h, Average eyelid traces ± s.e.m. (shadows) from CS-only trials of the last training session showing no learning (purple, N = 6 mice).

The most parsimonious interpretation of the data presented in Figs. 24 and Extended Data Fig. 2 is that optogenetic stimulation of Purkinje cells drives eyeblink conditioning through cell-autonomous, CSpk-like events associated with stimulation onset48.

Optogenetic inhibition of the IO blocks eyeblink conditioning

We next used several complementary approaches to ask whether CF activity is required for delayed eyeblink conditioning to a sensory airpuff US. First, to inhibit CFs specifically at the time of the US, we injected a virus that allows for expression of the optogenetic inhibitor Jaws78 under control of the CaMKIIα promoter (AAV-CaMKII-Jaws) into the IO of wild-type mice (Fig. 5a). We observed selective labeling of neurons in the IO and CFs in the cerebellar cortex (Fig. 5b). As before, an optical fiber was placed in the dorsal accessory IO.

Fig. 5: Inhibition of the IO that blocks airpuff US-driven CSpks eliminates eyeblink conditioning.
figure 5

a, Experimental scheme. Photoinhibition of CFs during airpuff US in CS + US trials. (Duration was randomized to avoid consistently timed rebound excitation; Methods.) Wild-type animals were injected with AAV-CamKII-Jaws in the IO where an optical fiber was also placed to photoinhibit CFs. b, Example sagittal section of cerebellar cortex. Similar expression was seen in eight mice. Jaws (green) is expressed in CF inputs to Purkinje cells (magenta). c, Two example electrophysiological traces from a Purkinje cell with identified SSpks (gray) and CSpks (red) in response to airpuff stimulation (red shading). d, Population histogram of SSpks (gray) and CSpks (red) (n = 29 trials, N = 4 units from 2 mice). e,f, Same as c and d, respectively, but paired with CF-Jaws laser inhibition (green; n = 68 trials, same units as in c and d). Spontaneous SSpk rate pre- and during laser epochs (P = 0.42 NS, paired Student’s t-test, N = 4 units). g, Top: average probability of CSpks in airpuff-only versus airpuff + laser trials (*P = 0.028, paired Student’s t-test, N = 4 units). Bottom: spontaneous CSpk rate pre- and during laser epochs (*P = 0.026, Student’s t-test, N = 4 units). Each circle represents a unit, linked through conditions by a dotted line; the black solid circles and line represent the average. h, The %CR across sessions ± s.e.m. (shadows) with and without CF-Jaws laser inhibition (green and black, respectively, N = 4 mice for both). The %CR at the last learning session: CF-Jaws versus controls, **P = 0.0015, two-sample Student’s t-test. Control animals expressed Jaws in CFs but no laser was presented. i, Average eyelid closure traces ± s.e.m. (shadows) from CS + US trials of the last training session of the experiment shown in h revealing an absence of learning in the laser inhibition condition despite the intact unconditioned reflex to the airpuff US. The shaded rectangle indicates where in the trial the US (red) and the laser (green) appeared. j, Same as for i, but for CS-only trials. The shaded rectangles indicate where US and laser would have appeared.

Photoinhibition of CFs blocked airpuff-driven CSpks (Fig. 5c–g) and also reduced spontaneous complex spiking during laser presentation (Fig. 5g). Moreover, laser inhibition of CFs at the time of the airpuff US completely prevented learning in CF-Jaws animals (Fig. 5h–j, green), whereas control mice expressing Jaws in CFs that did not receive laser inhibition learned normally (Fig. 5h–j, black). Notably, the learning impairment could not have been the result of an overall inability to respond to the US, because the reflexive blink to the airpuff US (UR) was intact (Fig. 5i). We conclude that optogenetic inhibition of CF signaling blocks learning to a natural, sensory airpuff US.

Subtle reductions in CF signaling eliminate learning

The simultaneous global silencing of CFs through the optogenetic inhibition that we used in Fig. 5 is a dramatic manipulation that could have unexpected consequences for the olivocerebellar circuit. Our final experiment, however, provided additional, unexpected evidence that intact CF signaling is essential for associative cerebellar learning under natural conditions.

Surprisingly, we found that the CF-ChR2-expressing animals from Fig. 1, which learned well to an optogenetic US, were unable to learn in traditional eyeblink experiments using a sensory airpuff US, even in the absence of any laser stimulation (CF-ChR2-puff; Fig. 6a–d); the %CR at the last learning session: CF-ChR2-puff versus airpuff US controls in Extended Data Fig.1o, ***P = 1.98 × 10−6, Student’s t-test. In other words, simply expressing ChR2 in CFs completely blocked normal behavioral learning. This surprising result held true despite the facts that, as we have already shown: (1) ChR2 expression was specific to CFs in these mice (Fig. 1c and Extended Data Fig. 1); (2) spontaneous Purkinje cell CSpks were generally observed in these animals (Fig. 1d–f); (3) CSpks were readily evoked by CF optogenetic stimulation (Fig. 1d–f); (4) the mice displayed intact behavioral URs (blinks) to the airpuff (Fig. 6c), indicating intact sensory processing; and, of course, (5) CF-ChR2 animals had learned well to an optogenetic CF-ChR2-US (Fig. 1j,k).

Fig. 6: Moderate ChR2 expression is associated with subtle reductions in CF signaling and abolishes learning to a sensory US.
figure 6

a, Experimental scheme. A visual CS was paired with a sensory airpuff US in a traditional classic conditioning experiment in CF-ChR2 animals. b, CF-ChR2-puff animals, without any photostimulation, unable to learn to an airpuff US (blue, N = 6 mice), but recovered learning (CF-ChR2-LE-puff, light blue, N = 4 mice) on lowering ChR2 expression. Shadows correspond to ±s.e.m. (%CR at the last learning session: CF-ChR2-puff versus CF-ChR2-LE-puff, ***P = 7.75 × 10−5, two-sample Student’s t-test). c, Animals with both expression levels exhibiting robust UR blinks on CS + US trials (CF-ChR2-puff, blue, N = 6 mice and CF-ChR2-LE-puff, light blue, N = 4 mice, ±s.e.m. in shadows). d, Average eyelid traces ± s.e.m. (shadows) from CS-only trials of the last training session revealing no learning in CF-ChR2-puff animals (blue, N = 6 mice and CF-ChR2-LE-puff, light blue, N = 4 mice). e, Spontaneous (Spont.) CSpk firing rate for each Purkinje cell recorded from control (black, N = 26 cells from 4 mice), CF-ChR2-LE (light blue, N = 20 cells from 4 mice) and CF-ChR2 (blue, N = 15 units from 5 mice) mice. Controls versus CF-ChR2: *P = 0.04, two-sample Student’s t-test (26 versus 15 cells); controls versus CF-ChR2-LE: P = 0.24 NS, two-sample Student’s t-test (26 versus 20 cells). f, Probability of an airpuff-evoked CSpk for each Purkinje cell recorded. Controls versus CF-ChR2: ***P = 0.00003, two-sample Student’s t-test (26 versus 15 cells); controls versus CF-ChR2-LE: P = 0.16 NS, two-sample Student’s t-test (26 versus 20 cells). g,h, SSpk statistics for each Purkinje cell recorded from control (black), CF-ChR2-LE (light blue) and CF-ChR2 (blue) mice. g, SSpk spontaneous firing rate: controls versus CF-ChR2, P = 0.41 NS, two-sample Student’s t-test (26 versus 15 cells); controls versus CF-ChR2-LE, P = 0.07 NS, two-sample Student’s t-test (26 versus 20 cells). h, SSpk coefficient of variation (CV). Controls versus CF-ChR2: P = 0.33 NS, two-sample Student’s t-test (26 versus 15 cells); controls versus CF-ChR2-LE: P = 0.26 NS, two-sample Student’s t-test (26 versus 20 cells).

Although we had used standard parameters for viral ChR2 expression28,48,79 and there was no obvious anatomical, physiological or behavioral indication of ChR2 overexpression, we next asked whether lower levels of ChR2 expression in CFs (CF-ChR2-LE; Fig. 1g–l) could restore learning to a sensory US. Remarkably, this fivefold reduction of viral titer fully restored the ability to learn to a sensory airpuff US (Fig. 6a–d); the %CR at the last learning session: CF-ChR2-LE-puff versus airpuff US controls in Extended Data Fig. 1o, P = 0.12 NS, Student’s t-test.

To understand how simply expressing ChR2 at moderate levels in CFs could have such a striking and selective impact on learning to a natural sensory US, we quantitatively compared electrophysiological recordings from Purkinje cells in CF-ChR2, CF-ChR2-LE and control mice (Fig. 6e–h and Extended Data Fig. 3). We analyzed spontaneous SSpks and CSpks as well as responses to airpuff stimuli delivered to the eye. In control conditions, CSpks are relatively infrequent, with a low average spontaneous firing rate and substantial variation across cells (Fig. 6e). We observed subtly lower spontaneous CSpk rates in Purkinje cells of CF-ChR2 mice compared with controls, whereas no significant reduction was observed in CF-ChR2-LE mice (Fig. 6e). Remarkably, we also found that some (4 of 15) units with moderate CF-ChR2 expression that showed clear, short-latency CSpks on CF-ChR2 stimulation did not exhibit any spontaneous CSpks throughout the duration of our recordings (Fig. 6e). This surprising finding indicates that the common method of identifying Purkinje cells based on the presence of spontaneous CSpks would obscure the consequences of CF-ChR2 expression for climbing fiber–Purkinje cell transmission.

We next analyzed the patterns of activity evoked by a sensory airpuff US (Extended Data Fig. 3a–f). There was a dramatic reduction in the probability of CSpks evoked by an airpuff stimulus in CF-ChR2 mice (Fig. 6f). This was true across the population of Purkinje cells that we recorded from these mice, including those with normal spontaneous CSpk rates (Extended Data Fig. 3g). In contrast, no systematic reduction in airpuff-evoked complex spiking was observed in the lower expression CF-ChR2-LE animals (Fig. 6f and Extended Data Fig. 3h). Furthermore, on trials in which an airpuff did evoke Purkinje cell CSpks, the responses were delayed in Purkinje cells recorded from CF-ChR2, but not CF-ChR2-LE, mice (Extended Data Fig. 3d,f,i).

Importantly, none of the differences in complex spiking observed in CF-ChR2 animals was associated with differences in Purkinje cell SSpks including average SSpk firing rate, coefficient of variation or the pause in SSpks after a CSpk (Fig. 6g,h and Extended Data Fig. 3j). We also found no differences in the proportion of CSpks occurring within 200 ms of each other (CSpk doublets80; Extended Data Fig. 3k) or in the number of spikelets within each CSpk waveform (Extended Data Fig. 3l,m).

Discussion

The CF hypothesis for learning has dominated the cerebellar field for over 50 years1,2,3, yet definitive proof—or disproof—has remained elusive. Conflicting evidence, competing models and insufficiently precise tools for neural circuit dissection have sowed substantial controversy and confusion. In particular, although multiple experimental approaches have yielded data consistent with the theory, others have provided support for an alternative model, in which Purkinje cell SSpk modulation, rather than CSpks, provides critical instructive signals for learning4,30,36,43. Moreover, although sensorimotor errors that drive behavioral learning are often reflected in CF-driven Purkinje cell CSpk activity, the correlational nature of most of these studies, combined with the unusual spiking statistics of CSpks, has complicated a definitive interpretation of CSpks as instructive signals34. In the present study, we systematically manipulated distinct circuit elements to dissociate CF-driven CSpk signaling from Purkinje cell SSpk modulation and reflexive movements (Fig. 7). Our findings reveal excitatory CF inputs as necessary and sufficient instructive signals for associative cerebellar learning.

Fig. 7: Summary of candidate instructive signals tested in the study and explanatory power of three models for cerebellar learning.
figure 7

a, Cerebellar circuit for eyeblink conditioning, highlighting the different strategies used in the present study. b, Summary table indicating the candidate instructive signal evaluated with each experiment, ordered and color coded by figure number. Ext. Data Fig., Extended Data Figure. For each candidate tested, the presence/absence of robust learning is indicated, followed by the predictions of CSpk+, SSpk or blink-driven models for learning. Closed circles represent ‘yes’ and open circles ‘no’. The last three columns assess the congruence between each model’s prediction and the learning result that was observed (check marks indicate congruence and Xs indicate lack of congruence; dashes indicate no prediction). Optostim, optogenetic stimulation.

As has been recently shown for VOR adaptation28,29,48, we found that optogenetic stimulation of either CFs or Purkinje cells can substitute for a sensory US to drive eyeblink conditioning (Figs. 1 and 2 and Extended Data Fig. 1). In both cases, learning was independent of an evoked blink (Figs. 13 and Extended Data Figs. 1 and 2). However, additional experiments varying opto-Pkj-US laser intensity and duration revealed that learning to a Purkinje cell optogenetic US was temporally coupled to optogenetic US onset, regardless of the direction of Purkinje cell SSpk modulation or the timing of an evoked blink (Fig. 3). Further experiments in which Purkinje cell SSpk modulation was achieved indirectly, through optogenetic stimulation of granule cells, also failed to induce learning (Fig. 4). These findings suggest that optogenetic stimulation of Purkinje cells probably drives learning through the generation of CSpk-like dendritic calcium signals48 (Extended Data Fig. 2i), rather than through modulation of SSpk output. This could then also explain why CF-ChR2-expressing animals cannot access Purkinje cell instructive signals to achieve even minimal learning, as we have shown in Fig. 6.

Beyond demonstrating their sufficiency as instructive signals for learning, multiple aspects of our data point to the necessity of intact CF signaling for delayed eyeblink conditioning. First, Jaws-mediated optogenetic inhibition of CFs, specifically during the presentation of an airpuff US, completely abolished learning (Fig. 5). But perhaps the strongest evidence for the necessity of CF instructive signals came from our unexpected finding that simply expressing ChR2 in CFs—in the absence of any optical stimulation—reduced CSpk probability and completely obliterated learning to an airpuff US (Fig. 6). The complete absence of learning to a sensory US in these animals was particularly surprising, given the relative subtlety of the effects on complex spiking and the ability of these mice to learn to an optogenetic CF US (Fig. 1).

The exact mechanism of suppression of CF signaling by ChR2 expression remains to be determined. Our results point to a decrease in action potential generation within CFs themselves, rather than the postsynaptic generation of CSpks within Purkinje cells, because the probability of complex spiking was decreased, particularly in response to a sensory US, whereas CSpk waveforms were not affected (Extended Data Fig. 3l) and the ability to induce CSpks with optogenetic stimulation of CFs was spared. Such changes could also be associated with decreased synchrony across the CF population. Furthermore, decreases in CF activity may also alter the likelihood that CFs fire in bursts, or doublets80, under some conditions, although we did not see evidence for this in spontaneous CSpks (Extended Data Fig. 3k), and the drastic reduction in the evoked complex spiking that we observed made it impossible to address the potential further contribution of such a mechanism.

One of the most striking aspects of the ChR2 expression effect was its exquisite sensitivity to expression levels—a fivefold reduction in viral titer was enough to restore both normal complex spiking and learning to an airpuff US. It is well known that viral gene delivery81 and expression of ChR2 and other membrane proteins can alter neuronal morphology and physiology82,83,84,85 in ways that are still not fully understood. It is possible that IO neurons may be particularly vulnerable, for example, due to their high levels of electrical coupling59,86,87, which could explain the failure of many previous attempts to target CFs25. The use of adeno-associated virus (AAV)81 and/or of the CaMKIIa promoter may also have contributed, for instance by driving particularly strong expression levels84 or through perturbing endogenous CaMKII function in the IO88. However, the transgene itself appeared to be critical, because we did not observe a similar phenomenon when using the AAV with the CaMKIIa promoter to drive Jaws expression (Fig. 5h).

The discovery that small changes in ChR2 expression levels can have drastic behavioral consequences has important implications for experiments using optogenetic circuit dissection more broadly. For our purposes, CF-ChR2 expression provided an unexpectedly powerful and selective tool for reducing evoked CSpks, without affecting Purkinje cell simple spiking, while only subtly reducing spontaneous complex spiking. Still, the effects on complex spiking that we observed were not immediately obvious (Fig. 1) and depended on comprehensive quantitative analysis, which was possible only because cell-type-specific activity patterns in the cerebellar circuit and their relationship to relevant sensorimotor signals have previously been exceptionally well characterized. Thus, although we were able to exploit this unexpected effect as an unparalleled opportunity to assess the contributions of evoked CF signaling to cerebellar learning, our findings also highlight the major challenge of identifying circuit tools that allow neuroscientists to cleanly isolate and manipulate specific neural signals within complex networks.

Taken together, our results reconcile many previous, apparently contradictory, findings and suggest that CF-driven CSpk events provide essential instructive signals for cerebellar learning (Fig. 7).

Our findings also raise important questions about how sensorimotor errors are encoded in the cerebellum to support a full range of cerebellum-dependent behaviors. In particular, it is possible that parallel fiber inputs may provide instructive signals independent of CF input in some cases. For instance, whole-body movements like locomotion generate robust activation of mossy fiber inputs89,90. There is evidence that coincident input from spatially clustered parallel fibers can elicit dendritic calcium events in Purkinje cells91,92,93, which could drive cerebellar plasticity in the absence of CF inputs94,95. Although we were not able to induce such an effect via optogenetic stimulation of granule cells (Fig. 4), it remains possible that, during some forms of cerebellum-dependent learning, such as motor adaptation28,96,97,98, sufficiently high levels of parallel fiber activation could instruct parallel fiber plasticity.

Similarly, although our results reveal a necessary role for CF-driven Purkinje cell CSpks, they do not rule out a possible role for additional plasticity mechanisms in the cerebellar nuclei99, which may be important for some forms or components of learning, for instance across time scales4,5,100,101,102,103. Previous work has suggested that cerebellar learning may consist of multiple stages, with initial learning in the cerebellar cortex (driven mainly by CF inputs) leading to changes in Purkinje cell output that then sculpt plasticity in the cerebellar nuclei4,5,100. The relative contributions of cortical versus nuclear plasticity may vary across stages of learning or for different forms of cerebellar learning that progress on different time scales—from short-term motor adaptation over seconds and minutes17,98,101 to eyeblink conditioning, which takes days102, to long-term motor adaptation after prolonged wearing of prism goggles103, for example.

Regardless of possible contributions from additional mechanisms, our findings establish an absolute requirement for CF instructive signals in associative cerebellar learning and suggest that initial CSpk-driven plasticity could be an essential prerequisite for later stages of cerebellar learning to proceed.

Methods

Animals

All procedures were carried out in accordance with the European Union Directive 86/609/EEC and approved by the Champalimaud Centre for the Unknown Ethics Committee and the Portuguese Direção Geral de Veterinária (ref. nos. 0421/000/000/2015 and 0421/000/000/2020). Mice were kept in transparent cages with high-efficiency particulate air filters on a reversed 12-h light:12-h dark cycle, at 21 °C under relative humidity of 50% with free access to food and water. All procedures and experiments were performed in male and female mice aged approximately 12–14 weeks.

Mouse lines

Wild-type C57BL/6J mice were obtained from Jackson Laboratory (strain no. 000664). Selective ChR2 expression in Purkinje cells (L7-Cre;ChR2; Figs. 2 and 3 and Extended Data Fig. 2), granule cells (Gabra6-Cre;ChR2; Fig. 4) and glutamatergic neurons within the IO (vGlut2-Cre;ChR2; Extended Data Fig. 1) were obtained by crossing specific Cre driver lines with ChR2-EYFP-LoxP mice (strain no. 012569 from Jackson Laboratory104) to generate cell-type-specific, ChR2-expressing transgenic animals (Supplementary Table 1). Cre lines were: for Purkinje cells, L7-Cre strain no. 004146 from Jackson Laboratory53,105; for granule cells, Gabra6-Cre (MMRRC 000196-UCD53,54,106,107); and for glutamatergic neurons (within the IO), vGlut2-Cre (strain no. 016963 from Jackson Laboratory60,108,109).

Surgical procedures

For all surgeries, animals were anesthetized with isoflurane (4% induction and 0.5–1.5% for maintenance), placed in a stereotaxic frame (David Kopf Instruments) and a custom-cut metal head plate was glued to the skull with dental cement (Super Bond, C&B). At the end of the surgery, mice were also administered a nonsteroidal anti-inflammatory and painkiller drug (carprofen). After all surgical procedures, mice were monitored and allowed ~1–2 d of recovery.

Viral injections

CFs were targeted28,48 by injecting 250 nl of AAV1.CaMKIIa.hChR2(H134R)-mCherry.WPRE.hGH (Addgene, catalog no. 26975 (ref. 110)) or AAV8.CamKII.Jaws-KGC.GFP.ER2-WPRE.SV40 (UPen, catalog no. AV-8-PV3637 (ref. 78)) into the left dorsal accessory IO, which has been previously implicated in eyeblink conditioning (rostrocaudal (RC) −6.3, mediolateral (ML) −0.5, dorsoventral (DV) 5.55 (refs. 25,26,28)). For the ChR2 virus, we initially diluted the stock virus 1:10 in artificial cerebrospinal fluid (aCSF) to yield a final titer of 1.31 × 1012 GC ml−1 (genome copies per ml) in line with previous studies28. For the low-expression (LE) conditions we diluted the virus an additional 5× to yield a final titer of 2,62 × 1011 GC ml−1. The Jaws virus was diluted in a ratio of 1:10 in aCSF to yield a final titer of 1.47 × 1012 GC ml−1. CF-ChR2 and CF-Jaws mice started the behavioral and electrophysiological experiments 6 weeks after injection to allow time for virus expression and stabilization28.

For optogenetic manipulations (Supplementary Table 1), optical fibers with 100-μm core diameter and 0.22 numerical aperture (NA; Doric lenses) were lowered into the brain through small craniotomies performed with a dental drill and positioned at either the right cerebellar cortical eyelid region (RC −5.7, ML +1.9, DV −1.5)56,58,59 or at the left dorsal accessory IO (RC −6.3, ML −0.5, DV −5.5), which has been previously implicated in eyeblink conditioning25,26,111. Correct fiber placement in both the cerebellar cortex and the IO was functionally verified before experiments by the presence of an evoked eyeblink in the right eye in response to moderate intensity laser stimulation (when possible; see below) and subsequently confirmed histologically. Only animals with good opsin expression and precise fiber targeting were kept in the study.

For in vivo electrophysiological recordings, a disposable 3-mm biopsy punch was used to perform a craniotomy over the right cerebellar cortical eyelid region (RC −5.7, ML +1.9 (refs. 56,58,59)). The craniotomy was covered with a 3-mm glass coverslip with four small holes where the electrode could pass through, and then by a silicon-based elastomer (Kwik-cast, WPI) that was easily removed just before recording sessions.

Behavioral procedures

The experimental setup for eyeblink conditioning was based on previous work53,54. For all behavioral experiments, mice were head fixed and walking on a Fast-Trac Activity Wheel (Bio-Serv). A DC motor with an encoder (Maxon) was used to externally control the speed of the treadmill. Mice were habituated to the behavioral setup for at least 4 d before training, until they walked normally at the target speed of 0.1 m s−1 and displayed no external signs of distress. Eyelid movements of the right eye were recorded using a high-speed monochromatic camera (Genie HM640, Dalsa) to monitor a region of 172 × 160 pixel2 at 900 frames per s. We visually monitored whole-body movements via a webcam continuously throughout each experiment. Custom-written LabVIEW software, together with a NI PCIE-8235 frame grabber and a NI-DAQmx board (National Instruments), was used to synchronously trigger and control the hardware.

Acquisition sessions consisted of the presentation of 90 CS + US paired trials and 10 CS-only trials. The 100 trials were separated by a randomized intertrial interval of 10–15 s. Unless otherwise stated, CS and US onsets on CS + US paired trials were separated by a fixed ISI of 300 ms and both stimuli co-terminated. The CS was a white light LED positioned ~3 cm directly in front of the mouse. The sensory US was an airpuff (276 kpa, 50 ms) controlled by a Picospritzer (Parker) and delivered via a 27G needle positioned ~0.5 cm away from the cornea of the right eye of the mouse. Airpuff direction was adjusted for each session of each mouse so that the US elicited a strong reflexive eyeblink UR.

Behavioral analysis

Videos from each trial were analyzed offline with custom-written MATLAB (MathWorks) software53. The distance between eyelids was calculated frame by frame by thresholding the grayscale image and extracting the minor axis of the ellipse that delineated the eye. Eyelid traces were normalized for each session, from 0 (maximal opening of the eye throughout the session) to 1 (full eye closure achieved under airpuff treatment). Trials were classified as containing CRs if an eyelid closure with normalized amplitude >0.1 occurred >100 ms after CS onset and before US onset.

Optogenetic stimulation and inhibition

Light from 473- or 594-nm lasers (LRS-0473or LRS-0594 DPSS, LaserGlow Technologies; excitation and inhibition, respectively) was controlled with custom-written LabView code. Predicted irradiance levels for the 100-μm diameter, 0.22-NA optical cannulae used in our study were calculated using the online platform: https://web.stanford.edu/group/dlab/optogenetics. All laser powers are comparable to those of previous studies28,29,47,48,53,56,112.

For Pkj-ChR2 (Figs. 2 and 3 and Extended Data Fig. 2), Gabra6-ChR2 (Fig. 4) and vGlut2-ChR2-IO (Extended Data Fig. 1) experiments, laser power was adjusted for each mouse and controlled for each experiment using a light power meter (Thorlabs) at the start and end of each session. For the Pkj-ChR2 experiments of Figs. 2 and 3a–h and Extended Data Fig. 2b–d, laser intensity was adjusted to elicit an intermediate eyelid closure, and no other body movements, at stimulus offset (1–3 mW, maximum irradiance of 95.5 mW mm−2). For the Pkj-ChR2-high (blink at laser onset) experiments of Fig. 3i–l and Extended Data Fig. 2e–h powers ranged from 8 mW to 12 mW, maximum irradiance of 381.8 mW mm−2. For the Gabra6-ChR2 experiments of Fig. 4, intensities were up to 6 mW, irradiance of 190.9 mW mm−2 (causing a blink at laser onset and no other body movements). For the vGlut2-ChR2-IO of Extended Data Fig. 1, laser power was adjusted to elicit a blink (and no other body movements) at laser onset (vGlut2-ChR2-IO: 1–3.3 mW, maximum predicted irradiance of 105 mW mm−2).

For the CF-ChR2 experiments of Fig. 1, because these animals did not blink (or present any other body movements) to laser stimulation (Fig. 1i), the power was set to 6 mW (maximum predicted irradiance of 190.9 mW mm−2). This power was confirmed with electrophysiology to reliably drive Purkinje cell CSpks. The same power was also used for all CF-ChR2-LE experiments, which exhibited a small eyelid twitch (and no other body movements) in response to laser stimulation (Fig. 1i).

When optogenetic stimulation was substituting for a sensory US, where possible we adjusted the timing (onset and duration) of the laser stimulation so that the reflexive blinks would most closely match those elicited by a sensory US (50-ms airpuff delivered to the eye). For Pkj-ChR2 and Gabra6-ChR2 experiments, 100-ms laser stimulation best elicited a blink similar to that of the airpuff. As Pkj-ChR2-med stimulation elicits a blink at the offset of laser stimulation, whereas GC-ChR2 elicits a blink at the onset of laser stimulation (owing to Purkinje cell inhibition via molecular layer interneurons), the onset of the laser stimulation was also adjusted specifically for those experiments. For the CF-ChR2 experiments of Fig. 1, as there was no laser-driven blink (Fig. 1i), we kept the 100-ms laser duration and matched the timing of laser stimulation/CSpk onset.

For the CF-Jaws experiments of Fig. 5, as these animals did not blink or present any other body movement to laser inhibition, the power was set to 6 mW (maximum predicted irradiance of 190.9 mW mm−2). This power was confirmed with electrophysiology to reliably block airpuff-driven Purkinje cell CSpks. For these inhibition experiments, laser started at the time of airpuff onset and laser duration were randomized between 300 ms and 400 ms to avoid consistently timed rebound excitation78.

Electrophysiological recordings

All recordings were performed in vivo, in awake mice. Cell-attached, single-cell recordings were made using long-shanked borosilicate glass pipettes (Warner Instruments) pulled on a vertical puller (Narishige PC-100) and filled with saline solution (0.9% NaCl, typical resistances between 4 MΩ and 5 MΩ). An Optopatcher (A-M Systems) was used for simultaneous optogenetic stimulation and electrophysiological recordings. Laser light (with the same blue or yellow laser used for the behavioral optogenetic manipulations) was transmitted through an optic fiber (50-μm core diameter) inserted inside the glass pipette until it could fit, ~5 mm from the tip. The Optopatcher was oriented toward the cerebellar eyeblink region with a motorized four-axis micromanipulator (PatchStar, Scientifica). Craniotomies were filled with saline and connected to the ground reference using a silver-chloride pellet (Molecular Devices).

Recordings were performed with a Multiclamp 700B amplifier (Axon Instruments) in its voltage-clamp configuration, with a gain of 0.5 V nA−1 and low-pass Bessel filter with a 10-kHz cut-off. The current offset between the interior and exterior of the pipette was always kept neutral to avoid passive stimulation of the cells. All recordings were sampled at 25 kHz from the output signal of the amplifier using a NI-DAQmx board and Labview customized software. We observed subtly lower spontaneous CSpk rates (a typical criterion for identifying Purkinje cells in electrophysiological recordings), in Purkinje cells of CF-ChR2 mice compared with controls. As a result of this, for all CF-ChR2 (and CF-ChR2-LE) experiments, Purkinje cells were identified based on the presence of a laser-triggered CSpk rather than spontaneous CSpks, to avoid selection bias resulting from the absence of spontaneous complex spiking (Fig. 6). Spikes were sorted offline using customized Python code for SSpks and a modified Un’Eye neural network113 for CSpks.

Histology

All experiments included histological verification of injection and fiber placement and transgene expression levels. After the experiments, animals were perfused transcardially with 4% paraformaldehyde and their brains removed. Brain sections (50 μm thick) were cut in a vibratome and stained for Purkinje cells with chicken anti-calbindin primary antibody (catalog no. 214006 SYSY) at dilution 1:300 and anti-chicken Alexa Fluor-488 (catalog no. 703-545-155) or Alexa Fluor-594 (catalog no. 703-585-155) secondary antibodies from Jackson Immunoresearch (both at dilution 1:800). General cell nuclear labeling was also made using DAPI. Brain sections were mounted on glass slides with mowiol mounting medium and imaged with ×5, ×10 or ×20 objectives. Brain slices from experiments where CFs were targeted were also imaged with an upright, confocal, laser point-scanning microscope (Zeiss LSM 710), using a ×10 or ×40 objective.

Statistical analysis

Data are reported as mean ± s.e.m. and statistical analyses were performed using the Statistics toolbox in MATLAB. Two-sample, two-tailed or paired Student’s t-tests (specified in each case) were performed for all comparisons unless otherwise indicated. Differences were considered significant at: *P < 0.05, **P < 0.01 and ***P < 0.001. Data distribution was assumed to be normal but this was not formally tested. No statistical methods were used to predetermine sample sizes; sample sizes are similar to those reported in previous publications53,54,56. Data collection and analysis were not performed blind to the conditions of the experiments. Mice were randomly assigned to specific experimental groups without bias. No animals with validated histology or data points were excluded from analysis.

Reporting summary

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