The order to go through the material in, with prerequisites, rough time, and a checkpoint for each step, a thing you should be able to do before moving on. The lectures live in notes/lectures/ (index and review status in notes/README.md); exercises in exercises/. The lecture bodies haven’t been reviewed yet: treat their claims as unverified and check against the references.
Setup before you start: Python 3.10+, PyTorch, NumPy, Gymnasium (pip install gymnasium), and pytest for the exercises. A laptop is enough for everything through lecture 08. The LLM lectures (09+) describe full-scale training; you can follow the code without running it at scale.
Block 1: foundations (lectures 01–05)
Don’t skip this block. The LLM material later leans on all of it.
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 01: MDPs and Bellman equations | none | 2–3 h | Write down both Bellman equations and explain what value iteration does, without notes. |
| 02: Policy gradients from scratch | 01, basic calculus | 3–4 h + exercise | Derive ∇J = E[∇ log π · R] and say why the environment dynamics drop out. Then do the exercise: exercises/02-policy-gradients/ (implement REINFORCE, get CartPole solved, tests green). |
| 03: Value functions & Q-learning | 01, 02 | 2–3 h | Explain when you’d reach for a value-based method instead of a policy-gradient one. |
| 04: Actor-critic | 02, 03 | 2–3 h | Explain why subtracting a learned baseline reduces variance without biasing the gradient. |
| 05: Trust regions and TRPO | 02, 04 | 2–4 h | Explain what “trust region” means here and what problem it’s solving. |
Block 2: modern RL (lectures 06–08)
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 06: PPO | 02, 04, 05 | 2–3 h | Write the clipped surrogate objective and explain what the clip does and why. |
| 07: Off-policy learning: SAC, TD3 | 03, 04 | 2–3 h | Explain what a replay buffer buys you and why off-policy methods need extra machinery to stay stable. |
| 08: Model-based RL | 03 | 2–3 h | Explain when learning a model is worth it and how model error bites you. |
Block 3: RL for language models (lectures 09–13)
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 09: Reward modeling for RLHF | 02 | 2–3 h | Explain how a preference dataset becomes a scalar reward model (Bradley-Terry), and how reward models get gamed. |
| 10: PPO for language models | 06, 09 | 3–4 h | Walk through the RLHF loop end to end: SFT → reward model → PPO with a KL penalty to the reference policy. |
| 11: Direct preference optimization | 09, 10 | 2–3 h | Explain how DPO skips the explicit reward model and what it’s implicitly optimizing. |
| 12: Beyond DPO: GRPO, RRHF, IPO | 10, 11 | 2–4 h | Say what GRPO changes relative to PPO and why that matters for reasoning-style training. |
| 13: RLHF for code generation | 02, 10 | 2–3 h | Explain why unit-test pass/fail is a good reward signal for code and where it falls short. |
Block 4: reasoning, agents, and the modern stack (lectures 14–18)
Recent material, and the field moves fast: treat these as a map of the territory, not the last word. Newer drafts, so the unreviewed caveat applies maybe more than elsewhere.
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 14: Constitutional AI, RLAIF, self-improvement | 09, 10, 11 | 2–3 h | Explain the two phases of Constitutional AI; name one bias an LLM judge has and how you’d fight it. |
| 15: RL with verifiable rewards & reasoning models | 02, 06, 12 | 3–4 h | Write GRPO’s group-relative advantage and say why it removes the need for a value network; sketch the R1-Zero loop. Then do the exercise: exercises/15-grpo-rlvr/ (implement GRPO on a verifiable toy task). |
| 16: Agentic RL: tool use, multi-turn | 01, 06, 10, 15 | ~3 h | Explain why long-horizon agentic tasks make credit assignment hard, and why “reward = tests pass” is gameable. |
| 17: Online & iterative preference optimization | 09, 11, 12 | 2–3 h | Explain why offline DPO underperforms PPO-RLHF, and what iterating the loop fixes. |
| 18: Distillation of reasoning models | 09, 15 | ~2 h | Explain the R1-distill recipe and why a small model can imitate a big reasoner’s chains but couldn’t discover them via RL alone. |
Block 5: foundational topic that didn’t fit earlier (lecture 19)
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 19: Offline RL (BCQ, CQL, IQL, Decision Transformer) | 03, 04, 07; helpful: 11 | 2–3 h | Explain why naive Q-learning on a fixed dataset produces optimistic Q-values for out-of-distribution actions, and how IQL avoids the problem. |
You can read 19 anywhere after Block 1; it’s placed here because the bridge it draws to DPO (lecture 11), DPO is offline preference learning, is easier to see once you’ve done the LLM material.
Block 6: modern RL deep-dives (lectures 20–22, 32–33)
Standalone deep-dives that don’t sit in the main path but cover material a serious RL practitioner should know. Read in any order after Block 2.
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 20: Exploration: ε-greedy to intrinsic motivation | 01, 03 | ~3 h + exercise | Explain why uniform random exploration fails on Montezuma’s Revenge and what RND’s prediction-error bonus computes. Then do the exercise: exercises/20-exploration/ (RND on a sparse-reward chain MDP, tests green). |
| 21: Multi-agent RL and self-play | 02, 04, 06 | ~3 h | Explain why naive independent Q-learning fails when other agents learn too, and what fictitious self-play buys you in non-transitive games. |
| 22: World models | 08 | ~3 h | Explain the latent-dynamics premise (Dreamer family) and how MuZero learns a model that’s only as accurate as needed for planning. |
| 32: Meta-RL and in-context RL | 02, 04, 19 | 2–3 h | Explain how MAML differs from RL² in where the adaptation happens, and what Algorithm Distillation learns from the histories of an RL algorithm. |
| 33: Robotics RL | 04, 07, 08 | 2–3 h | Explain why off-policy methods dominate real-robot work and what a VLA model contributes vs. a from-scratch RL policy. |
Block 7: reasoning, agents, and the LLM modern stack continued (lectures 23–28, 34)
Continuation of Block 4, expanded across the 2024–2025 deep-dives. The same caveat applies: fast-moving, drafts are unreviewed.
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 23: Process reward models vs outcome reward models | 09, 15 | 2–3 h | Explain why PRMs reduce noisy credit assignment but add a gameable surface, and why DeepSeek chose to skip them. |
| 24: Computer use and browser agents | 16 | 2–3 h | Explain why pixel-coordinate action spaces are hard to ground from screenshots, and one failure mode specific to prompt injection from web content. |
| 25: Long-horizon credit assignment | 02, 04, 16 | ~3 h | Explain why GAE breaks at 1000+ steps and what hindsight relabeling / tree-search-then-train each buy you. |
| 26: RL for mathematical reasoning | 12, 15 | ~3 h | Walk through the DeepSeek-R1 training recipe: dataset, reward design, GRPO loop; explain the “aha moment” finding. |
| 27: RLAIF and synthetic preferences | 09, 14 | 2–3 h | Name three biases of an LLM-as-judge and a mitigation for each; explain why a weak judge caps the policy’s ceiling. |
| 28: Reward hacking and verifier design | 09, 15 | 2–3 h | Describe one concrete reward-hack in code-RL and one in math-RL; explain why holding out a verifier set is analogous to holding out test data. |
| 34: Self-distillation and self-improvement loops | 11, 14, 18 | 2–3 h | Explain when a self-improvement loop converges vs. collapses; describe the role of the filter / verifier in keeping the loop honest. |
Block 8: systems and infrastructure (lectures 29–31)
How LLM-RL training actually runs in practice. Read these when you’re about to operationalize, or just want to know what the engineering looks like at scale.
| Step | Prereq | Time | Checkpoint |
|---|---|---|---|
| 29: Distributed RL systems | 06, 10 | 2–3 h | Explain the IMPALA actor-learner split and what V-trace corrects for; describe a typical 2025 LLM-RL stack (vLLM rollouts + FSDP learner). |
| 30: RL inference infrastructure for LLMs | 10 | ~2 h | Explain why decode dominates wall-clock in RL training and what PagedAttention / continuous batching contribute. |
| 31: Hardware for RL | 06 (any prior GPU exposure helps) | ~2 h | Explain why decode is HBM-bandwidth-bound and prefill is compute-bound; name one kernel-level optimization (FlashAttention) and why it matters. |
Planned
- A curated paper layer in
reference/papers/, built fromtools/lit-builder/once the LLM scoring step has been run (it needs a credential). Two hand-curated topic READMEs have landed alongside the existing three:GRPO-RLVR/andAgentic-RL/; the auto-generatedPAPERS.mdfiles in those directories still need a collector run.
If you already know RL
Skim 01–05 for notation, then go 09 → 10 → 11 → 12, and 13 if you care about code. The reading lists in reference/papers/ are the place to go deeper.
Working alone vs. with an agent
If you’re using an AI tutor (Claude Code, Codex): point it at AGENTS.md. For an exercise, it should have you edit starter.py, run pytest exercises/NN-topic/, and hand you the next hint from HINTS.md when you’re stuck, not the solution. An exercise is done when the tests pass and you can explain why your implementation works.