Rescorla-Wagner Model

Measurement
Introduced by
Robert Rescorla and Allan Wagner
Year
1972
Type
Computational model
Family
Learning Theory

What does it do?

The Rescorla-Wagner model is a quantitative theory of associative learning.

It predicts how the associative strength between stimuli, such as a tone and a shock in fear conditioning, changes across trials. Learning on each trial is driven by prediction error, the difference between the reinforcer that occurs and the associative strength already expected, so learning slows as the error shrinks. The model accounts for acquisition curves, blocking and stimulus interactions in compound conditioning.

The intuition behind the method

Suppose you are learning to predict rain from dark clouds. At first, clouds carry no expectation of rain, so when rain arrives it is a large surprise and you revise your expectation upward. As clouds become a reliable predictor, rain is no longer surprising and each new storm teaches you less. The Rescorla-Wagner model formalises this pattern: the change in associative strength on a trial is proportional to the prediction error, so expected outcomes produce little change. Later computational accounts of learning build on the same error-driven logic.

History

Rescorla and Wagner's formulation is usually dated to 1972, when it was presented as a theory of Pavlovian conditioning. The model's prediction-error account matched findings on blocking and overshadowing, and it showed that a mechanistic error-correction theory could explain blocking without appeal to cognitive reassessment of predictive relationships. Its update rule is essentially the Least Mean Square (Widrow-Hoff) learning rule from engineering, which adjusts weights to minimise squared error. Subsequent experiments tested its predictions and identified limits such as extinction, latent inhibition and context sensitivity, which prompted extensions. Later work develops temporal-difference and Bayesian variants that keep the error-correction principle.

When to use it

Choose the Rescorla-Wagner model when the question concerns trial-by-trial acquisition of associations in paired-stimulus conditioning and you have trial-level data (which cue was followed by which outcome) to fit against. It is useful for testing whether simple error-correction learning can account for a pattern such as blocking or overshadowing. Do not rely on the basic model when the central question involves spatial learning, multi-stimulus configurations, context gating, or whether extinction produces new inhibitory learning, because it does not represent these. It should not be used to predict individual differences without a cross-validated comparison against simpler baselines. Because the model is a computational account fitted to trial-level data, the result is a set of parameter estimates and a model comparison rather than a significance test.

Limitations and considerations

  • Associative strength changes by a fixed fraction of the current error on each trial, so nonlinear or threshold-like changes in learning are not represented without extension.
  • Each stimulus enters through a single salience parameter α, so the model does not represent changes in how a stimulus is perceived or encoded over training.
  • On non-reinforced trials (λ = 0) the equation reduces V toward zero, so extinction is modelled as unlearning and cannot be distinguished from acquired inhibition; later models were developed to address this.
  • The model is designed for paired stimuli; representing multi-cue configurations or spatial learning requires extensions beyond the basic equation.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • A single update rule, ΔV = αβ(λ - V), with two parameters, can be simulated trial by trial and fitted to conditioning data.
  • Acquisition is negatively accelerated: because the error λ - V shrinks as V approaches λ, the change in associative strength becomes smaller over trials.
  • Accounts for blocking: prior training that makes one cue a good predictor leaves little error for a second cue added in compound, so learning about that cue is slowed.
  • Provides a formal error term that later neural and computational studies have taken up as a hypothesis to test.

Applications

  • Fear conditioning: fitting acquisition and extinction curves in anxiety and phobia studies, and asking whether an error-driven model fits extinction-based treatment data.
  • Addiction research: using prediction-error terms as a hypothesis for how drug-related cues acquire associative strength and drive cue reactivity.
  • Clinical reasoning: using the model's concepts of prediction error and associative strength to organise hypotheses about anxiety-related learning.
  • Computational neuroscience: a reference model for comparing behavioural learning curves with candidate neural prediction-error signals.

How it works

How it works

1

Under the model, the change in associative strength on a trial is proportional to the prediction error, so larger errors should produce faster learning. A second stimulus added to a compound that already predicts the reinforcer produces little prediction error and therefore little learning, which is the blocking prediction. Because the update is driven by the difference between the outcome and the current V, continued non-reinforced presentations reduce V toward zero, so extinction is modelled as a decrease in associative strength; the basic equation does not by itself distinguish this from new inhibitory learning.

2

Implement the Rescorla-Wagner update. On each trial, for every stimulus i that is present, ΔV_i = α_i·β·(λ - V_tot), where V_tot is the summed associative strength of all stimuli present on that trial, V_tot = ΣV_i. α_i is the salience of stimulus i, β is reinforcer effectiveness, and λ is the maximum associative strength (1 if the US is present, 0 if absent). Stimuli absent on a trial are not updated. For a single stimulus V_tot = V and the rule reduces to ΔV = α·β·(λ - V). Worked case for blocking: after stage 1 trains A alone until V_A approaches λ, present the compound AX with V_X = 0. The prediction error is λ - (V_A + V_X), which is close to zero, so ΔV_X is close to zero and X is blocked. Model learning across trials by updating the associative strengths after each trial, and compare predicted learning curves to observed acquisition and extinction data.

3

Fit α and β to the empirical data. For a single stimulus the update depends only on the product αβ, so the two parameters cannot be separated from a learning curve alone and need independent measurement or constraints. Check whether prediction errors shrink as learning progresses, as the model implies. Test whether the model reproduces blocking, overshadowing and extinction recovery. Systematic deviations point to needed extensions, such as learning rates that change over training or context effects. Compare the basic model with an extended version using cross-validated fit to held-out trials or an information criterion that penalises extra parameters, and prefer the simpler model when fits are similar. The outcome is a set of parameter estimates and a model comparison, not a significance decision. A poorer fit on one dataset does not by itself refute error-driven learning.

Common pitfalls

  • Overfitting: allowing separate α and β for every stimulus gives many free parameters. Use constraints or cross-validation against simpler models.
  • Parameter identifiability: for a single cue only the product αβ affects the update, so a low estimate cannot be attributed to low salience or low reinforcer effectiveness from the learning curve alone.
  • Ignoring context: the basic model has no term for context, so learning that depends on the training context appears as unexplained variance unless context cues are added as stimuli. Hippocampal-network accounts that model contextual sensitivity and stimulus representation are one alternative (Gluck & Myers, 1993).
  • Reading misfit as disproof: deviations from predicted curves may reflect changing learning rates or context effects rather than a failure of error-driven learning in general. Compare extended models before rejecting the account.

Frequently asked questions

What is prediction error in the Rescorla-Wagner model?

Prediction error (λ - V) is the difference between what the organism expects to occur (V, associative strength) and what actually occurs (λ, reinforcer presence). Large errors indicate surprise; small errors indicate predictability. Learning is proportional to error: surprising outcomes teach more than expected outcomes.

Why does blocking occur in the Rescorla-Wagner model?

When one stimulus (A) predicts the US well (high V for A), adding a second stimulus (B) does not increase prediction error. Since error is small, learning about B is slow or absent—it is 'blocked' by A. This explains empirically observed blocking: pre-training on one cue reduces learning about a second cue.

How does the model explain extinction?

During extinction (CS without US), λ = 0 while V is positive, so the error is negative and V decreases: ΔV = α·β·(0 - V) = -α·β·V. The basic model therefore predicts extinction as a reduction in associative strength. Some data suggest extinction may involve new inhibitory learning rather than unlearning, which the basic equation does not distinguish; extended models include inhibitory learning.

Can I use the model to predict individual learning differences?

Only partly. You can fit the model to each individual's trial-level data, but for a single cue only the product αβ enters the update. A slow learner therefore has a low estimate of αβ, and the learning curve alone cannot show whether low salience or low reinforcer effectiveness is responsible. Interpret differences as differences in αβ unless independent measures of salience or reinforcer effectiveness are collected. Fitting two parameters to few observations can overfit, so compare against simple baselines using cross-validation.

Sources

  1. Rescorla, R. A., & Wagner, A. R. (1972). A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and non-reinforcement. In A. H. Black & W. F. Prokasy (Eds.), Classical conditioning II (pp. 64-99). Appleton-Century-Crofts.

    Open publication reference
  2. Simonetta, S. H., Schaafsma, S. M., & Meffert, H. (2010). The Rescorla-Wagner model of Pavlovian conditioning: Some current issues and applications. Neuroscience & Biobehavioral Reviews, 34(6), 821-835.

    Open publication reference
  3. Gluck, M. A., & Myers, C. E. (1993). Hippocampal mediation of stimulus representation: A computational theory. Hippocampus, 3(4), 491-516.

    Open DOI reference