Deep Reinforcement Learning
Track 18 · Advanced
Policy gradients, Q-learning, PPO, and the algorithms behind RLHF.
18 lessons 5.6 hours narrated Free, no account needed
The 3 phases, lesson by lesson
Phase 1 RL foundations
- Introduction to deep reinforcement learning Reinforcement learning, the third ML regime: an agent learns from rewards by acting in an environment. Deep RL swaps lookup tables for neural networks.
- Imitation learning and behavioral cloning Behavioral cloning copies an expert by supervised learning on state-action pairs. See why it is tempting, why small errors compound, and how DAgger fixes it.
- RL fundamentals: MDPs, value, and Bellman The Markov decision process (S, A, P, R, gamma), value functions V, Q, and advantage, and the Bellman equation that every RL algorithm is built on.
- Policy gradients (REINFORCE) Derive REINFORCE from the log-derivative trick to improve a neural-network policy from sampled trajectories, no model needed, at the cost of variance.
- Actor-critic methods How actor-critic methods cut REINFORCE's variance: a critic estimates value to supply a baseline or bootstrapped target, trading a little bias for stability.
Phase 2 Core deep-RL algorithms
- Value-based RL: deriving Q-learning Derive Q-learning from the Bellman optimality equation, run tabular Q-iteration on a small MDP, and see why the deadly triad breaks Q-learning convergence.
- DQN: replay buffer, target network, double-Q Each of DQN's three tricks patches a leg of the deadly triad: replay buffer for off-policy data, target network for bootstrapping, double Q for max bias.
- PPO: the clipped surrogate, RLHF workhorse PPO stays near on-policy and clips how far the policy can shift each update, the policy-gradient method behind the RLHF that finetunes language models.
- Model-based RL: learning the dynamics Learn the dynamics in model-based RL: fit a model of the environment for planning and imagined rollouts, gain sample efficiency, and tame compounding error.
- Planning with a learned model: MPC to MuZero How to use a learned dynamics model to plan: random shooting, the cross-entropy method (CEM), MPC re-planning every step, and MuZero's MCTS approach.
- Variational inference for RL: the ELBO How variational inference powers RL: deriving the ELBO, the reparameterization trick, and where it shows up in world models (Dreamer) and MaxEnt RL (SAC).
- Control as inference: SAC and RLHF unified Reframe reinforcement learning as variational inference: optimality variables as evidence, soft Bellman backup, and SAC, RLHF, and MaxEnt IRL as one equation.
Phase 3 RL frontiers
- RLHF deep-dive: the InstructGPT pipeline How RLHF aligns language models to human preferences: the InstructGPT pipeline (SFT, reward model, PPO plus KL penalty), reward hacking, and why beta matters.
- Offline RL, the problem Offline RL learns a policy from a fixed dataset with no new interaction. See why naive Q-learning diverges through extrapolation error, and where it bites.
- Offline RL algorithms (BCQ, CQL, IQL) How BCQ, CQL, and IQL keep offline RL stable: constrain actions, penalize out-of-distribution Q-values, or sidestep the max, with a rubric for picking each.
- Exploration: epsilon-greedy to curiosity When rewards are sparse, exploration is the core problem. Compare three families (random, optimism, intrinsic motivation) and which fits hard exploration.
- Multi-task RL and meta-RL Multi-task RL trains one policy across many tasks; meta-RL trains agents to adapt fast to new tasks. Compares three meta-RL families: MAML, RL2, PEARL.
- Challenges and open problems in deep RL Deep RL's four open frontiers, sample efficiency, safety, generalization, and real-world deployment, and how each connects back to core RL algorithms.