# Goal-directed vocal planning in a songbird

Anja Zai, Anna Stepien, Nicolas Giret, Richard H.R. Hahnloser

► To cite this version:

Anja Zai, Anna Stepien, Nicolas Giret, Richard H.R. Hahnloser. Goal-directed vocal planning in a songbird. eLife, 2024, 12, pp.RP90445. 10.7554/eLife.90445.1. hal-03809832

HAL Id: hal-03809832

https://hal.science/hal-03809832v1

Submitted on 17 Jul 2024

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>
<figure><img src="image_2.png" /></figure>

# Goal-directed vocal planning in a songbird

Anja T Zai¹,²*, Anna E Stepien¹,², Nicolas Giret³, Richard HR Hahnloser¹,²

¹Neuroscience Center Zurich (ZNZ), University of Zurich and ETH Zurich, Zurich, Switzerland; ²Institute of Neuroinformatics, University of Zurich and ETH Zurich, Zurich, Switzerland; ³Institut des Neurosciences Paris-Saclay, UMR 9197 CNRS, Université Paris-Saclay, Saclay, France

**Abstract** Songbirds' vocal mastery is impressive, but to what extent is it a result of practice? Can they, based on experienced mismatch with a known target, plan the necessary changes to recover the target in a practice-free manner without intermittently singing? In adult zebra finches, we drive the pitch of a song syllable away from its stable (baseline) variant acquired from a tutor, then we withdraw reinforcement and subsequently deprive them of singing experience by muting or deafening. In this deprived state, birds do not recover their baseline song. However, they revert their songs toward the target by about 1 standard deviation of their recent practice, provided the sensory feedback during the latter signaled a pitch mismatch with the target. Thus, targeted vocal plasticity does not require immediate sensory experience, showing that zebra finches are capable of goal-directed vocal planning.

## eLife assessment

This **important** work identifies a previously uncharacterized capacity for songbird to recover vocal targets even without sensory experience. The evidence supporting this claim is **convincing**, with technically difficult and innovative experiments exploring goal-directed vocal plasticity in deafened birds. This work has broad relevance to the fields of vocal and motor learning.

## Introduction

Speech planning is an important part of human communication and the inability to plan speech is manifest in disorders such as apraxia. But to what extent is targeted vocal planning an entirely human ability? Many animals are capable of volitional control of vocalizations (Brecht et al., 2019; Veit et al., 2021), but are they also capable of planning to selectively adapt their vocalizations toward a target, such as when striving to reduce the pitch mismatch of a note in a song? Target-specific vocal planning is a cognitive ability that requires extracting or recalling a sensory target and forming or selecting the required motor actions to reach the target. Such planning can be covert or overt. Evidence for covert planning is manifest when a targeted motor change is executed without intermittent practice (Costa-Lunga et al., 2023), for example, when we instantly imitate a word upon first hearing. Overt planning, by contrast, includes practice, but without access to the sensory experience from which target mismatch could be computed, for example, when we practice a piano piece by tapping on a table.

The vocal planning abilities in animals and their dependence on sensory experience remain poorly explored. Motor learning has been mostly studied in tasks where a skilled behavioral response must be produced on the spot, such as when a visual target must be hit by a saccade or by an arm reaching movement (Brashers-Krug et al., 1996; Galea et al., 2011; Shmuelof et al., 2012; Krakauer et al., 2005). In this context, motor planning has been shown to enhance motor flexibility as it allows

<footnote>*For correspondence: zaia@ethz.ch</footnote>

<footnote>**Competing interest:** The authors declare that no competing interests exist.</footnote>

<footnote>**Funding:** See page 15</footnote>

<footnote>**Preprint posted**
26 May 2023</footnote>

<footnote>**Sent for Review**
12 July 2023</footnote>

<footnote>**Reviewed preprint posted**
28 September 2023</footnote>

<footnote>**Reviewed preprint revised**
26 February 2024</footnote>

<footnote>**Reviewed preprint revised**
07 May 2024</footnote>

<footnote>**Version of Record published**
03 July 2024</footnote>

<footnote>**Reviewing Editor:** Jesse H Goldberg, Cornell University, United States</footnote>

<footnote>© Copyright Zai et al. This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.</footnote>
separation of motor memories when there are conflicting perturbations (Sheahan et al., 2016). However, for developmental behaviors such as speech or birdsong that rely on hearing a target early in life (Konishi, 1985; Immelmann, 1969), the roles of practice and of sensory feedback for flexible vocal control and for target-directed adaptation are unknown.

Recovery of a once-learned vocal skill could be instantaneous (covert) or it might require practice (overt). In support of the former, many motor memories are long-lasting (Park et al., 2013), for example, we can recall the happy-birthday song for years without practice. Some memories are even hard to get rid of such as accents in a foreign language. By contrast, practice-dependent, but feedback-independent recovery is argued for by arm reaching movements during use-dependent forgetting: following adaptation to biasing visual feedback, arm movements recover when the bias is either removed or the visual error is artificially clamped to zero (Galea et al., 2011; Shmuelof et al., 2012). One explanation put forward is that motor adaptation is volatile and has forgetting built-in (Krakauer et al., 2005; Smith et al., 2006), leading to practice-dependent reappearance of the original motor program even without informative feedback (Smith et al., 2006). Given these possibilities, we set out to probe songbirds' skills of recovering their developmental song target when deprived of either singing practice (to probe covert planning) or of sensory feedback (to probe overt planning).

Adult vocal performances in songbirds can be altered by applying external reinforcers such as WN stimuli (Tumer and Brainard, 2007; Andalman and Fee, 2009). When the reinforcer is withdrawn, birds recover their original song within hundreds of song attempts (Tumer and Brainard, 2007; Canopoli et al., 2014; Warren et al., 2011; Hoffmann et al., 2016). We argued that these attempts may be unnecessary and birds could recover their original performance by recalling either (1) the original motor program (Aronov et al., 2008; Nottebohm et al., 1976; Prather et al., 2009) or (2) its sensory representation (Yazaki-Sugiyama and Mooney, 2004; Kojima and Doupe, 2007; Yanagihara and Yazaki-Sugiyama, 2016) plus the mapping required for translating that into the original program (Canopoli et al., 2014; Warren et al., 2011; Figure 1A). These options might not need sensory feedback, which is argued for by birds' large perceptual song memory capacity (Yu et al., 2020). That is, birds' song practice may be mainly expression of deliberate playfulness (Riters et al., 2019), conferring the skill of vocal flexibility rather than serving to reach a target, evidenced by young birds that explore vocal spaces close to orthogonal to the song-learning direction (Kollmorgen et al., 2020) and that are already surprisingly capable of adult-like singing when appropriately stimulated (Kojima and Doupe, 2011).

## Results

To test whether birds can covertly recover a song syllable without practice, we first reinforced the pitch of a song syllable away from baseline and then we suppressed birds' singing capacity for a few days by muting their vocal output. We then unmuted birds and tested whether the song has covertly reverted back to the original target. We used syllable pitch as the targeted song feature because we found that birds did not reliably recover syllable duration in experiments in which we induced them to shorten or lengthen syllable duration (Figure 1—figure supplement 1).

We first drove pitch away from baseline by at least 1 standard deviation using a WN stimulus delivered whenever the pitch within a 16 ms time window locked to the targeted syllable was above or below a manually set threshold (Figure 1B and C, see 'Materials and methods'). We muted these WNm (WN reinforced and muted) birds by implanting a bypass cannula into the abdominal air sac (see 'Materials and methods'). While muted, air is leaking from the abdominal air sac and as a result, sub-syringeal air pressure does not build up to exceed the threshold level required for the self-sustained syringeal oscillations (Elemans et al., 2015) that underlie singing. Physical absence of such oscillations essentially strips muted birds from all pitch experience. In some cases, the bypass cannula got clogged during the muted period and birds were spontaneously unmuted, allowing them to produce a few songs before we reopened the cannula (Figure 1C–G).

We quantified recovery in terms of normalized residual pitch (NRP) to discount for differences in the amount of initial pitch shift where NRP = 0% corresponds to complete recovery and NRP = 100% corresponds pitch values before withdrawal of reinforcement (R) and thus no recovery. After spending 5.1 ± 1.6 days (range 3–8 days, N = 8) in the muted state and upon unmuting, WNm birds displayed an average NRP of 89%, which was far from baseline (p=6.2 · 10⁻⁸, tstat = -23.6, N = 8 birds, two-sided t-test of H0: NRP = 0%, songs analyzed in 2 hr time window – early (E), see 'Materials and methods',
<figure><img src="image_3.png" /><figcaption>**Figure 1.** Recovery of pitch target requires practice. (A) Two hypotheses on birds' ability to recover a song target away from their current vocal output (green circles, motor states on the left, sensory states on the right, shading represents probabilities): Either they could recall the motor target and reactivate it without practice or they could recall a sensory target plus the neural mapping (black arrows) required to transform it into a motor state. (B) WNm birds were first pitch-reinforced using white noise (WN), then muted, and subsequently unmuted. WN was delivered when the pitch of the target syllable was either below (as exemplified here) or above a threshold. Pitch recovery from the reinforced (R) state toward the baseline (B) target is evaluated in early (E no practice) and late (L, with practice) analysis windows (all windows are time-aligned to the first 2 hr of songs after withdrawal of reinforcement, E) and compared to recovery in unmuted control birds (WNC). (C) Syllable pitches (dots, red = reinforced syllables) of an example bird that while muted recovered only about 27% of pitch difference to baseline despite three spontaneous unmuting events (arrows). (D) Same bird, spectrograms of example song motifs from five epochs: during baseline (B), reinforcement (R) with WN (green bar), spontaneous unmuting (spont. unmut.), and during permanent unmuting (early – E and late – L). (E) Example syllables from same five epochs. (F) Stack plot of pitch traces (pitch indicated by color, see color scale) of the first 40 targeted syllables in each epoch ('reinforced': only traces without WN are shown). (G) Average pitch</figcaption></figure>

Figure 1 continued on next page
Figure 1 continued

traces from (F), revealing a pitch increase during the pitch-measurement window (dashed black lines) and pitch recovery late after unmuting. (H) WNm birds (blue lines, N = 8) showed a normalized residual pitch (NRP) far from zero several days after reinforcement (circles indicate unmuting events, arrow shows bird from C) unlike WNC birds (gray lines, N = 18). Thin dashed lines indicate the two initial birds that were not given reinforcement-free singing experience before muting (see 'Materials and methods'). (I) Violin plots of same data restricted to early and late analysis windows (***p<0.001, *p<0.05, two-tailed t-test of NRP = 0).

The online version of this article includes the following figure supplement(s) for figure 1:

**Figure supplement 1.** Birds rapidly recover pitch but not duration after reinforcement learning.

**Figure 1**), suggesting that in the muted state, birds are unable to recover their pre-reinforced songs. The average NRP in WNm birds was comparable to that of unmanipulated control (WNC) birds within the first 2 hr after withdrawal of the reinforcer (average NRP = 91%, p=3.7 · 10⁻¹¹, tstat = 14.8, two-sided t-test for NRP = 0%, N = 18 WNC birds). Indeed, during 5 days without song practice, birds recovered no more pitch distance than birds normally do within the first 2 hr of release from reinforcement (p=0.82, tstat = -0.23, N = 8 WNm and N = 18 WNC birds, two-sided t-test). In WNm birds, there was no correlation between the NRP in the early window and the time since the muting surgery (correlation coefficient R=0.26, p=0.53), suggesting that the lack of pitch recovery while muted was not due to a lingering burden of the muting surgery. These findings did not sensitively depend on the size of the analysis window — we also tested windows of 4 and of 24 hr.

Subsequently, after 4 days of unmuted singing experience (roughly 9 days after withdrawal of WN), WNm birds displayed an average NRP of 30%, which was significantly different from the average NRP within the first 2 hr after unmuting (p=3 · 10⁻⁴, tstat = 4.83, N = 8 birds, two-tailed t-test early (E) vs. late (L) time window) but still significantly different from zero (p=0.04, tstat = 2.59, N = 8 birds, two-tailed t-test, late (L) time window). The amount of recovery was neither correlated with the number of renditions sung between early and late windows (R=0.03, p=0.95), nor with the duration the birds were muted (R=-0.50, p=0.20), nor with the time since they last sung the target song before reinforcement (R=-0.43, p=0.29), suggesting the limiting factor for recovery was neither the amount of song practice nor the recovery time from the muting surgery (although for the latter there was a trend). Overall, these findings rule out covert planning in muted birds and suggest that motor practice is necessary for recovery of baseline song.

Next, we tested whether motor experience but not sensory experience is necessary for overt recovery, similar to arm reaching movements that can be restored without guiding feedback (Galea et al., 2011; Galea et al., 2015). In a second group of birds, we provided slightly more singing experience (Figure 2). Instead of muting, WNd birds were deafened through bilateral cochlea removal immediately after the end of WN reinforcement. This latter manipulation does not suppress the act

<figure><img src="image_4.png" /><figcaption>**Figure 2.** Recovery of pitch target is impaired after deafening. (A) WNd birds were first pitch-reinforced using white noise (WN) and then deafened by bilateral cochlea removal. Analysis windows (letters) as in Figure 1. (B) Syllable pitches (dots, red = reinforced syllables) of example WNd bird that shifted pitch down by d' = -2.7 during WN reinforcement and subsequently did not recover baseline pitch during the test period. (C) WNd birds (N = 10) do not recover baseline pitch without auditory feedback (circles = early window after deafening events, cross = late). (D) Violin plots of same data restricted to early and late analysis windows, lines connect individual birds (***p<0.001, *p<0.05, two-tailed t-test of NRP = 0).</figcaption></figure>
<figure><img src="image_5.png" /><figcaption>**Figure 3.** Deaf birds do not recover pitch target after light-induced mismatch. (A) dLO birds were first deafened and then pitch-reinforced using a brief light-off (LO) stimulus. Analysis windows (letters) as in **Figure 1**. (B) Syllable pitches (dots, blue = LO-reinforced syllables) of example dLO bird that shifted pitch up by *d'* = 3.5 within a week, but showed no signs of pitch recovery during the test period. (C) dLO birds (N = 8) do not recover baseline pitch without auditory feedback. (D) Violin plots of same data restricted to the late analysis window (***p<0.001, two-tailed t-test of NRP = 0).</figcaption></figure>

of singing as does muting, but it eliminates auditory feedback from singing. Deaf birds could gain access to some pitch information via somatosensory stretch and vibration receptors and/or air pressure sensing (Suthers et al., 2002). Our aim was to test whether such putative pitch correlates are sufficient for recovery of baseline pitch (Figure 2A). However, in the deaf state, WNd birds did not recover baseline pitch even after 4 days of song practice: on the fifth day (late, *L*) after deafening, their average NRP was still 50%, which was different from zero (*p*=0.03, *tstat* = 2.73, two-tailed t-test of H0: NRP = 0%, N = 10, Figure 2D) and significantly larger than the average NRP of WNC birds on the fifth day since withdrawal of reinforcement (difference in NRP = 49%, *p*=0.003, *tstat* = 3.34, df = 26, N = 10 WNd and N = 18 WNC birds, two-tailed t-test).

We speculated that the lack of pitch recovery in WNd birds could be attributable to the sudden deafening experience, which might be too overwhelming to uphold the plan to recover the original pitch target. WNd deaf birds did not sing for an average of 2.3 ± 1.1 days (range 1–4 days) after the deafening surgery, which is a strong indication of an acute stressor (Yamahachi et al., 2020). We thus inspected a third group of birds (dLO, Figure 3) taken from Zai et al., 2020a that learned to shift pitch while deaf and that underwent no invasive treatment between the pitch reinforcing experience and the test period of song recovery.

dLO birds were first deafened, and after they produced stable baseline song for several days, their target syllable pitch was reinforced using pitch-contingent light-off (LO) stimuli, during which the light in the sound recording chamber was briefly turned off upon high- or low-pitch syllable renditions (Zai et al., 2020b). dLO birds displayed an average NRP of 112% on the fifth day since release from LO, which was significantly different from zero (*p*=3.7 · 10⁻⁸, *tstat* = 25.4, N = 8 birds, two-tailed t-test of H0: NRP = 0) and was larger than the NRP in WNC birds on the fifth day since release (*p*=1.3 · 10⁻¹³, *tstat* = 14.9, df = 24, N = 8 dLO and N = 18 WNC birds, two-sided t-test). Thus, dLO birds were unable to recover baseline pitch, suggesting that song recovery requires undiminished sensory experience, which includes auditory feedback.

Deaf birds' decreased singing rate could not explain their lack of pitch recovery. Deaf birds sang less during the first 2 hr since release of reinforcement (early) than control birds: 87 ± 59 motif renditions for WNd and 410 ± 330 renditions for dLO compared to 616 ± 272 renditions for WNC birds. Also, WNd birds sang only 4,300 ± 2,300 motif renditions between the early and late period compared to the average of 11,000 ± 3,400 renditions that hearing WNC birds produced in the same time period. However, despite these differences, when we inspected WNd birds' behavior 9 days after the early window, when they sung on average 12,000 ± 6,000 renditions, their NRP was still significantly different from zero (NRP = 0.37, *p* = 0.007, *tstat* = 3.47, df = 9). Thus, even after producing more practice songs than control birds, deaf birds did not recover baseline pitch and so the number of songs alone cannot explain why deaf birds do not fully recover pitch. We conclude that auditory experience seems to be necessary to recover song.
<figure><img src="image_6.png" /><figcaption>**Figure 4.** Target mismatch experience is necessary for revertive pitch changes. (A) WNd birds heard a target mismatch during reinforcement whereas dLO birds did not. dC birds were not pitch reinforced, their analysis windows (letters as in Figure 1) matched those of manipulated birds in terms of time since deafening. (B, C) Pitch change between the last 2 hr of reinforcement (R) and the pitch of successive days aligned to the first 2 hr of song after withdrawal of reinforcement in std for WNd (red, B) and dLO (blue, C) birds. Early and late windows are marked with markers (dots, crosses) in (B) and letters (E, L) in (C). Curves are plotted such that pitch changes toward the target are pointing down (see ‘Materials and methods’). Example birds shown in (D, E) are marked with arrows. (D, E) Syllable pitches (dots, red = WN reinforced, blue = LO-reinforced syllables) of example WNd (D) and dLO (E) bird. (F) WNd (red) perform both early and late pitch changes in the direction of the baseline target (by about one standard deviation, *p*<0.05, ***p*<0.001, one-tailed t-test, N=10 WNd birds and N = 8 dLO birds), similar to WNC (gray) and unlike dLO (blue) birds without mismatch experience. Dotted lines mark y-range displayed in (G) Bootstrapped pitch differences between reinforced WNd (red) and dLO (blue) and 10,000 times randomly matched dC birds, shown for early (solid line) and late (dashed line) analysis windows. The stars indicate the bootstrapped probability of a zero average pitch difference between reinforced and dC birds (n.s. not significant, **p*<0.01, ***p*<0.001, N=10 WNd birds and N = 8 dLO birds).</figcaption></figure>

That song practice and sensory experience are required for full recovery of song does not imply that without experience, birds are incapable of making any targeted changes to their songs at all. We therefore inspected birds' fine-grained vocal output and whether they changed their song in the direction of baseline when deprived of sensory experience. We hypothesized (Figure 4A) that when birds experience a target mismatch during reinforcement (i.e., they hear that their song deviates from the target), they plan to recover the pitch target, and a portion of this plan they can execute without feedback. If, by contrast, they have no mismatch experience before deafening, they will make no corresponding plan. Hence, we predicted that WNd birds that experienced a pitch mismatch during reinforcement and before deafening would slightly revert their song toward baseline even in the absence of auditory feedback. By contrast, dLO birds that did not experience a mismatch because they did not hear their song while it was reinforced would not revert toward the target (Figure 4A).

Indeed, WNd birds changed their pitch significantly toward baseline already in the first 2 hr of their singing since release from reinforcement (relative to the pitch from the last 2 hr during reinforcement). We quantified local pitch changes in terms of the *d'* sensitivity of signal detection theory (which is independent of shift magnitude) and found *d'* = -0.60 (*p* = 0.03, *t*stat = -2.19, *df* = 9, N = 10 WNd birds, one-sided *t*-test of H0: *d'* = 0). A significant reversion toward pitch baseline was still evident after 4 days of practice (*d'* = -1.27, *p* = 0.02, *t*stat = -2.35, N = 10 WNd birds, one-sided *t*-test, Figure 4B, *D* and *F*), showing that pitch reversion in deaf birds is persistent. Because the average pitch shift in WNd birds was on the order of one standard deviation (*d'*≈ 1), we conclude that without auditory experience, birds are able to perform target-directed pitch shifts of about the same magnitude as their current exploratory range (i.e., the denominator of the *d'* measure).

In contrast, dLO birds showed no signs of reverting pitch, neither in the first 2 hr since release of reinforcement (*d'* = -0.13, *p* = 0.36, *t*stat = -0.37, *df* = 7, N = 8 birds, one-sided *t*-test), nor after 4 days of practice (*d'* = -0.08, *p* = 0.43, *t*stat = -0.18, *df* = 7, N = 8 birds, one-tailed *t*-test, **Figure 4C, E and F**).

The singing rate does not explain why deaf birds with mismatch experience partially revert their song toward baseline, unlike deaf birds without mismatch experience. WNd birds sang less during the first 2 hr after reinforcement (early) than both control birds (*p*=2.3·10⁻⁶, *t*stat = 6.02, *df* = 26, N
= 10 WNd and N = 18 WNC birds, two-sided t-test) and dLO birds (p=0.008, tstat = 3.06, df = 16, N = 8 dLO birds, two-sided t-test), unlike dLO birds that sang similar amounts as WNC birds (p = 0.11, tstat = 1.67, df = 24, two-sided t-test). If the number of songs were to determine the rate of recovery, we would have seen the opposite effect (dLO birds should recover similar amounts as WNC birds and significantly more than WNd birds). In conclusion, singing rate does not explain the difference between WNd and dLO birds.

To discount for the effect of time elapsed since deafening and quantify the change in pitch specifi-
cally due to reinforcement, we bootstrapped the difference in *d'* between dLO/WNd birds and a new
group of dC birds that were deafened but experienced no prior reinforcement (see 'Materials and
methods'). To discount for possible influences of circadian pitch trends, we assessed early and late
pitch changes in reinforced birds and in dC birds in 2 hr time windows separated by multiples of 24 hr
(and again flipped pitch changes in birds that were reinforced to decrease pitch, see 'Materials and
methods'). In agreement with the findings above, we found that significant reversion toward baseline
was only seen in WNd birds and very consistently so (Figure 4G, Supplementary file 1), showing
that prior experience of a target mismatch is necessary for pitch reversion independent of auditory
feedback.

We further validated our finding using a linear mixed effect model on the combined NRP data of all groups (see ‘Materials and methods’), which confirmed our previous findings: we did not find a significant effect of the time without practice between *R* and *E* windows on the NRP in the *E* window (fixed effect –0.04, *p* = 0.2), confirming that birds do not recover without practice. Neither deafening nor muting had a significant effect by itself but the interaction between deafening and time (late) was associated with an NRP increase of 0.67 (fixed effect, *p* = 2 · 10<sup>-6</sup>), demonstrating that deaf birds are significantly further away from baseline (NRP = 0) than hearing birds in late windows, thereby confirming that birds require auditory feedback to recover a distant pitch target. Importantly, we found that mismatch experience was associated with a significant fixed effect of –0.37 on the NRP (fixed effect toward the target, *p* = 0.006), supporting our finding that limited vocal plasticity is possible even in the absence of auditory feedback.

Our results thus argue for a model of song maintenance in which birds extract from target mismatch
experience a plan of reducing the mismatch. Without practice and auditory experience, birds cannot
reach a distant motor target (Figure 5A). With practice and without auditory experience, they can
make small changes toward a target, which we refer to as the planning range. Auditory experience
allows them to consolidate the small changes such that step-by-step they can reach even a distant
target (Figure 5B).

<figure><img src="image_7.png" /><figcaption>**Figure 5.** Schematic illustrating the goal-directed planning of vocal changes. (A) Without practice, birds cannot recover a distant motor target (black filled circle) far away from the current motor output (green filled circle). (B) Without auditory experience, birds can make motor changes (green arrows) toward a target within a small range, we refer to this range as the (overt) planning range (blue). To recover a distant target (black filled circle) beyond the planning range, birds need auditory experience (green circles under Sensory), presumably to consolidate (dashed arrows) the overt motor changes.</figcaption></figure>
Discussion

Our work shows that recent auditory experience can drive motor plasticity even while an individual is deprived of such experience, that is, zebra finches are capable of overt vocal planning. But to reach a distant vocal target beyond the pitch range they have recently produced necessitates auditory feedback, which sets a limit to zebra finches’ overt planning ability.

Our insights were gained in deaf birds, and we cannot rule out that deaf birds could gain access to pitch information via somatosensory-proprioceptive sensory modalities. However, such information, even if available, cannot explain the difference between the ‘mismatch experience’ (WNd) and the ‘no mismatch experience’ (dLO) groups, which strengthens our claim that the pitch reversion we observe is a planned change and not merely a rigid motor response (as in simple use-dependent forgetting; Galea et al., 2011; Shmuelof et al., 2012). Also, it is unlikely that dLO birds’ inability to recover baseline pitch is somehow due to our use of a reinforcer of a non-auditory (visual) modality since somatosensory stimuli do not prevent reliable target pitch recovery in hearing birds (Sober and Brainard, 2009). Thus, the overt planning ability is an active experience-dependent process.

In our two-stage model, recovery of a developmentally learned vocal target is controlled by two nested processes, a highly flexible process with limited scope ($d' \approx 1$, Figures 4 and 5), and a dependent process enabled by experience of the former. Such motor learning based on separate processes for acquisition and retention is usually referred to as motor consolidation (Brashers-Krug et al., 1996; Fenn et al., 2003; Karni and Sagi, 1993). Accordingly, the flexible process of acquisition or planning as we find is independent of immediate sensory experience, but the dependent process (consolidation of the flexible process) requires experience. Perhaps then, it is the sensory experience itself that is consolidated, and therefore, consolidation of sensory experience may be a prerequisite for extensive planning.

We cannot distinguish the overt planning we find from a more complex use-and-experience-dependent forgetting since we only probed for recovery of pitch and did not attempt to push birds into planning pitch shifts further away from baseline. Evidence for more flexible planning is provided by the pitch matching skills of nightingales (Costalunga et al., 2023). Interestingly, although nightingales can reach without practice even distant pitch targets, the targets in Costalunga et al., 2023 were also located within the extent of nightingale's recent song practice, so also satisfied $d' \approx 1$. Perhaps then, our two-stage model of song plasticity of planning and consolidation in Figure 5 applies more broadly in songbirds and not just in zebra finches.

Consolidation in motor learning generally emerges from anatomically separated substrates for learning and retention (Galea et al., 2011). Such separation also applies to songbirds. Both reinforcement learning of pitch and recovery of the original pitch baseline depend on the anterior forebrain pathway and its output, the lateral magnocellular nucleus of the anterior nidopallium (LMAN) (Warren et al., 2011). LMAN generates a pitch bias that lets birds escape negative pitch reinforcers and recover baseline pitch when reinforcement is withdrawn (Andalman and Fee, 2009), thus is likely involved in planning. This pitch bias is consolidated outside of LMAN (Warren et al., 2011; Tian and Brainard, 2017) in a nonlinear process that is triggered when the bias exceeds a certain magnitude (Tachibana et al., 2022). This threshold magnitude is roughly identical to the planning limit we find ($d' \approx 1$), suggesting that birds' planning limit arises from the consolidation of LMAN-mediated motor plasticity. Although it remains to be seen whether LMAN is capable of executing motor plans without sensory feedback, our work provides a new perspective on the neural basis of birdsong learning and consolidation in and around LMAN.

The formation of a planned motor change may not require LMAN itself because pharmacological suppression of LMAN sets the bias to zero, but upon removal of output suppression, the pitch of the song syllable that was targeted by reinforcement jumps by about 1% away from the reinforced pitch zone (Charlesworth et al., 2012), which corresponds to about $d' = 1$, about the planning limit we find. Originally, this jump was interpreted as evidence of functional connectivity or an efference copy between the anterior forebrain pathway of which LMAN is part of and some other unspecified variability-generating motor area. However, in our view, a simpler explanation requiring neither functional connectivity nor efference copy is that LMAN is involved in putting a plan into action, which in that case is to produce syllable variants that are unaffected by WN.

Zebra finches' ability to plan directed song changes could hinge on song memories that feed into LMAN and that could drive neurons there to produce diverse perceptual song variants. LMAN neurons
are selective for the bird's own song but not the target song (Yazaki-Sugiyama and Mooney, 2004; Kojima and Doupe, 2007), which makes them well suited for executing song plans within the range of recent experience (i.e., if the song is outside recent experience, it elicits no LMAN response and so does not gain access to planning circuits). Furthermore, LMAN neurons show mirrored activity, that is, similar activity when a zebra finch produces a vocal gesture and when it hears the same gesture played through a loudspeaker (Hanuschkin et al., 2013; Oztop et al., 2013). This mirrored activity has been argued to be involved in translating an auditory target into the corresponding motor command, also known as an inverse model (Giret et al., 2014). Mirroring in LMAN was observed across the song variability generated over a period of several hours, which is about the same as the experience-dependent pitch planning limit we find. Zebra finches could thus transform a desired pitch change into the corresponding motor plan via LMAN's aligned sensory and motor representations of recent vocal output.

In a broader context of motor recovery, birds' failure to recover baseline pitch without guiding sensory feedback agrees with reports that binary reinforcement (as we used) slows down or prevents forgetting of the adapted behavior (Shmuelof et al., 2012). However, whereas forgetting is fast when sensory errors affect arm movements (Shmuelof et al., 2012), the contrary applies to birdsong, where pitch learning from artificial sensory errors is slower and less forgotten (Sober and Brainard, 2009) than is pitch learning from binary reinforcement (Tumer and Brainard, 2007; Canopoli et al., 2014). Hence, the commonality of short-term visuo-motor adaptation and of birdsong maintenance is that slow learning leads to slow forgetting, regardless of whether it is due to sensory errors or reinforcement. Such conclusion also agrees with observations that zebra finch song does not recover to pre-manipulated forms, both after restoring auditory feedback after long-term (>5 months) deprivation (Zevin et al., 2004) and after restoring normal syrinx function after long-term (16 weeks) manipulation with beads (Hough and Volman, 2002), suggesting that song can spontaneously recover only within some limited time since it was manipulated.

Our observations in zebra finches could be relevant to other species including humans. The planning abilities we find bear resemblance to human motor imagery for movement learning, which is most effective when subjects already show some competence for the movements to be learned (Mulder et al., 2004), suggesting a recall-dependent process. Naively, human vocal flexibility seems superior to that of zebra finches since we can flexibly change sound features such as loudness, pitch, and duration to convey emotional state or to comply with the tonal and rhythmical requirements of a musical piece (Dichter et al., 2018; Belyk and Brown, 2016), whereas zebra finches produce more subtle modulations of their songs, for example, when directing them to a female (Stepanek and Doupe, 2010). Nevertheless, a limit of human vocal flexibility is revealed by non-native accents in foreign languages, which are nearly impossible to get rid of in adulthood. Thus, a seeming analogous task to feedback-dependent learning of zebra finch song, in humans, is to modify developmentally learned speech patterns.

Our findings help elucidate the meaning of song signals in songbirds and the evolutionary pressures of singing. Because zebra finches seem incapable of large jumps in performance without practice, their current song variants are indicative of the recent song history, implying that song is an honest signal that zebra finches cannot adapt at will to deceive a receiver of this signal. Hence, if high pitch has either an attractive or repelling effect on another bird, a singer must commit to being attractive or repulsive for some time. In extension, we speculate that limited vocal flexibility increases the level of commitment to a group and thereby strengthens social cohesion.

## Materials and methods

All experimental procedures were in accordance with the Veterinary Office of the Canton of Zurich (licenses 123/2010 and 207/2013) or by the French Ministry of Research and the ethical committee Paris-Sud and Centre (CEEA no. 59, project 2017-12).

## Subjects

We used in total 76 birds. All birds were 90-300 days old (except one 853-day-old control bird) and were raised in the animal facility of the University of Zurich or in Saclay. During recording, birds were housed in single cages in custom-made sound-proof recording chambers equipped with a wall
microphone (Audio-Technica Pro4 and 2), a loudspeaker. The day/night cycle was set to 14/10 hr except for one muted bird that was in constant light due to a technical problem.

## Song recordings

Vocalizations were saved using custom song-recording software (Labview, National Instruments Inc). Sounds were recorded with a wall microphone and digitized at 32 kHz. In all birds, we recorded baseline vocal activity for at least 3 days before doing any manipulation (deafening or pitch reinforcement).

## Pitch reinforcement

We calculated pitch (fundamental frequency) as described in Canopoli et al., 2014. To provide pitch reinforcement in real time, we used a two-layer neural network trained to detect a manually clustered syllable containing a harmonic stack (Yamahachi et al., 2020). We evaluated the fundamental frequency of that syllable in a 16–24 ms time window following detection. For pitch reinforcement, we either broadcast a 50–60-ms-long WN stimulus through a loudspeaker or briefly switched off the light in the isolation chamber for 100–500 ms (LO) when pitch was below or above a manually set threshold. The WN/LO stimulus onset occurred 7 ms after the pitch calculation offset. We performed cumulative pitch shifts across several days by adjusting the pitch threshold for WN/LO delivery each day, usually setting it close to the median value of the previous day. Sometimes the threshold was set more than once during a day, in this case we set it close to the median of the pitch values measured so far during that day. All birds were shifted by at least 1 standard deviation (d' > 1, see ‘Pitch analysis’).

Reported pitch values were collected as above, except in muted birds that directly after unmuting produced syllables of lower amplitude and with distorted spectral features (e.g., Figure 1C, E and F), which resulted in frequent mis-detections by the neural network. In muted birds, we therefore performed semi-automatic (manually corrected) syllable detection and computed pitch at a fixed time lag after syllable onset. Despite deafening leading to degradation of birds’ song (Lombardino and Nottebohm, 2000), syllable detection and pitch calculation were still possible in all deaf birds (birds were recorded during 13–50 days after deafening surgery, age range 90–300 dph, N = 44 birds). Since pitch shifting was balanced in all deaf bird groups (the same number of birds were up- and down-shifted), systematic changes in pitch post deafening (Lombardino and Nottebohm, 2000) will average out and so would not affect our findings.

## Duration reinforcement

Duration reinforcement was performed similarly as pitch reinforcement, but instead of measuring the pitch of a targeted syllable, we measured the duration of a targeted song element (either a syllable, a syllable plus the subsequent gap, or just a gap). Onsets and offsets of the targeted element were determined by thresholding of the root-mean-square (RMS) sound amplitude.

## Bird groups

### WN control (WNC)

Eighteen birds in the control group underwent WN pitch reinforcement (10/18 up-shifted, 8/18 down-shifted). Thereafter, the WN stimulus was withdrawn, and no further experimental manipulation took place.

### WN muted (WNm)

In eight birds, we first reinforced pitch using WN auditory stimuli and then we reversibly muted the birds by performing an airsac cannulation.

Normally, when WN stimuli are contingent on low-pitch renditions, birds tend to shift the pitch up, and in 5/6 birds this was indeed the case. However, one bird shifted the pitch down, in an apparent appetitive response to WN, this bird responded appetitively also when the WN contingency was changed, resulting in a net upward shift at the end of the WN period (see also Yamahachi et al., 2020). In two birds, we targeted high-pitch variants and these birds shifted the pitch down, as expected. Thus, in total, in 6/8 birds (including the bird with the apparent appetitive response), we drove the pitch up, and in 2/8 birds, we drove the pitch down.

Two birds underwent the muting surgery directly after withdrawal of WN stimuli. We observed that the two birds had recovered a mere 10% and –6% of their total WN-driven pitch change (Figure 1H).
We hypothesized that unreinforced singing would initiate the song recovery process in WNm birds that we assumed birds might be able to accomplish while mute. Therefore, we allowed the subsequent 6/8 WNm birds (four up-shifted and two down-shifted) to sing a few hundreds of target syllables without reinforcement prior to muting them. During on average 4 hr 51 min (range 10 min to 14 hr), these latter birds produced on average 649 song motifs (56, 100, 400, 458, 480, and 2400 motifs) without WN; the example bird shown in *Figure 1C* produced 56 song motifs within 11 min during the 30 min it was allowed to sing without aversive reinforcement.

## WN deaf (WNd)

Ten birds were first pitch reinforced (5/10 were up-shifted and 5/10 down-shifted) with WN, and then they were deafened immediately after by bilateral cochlea removal. WNd birds started to sing on average 3 ± 1 days after deafening (range 2–5 days) and were recorded for at least 15 days after the deafening surgery.

## Deaf LO (dLO)

Here, 8/10 birds from *Zai et al., 2020b* were recorded after the reinforcement period and we analyzed the associated data. These birds were first deafened by bilateral cochlea removal, then they underwent pitch reinforcement with light-off (LO) stimuli that acts as an appetitive stimulus in deaf birds. The lamp in the recording chamber was switched off for 100–500 ms when the pitch was either above or below a manually set threshold (daily threshold adjustment followed the same procedure as for WNm birds). 3/8 birds received LO for low-pitched syllables and 5/8 birds for high-pitched syllables. One of the birds that received LO for high-pitched syllables changed its pitch away from LO instead of toward it, thus we ended up with a balanced data set with 4/8 birds shifting pitch up and 4/8 birds shifting down. dLO birds were recorded for at least 5 days after the deafening surgery. Details of light-induced pitch shifting are described in *Zai et al., 2020b*.

## Deaf control (dC)

We analyzed 26 syllables from 20 birds taken (12 from *Zai et al., 2020b* and 8 additional ones) that were deafened and then recorded without any further manipulation. We used these birds to discount for pitch changes in WNd and dLO birds due to the absence of auditory feedback (see 'Bootstrapping').

## WN duration (WNdur)

Twelve birds underwent duration reinforcement using WN; in nine birds, the targeted sound feature was syllable duration, in two birds the targeted feature was syllable-plus-gap duration, and in one bird the targeted feature was gap duration. In four birds, the duration was squeezed, and in eight birds the duration was stretched. As in WNC birds, we did no further experimental manipulation after withdrawal of the WN stimulus. One bird changed its duration toward WN and showed an apparent appetitive response to WN as for the one muted bird.

## Muting

We muted birds by inserting a bypass cannula into the abdominal air sac (Nilson et al., 2005) as follows.

### Preparation of by-pass cannula

After incubation in 70% ethanol, we clogged a 7-mm-long polyimide tube (diameter 1.2 mm) with sterile paper tissue. We created a suture loop around the cannula and fixed the thread to the cannula with a knot and a drop of tissue glue.

### Cannula implantation

We anesthetized the birds with isoflurane (1.5–2%) and gave a single injection of carprofen (4 mg/kg). Subsequently, we applied local analgesic to the skin (2% lidocaine) and removed the feathers covering the right abdomen. We applied betadine solution on the exposed skin and made a small incision using sterilized scissors. We exposed the right abdominal air sac by shifting aside the fat tissue and
punctured it to create an opening. Immediately, we closed the opening by inserting the cannula and sealing the contact region with tissue glue. With the free end of the glued thread, we made one suture to the lowest rib. We closed the wound in the skin around the cannula with tissue glue and sutures using a new thread. Finally, we applied betadine solution on the wound and lidocaine gel around the injured site. Before releasing the bird to its cage, we removed the clog of the cannula with forceps and verified the air flow through the cannula.

We returned the birds to their home cage and monitored them for signs of suffering. We adminis-
tered pain killers (meloxicam 2 mg/kg or carprofen 2-4 mg/kg) for 2 days after the surgery.

On the following days, we monitored the birds continuously for singing activity. If song was detected, the cannula was inspected for clogging and cleaned. Five birds unmuted spontaneously; they produced at most 300 songs before the bypass cannula was inspected and the clog was removed to re-mute the bird. To unclog the bypass cannulas, we used sharp forceps and sterile tissue dipped in saline. Six of eight birds produced quiet call-like vocalizations even on muted days on which no singing was detected.

Deafening

We bilaterally removed cochleas as described in Zai et al., 2020b.

Pitch analysis

In individual birds, we studied the dynamics of pitch recovery during the test period. In WNm birds, the test period started with unmuting, and in all other reinforced birds it started with the end of reinforcement. We analyzed songs in early (E) time windows defined as the first 2 hr window during the test period in which the bird produced at least 20 song motifs. We also assessed pitch recovery in late (L) windows defined exactly 4 days after the E window. To make the measurements robust to circadian fluctuations of pitch, we compared the pitch values in early and late windows to pitch values produced in time-aligned windows during the last day of reinforcement (R) and during the last day of baseline (B).

We used this time-of-day matched analysis to produce **Figure 1H and I, Figure 2C and D**, and **Figure 3C and D**. Exceptions where time alignment was not possible are listed in the following:

* One WNm bird started singing late on the last day of reinforcement (preventing us from time-aligning the *R* window with the *d'* window), and therefore in this bird we defined *R* after the end of WN but before muting (in this bird, there is more than 1 day of song after WN and before muting).

* In two birds (one WNC and one dLO bird), we defined the *L* window one day earlier (on the fourth day, after 3 days of practice) because there was no data for these birds on the fifth day after reinforcement (our findings did not qualitatively change when we defined the *L* window on the sixth day instead of the fourth).

* One WNm bird was housed together with a female during WN reinforcement; this bird did not sing during the time-match 2 hr period on the second, third, and fourth day after reinforcement; therefore, on those days, we computed the mean pitch from all values produced on that day in *Figure 1H*.

In early (E) and late (L) analysis windows, we computed the NRP, which is the remaining fraction of pitch shift since release from WN, defined as NRP (X) = (P<sub>X</sub> - P<sub>B</sub>) / (P<sub>R</sub> - P<sub>B</sub>), where P<sub>X</sub> is either the mean pitch in the early (X = E) or late (X = L) window (**Figures 1H and I, 2C and D, and 3C and D**). P<sub>R</sub> and P<sub>B</sub> are the mean pitches in the *R* and *B* windows, respectively. An NRP of 33% indicates that two-thirds of the reinforced pitch shift have been recovered and an NRP of 0% indicates full recovery of baseline pitch. Note that the NRP measure discounts for differences in the amount of initial pitch shift the birds displayed at the beginning of the test period.

We performed statistical testing of NRP to discount for this diversity in initial pitch. To test the hypothesis that WNm birds recovered their baseline pitch without practice or that WNd or dLO birds recovered baseline pitch without auditory feedback, we performed a two-tailed t-test for NRP = 0.

Our results were qualitatively unchanged when we changed the timing of the *L* window as long
as there were at least 3 days between *E* and *L* windows (because WNC birds need at least 3 days to
recover their baseline pitch in the *L* window, p<0.05). Thus, giving deaf birds more time did not allow
them to recover their baseline pitch. Furthermore, we also tested larger windows of 4 and 24 hr dura-
tion instead of 2 hr and found qualitatively similar results. We further verified that our results did not
critically depend on the time-alignment by repeating the NRP tests using the last 2 hr of reinforcement
as the R windows. Indeed, we found that all results in **Figures 1–3** were unchanged.

We computed the pitch change after reinforcement (Figure 4) as the difference in mean pitches
between early (E) or late (L) and the last 2 hr of WN/LO reinforcement R in units of sensitivity
d' = (P<sub>X</sub> - P<sub>R</sub>) / S<sub>R</sub> , where S<sub>R</sub> is the standard deviation of pitch values in the R window. To test the
hypothesis that WNd and dLO birds are able to make targeted pitch changes toward baseline, we
performed a one-tailed t-test of the hypothesis H0: d' < 0. We used sensitivity d' relative to the last
2 hr of WN/LO instead of NRP because we want to detect a pitch change, which is the realm of detec-
tion theory, that is, d'. Furthermore, by measuring local changes in pitch relative to the last 2 hr of
WN/LO reinforcement, our measurements are only minimally affected by the amount of reinforcement
learning that might have occurred during this 2 hr time window – choosing an earlier or longer window
would have blended reinforced pitch changes into our estimates. Last but not least, changes in the
way in which we normalized d' values – dividing by S<sub>B</sub> , √((S<sub>B</sub><sup>2</sup> + S<sub>R</sub><sup>2</sup>) / 2 , or √((S<sub>X</sub><sup>2</sup> + S<sub>R</sub><sup>2</sup>) / 2 – or using the
NRP relative to the last 2 hr of WN/LO did not qualitatively change the results shown in Figure 4D.

Test for recovery of baseline after duration reinforcement and pitch
reinforcement

Zebra finches learn both syllable pitch and syllable duration from their tutors (Lipkind and Tchernichovski, 2011; Glaze and Troyer, 2013). We tested whether these distinct sound features are equally well maintained in adulthood. Both pitch and duration can be driven away from baseline using aversive reinforcers (Ali et al., 2013). To test whether recovery of syllable duration is similarly fast as recovery of pitch (Canopoli et al., 2016), we induced birds to shorten or lengthen a targeted song syllable by playing a loud WN stimulus when the syllable duration was shorter or longer than a manually set threshold. However, we found that unlike for pitch, after withdrawal of reinforcement, these WNdur birds did not reliably recover their baseline syllable duration: after 4 days of song practice without reinforcement, their average normalized residual syllable duration (NRD) – the remaining fraction of duration difference to baseline since release – was significantly different from zero (NRD = 42%, p=0.007, two-sided t-test for NRD = 0, N = 12 birds, Figure 1—figure supplement 1), suggesting that adult birds do not maintain syllable duration as rigidly as they do maintain pitch.

Indeed, in contrast, pitch-reinforced (WNC) birds fully recovered baseline pitch 4 days after with-
drawal of reinforcement (average NRP = 1%, p=0.91 two-sided t-test for NRP = 0, N = 18 birds,
**Figure 1—figure supplement 1B and C**, same data as in **Figure 1H and I**). Moreover, the recovery
of pitch was more extensive than that of duration: after 4 days, the average NRP was smaller than
the average NRD (p=0.001, tstat = -3.56, df = 28, two-tailed t-test). The difference between NRP
and NRD persisted over time and was still present after 10 days of practice (NRP = -2% and NRD =
33% after 10 days of practice, p=0.04, tstat = -2.26, df = 18, N = 10 WNC and N = 10 WNdur birds
recorded 11 days after WN, two-tailed t-test), showing that syllable duration is not recovered as reli-
ably as pitch after withdrawal of WN reinforcement.

WNC birds received WN reinforcement during 11 ± 3 days on average (range 8–15 days) and during this period they changed their pitch by 0.24 ± 0.22 d'/day (total shift 2.5 ± 1.8 d') on average, which did not significantly differ from the behavior of WNdur birds (p = 0.44, tstat = 0.78, df = 28, two-tailed t-test) that received WN reinforcement during 10 ± 5 days on average (range 5–23 days) and changed syllable duration during this period by 0.36 ± 0.17 d'/day (total shift 2.9 ± 0.7 d') on average (p = 0.14, tstat = -1.49, df = 28, two-tailed t-test). Furthermore, we did not find a correlation between the number of days with reinforcement and the NRP/NRD after 4 days of practice in either WNC birds (correlation coefficient R = 0.20, p = 0.43), WNdur birds (R = 0.05, p=0.88), or in both groups combined (R = -0.01, p = 0.94), nor between the total shift and the NRP/NRD after 4 days of practice in either WNC birds (R = 0.34, p = 0.17), WNdur birds (R = -0.12, p=0.71), or in both groups combined (R = 0.18, p = 0.34), suggesting that the difference in recovery behavior between WNdur and WNC birds is neither due to differences in time spent with reinforcement nor to differences in learning speed, but due to differences in attachment to these sound features.

This difference in recovery behavior is consistent with the literature. **Ali et al., 2013** found that
pitch recovers at roughly half the rate it changed during reinforcement (12.1 Hz/day during recovery
vs. 26.0 Hz/day during reinforcement). By contrast, they found that duration (of mostly syllables + gaps) reverted toward baseline at only about a quarter of the rate measured during reinforcement (0.8 ms/day vs. 3.4 ms/day) (Ali et al., 2013), suggesting that recovery of duration proceeds at a much slower pace than birds are capable of. Similarly, Roberts et al., 2017 found pitch recovered faster than it changed during reinforcement, whereas syllable + gap durations recovered slower than they changed during reinforcement five birds each. Both studies used only a few birds and did not directly compare the recovery of duration versus pitch. Also, the published reports preclude a comparison in terms of the unit-free *d'* measure post hoc because the baseline pitch and the duration variability are not reported in these studies.

Interestingly, in the context of Figure 4, duration reverts similarly to pitch. After 4 days of practice WNdur birds showed a significant reversion toward baseline ($d' = -2.03, p = 5.5 \cdot 10^{-4}$, tstat = -4.37, N = 11 WNdur birds, one-sided t-test), indicating that WNdur birds are capable of revertive changes beyond the planning limit ($d' \approx 1$) found for pitch reversion. Thus, it remains unclear whether the difference in NRP and NRD recovery (Figure 1—figure supplement 1) could be confounded by the disparity in experimental parameters (i.e., difference in total shifts). Nevertheless, all studies (Ali et al., 2013; Roberts et al., 2017) and our analysis concur that the recovery of baseline pitch is more efficient than the recovery of duration, suggesting that duration is less accurately maintained than pitch. We therefore decided to perform all experiments using pitch as the targeted song feature and not syllable duration.

## Bootstrapping

To test whether deaf birds indeed make small pitch changes toward a target if and only if they experienced target-mismatch during reinforcement, we bootstrapped the difference in pitch changes between reinforced (WNd and dLO) and deaf control birds (dC). All dC birds were recorded for at least 5 days after they started singing while deaf.

In dC birds, we defined the *R*, *E*, and *L* windows such that they matched those of WNd and dLO birds in terms of days since deafening. Additionally, in dLO birds we chose the windows such that they matched in terms of time of day (because LO always ended overnight). Thus, the *R* windows in dC birds either corresponded to the last 2 hr before deafening (as control for WNd birds) or to the last 2 hr of the day before *E* (as control for dLO birds).

For WNd birds, we obtained in total 26 control syllables from 20 dC birds. For dLO birds, we obtain 17 control syllables from 13 dC birds (some dC birds did not provide any useable data because they stopped singing or were not recorded for long enough).

For the bootstrapping procedure, we randomly paired control syllables (N = 26 for WNd and N = 17 for dLO) one-by-one with matchable syllables from reinforced birds (with replacement), computed the mean pitches $P_R, P_E, P_L$ in corresponding windows, calculated the standard deviation $S_R$, calculated the average pitch changes $d'_E = (P_E - P_R)/S_R$ and $d'_L = (P_L - P_R)/S_R$ for both manipulated and control birds, and multiplied these by -1 if the reinforced bird was down-shifted (as we did for *d'* above). We then took the differences in average pitch changes between manipulated (WNd and dLO) and dC birds, for example, $d'_{E,WNd} - d'_{E,dC}$. We repeated this procedure 10,000 times and plotted the distribution of average pitch change differences between WNd and dC (red) and between dLO and dC (blue) in Figure 4E and perform bootstrap statistics.

Our results were qualitatively unchanged (only WNd significantly reverted pitch toward baseline) when we aligned the *R* windows by the time of day of the corresponding *E* windows (two dC birds started singing later on the day of the *E* window than they stopped singing on the days before; in these two birds, we used the *R* windows instead; see Supplementary file 1). Although the *d'* values in both groups increased (and in dLO birds, the average *d'* in the *L* windows was positive, p<0.05, two-tailed t-test), we found a significant pitch difference between WNd or dLO birds in *L* windows, which upholds our findings that mismatch experience is necessary for pitch reversion. The reason for the increases in *d'* likely is that birds further shifted their pitch away from baseline on the last day of reinforcement (after the time-aligned *R* window). Also, results were robust when we analyzed pitch changes after release from reinforcement in units of NRP: without practice, WNd birds made small and significant pitch changes toward baseline, and dLO birds stayed at NRP ≥ 1.

## Linear mixed effect model

We simulated a linear mixed effect model on the combined NRP data from all groups with fixed effects corresponding to time (general offset *a*, late *b*), treatment (deafened *c*, muted *d*), mismatch-experience
## Peer review material

Reviewer #1 (Public Review): https://doi.org/10.7554/eLife.90445.4sa1

Reviewer #3 (Public Review): https://doi.org/10.7554/eLife.90445.4sa2

Author response https://doi.org/10.7554/eLife.90445.4sa3

## Additional files

### Supplementary files

* MDAR checklist

* Supplementary file 1. Bootstrapped pitch differences between reinforced and deaf control birds.

### Data availability

Pitch and duration values used for the analysis together with the MATLAB scripts to reproduce the analysis and figures are available at the ETH Research Collection at: https://doi.org/10.3929/ethz-b-000670443. Due to the considerable volume of the raw audio data associated with the pitch measurements (approximately 1TB), this dataset is not available for direct download. However, interested researchers can request access by contacting the corresponding author via email to coordinate the data transfer.

The following dataset was generated:

<table><thead><tr><td>Author(s)</td><td>Year</td><td>Dataset title</td><td>Dataset URL</td><td>Database and Identifier</td></tr></thead><tbody><tr><td>Zai AT, Stepien AE, Giret N, Hahnloser RHR</td><td>2024</td><td>Goal-directed vocal planning in a songbird - dataset</td><td>https://doi.org/10.3929/ethz-b-000670443</td><td>ETH Library research collection, 10.3929/ethz-b-000670443</td></tr></tbody></table>

## References

* Ali F, Otchy TM, Pehlevan C, Fantana AL, Burak Y, Ölveczky BP. 2013. The basal ganglia is necessary for learning spectral, but not temporal, features of birdsong. *Neuron* **80**:494–506. DOI: https://doi.org/10.1016/j.neuron.2013.07.049, PMID: 24075977

* Andalman AS, Fee MS. 2009. A basal ganglia-forebrain circuit in the songbird biases motor output to avoid vocal errors. *PNAS* **106**:12518–12523. DOI: https://doi.org/10.1073/pnas.0903214106, PMID: 19597157

* Aronov D, Andalman AS, Fee MS. 2008. A specialized forebrain circuit for vocal babbling in the juvenile songbird. *Science* **320**:630–634. DOI: https://doi.org/10.1126/science.1155140, PMID: 18451295

* Belyk M, Brown S. 2016. Pitch underlies activation of the vocal system during affective vocalization. *Social Cognitive and Affective Neuroscience* **11**:1078–1088. DOI: https://doi.org/10.1093/scan/nsv074, PMID: 26078385

* Brashers-Krug T, Shadmehr R, Bizzi E. 1996. Consolidation in human motor memory. *Nature* **382**:252–255. DOI: https://doi.org/10.1038/382252a0, PMID: 8717039

* Brecht KF, Hage SR, Gavrilov N, Nieder A. 2019. Volitional control of vocalizations in corvid songbirds. *PLOS Biology* **17**:e3000375. DOI: https://doi.org/10.1371/journal.pbio.3000375

* Canopoli A, Herbst JA, Hahnloser RHR. 2014. A higher sensory brain region is involved in reversing reinforcement-induced vocal changes in A songbird. *The Journal of Neuroscience* **34**:7018–7026. DOI: https://doi.org/10.1523/JNEUROSCI.0266-14.2014, PMID: 24828654

* Canopoli A, Zai A, Hahnloser R. 2016. Lesions of a higher auditory brain area during a sensorimotor period do not impair birdsong learning. *Matters* **01**:018. DOI: https://doi.org/10.19185/matters.201603000018

* Charlesworth JD, Warren TL, Brainard MS. 2012. Covert skill learning in a cortical-basal ganglia circuit. *Nature* **486**:251–255. DOI: https://doi.org/10.1038/nature11078, PMID: 22699618

* Costalunga G, Carpena CS, Seltmann S, Benichov JI, Vallentin D. 2023. Wild nightingales flexibly match whistle pitch in real time. *Current Biology* **33**:3169–3178. DOI: https://doi.org/10.1016/j.cub.2023.06.044, PMID: 37453423

* Dichter BK, Breshears JD, Leonard MK, Chang EF. 2018. The control of vocal pitch in human laryngeal motor cortex. *Cell* **174**:21–31. DOI: https://doi.org/10.1016/j.cell.2018.05.016, PMID: 29958109

* Elemans CPH, Rasmussen JH, Herbst CT, Düring DN, Zollinger SA, Brumm H, Srivastava K, Svane N, Ding M, Larsen ON, Sober SJ, Švec JG. 2015. Universal mechanisms of sound production and control in birds and mammals. *Nature Communications* **6**:8978. DOI: https://doi.org/10.1038/ncomms9978, PMID: 26612008

* Fenn KM, Nusbaum HC, Margoliash D. 2003. Consolidation during sleep of perceptual learning of spoken language. *Nature* **425**:614–616. DOI: https://doi.org/10.1038/nature01951, PMID: 14534586
Galea JM, Vazquez A, Pasricha N, de Xivry JJO, Celnik P. 2011. Dissociating the roles of the cerebellum and motor cortex during adaptive learning: the motor cortex retains what the cerebellum learns. *Cerebral Cortex* **21**:1761-1770. DOI: https://doi.org/10.1093/cercor/bhq246, PMID: 21139077

Galea JM, Mallia E, Rothwell J, Diedrichsen J. 2015. The dissociable effects of punishment and reward on motor learning. *Nature Neuroscience* **18**:597-602. DOI: https://doi.org/10.1038/nn.3956, PMID: 25706473

Giret N, Kornfeld J, Ganguli S, Hahnloser RHR. 2014. Evidence for a causal inverse model in an avian cortico-basal ganglia circuit. *PNAS* **111**:6063-6068. DOI: https://doi.org/10.1073/pnas.1317087111, PMID: 24711417

Glaze CM, Troyer TW. 2013. Development of temporal structure in zebra finch song. *Journal of Neurophysiology* **109**:1025-1035. DOI: https://doi.org/10.1152/jn.00578.2012, PMID: 23175805

Hanuschkin A, Ganguli S, Hahnloser R. 2013. A Hebbian learning rule gives rise to mirror 851 neurons and links them to control theoretic inverse models. *Front Neural Circuits* **106**:eCollection 2013. DOI: https://doi.org/10.3389/fncir.2013.00106

Hoffmann LA, Saravanan V, Wood AN, He L, Sober SJ. 2016. Dopaminergic contributions to vocal learning. *The Journal of Neuroscience* **36**:2176-2189. DOI: https://doi.org/10.1523/JNEUROSCI.3883-15.2016, PMID: 26888928

Hough GE, Volman SF. 2002. Short-term and long-term effects of vocal distortion on song maintenance in zebra finches. *The Journal of Neuroscience* **22**:1177-1186. DOI: https://doi.org/10.1523/JNEUROSCI.22-03-01177. 2002, PMID: 11826147

Immelmann K. 1969. Song development in the zebra finch and other estrildid finches. *Bird Vocalizations* **01**.DOI: https://doi.org/10.1098/rsbl.2013.0247

Karni A, Sagi D. 1993. The time course of learning a visual skill. *Nature* **365**:250-252. DOI: https://doi.org/10.1038/365250a0, PMID: 8371779

Kojima S, Doupe AJ. 2007. Song selectivity in the pallial-basal ganglia song circuit of zebra finches raised without tutor song exposure. *Journal of Neurophysiology* **98**:2099-2109. DOI: https://doi.org/10.1152/jn.00916.2006, PMID: 17625059

Kojima S, Doupe AJ. 2011. Social performance reveals unexpected vocal competency in young songbirds. *PNAS* **108**:1687-1692. DOI: https://doi.org/10.1073/pnas.1010502108, PMID: 21220335

Kollmorgen S, Hahnloser RHR, Mante V. 2020. Nearest neighbours reveal fast and slow components of motor learning. *Nature* **577**:526-530. DOI: https://doi.org/10.1038/s41586-019-1892-x, PMID: 31915383

Konishi M. 1985. Birdsong: from behavior to neuron. *Annual Review of Neuroscience* **8**:125-170. DOI: https://doi.org/10.1146/annurev.ne.08.030185.001013, PMID: 3885827

Krakauer JW, Ghez C, Ghilardi MF. 2005. Adaptation to visuomotor transformations: consolidation, interference, and forgetting. *The Journal of Neuroscience* **25**:473-478. DOI: https://doi.org/10.1523/JNEUROSCI.4218-04. 2005, PMID: 15647491

Lipkind D, Tchernichovski O. 2011. Quantification of developmental birdsong learning from the subsyllabic scale to cultural evolution. *PNAS* **108 Suppl 3**:15572-15579. DOI: https://doi.org/10.1073/pnas.1012941108, PMID: 21436035

Lombardino AJ, Nottebohm F. 2000. Age at deafening affects the stability of learned song in adult male zebra finches. *The Journal of Neuroscience* **20**:5054-5064. DOI: https://doi.org/10.1523/JNEUROSCI.20-13-05054. 2000, PMID: 10864963

Mulder T, Zijlstra S, Zijlstra W, Hochstenbach J. 2004. The role of motor imagery in learning a totally novel movement. *Experimental Brain Research* **154**:211-217. DOI: https://doi.org/10.1007/s00221-003-1647-6, PMID: 14508635

Nilson PC, Teramitsu I, White SA. 2005. Caudal thoracic air sac cannulation in zebra finches for isoflurane anesthesia. *Journal of Neuroscience Methods* **143**:107-115. DOI: https://doi.org/10.1016/j.jneumeth.2004.09.014, PMID: 15814142

Nottebohm F, Stokes TM, Leonard CM. 1976. Central control of song in the canary, Serinus canarius. *The Journal of Comparative Neurology* **165**:457-486. DOI: https://doi.org/10.1002/cne.901650405, PMID: 1262540

Oztop E, Kawato M, Arbib MA. 2013. Mirror neurons: functions, mechanisms and models. *Neuroscience Letters* **540**:43-55. DOI: https://doi.org/10.1016/j.neulet.2012.10.005, PMID: 23063951

Park SW, Dijkstra TMH, Sternad D. 2013. Learning to never forget-time scales and specificity of long-term memory of a motor skill. *Frontiers in Computational Neuroscience* **7**:111. DOI: https://doi.org/10.3389/fncom.2013.00111, PMID: 24032015

Prather JF, Nowicki S, Anderson RC, Peters S, Mooney R. 2009. Neural correlates of categorical perception in learned vocal communication. *Nature Neuroscience* **12**:221-228. DOI: https://doi.org/10.1038/nn.2246, PMID: 19136972

Riters LV, Spool JA, Merullo DP, Hahn AH. 2019. Song practice as a rewarding form of play in songbirds. *Behavioural Processes* **163**:91-98. DOI: https://doi.org/10.1016/j.beproc.2017.10.002, PMID: 29031813

Roberts TF, Hisey E, Tanaka M, Kearney MG, Chattree G, Yang CF, Shah NM, Mooney R. 2017. Identification of a motor-to-auditory pathway important for vocal learning. *Nature Neuroscience* **20**:978-986. DOI: https://doi.org/10.1038/nn.4563, PMID: 28504672

Sheahan HR, Franklin DW, Wolpert DM. 2016. Motor planning, not execution, separates motor memories. *Neuron* **92**:773-779. DOI: https://doi.org/10.1016/j.neuron.2016.10.017, PMID: 27817979

Shmuelof L, Huang VS, Haith AM, Delnicki RJ, Mazzoni P, Krakauer JW. 2012. Overcoming motor "forgetting" through reinforcement of learned actions. *The Journal of Neuroscience* **32**:14617-14621. DOI: https://doi.org/10.1523/JNEUROSCI.2184-12.2012, PMID: 23077047
Smith MA, Ghazizadeh A, Shadmehr R. 2006. Interacting adaptive processes with different timescales underlie short-term motor learning. *PLOS Biology* **4**:e179. DOI: https://doi.org/10.1371/journal.pbio.0040179, PMID: 16700627

Sober SJ, Brainard MS. 2009. Adult birdsong is actively maintained by error correction. *Nature Neuroscience* **12**:927-931. DOI: https://doi.org/10.1038/nn.2336, PMID: 19525945

Stepanek L, Doupe AJ. 2010. Activity in a cortical-basal ganglia circuit for song is required for social context-dependent vocal variability. *Journal of Neurophysiology* **104**:2474-2486. DOI: https://doi.org/10.1152/jn.00977.2009, PMID: 20884763

Suthers RA, Goller F, Wild JM. 2002. Somatosensory feedback modulates the respiratory motor program of crystallized birdsong. *PNAS* **99**:5680-5685. DOI: https://doi.org/10.1073/pnas.042103199, PMID: 11943843

Tachibana RO, Lee D, Kai K, Kojima S. 2022. Performance-dependent consolidation of learned vocal changes in adult songbirds. *The Journal of Neuroscience* **42**:1974-1986. DOI: https://doi.org/10.1523/JNEUROSCI.1942-21.2021, PMID: 35058370

Tian LY, Brainard MS. 2017. Discrete circuits support generalized versus context-specific vocal learning in the songbird. *Neuron* **96**:1168-1177. DOI: https://doi.org/10.1016/j.neuron.2017.10.019, PMID: 29154128

Tumer EC, Brainard MS. 2007. Performance variability enables adaptive plasticity of "crystallized" adult birdsong. *Nature* **450**:1240-1244. DOI: https://doi.org/10.1038/nature06390, PMID: 18097411

Veit L, Tian LY, Monroy Hernandez CJ, Brainard MS. 2021. Songbirds can learn flexible contextual control over syllable sequencing. *eLife* **10**:e61610. DOI: https://doi.org/10.7554/eLife.61610, PMID: 34060473

Warren TL, Tumer EC, Charlesworth JD, Brainard MS. 2011. Mechanisms and time course of vocal learning and consolidation in the adult songbird. *Journal of Neurophysiology* **106**:1806-1821. DOI: https://doi.org/10.1152/jn.00311.2011, PMID: 21734110

Yamahachi H, Zai AT, Tachibana RO, Stepien AE, Rodrigues DI, Cavé-Lopez S, Lorenz C, Arneodo EM, Giret N, Hahnloser RHR. 2020. Undirected singing rate as a non-invasive tool for welfare monitoring in isolated male zebra finches. *PLOS ONE* **15**:e0236333. DOI: https://doi.org/10.1371/journal.pone.0236333, PMID: 32776943

Yanagihara S, Yazaki-Sugiyama Y. 2016. Auditory experience-dependent cortical circuit shaping for memory formation in bird song learning. *Nature Communications* **7**:11946. DOI: https://doi.org/10.1038/ncomms11946, PMID: 27327620

Yazaki-Sugiyama Y, Mooney R. 2004. Sequential learning from multiple tutors and serial retuning of auditory neurons in a brain area important to birdsong learning. *Journal of Neurophysiology* **92**:2771-2788. DOI: https://doi.org/10.1152/jn.00467.2004

Yu K, Wood WE, Theunissen FE. 2020. High-capacity auditory memory for vocal communication in a social songbird. *Science Advances* **6**:eabe0440. DOI: https://doi.org/10.1126/sciadv.abe0440, PMID: 33188032

Zai AT, Cavé-Lopez S, Rolland M, Giret N, Hahnloser RHR. 2020a. Sensory substitution reveals a manipulation bias. ETH Research Collection. DOI: https://doi.org/10.1101/816835

Zai AT, Cavé-Lopez S, Rolland M, Giret N, Hahnloser RHR. 2020b. Sensory substitution reveals a manipulation bias. *Nature Communications* **11**:5940. DOI: https://doi.org/10.1038/s41467-020-19686-w, PMID: 33230182

Zevin JD, Seidenberg MS, Bottjer SW. 2004. Limits on reacquisition of song in adult zebra finches exposed to white noise. *The Journal of Neuroscience* **24**:5849-5862. DOI: https://doi.org/10.1523/JNEUROSCI.1891-04.2004, PMID: 15229232