Sub topic 14
Blocking and the Rescorla-Wagner Model
This chapter assumes you know the terms conditioned stimulus (CS), unconditioned stimulus (US), acquisition, and extinction. It also assumes that a stronger prediction error usually produces more learning.
The blocking effect
Blocking occurs when an existing predictor prevents a new stimulus from becoming a useful predictor.
Imagine this sequence:
- Phase 1: A tone, stimulus A, is repeatedly followed by food.
- Phase 2: A tone and light together, A+B, are followed by food.
- Test: The light B is presented alone.
The animal responds strongly to A but shows little response to B. Learning about A has “blocked” learning about B.
The important point is that B was paired with the food. Mere pairing is not enough. During phase 2, A already predicts the food, so the compound A+B produces little surprise. The food adds almost no new information. Because there is little prediction error, B gains little associative strength.
| Phase | Stimuli presented | Outcome | Main result |
|---|---|---|---|
| 1 | A | Food | A becomes a strong predictor |
| 2 | A + B | Food | B gains little strength |
| Test | B alone | No food | Weak response to B |
The Rescorla-Wagner model
The Rescorla-Wagner model describes learning as an update after each trial. Its central idea is that learning is driven by prediction error:
\[ \Delta V = \alpha\beta(\lambda - V) \]
Here:
- \(V\) is the current associative strength of the cue or cues.
- \(\Delta V\) is the change in associative strength.
- \(\lambda\) is the maximum strength supported by the US on that trial.
- \(\alpha\beta\) represents learning-rate factors.
- \(\lambda - V\) is the prediction error.
If the outcome is larger than expected, prediction error is positive and associative strength increases. If the outcome is exactly as expected, prediction error is near zero and little learning occurs. If an expected outcome is omitted, prediction error is negative and associative strength decreases.
For a compound, the model adds the strengths of the individual cues:
\[ V{AB} = VA + V_B \]
During blocking, \(V_A\) is already close to \(\lambda\). Therefore, in phase 2:
\[ \lambda - (VA + VB) \approx 0 \]
Both cues receive little additional learning. Since B began with almost no strength, it remains weak.
# Blocking with the Rescorla-Wagner rule
ab = 0.3
V = {"A": 0.0, "B": 0.0}
# Phase 1: A predicts the US
for _ in range(20):
error = 1.0 - V["A"]
V["A"] += ab * error
# Phase 2: the compound AB predicts the same US
for _ in range(20):
error = 1.0 - (V["A"] + V["B"])
V["A"] += ab * error
V["B"] += ab * error
print(round(V["A"], 2), round(V["B"], 2))The output leaves A near the maximum value and B near zero. The exact values depend on the learning rate and number of trials, but the pattern is the main prediction.
What the model explains and misses
The model explains why learning levels off during acquisition and why unexpected outcomes produce larger changes. It also predicts that changing the US, adding a new outcome, or weakening the established cue can restore prediction error and allow new learning.
However, the model is a simplified account. Real learning depends on attention, timing, biological relevance, prior experience, and the learner's context. It does not fully explain every case in which a supposedly blocked cue later affects behavior.
Exercise
Why does stimulus B gain little associative strength when A already predicts the US?
Show answer
Because the compound A+B produces little prediction error. The expected US is already explained by A, so the Rescorla-Wagner update for B is small.