Reinforcement Learning from the Beginning

A program that taught itself Go, a robot that learnt to walk, a language model "trained with human feedback": each learnt from a single number that says better or worse. That number is a reward, and reinforcement learning is the art of turning rewards into behaviour. Run on the page: rewards and returns; bandits and the price of exploring; states, values and the Bellman equations; dynamic programming, Monte Carlo and temporal difference; traces, exploration and planning; features, neural networks, DQN, policy gradients, actor–critic and PPO; models, partial observability, games, hierarchy, offline learning and learning from human feedback; reward design, evaluation, safety and the brain — every agent trained in front of you, every curve drawn from several seeds, in English and Chinese.

0plates
0read
0challenges met

Every return, value, curve and number on these pages is computed by the page or cited with its source; your progress stays in this browser. Every agent trains in your browser on small worlds made for the course; real training at scale needs hardware this course does not assume. The course names no product or company outside its history and applications. Not affiliated with or endorsed by any organisation, company, laboratory, publisher or author mentioned here.

open in a tab

Settings

Thorough runs more episodes and seeds and takes longer; on a slow phone choose Fast. The numbers in the prose are computed at Normal.

Progress and settings live only in this browser. Nothing is sent anywhere unless you send a report. The course never asks for the camera, the microphone, location, motion sensors or any other device.

Report an error

The report carries the plate, your message and any text you had selected. It carries no name or address of yours.