Reinforcement Learning book cover

Your technical library

Reinforcement Learning

18 modules · 135 topics

About this book
Concepts · Reinforcement Learning

Reinforcement Learning

An agent acts, the environment responds, and the only feedback is a number. This course teaches how to learn good behaviour from that feedback, from solving a small known problem exactly up to the methods that train today's language models to follow preferences and to reason. It builds on Mathematics, Machine Learning and Deep Learning — though the first seven modules need only Mathematics and a few Machine Learning topics — and teaches none of its own general mathematics.

The reinforcement learning problem formalises it: states, actions, returns and the Bellman equations. Bandits isolates the problem of exploring. Dynamic programming solves a known model exactly; model-free prediction and model-free control learn from experience instead, through Monte Carlo methods, temporal-difference learning and Q-learning; and planning with models combines the two. Linear value function approximation generalises across states, and deep value-based RL does it with neural networks.

Policy gradients and continuous control and maximum-entropy RL optimise behaviour directly, through PPO and SAC, and deep model-based RL and learned search reaches AlphaZero and MuZero. Imitation and inverse RL and offline RL and off-policy evaluation learn without a reward or without interacting at all. Learning from preferences and verifiable rewards and reasoning RL apply all of it to language models — RLHF, DPO and GRPO. The course closes with what remains hard: exploration and sparse rewards, hierarchy and multiple agents and RL in the real world.

135 topics across 18 modules, in dependency order.

This course teaches none of its own general mathematics. Markov chains, expectation, concentration, importance sampling, gradients, entropy and KL live in Mathematics, and every lesson names the topics it needs under “Before this topic”. What stays here is reinforcement learning’s own mathematics — Bellman operators and their contraction, the policy improvement and policy-gradient theorems, regret, and the analyses of the algorithms themselves.

135 of 135 topics are authored; the rest are labelled planned and excluded from progress. Glossary and decision-guide entries cover the authored material and grow with the course.

Course map

Read at your own pace. Each topic is one continuous page; mark it done as you finish.

Start with 01.1 · The agent–environment loop: learning from a number instead of an answerReview what you have finished