CS 281B & Stat 241B
Advanced Topics in Learning and Decision Making
UC Berkeley, Spring 2027
Instructor: Dylan Foster
Overview
Reinforcement learning, or interactive decision making, is the problem of learning to act well in an unknown environment (e.g., a language model learning to write proofs, a recommendation system learning what to display, or a robot learning to navigate), using the data that one's own decisions generate to continuously improve. Compared to classical statistical learning, where data is given upfront, the central challenge is that the learner must decide what data to collect, as well as how to learn from it.
This course develops the statistical and algorithmic foundations for reinforcement learning. Throughout, we treat statistical learning (as developed in CS 281A / Stat 241A) as a building block, using this as a starting point to design and understand algorithms that learn through interaction.
The first half of the course will focus on reinforcement learning in perhaps its most prominent form today: the language/foundation model training pipeline. Here, RL begins from a "warm start": we first pre-train a model on a large corpus for general capabilities, then use reinforcement learning to adapt it to tasks of interest (post-training). Topics include next-token prediction, policy gradient methods (REINFORCE, GRPO), and reinforcement learning from human feedback.
The second half of the course will focus on the complementary problem: learning from scratch, where there is no pre-trained model to start from and the learner must explore. We begin with multi-armed and contextual bandits, where theory is mature and algorithms are widely used in practice, then move to exploration in long-horizon reinforcement learning, which remains a research frontier.
CS 281B / Stat 241B is the second half of Berkeley's two-semester graduate sequence on statistical learning theory. This is intended as an advanced topics course, and does not assume prior exposure to reinforcement learning.
Logistics
- Time and location: Tuesdays and Thursdays, 11:00–12:30pm, Etcheverry 3105.
- Target audience: Graduate students and advanced undergraduates.
- Prerequisites: Mathematical maturity and a proof-based course in probability, statistics, or learning theory (for example, Stat 205A, Stat 210A, or CS 281A / Stat 241A), or instructor's permission. CS 281A / Stat 241A is helpful but not required: We will review the basics of statistical learning, but techniques like concentration inequalities and uniform convergence will recur throughout the course and be easier if you have seen them before.
- Grading: Midterm exam (40%) and final project (60%). Homework exercises will be posted regularly but are not graded.
- Final project: A research project on a topic related to the course, done in groups of one to three. It involves a proposal, an in-class presentation, and a written report. See the project page for guidelines and suggested topics.
Schedule
This schedule is tentative and subject to change.
| Dates | Topic | Lectures |
|---|---|---|
| Jan 19 – 21 | Introduction and background Course overview; statistical learning and generalization. Reading: FRL §2 | 2 |
| Part I: Foundation models and post-training | ||
| Jan 26 | The foundation model pipeline Language models; pre-training, post-training, and test-time. Reading: RRL §3 | 1 |
| Jan 28 – Feb 4 | Pre-training and supervised fine-tuning Next-token prediction as maximum likelihood; supervised fine-tuning versus pre-training; coverage and best-of-N sampling. Reading: RRL §4 | 3 |
| Feb 9 – 23 | Policy gradient methods and RL with verifiable rewards Policy gradient identity; PG convergence; Algorithms: REINFORCE, GRPO, RFT; Interventions: variance reduction, clipping, score centering, reference resets. Reading: RRL §5 | 5 |
| Feb 25 – Mar 2 | RL from human feedback RLHF pipeline; direct preference optimization (DPO); online DPO (time permitting). Reading: RRL §6 | 2 |
| Thu, Mar 4 | Midterm exam (in class) | |
| Part II: Exploration in bandits and reinforcement learning | ||
| Mar 9 | Online learning Online learning and prediction; regret; online learning algorithms. Reading: FRL §2 | 1 |
| Mar 11 – 16 | Multi-armed bandits Exploration–exploitation tradeoff; ε-greedy algorithm; optimism principle and the upper confidence bound (UCB) algorithm. Reading: FRL §3 | 2 |
| Mar 18 – Apr 1 | Contextual bandits Optimism and ε-greedy for contextual bandits; linear models and LinUCB; limitations of optimism; inverse gap weighting. Reading: FRL §4 No class on March 23 and 25 (spring break). | 3 |
| Apr 6 – 13 | Structured bandits Optimism and the eluder dimension; decision-estimation coefficient and estimation-to-decisions principle. Reading: FRL §5 | 3 |
| Apr 15 – 22 | Reinforcement learning: basic principles Finite-horizon episodic MDPs; Bellman optimality principle; performance-difference and simulation lemma; optimism and UCB-VI. Reading: FRL §6 | 3 |
| Apr 27 – 29 | Reinforcement learning with function approximation Realizability; linear Q* and linear MDPs (LSVI-UCB); broader landscape of exploration in RL. Reading: FRL §9 | 2 |
| May 4, 6 | Project presentations (RRR week) | |
| May 10 – 14 | Project report due (finals week; exact date to be announced) | |
Resources
RL and Interactive Decision Making- [FRL] Foundations of Reinforcement Learning and Interactive Decision Making. Dylan J. Foster and Alexander Rakhlin.
- Reinforcement Learning: Theory and Algorithms. Alekh Agarwal, Kianté Brantley, Nan Jiang, Sham M. Kakade, and Wen Sun.
- Bandit Algorithms. Tor Lattimore and Csaba Szepesvari.
- Earlier iterations of related material at MIT (9.522): Fall 2025, Fall 2023, and Fall 2022.
- [RRL] Recipes for Reinforcement Learning: A Theoretical Perspective (working notes; link coming soon).
Dylan J. Foster and Alexander Rakhlin. - Language Modeling from Scratch. Tatsunori Hashimoto and Percy Liang.
- RLHF Book. Nathan Lambert.