Abstract
The current view of motor learning suggests that when we revisit a task, the brain recalls the motor commands it previously learned. In this view, motor memory is a memory of motor commands, acquired through trial-and-error and reinforcement. Here we show that the brain controls how much it is willing to learn from the current error through a principled mechanism that depends on the history of past errors. This suggests that the brain stores a previously unknown form of memory, a memory of errors. A mathematical formulation of this idea provides insights into a host of puzzling experimental data, including savings and meta-learning, demonstrating that when we are better at a motor task, it is partly because the brain recognizes the errors it experienced before.
How does the brain alter behavior after experiencing an error? Classic theories assumed that the brain learns some fraction of the error regardless of its history or magnitude (1, 2). However, recent experiments (3–6) demonstrate that the brain learns relatively more from small errors than large errors, and can modulate its error-sensitivity (7–9).
Understanding error-sensitivity is important because it may provide insight into the phenomena of ‘savings’ and ‘meta-learning’. Savings refers to the observation that when a subject adapts to perturbation (A), and then the perturbation is removed (i.e., washout), they exhibit faster readaptation to (A)(10). Remarkably, savings of (A) is present even when washout is followed by adaptation to (-A), a perturbation in the opposite direction (11, 12). Current error-dependent models of learning cannot account for these observations (13, 14), nor explain meta-learning, where prior exposure to a random perturbation produces savings (15, 16).
Let us begin with a standard model of motor learning (17–20) in which on trial n, a perturbation x is imposed on action u so that the sensory consequences are y(n)=u(n)+x(n). Based on its belief about the environment x̂(n), the learner predicts the sensory consequences ŷ(n)=u(n)+x̂(n), and then updates its belief from the prediction error e(n)=y(n)−ŷ(n). Such learning typically depends on a decay factor a, and error-sensitivity η:
(1) |
Consider an environment in which the perturbations persist from trial to trial, and another environment in which the perturbations switch (Fig. 1A). In a slowly switching environment, the brain should learn from error because the perturbations are likely to persist (learning from error in one trial will improve performance on the subsequent trial). However, in a rapidly switching environment the brain should suppress learning from error because any learning will be detrimental to performance on subsequent trials.
Three groups of subjects (n = 9 per group) made reaching movements while experiencing force perturbations from either a slow, medium, or rapidly switching environment (Fig. 1A). The mean of the perturbations was zero for all blocks (consisting of 30 trials). We measured error in a given trial and then computed the amount that was learned from that error (probe trials, purple bars, Fig. 1A). To quantify learning from error on trial n, we measured the change in force from the trial before to the trial after the perturbation, f(n+1)(t)−f(n−1)(t) (Fig. 1C). In block 1, learning from error was similar in the three groups (p > 0.99), and in all probe trials the perturbation produced similar errors (Fig. 1B, RM-ANOVA, effect of group p > 0.8, interaction, p > 0.7). However, subjects that experienced the slowly switching environment increased their learning from error (Fig. 1C), whereas those who experienced the rapidly switching environment suppressed this learning.
We measured the force produced on a given trial and computed a coefficient representing percent ideal (Fig. 1D). RM-ANOVA indicated a significant block by group interaction (p < 0.05), suggesting that the history of perturbations altered the amount of learning from error. Post-hoc tests showed that in the slowly switching environment subjects learned more from error than in the rapidly switching environment (p < 0.03). This change in error-sensitivity developed gradually with training (Fig. 1D). The slowly switching environment induced an increase in error-sensitivity (Fig. 1E, changes in sensitivity from the first half to second half of the experiment, ANOVA, p < 0.05).
Is control of error-sensitivity local to the experienced errors? In Exp. 2, subjects performed rapid out-and-back movements for which no visual feedback was available during the outward part of the reach, with the aim of hitting a target at the turn-around point of their movement. An occasional perturbation altered the feedback regarding hand position at the turn-around point (Fig. 2A). We measured the relationship between error e(n) and learning from error (change in reach extent).
Group 1 (n = 10) experienced a perturbation schedule that transitioned from slow, medium, to rapid switching (Fig. 2B) whereas Group 2 (n = 10) experienced the reverse. In Group 1, error-sensitivity decreased whereas in Group 2 error-sensitivity increased (Fig. 2C). We measured the mean error-sensitivity in each environment, resulting in 3 measurements for each subject across the experiment. RM-ANOVA showed a significant main effect of group (p < 0.005) and block (p < 0.001) and group by block interaction (p < 0.001). As the statistics of the perturbation changed, so did the error-sensitivity.
We measured learning from error as a function of error in each environment (Fig. 2D). A given error produced greater learning when that error was experienced in a slow switching environment (Fig. 2D, red line) (RM-ANOVA main effects of error size p < 10−4, and environment p < 0.001, posthoc between slow vs. medium or fast, p < 0.001). We quantified error-sensitivity at each error size (Fig. 2E) and found that error-sensitivity had not changed globally, but predominantly for smaller error sizes. RM-ANOVA of the absolute sensitivities between 0.25 and 2cm showed a significant main effect of environment (p < 10−4), as well as a significant environment by error size interaction (p < 0.05). We found a significant difference in error-sensitivity across environments for an error-size of 0.25cm (p < 0.05), but no significant difference for an error-size of 2cm (p > 0.1). Interestingly, the small error sizes for which the subjects had shown the largest change in error-sensitivity were also the most frequent errors (Fig. 2F). This hinted that control of error-sensitivity was a function of error.
Current models of sensorimotor learning assume that error-sensitivity η(n) is independent of error e(n). This is true for state-space models of learning (18, 21–24), as well as Kalman filter models of learning (5, 25–27). However, suppose that sensory prediction errors are encoded in the nervous system with a set of basis elements where each basis element gi has a preferred error ĕi. Further suppose that error-sensitivity is determined by a population coding:
(2) |
On trial n−1 the motor command u(n−1) produces an error e(n−1), as illustrated in the top part of Fig. 3A. The nervous system learns from this error and produces motor command u(n) on the subsequent trial, resulting in e(n). In a slowly switching environment (top part of Fig. 3A), e(n) has the same sign as e(n−1). In this case, error-sensitivity should increase around e(n−1) (Fig. 3B, red line). On the other hand, in a rapidly switching environment (Fig. 3A, bottom), e(n) has a different sign than e(n−1). In this case, error-sensitivity should decrease:
(3) |
In Eq. (3), , and superscript T is the transpose operator. This rule is similar to the RPROP algorithm, a heuristic for adjusting the learning rate of machines (28), but has the unique feature of assuming that error-sensitivity is via population coding of the error space.
Eqs. (1–3) represent a learner that stores two kinds of memory: a memory of the state of environment (x̂, Eq. 1), and a memory of errors (w, Eq. 3). We simulated the model (Fig. 3C, gray line) and found that in the slow switching environment error-sensitivity increased in the neighborhood of the experienced errors, whereas in the rapidly changing environment error-sensitivity decreased (Fig. 3D).
Our model made a critical prediction: if the brain controlled error-sensitivity via memory of errors, then it should be possible to simultaneously increase sensitivity for one error, while decreasing it for another. In Exp. 3 we considered an isometric task in which subjects (n = 16) produced a force to match a target (16N) in the face of a perturbation. The perturbations were designed so that, according to our model, subjects would increase their sensitivity to −4N errors, while simultaneously decreasing their sensitivity to +8N errors.
In the baseline block we probed sensitivity to +8N and −4N perturbations (Probe 1, Fig. 3E). The resulting learning from error is plotted in Fig. 3F (Probe 1). At baseline, subjects responded to the +8N and −4N perturbations by learning a fraction of each error (Fig. 3F). We next produced 20 repetitions of a rapidly switching environment in which the perturbations were ±8N (Fig. 3E, inset). After a period of washout, we then produced 15 repetitions of a slowly switching environment in which the perturbations were 0N or +4N. The critical aspect of our design was that the subjects were never exposed to a −4N perturbation. They nevertheless experienced −4N errors (because removal of a learned +4N perturbation results in −4N error).
The 8N environment induced a decrease in sensitivity to a +8N error, and subsequent exposure to the +4N environment resulted in an increase in sensitivity to a −4N error (Fig. 3G, RM-ANOVA showed a significant main effect of perturbation (p < 0.03) as well as a perturbation by block interaction, p < 0.01). The critical question, however, was whether both of these changes in sensitivity were simultaneously present. Following the slowly switching block of perturbations, we again probed sensitivity to +8N and −4N errors (Probe 2, Fig. 3E). Compared to the baseline block (Probe 1), learning from a +8N error had decreased (p < 0.005), while simultaneously, learning from a −4N error had increased (p < 0.05) (Fig. 3F). When we ran our model on the same sequence of errors that subjects had experienced, the change in error-sensitivity predicted by the model was highly correlated with the change observed in our subjects (R2 = 0.65; p < 10−8, Fig. S1), suggesting that history of error induced changes in error-sensitivity in the region of the experienced errors.
This new model of learning provided new insights on a wide range of puzzling experiments, including the phenomena of savings and meta-learning (Supporting Online Materials, Fig. S2). It predicted that when one is better at a task than before, it is not because the brain recalled the motor commands, but because it recognized the errors -- the errors for which error-sensitivity had been altered. In addition, the model predicted that savings and meta-learning could be blocked by controlling the errors that are experienced during learning.
In Exp. 4 volunteers participated in a visuomotor rotation experiment (Figs. 4A and S4, n = 10 per group). The control group (ANA) experienced a +30° perturbation followed by extended washout and then relearning of +30°, a protocol that should produce savings (13). According to our model, savings occurs because during the initial exposure to (A) the stable sequence of perturbations increase error-sensitivity, and these errors are re-visited in the subsequent test of (A). If so, we should be able to block savings by presenting (A) gradually (GNA group, Fig. S4), preventing prior exposure to errors that are visited at onset of (A).
Furthermore, we should be able to produce savings in a very different way: expose subjects to perturbation (B) and then present sudden washout (Fig. 4A, BNA). During washout they are exposed to a sequence of stable errors, which increase error-sensitivity for those errors. Importantly, the washout-induced after-effects are errors that are also experienced during subsequent test of (A). If the meta-learning in BNA is due to errors that are experienced during washout of (B), we should be able to eliminate it by reducing the washout-induced errors. In BwaitNA, a wait period was inserted between −30° training and washout, reducing the size of after-effects associated with the transition from −30° to washout (Fig. 4E). We also tested this idea in a different way: gradual washout (B) (Group BGNA, Fig. S4). In summary, the model predicted savings in ANA but not GNA, meta-leaning in BNA but not BwaitNA and BGNA. Our experimental results confirmed these predictions (Figs. 4C, 4D, S4).
We found that during learning, the brain controlled error-sensitivity in a principled way: learning more from error when perturbations were likely to persist, and less when perturbations were likely to change. Error-sensitivity modulation was specific to the experienced errors, suggesting that training produced a memory of errors. This idea accounted for a host of puzzling observations, including saturation of error-sensitivity (5, 6, 29), the phenomenon of meta-learning (16), examples of savings (10–12), and reinforced repetition (15).
The model predicted that meta-learning vanishes when a small delay or gradual washout alters the history of errors (Fig. 4A), demonstrating that savings depends crucially on the memory of errors that is accumulated during training. This memory of errors likely exists in parallel with the two traditional forms of motor memory, memory of perturbations (23) and memory of actions (30).
In our model, we chose to describe the learner as a process with a single time-scale. However, data suggest that learning from error depends on a fast and a slow process with different error-sensitivities (23, 25, 31). We speculate that the memory of errors exerts its influence through the error-sensitivity of the fast process, and its manipulation through history of errors may be a useful strategy to speed recovery during rehabilitation (32).
Supplementary Material
Acknowledgments
This work was supported by NIH grants T32EB003383, T32GM007057, R01NS078311, and 1F31NS079121. The authors thank John Krakauer, Jean-Jacques Orban de Xivry, and Alaa A. Ahmed for their comments.
Footnotes
DJH, PAV, MKM, and RS conceived and designed the experiments. DJH performed the experiments. DJH analyzed the data. DJH performed the simulations. RS and DJH wrote the paper.
The data reported in this paper and in the Supporting Online Material are available from the corresponding author.
References and Notes
- 1.Jordan MI, Rumelhart DE. Forward Models - Supervised Learning with a Distal Teacher. Cognitive Science. 1992 Jul-Sep;16:307. [Google Scholar]
- 2.Kawato M, Furukawa K, Suzuki R. A Hierarchical Neural-Network Model for Control and Learning of Voluntary Movement. Biological cybernetics. 1987;57:169. doi: 10.1007/BF00364149. [DOI] [PubMed] [Google Scholar]
- 3.Robinson FR, Noto CT, Bevans SE. Effect of visual error size on saccade adaptation in monkey. J Neurophysiol. 2003 Aug;90:1235. doi: 10.1152/jn.00656.2002. [DOI] [PubMed] [Google Scholar]
- 4.Soetedjo R, Fuchs AF, Kojima Y. Subthreshold activation of the superior colliculus drives saccade motor learning. J Neurosci. 2009 Dec 2;29:15213. doi: 10.1523/JNEUROSCI.4296-09.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Wei K, Körding K. Relevance of error: what drives motor adaptation? J Neurophysiol. 2009 Feb;101:655. doi: 10.1152/jn.90545.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Marko MK, Haith AM, Harran MD, Shadmehr R. Sensitivity to prediction error in reach adaptation. J Neurophysiol. 2012;108:1752. doi: 10.1152/jn.00177.2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Smith MA, Shadmehr R. Modulation of the rate of error-dependent learning by the statistical properties of the task. Advances in Computational Motor Control. 2004;3 [Google Scholar]
- 8.Fine MS, Thoroughman KA. Trial-by-trial transformation of error into sensorimotor adaptation changes with environmental dynamics. J Neurophysiol. 2007 Sep;98:1392. doi: 10.1152/jn.00196.2007. [DOI] [PubMed] [Google Scholar]
- 9.Trent MC, Ahmed AA. Learning from the value of your mistakes: evidence for a risk-sensitive process in movement adaptation. Frontiers in computational neuroscience. 2013;7:118. doi: 10.3389/fncom.2013.00118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Kojima Y, Iwamoto Y, Yoshida K. Memory of learning facilitates saccadic adaptation in the monkey. J Neurosci. 2004 Aug 25;24:7531. doi: 10.1523/JNEUROSCI.1741-04.2004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Malone LA, Vasudevan EV, Bastian AJ. Motor adaptation training for faster relearning. J Neurosci. 2011 Oct 19;31:15136. doi: 10.1523/JNEUROSCI.1367-11.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Sarwary AM, Selen LP, Medendorp WP. Vestibular benefits to task savings in motor adaptation. J Neurophysiol. 2013 Sep;110:1269. doi: 10.1152/jn.00914.2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Zarahn E, Weston GD, Liang J, Mazzoni P, Krakauer JW. Explaining savings for visuomotor adaptation: linear time-invariant state-space models are not sufficient. J Neurophysiol. 2008 Nov;100:2537. doi: 10.1152/jn.90529.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Mawase F, Shmuelof L, Bar-Haim S, Karniel A. Savings in locomotor adaptation explained by changes in learning parameters following initial adaptation. J Neurophysiol. 2014 Jan 15; doi: 10.1152/jn.00734.2013. [DOI] [PubMed] [Google Scholar]
- 15.Braun DA, Aertsen A, Wolpert DM, Mehring C. Motor task variation induces structural learning. Curr Biol. 2009 Feb 24;19:352. doi: 10.1016/j.cub.2009.01.036. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Turnham EJ, Braun DA, Wolpert DM. Facilitation of learning induced by both random and gradual visuomotor task variation. J Neurophysiol. 2012 Feb;107:1111. doi: 10.1152/jn.00635.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Mackintosh NJ. Theory of Attention - Variations in Associability of Stimuli with Reinforcement. Psychol Rev. 1975;82:276. [Google Scholar]
- 18.Thoroughman KA, Shadmehr R. Learning of action through adaptive combination of motor primitives. Nature. 2000;407:742. doi: 10.1038/35037588. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Rescorla RA, Wagner AR. A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and non-reinforcement. In: Black AH, Prokasy WF, editors. Classical conditioning II. Appleton-Century-Crofts; New York: 1972. [Google Scholar]
- 20.Pearce JM, Hall G. A Model for Pavlovian Learning - Variations in the Effectiveness of Conditioned but Not of Unconditioned Stimuli. Psychol Rev. 1980;87:532. [PubMed] [Google Scholar]
- 21.Scheidt RA, Dingwell JB, Mussa-Ivaldi FA. Learning to move amid uncertainty. J Neurophysiol. 2001 Aug;86:971. doi: 10.1152/jn.2001.86.2.971. [DOI] [PubMed] [Google Scholar]
- 22.Donchin O, Francis JT, Shadmehr R. Quantifying generalization from trial-by-trial behavior of adaptive systems that learn with basis functions: theory and experiments in human motor control. J Neurosci. 2003;23:9032. doi: 10.1523/JNEUROSCI.23-27-09032.2003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Smith MA, Ghazizadeh A, Shadmehr R. Interacting adaptive processes with different timescales underlie short-term motor learning. PLoS biology. 2006;4:e179. doi: 10.1371/journal.pbio.0040179. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Cheng S, Sabes PN. Modeling sensorimotor learning with linear dynamical systems. Neural Comput. 2006 Apr;18:760. doi: 10.1162/089976606775774651. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Körding KP, Tenenbaum JB, Shadmehr R. The dynamics of memory as a consequence of optimal adaptation to a changing body. Nature neuroscience. 2007;10:779. doi: 10.1038/nn1901. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.van Beers RJ. Motor learning is optimally tuned to the properties of motor noise. Neuron. 2009;63:406. doi: 10.1016/j.neuron.2009.06.025. [DOI] [PubMed] [Google Scholar]
- 27.van Beers RJ. How does our motor system determine its learning rate? PloS one. 2012;7:e49373. doi: 10.1371/journal.pone.0049373. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Riedmiller M, Braun H. IEEE International Conference on Neural Networks; 1993; 1993. pp. 586–591. [Google Scholar]
- 29.Fine MS, Thoroughman KA. Motor adaptation to single force pulses: sensitive to direction but insensitive to within-movement pulse placement and magnitude. J Neurophysiol. 2006 Aug;96:710. doi: 10.1152/jn.00215.2006. [DOI] [PubMed] [Google Scholar]
- 30.Huang VS, Haith A, Mazzoni P, Krakauer JW. Rethinking motor learning and savings in adaptation paradigms: model-free memory for successful actions combines with internal models. Neuron. 2011 May 26;70:787. doi: 10.1016/j.neuron.2011.04.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Herzfeld DJ, et al. Contributions of the cerebellum and the motor cortex to acquisition and retention of motor memories. Neuroimage. 2014;98C:147. doi: 10.1016/j.neuroimage.2014.04.076. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Patton JL, Wei YJ, Bajaj P, Scheidt RA. Visuomotor learning enhanced by augmenting instantaneous trajectory error feedback during reaching. PloS one. 2013;8:e46466. doi: 10.1371/journal.pone.0046466. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Semrau JA, Daitch AL, Thoroughman KA. Environmental experience within and across testing days determines the strength of human visuomotor adaptation. Exp Brain Res. 2012 Feb;216:409. doi: 10.1007/s00221-011-2945-z. [DOI] [PubMed] [Google Scholar]
- 34.Lee JY, Schweighofer N. Dual adaptation supports a parallel architecture of motor memory. J Neurosci. 2009;29:10396. doi: 10.1523/JNEUROSCI.1294-09.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Mclaughlin SC. Parametric Adjustment in Saccadic Eye Movements. Perception & Psychophysics. 1967;2:359. [Google Scholar]
- 36.Tanaka H, Sejnowski TJ, Krakauer JW. Adaptation to visuomotor rotation through interaction between posterior parietal and motor cortical areas. J Neurophysiol. 2009 Nov;102:2921. doi: 10.1152/jn.90834.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Criscimagna-Hemminger SE, Shadmehr R. Consolidation patterns of human motor memory. J Neurosci. 2008;28:9610. doi: 10.1523/JNEUROSCI.3071-08.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Gonzalez Castro LN, Hadjiosif AM, Hemphill MA, Smith MA. Environmental consistency determines the rate of motor adaptation. Current Biology. 2014;24(10):1050–1061. doi: 10.1016/j.cub.2014.03.049. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Shadmehr R, Brashers-Krug T. Functional stages in the formation of human long-term motor memory. J Neurosci. 1997;17:409. doi: 10.1523/JNEUROSCI.17-01-00409.1997. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.