Andrew Ceniccola
Moon Readers

How Rewards
Guide Actions

What difference does a revolution make when you have experiments to do in the lab.

QuestionHow can we learn from actions?
WhenAugust 2026
01

Today's agenda

  1. 1How can we learn from actions?
  2. 2Operant Conditioning
  3. 3Pavlovian Conditioning
  4. 4Sequential Decisions
  5. 5Temporal Difference Learning
02

How can we learn from actions?

Reinforcement Learning is the art of learning without being told

Of course, the reward function is ‘telling’ in a similar way to data. So what do you think the difference truly is?

03

Operant and Pavlovian conditioning

The power to change expectations comes from violating them.

Acquisition and extinction are the two faces of that violation. Pair a cue with food and the probability of salivating rises, fastest on the first trials. Pair the same cue with nothing and it falls, again fastest at the start. The steps get smaller as the prediction catches up to what actually arrives.

Two plots: acquiring a cue-reward association and extinguishing it, with larger first-trial changes marked bigger than later ones.
Fig. 1 Acquiring a cue-reward association, then extinguishing it. The first violation moves the prediction more than the next.
04

Sequential decisions

T(s, a) = sNEXT — recursion. Sequential decision making and dynamic programming.

The value of a state is the best immediate reward plus the discounted value of wherever that action sends you. Once you can write that down, following the value function is what maximising reward looks like as a procedure.

V(s) = max [R(s, a) + B V(T(s, a))]
Bellman equation
05

Blockers as causal cues

Bonus slide

Blockers as causal cues — any effect only has one cause?

Other ideas for the prediction error learning reasons?

06

Temporal difference learning

How do we learn the value function? Temporal difference learning turns the Bellman backup into an update you can run from one step of experience. The quantity in brackets is the surprise: reward plus what you now think the next state is worth, minus what you thought this state was worth.

Temporal difference update: V of S t is increased by alpha times the TD error, which is R t plus one plus gamma V of S t plus one minus V of S t.
Fig. 2 The TD error δt. Bush, Mosteller, Rescorla, Wagner and Sutton turned conditioning data into this string of symbols.
07

Dopamine as a signal

Dopamine as a signal for both positive and negative prediction errors.

Striatum region as a central area to reward learning. In this region changes only occur in the presence of dopamine (there is actually degradations of pathways — unlearning — in extreme absence of dopamine).

Lateral view of the human brain with the striatum highlighted in red.
Fig. 3 The striatum. Dopamine arriving here is what lets associations be written, and what lets them fade when the signal is gone.
08

Blocking still occurs in drug use

Bonus slide

Blocking still occurs in drug use. Why is this if drugs create errors forcefully (by increasing dopamine)?

09

Marr's levels

An explanation encompassing all of Marr’s levels is an aspiration towards which many neuroscientists strive. The systems that carry out reinforcement learning are a rare case where they can come within striking distance of this high bar.

Computational Maximise reward. Bellman; follow the value function.
Algorithmic Temporal difference learning. Bush, Mosteller, Rescorla, Wagner, Sutton.
Implementation Dopamine computes prediction error; the striatum writes the associations.
Fig. 4 Three tunnels into the same ability: to learn from rewards.

At the computational level reinforcement learning has a simple answer: maximise reward. This is what Bellman recognised as the goal of sequential decision processes and what following the value function should get you. But how do we learn the value function? That’s where temporal difference learning comes in. The work of Bush, Mosteller, Rescorla, Wagner and Sutton all turned stacks of data from conditioning experiments into strings of symbols that could describe the algorithm needed to do the learning part of reinforcement learning. On the implementation level, dopamine neurons take on the task of calculating prediction error and the signals they send to other brain areas control the associations learned there. In this way, a satisfying understanding of a fundamental ability – to learn from rewards – was achieved by tunnelling towards the topic from many different angles.

Interactive

The newsvendor

Maximise expected profit under uncertain demand. Step through each possible world and watch the expected value accumulate, then write the function in Python and run it against tests.

Play →