Pavlov's Pup

Rusty the dog drools for biscuits. Can you teach Rusty to drool at a sound? Click a stimulus on the right to present it to Rusty, then watch Rusty and the graphs.

Rusty, a cartoon dog, sitting in a room with a bell and a person Treat! ? Zzz Grrr! The next day…

Rusty is waiting. Start by giving a biscuit to see a natural reflex.

Timing strip: shows how long after a sound the biscuit came.green = best gap
Response strength0.00
Response strength0.00
Response strength1.00

What happened

  1. Nothing yet. Each time you present a sound, that's one trial.

Exercises

0 of 5 done. They check themselves as you go.

1

Teach Rusty a new signal

To do

This is acquisition: building a new association.

  1. Ring the bell once. Rusty barely reacts, because the bell means nothing yet.
  2. Ring the bell, then give a biscuit about one second later.
  3. Repeat. Watch the bell's line climb with each pairing.
  4. Now ring the bell by itself. Does Rusty drool?

Goal: get the bell's strength to 0.80.

Think about it. Name the US, UR, CS and CR in what you just did. Why does each pairing raise the line less than the one before?
2

Make it fade

To do

This is extinction: the CS keeps coming but the US stops.

  1. After exercise 1, ring the bell again and again with no biscuit.
  2. Leave a second or two between rings. Ringing too fast annoys Rusty.

Goal: bring the bell's strength down to 0.15 or less.

Think about it. Did Rusty forget about the bell? Do exercise 3 before you decide.
3

Sleep on it

To do

This is spontaneous recovery.

  1. After extinction, press Rest overnight.
  2. Ring the bell once and watch Rusty.
  3. Try it again: extinguish, rest, ring. How much comes back the second time?

Goal: ring the bell after a rest that brought some of its strength back.

Think about it. If extinction erased the learning, what should have happened after the rest? What does the drool suggest extinction really is?
4

Timing matters

To do

Use “Treat!” for this one, and watch the timing strip under Rusty each time.

  • Say “Treat!”, then give the biscuit within about 1 second.
  • Say “Treat!”, then wait 5 seconds or more before the biscuit.
  • Give the biscuit first, then say “Treat!” right after (backward). Then wait for the timing strip to run out before the next biscuit.

Goal: try all three, a few times each, and compare the graph. Press Start over between them so each one starts from zero.

Think about it. A sound that comes after the food can't warn the dog that food is coming. Why would learning work best when the CS comes just before the US?
5

Nothing new to learn

To do

This is blocking, discovered by Leon Kamin in the late 1960s.

  1. Press Start over. Train the bell alone until its strength reaches 0.80.
  2. Now press Bell + “Treat!” together, then give the biscuit. Do this 5 times or more.
  3. Say “Treat!” by itself.

Goal: “Treat!” stays below 0.25 even after 5 pairings with the biscuit.

Think about it. “Treat!” was paired with the biscuit, so why didn't Rusty learn it? For comparison, start over and use Bell + “Treat!” together from the very first trial.

The terms

Neutral stimulusNS

Something that causes no particular response at first. Here: the bell or “Treat!” before training.

Unconditioned stimulusUS

Something that triggers a response with no learning needed. Here: the biscuit.

Unconditioned responseUR

The automatic response to the US. Here: drooling at the biscuit.

Conditioned stimulusCS

A neutral stimulus that now triggers a response because it was paired with the US. Here: the bell after training.

Conditioned responseCR

The learned response to the CS. Here: drooling at the bell.

About the model

How Rusty learns

Every time you present a sound, that is one trial. Each sound has a strength, V, from 0 to 1, shown in its little graph. After every trial the strength of each sound that was present changes by the Rescorla-Wagner rule:

ΔV = αβ (λ − ΣV)
αβ
How fast learning happens. Set to 0.3 for both sounds.
λ
How much the biscuit "counts" on this trial: up to 1 with good timing, 0 when no biscuit comes.
ΣV
The total strength of all the sounds present. λ − ΣV is the surprise.

Learning is driven by surprise. Early pairings are surprising, so V jumps. Later pairings are expected, so V barely moves. In blocking, the bell already predicts the biscuit, so on Bell + “Treat!” trials there is almost no surprise left for “Treat!” to learn from. Drooling to a sound is drawn in proportion to ΣV.

Timing

λ is multiplied by the timing factor above. A biscuit 0.5 to 2 seconds after the sound gets full credit. Credit falls off gradually after that and is close to zero by 10 seconds, when the trial ends as an extinction trial. Very short gaps are weak, and a biscuit before the sound (backward) teaches nothing. Because timing scales λ rather than the learning rate, badly timed pairings level off at a lower strength instead of slowly reaching the top. That matches the finding that long delays produce weaker conditioning, not just slower conditioning.

Where the timing comes from

Studies that vary the interstimulus interval find an inverted U: little or no conditioning when the CS and US are simultaneous or backward, a peak at a short forward delay, and a gradual decline at longer delays (Smith, Coleman & Gormezano, 1969). The best delay depends on the response being learned. Eyelid conditioning peaks at a fraction of a second, salivation and fear conditioning tolerate several seconds, and taste aversion works across hours. The best window here is stretched to 0.5–2 seconds so that a person clicking two buttons can hit it.

Backward pairings produce no learning here, which is what the Rescorla-Wagner model predicts. Real animals are messier. A few backward pairings can produce weak excitation, while many backward pairings usually make the CS a conditioned inhibitor, a signal that no food is coming for a while (Heth, 1976; Chang, Blaisdell & Miller, 2003).

A backward trial stays backward only if no biscuit follows the sound. If the next biscuit comes within 10 seconds, the sound also came just before that biscuit, so the demo counts it as a forward pairing. Real experiments space backward trials far apart for the same reason.

Spontaneous recovery and other shortcuts

The Rescorla-Wagner model predicts no spontaneous recovery: extinction just lowers V, and V stays low. Real animals recover part of an extinguished response after time passes (Pavlov, 1927; Rescorla, 2004), which suggests extinction is new learning laid over the old rather than erasure. So the demo adds recovery by hand: Rest overnight gives back half of the strength lost to extinction since the last rest. Repeated rounds of extinction and rest recover less each time.

Other simplifications: strengths stay between 0 and 1, so the demo shows no conditioned inhibition; extinction uses the same rate as acquisition; and relearning after extinction isn't faster, though in real animals it usually is.

Sources

  1. Chang, R. C., Blaisdell, A. P., & Miller, R. R. (2003). Backward conditioning: Mediation by the context. Journal of Experimental Psychology: Animal Behavior Processes, 29, 171–183.
  2. Heth, C. D. (1976). Simultaneous and backward fear conditioning as a function of number of CS-UCS pairings. Journal of Experimental Psychology: Animal Behavior Processes, 2, 117–129.
  3. Kamin, L. J. (1969). Predictability, surprise, attention, and conditioning. In B. A. Campbell & R. M. Church (Eds.), Punishment and aversive behavior. Appleton-Century-Crofts.
  4. Pavlov, I. P. (1927). Conditioned reflexes. Oxford University Press.
  5. Rescorla, R. A. (2004). Spontaneous recovery. Learning & Memory, 11, 501–509.
  6. Rescorla, R. A., & Wagner, A. R. (1972). A theory of Pavlovian conditioning. In A. H. Black & W. F. Prokasy (Eds.), Classical conditioning II. Appleton-Century-Crofts.
  7. Smith, M. C., Coleman, S. R., & Gormezano, I. (1969). Classical conditioning of the rabbit's nictitating membrane response at backward, simultaneous, and forward CS-US intervals. Journal of Comparative and Physiological Psychology, 69, 226–231.