Note Wisdom
These annotated notes break down Stanford CS224R Lecture 9 on LLM alignment via RLHF and DPO, explaining core mechanics, tradeoffs, and open problems for student review.
Institution: Stanford
Original Course: Stanford CS224R Deep Reinforcement Learning | Spring 2025 | Lecture 9: RL for LLMs
Instructor Bio: This lecture is delivered by Chelsea Finn, Assistant Professor of Computer Science and Electrical Engineering at Stanford University, and co-founder of Pi. Chelsea Finn leads the IRIS (Intelligent Robotics and Interactive Systems) Lab at Stanford, affiliated with the Stanford Artificial Intelligence Laboratory (SAIL) and the Machine Learning Group. Her research focuses on the capability of robots and other agents to develop broadly intelligent behavior through learning and interaction, spanning reinforcement learning, meta-learning, imitation learning, and robotic manipulation. She received her PhD in Computer Science from UC Berkeley and her B.S. in Electrical Engineering and Computer Science from MIT, and previously held research positions at Google Brain and Google DeepMind. She has taught CS224R: Deep Reinforcement Learning at Stanford since Spring 2023, and also created and taught CS330: Deep Multi-Task and Meta Learning.
Course Description: This lecture explores how reinforcement learning is used to align and improve large language models, one of the most impactful applications of modern RL. It covers the full post-training pipeline: supervised fine-tuning (SFT) to establish instruction-following behavior, reward model training from human preference data, and proximal policy optimization (PPO) for RLHF. The lecture also introduces Direct Preference Optimization (DPO) as a simpler, more stable alternative that bypasses explicit reward modeling. It discusses the unique challenges of applying RL to autoregressive language models, including KL divergence constraints, reward hacking, and the emerging paradigm of using AI feedback (RLAIF) to scale alignment beyond human annotation capacity.
All contents below are exclusive to the paid Word file, NOT available on this web page
Skip hours of watching lectures. Get organized notes, exam prep materials and problem solutions all in one Word file.
Click to see everything included
All contents below are exclusive to the paid Word file, NOT available on this web page

