Chapters 14–17 · Sutton & Barto

Beyond the algorithms

The last part of the book steps back from algorithms. It asks how reinforcement learning relates to animal learning and to the brain, looks at landmark applications, and surveys open problems. This page summarizes each chapter. Its one demo is the model that links them: the TD error as a teaching signal, and what happens to it when a reward becomes predictable.

14Psychology

Animal-learning research distinguishes classical (Pavlovian) conditioning, where an animal learns to predict an important event from a cue, from instrumental (operant) conditioning, where it learns which actions bring good outcomes. These line up with prediction and control in RL.

The Rescorla–Wagner model explained a key puzzle, blocking. If a light already predicts food, then adding a tone alongside the light teaches the animal almost nothing about the tone. Learning is driven by surprise, the gap between what happened and what all present cues together predicted, not by co-occurrence. That is an error-correction rule, essentially the LMS update.

The TD model extends Rescorla–Wagner from whole trials to moment-by-moment time. The prediction at each instant is of discounted future reinforcement, and the error is the TD error δ. This accounts for timing effects Rescorla–Wagner cannot, such as higher-order conditioning: a cue that predicts another cue, which predicts food, acquires value itself, because its prediction is bootstrapped from the second cue's.

On the instrumental side, Thorndike's Law of Effect is trial-and-error learning in its simplest form. The book also maps other ideas onto RL. Shaping is a curriculum of easier tasks. Habits versus goal-directed behaviour (tested by devaluing a reward) correspond to model-free versus model-based control. Tolman's latent learning is learning a model without reward, as in planning.

The TD model of conditioning

trial 0 · δ at cue – · δ at reward time –

TD error δ(t) within the trial (cue on at t = 10, reward at t = 30)

this trialearlier trials (fading)

Learned prediction v(t)

What to try

15Neuroscience

Those three patterns are what recordings of midbrain dopamine neurons in monkeys showed. Before training, the neurons fire in a burst at an unexpected reward. After training, the burst moves to the earliest reliable predictor of the reward, and the reward itself evokes little. When a predicted reward fails to arrive, firing drops below baseline at the expected moment. The reward prediction error hypothesis proposes that phasic dopamine activity signals a TD error, not reward itself.

Building on that, the actor–critic architecture of chapter 13 maps plausibly onto the striatum. The dorsal part would act as the actor, learning action preferences. The ventral part would act as the critic, learning values. Dopamine broadcasts δ to both. Dopamine-modulated plasticity at cortico-striatal synapses behaves like a three-factor learning rule: presynaptic activity, postsynaptic activity, and a neuromodulatory reinforcement signal, with a decaying synaptic eligibility trace bridging the delay between them, much like z in chapter 12. The chapter also discusses model-based versus habitual control in the brain, hedonic versus predictive aspects of dopamine, and addiction as a possible corruption of the prediction-error signal. The correspondence isn't perfect, but it is among the closest links between a learning algorithm and neural data.

16Applications and case studies

The chapter studies a series of systems in which RL achieved notable results, each depending on careful choices of representation and training setup:

TD-Gammon

A neural network trained by TD(λ) purely through self-play reached the level of the world's best backgammon players, and changed how experts evaluate some positions.

Samuel's checkers

An early program that learned an evaluation function by backing up values from lookahead search. It anticipated much of TD learning by decades.

Watson's wagering

The Jeopardy!-playing system used learned value estimates and Monte Carlo simulation of game outcomes to place Daily-Double bets better than human champions.

Memory control

An RL scheduler learned to order DRAM commands online in a simulated memory controller, beating hand-designed policies on throughput.

Atari with DQN

Deep Q-learning from raw pixels, with experience replay and a periodically updated target network, reached human-level play on many Atari games with one architecture.

AlphaGo and AlphaGo Zero

Policy and value networks combined with Monte Carlo tree search mastered Go. The Zero version learned from self-play alone, with MCTS acting as a policy-improvement operator.

Personalized web services

Choosing content to maximize long-term engagement rather than immediate clicks, with off-policy evaluation of new policies before deploying them.

Thermal soaring

Simulated gliders learned to find and climb rising air currents, using sensed vertical wind acceleration and torque as cues, close to strategies birds use.

17Frontiers