Reinforcement Learning for Large Language Models: A Modern View
summary
Three-hour tutorial lays out the math behind policy-gradient post-training and why modern pipelines favor PPO-style clipping and the GRPO family over token-level critics: rollouts are expensive (autoregressive inference one token at a time), full-trajectory importance weights suffer importance-weight blowup with horizon length, and learned reward models use Bradley–Terry preference training or verifiable rewards for RLVR. Practical patterns: broadcast sequence reward to tokens, use group-relative advantage (subtract mean, divide by stddev) with clip ε≈0.2, and avoid a separate critic because it costs another transformer.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:13RL for LLMs motivation
- 8:17LLM basics
- 9:21SFT vs RL
- 13:55Rejection sampling
- 19:12Contextual bandits
- 36:34MDPs for LLMs
- 51:39Policy gradient math
- 1:00:54Credit assignment
- 1:13:41Break
- 1:19:12Value functions
- 1:33:30Rollout costs
- 1:39:35Mini batches
- 1:50:54Importance sampling
- 2:00:42Trust region
- 2:13:01PPO explained
- 2:28:40Reward models
- 2:35:29Credit assignment revisited
- 2:39:24GRPO
- 2:49:13KL divergence
- 2:53:31Method comparison
- 2:56:26Q&A
