Unit 6 of 11 · about 4 hours · measure
Compounding error, decision-relevant error and model exploitation
Small one-step errors become large trajectory errors, and optimizers seek exactly the states where the model is wrong. This unit makes both effects measurable.
You'll be able to
- Bound compounding one-step error over a horizon under a Lipschitz assumption, and name the three regimes.
- Distinguish average prediction error from decision-relevant error with a slice the average hides.
- Induce model exploitation on a small task: a plan that scores well in the model and fails in the system.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Model-Based RL: error recursionHands-on Modern RL - Model-Based and World-Model Sections
A Key Limitation of Dyna: the recursion with the three regimes (page read 2026-10-14)
Recompute the numbers yourself: with and the exact bounds are 0.01, 0.051, 0.220 and 1.705 at 1, 5, 20 and 100 steps, so the page's 2.7 at 100 steps (which quotes ) is a slip. Its "about " for and also drops the : the sum is , or 11.6391 at .
- Chapter 8, Section 8.3: When the Model Is WrongReinforcement Learning: An Introduction (2nd ed.) - Chapter 8
Section 8.3, printed pp. 166 to 168: optimistic errors self-correct, pessimistic ones hide; Examples 8.2 and 8.3 with Figures 8.4 and 8.5
Read for the exploitation mechanism. The authors post the full text free at incompleteideas.net; the URL above is the publisher page.
- MBPO: compounding error and long rolloutsWhen to Trust Your Model: Model-Based Policy Optimization
arXiv:1906.08253v3, Sections 4.2 and 6.2 with Figure 3: full rollouts compound error, 200-step rollouts underperform short ones, 500-step rollouts fail
Focus on
- With one-step error at most and Lipschitz constant , the bound after steps is the geometric sum : convergent for , linear for , exponential for .
- Average error weights states by the training distribution. The planner weights them by predicted return, so it migrates to low-data high-reward fantasies the average never sees.
- Optimistic model errors self-correct (the plan visits and refutes them). Pessimistic or hidden errors persist: the shortcut maze agent never discovers the path it believes is blocked.
Common mistakes · 3
- Quoting as the 100-step bound. That is the growth factor, not the accumulated error; the geometric sum is 1.7048 at .
- Treating one-step validation MSE as control quality. A model can halve its MSE while its planner gets worse if the remaining error sits on the optimal path.
- Testing exploitation with the planner's own imagined returns. Score every candidate plan in the real system (or oracle); imagined scores are the suspect, not the judge.
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.State the three compounding regimes and the , bounds.Answer
Convergent (): 0.0995. Linear (): 0.50. Exponential (): 11.6391.
2.Why can average error fall while control gets worse?Answer
Average error weights by training visitation. The planner shifts visitation toward states with high predicted return and thin data, where error can be large despite a good average.
3.Why did the blocking-maze agent recover but the shortcut-maze agent not?Answer
The blocking error was optimistic: the plan tried the phantom path and observed the wall. The shortcut error was pessimistic: the plan avoided the believed-blocked region, so it never collected the refuting observation.
4.What is the minimal demonstration of model exploitation?Answer
A plan whose imagined return exceeds its real return by a margin that grows with optimization pressure, with the gap reproduced across seeds.
Practice
- Sutton and Barto, Exercises 8.2 and 8.3 (blocking and shortcut mazes)
Exercises 8.2 and 8.3, printed pp. 167 to 168: explain the Dyna-Q+ phase behavior on Figures 8.4 and 8.5
You're done when
You match all seven bound numbers from memory of the method, and can construct a plan that exploits a stipulated model error on demand.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 5 more in the 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.
- 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.
- 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.
Also in this 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.
- 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.
- 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.