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
TD error δ(t) within the trial (cue on at t = 10, reward at t = 30)
Learned prediction v(t)
What to try
- Run one trial. The cue predicts nothing yet, so the only error is a spike when the reward arrives, an unexpected good event.
- Run +10 a few times. The spike travels backward step by step toward the cue (TD(0) passes the error back roughly one time step every two trials). After about 40 trials it sits at cue onset, and the reward itself causes almost no error. The cue has become the surprising event.
- Now run a trial with the reward omitted. There is a spike at the cue as usual, then a dip below zero at exactly the time the reward was expected.
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
- General value functions. Predict any signal, not just reward, under any policy and termination. Such predictions can serve as features of knowledge about the world.
- Options. Temporally extended courses of action, with their own policies and termination conditions, so planning and learning can work at several timescales at once.
- Observations and state. Real agents don't see the Markov state. They must construct one from history, through state-update functions, predictive representations or learned memory.
- Designing reward signals. Rewards are how we tell agents what we want. Sparse rewards make learning slow. Shaped or intrinsic rewards help but risk optimizing the wrong thing.
- Remaining issues. Fast online learning with deep networks without catastrophic interference, learning good representations, scalable planning with learned models, automating task and curriculum choice, and integrating curiosity-driven exploration.
- Reinforcement learning and the future of AI. Powerful learning agents raise safety concerns. Objectives can be mis-specified, and agents may find unintended ways to maximize reward. Careful design and oversight become increasingly important as capabilities grow.