Unit 11 of 11 · about 4 hours · measure
Planner, model, reward and policy error attribution with matched model-free baselines
A model-based win can come from the planner, the tuning, or extra samples rather than the model. This unit makes the win honest.
You'll be able to
- Design swap experiments that isolate planner, model, reward and policy error on a fixed task.
- Run a model-free baseline under matched real interactions and compute, and report spread across seeds, not one run.
- Defend whether the learned model earns its complexity at the section exit gate.
Covers
Read
In this order, only the parts listed
0 of 3 done
- MBPO: design evaluation controlsWhen to Trust Your Model: Model-Based Policy Optimization
arXiv:1906.08253v3, Section 6.2 with Figure 3: the no-model high-update control and the value-expansion comparison beside the rollout-length sweep
- Lecture 11: Model-Based RL, summary slidesStanford CS224R Spring 2026 - Model-Based RL
Slides 30 to 34: summary (short rollouts, ensembles), when to use model-based RL, other model kinds
- Lecture 15: Model-Based RL Part 1, cost slidesBerkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - Model-Based RL
Part 1 (Can we learn a simulator: compute cost of big models, planning on pixels is hard, simpler models can plan better)
Focus on
- Attribute by swapping one part at a time: oracle dynamics with the learned planner isolates planner error; the learned model with oracle actions probes decision-relevant error; a fitted reward against the true reward isolates reward error.
- Match on real interactions and compute: imagined transitions cost nothing to collect, so budgets count environment steps plus wall-clock planning time, with seeds, environment version and evaluation policy fixed.
- Keep every run, including the horizons that failed. The bias-reversal point from the MBPO unit is evidence; a best-horizon report is selection.
Common mistakes · 3
- Counting imagined samples as real interaction. Sample efficiency divides by environment steps; imagined data belongs in the compute column.
- Comparing wall time across different planners on different hardware. Fix the machine or report planning queries per move, not seconds across setups.
- Letting the model baseline see privileged state. If the oracle test uses true simulator internals that the learner never observes, the comparison is void.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.How do you isolate planner error from model error?Answer
Run the same planner on oracle dynamics. Remaining failure is planning (horizon, budget, optimizer), since modeling error is zero by construction.
2.What must a model-free baseline match, exactly?Answer
Real environment steps, compute budget, seeds, environment and wrapper versions, tuning effort, and the evaluation policy. Matched means all of them.
3.Why keep failed horizons in the report?Answer
They show where model bias reverses the gain and bound the honest operating range. Dropping them turns a trade-off curve into a selected point.
4.When is the added complexity justified at the exit gate?Answer
When the learned-dynamics controller passes the oracle sanity case, survives an induced exploitation or compounding failure with a diagnosis, and beats the matched baseline by a margin that survives seeds.
You're done when
Your attribution table is filled with matched numbers and spread, and you can state the operating range where the model earns its keep.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 5 more in the section
- Berkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - Model-Based RLUC Berkeley · primary
Slides are public at https://rail.eecs.berkeley.edu/deeprlcourse/static/slides/lec-N.pdf; current videos are not, and the public Fall 2023 playlist numbers lectures differently. Study Lectures 15 and 16 (model-based RL: learned dynamics, open-loop and closed-loop planning, random shooting and CEM, MPC, model-based policy learning). There is no model-based homework, so build the planner yourself on a small environment with known dynamics first.
- Stanford CS224R Spring 2026 - Model-Based RLStanford University · support
Use Lecture 11 (model-based RL) and its MBPO reading as a second treatment of model error, uncertainty and short model rollouts.
- When to Trust Your Model: Model-Based Policy OptimizationJanner et al. · required
Study the model-error analysis and short model-rollout design. Reproduce a reduced real-plus-imagined-data comparison and retain the horizon where model bias reverses the gain.
Also in this section
- Reinforcement Learning: An Introduction (2nd ed.) - Chapter 8Richard Sutton and Andrew Barto · required
The authors post the full second edition free at incompleteideas.net; cite the printed page numbers. Study Sections 8.1 to 8.3 (models, Dyna-Q, when the model is wrong) and Sections 8.8 to 8.11 (decision-time planning, rollout algorithms and Monte Carlo Tree Search). Reproduce the Dyna-Q versus Dyna-Q+ ranking on the blocking or shortcut maze.
- Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models (PETS)Chua et al. (NeurIPS 2018) · support
Read the split between aleatoric uncertainty (probabilistic networks) and epistemic uncertainty (ensembles) and the trajectory-sampling planner. Implement an ensemble on a small task and show where the members disagree.
- Mastering Diverse Domains through World ModelsDeepMind · depth
Read DreamerV3 only after the small explicit dynamics and planning path passes. Trace representation, latent dynamics, imagination and actor-critic state, but do not make a large benchmark reproduction part of the exit gate.
- Hands-on Modern RL - Model-Based and World-Model SectionsWalking Labs · support
Use Sections 9.3 and 9.4 as concept maps for model-based RL, search and world models. No runnable dynamics or planner script exists, so reproduce its error-recursion numbers by hand and verify algorithm claims against the original papers. Pin commit 9231bab of walkinglabs/hands-on-modern-rl; its
code/chapterNNfolders do not follow the site chapter numbers. - Reinforcement Learning Control Laboratory - Model-Based StretchRoadmap-Final · support
Add a learned-dynamics stretch with a known-dynamics sanity case, prediction and planning tests, horizon sweeps, model-exploitation failure and matched model-free comparison.