| Previous step | This chapter's question |
|---|---|
| Lectures 8 and 10 learned values and policies from experience. | Now learn dynamics and use predicted transitions to help control. |
Model error can affect both plans and learned policies. Follow the core model-use loop before differentiating an optimizer.
Bring: Bellman updates, feedback, SAC and the idea of a latent state.
| First pass | What to do |
|---|---|
| Follow the idea | Fit a model → MPC/PETS → Dyna/MBPO → Dreamer |
| Work without the solution | Re-plan from a measured temperature and explain how each learner uses imagined data. |
| Return later | KKT-based differentiable MPC, PILCO and GPS/PLATO are after the main route. |
Either way, the payoff has two faces, and they are Acts 2 and 4 of this lecture:
| Model-free RL | Model-based RL | Differentiable MPC | |
|---|---|---|---|
| explicit model? | no | yes | yes |
| trained object | policy π(⋅) | model f(⋅) | model f(⋅), and cost c(⋅) |
| loss | task loss | model-prediction loss | task loss |
| execution | policy | planning | planning |
Read left to right and more of the world's structure is made explicit, buying sample efficiency and generalisation. Read right to left and there is less to get wrong, dodging model bias.
The naive plan is to fit a model, plan in it, and execute. It works for exceptionally simple cases — those in which the fitted model generalises over the whole state space.
A model is fitted where the base policy went. Planning then evaluates it where the plan goes, which is somewhere else — and a planner can prefer actions whose predicted outcomes are overly optimistic.
Recall Lecture 5: optimization can select optimistic model errors. A planner can encounter a similar risk when searching sequences of actions.
And it gets worse with capacity: extra capacity can worsen off-distribution overfitting without adequate data or regularization; it can also reduce misspecification.
So the optimum found in a learned model is only optimum from the model's point of view. The planning examples show ways to reduce or manage that risk.
Imagined experience can be cheap to generate, but it inherits model error. Sample efficiency is a possible benefit to test under a fixed real-data budget, not a guarantee. Training cost, model accuracy and the task all matter.
Excite, measure, fit a predefined model. Particularly effective when physics gives the structure and only a few parameters are free: fit Newton's law once and it describes any rigid body.
Linear sysID estimates A,B in x˙=Ax+Bu — and once the linear system is identified, all of Lecture 9 applies: Riccati, K, the lot.
The plan is executed open loop. The states it visits are not the states the model was fitted on, and there is no correction channel.
Before reaching for a network, note how much structure the control tradition already knows how to fit — and that every one of these was built to be planned in.
| method | model | what it buys |
|---|---|---|
| Linear sysID | x˙=Ax+Bu | Lecture 9 applies verbatim |
| Model reduction / DMD | a˙=A~a+B~u | a low-dimensional state — fast prediction, fast control |
| Piecewise linear | local Ak,Bk | iLQR's local model, made explicit |
| Koopman operator | linear in infinite-dimensional measurements | a nonlinear system, solved by linear theory |
| Deep / GP models | MLP, RNN, LSTM, Gaussian process | expressive — and the reason distribution mismatch bites |
These are alternative structures, not a strict ranking of expressivity or planning difficulty. The advanced differentiable-control section studies models whose structure also helps optimization.
Append what actually happened, refit, repeat. If the model is wrong where the plan goes, then go there and collect data:
5. Append {(s,a,s′)j} to D, and return to step 2 (collecting data)
This is data aggregation: add data from the controller’s current visits so the training distribution better covers the states planning needs. It helps — and it still executes a whole plan before looking.
At each step, optimise a short horizon of actions, execute only the first, observe, re-plan:
This is Lecture 9's optimal control, run on a learned model instead of a given one. Nothing in the solver changes; only the constraint is now fitted.
Use x^t+1=x^t+ut, start at x0=2, and compare two-step plans with cost u02+u12+x22.
| plan | predicted final state | total predicted cost |
|---|---|---|
| (0,0) | 2 | 4 |
| (−1,0) | 1 | 2 |
| (−1,−1) | 0 | 2 |
Among these candidates, choose (−1,0) and execute only u0=−1. Suppose the measured next state is 1.4, not the predicted 1.
The planning model is x′=x+u, with cost (x′)2+u2. Starting at x = −2, it chooses u = 1 and predicts x′ = −1. The real next measurement is −1.5.
Predict: If the model has not yet been refitted, should the next plan start from −1 or from −1.5?
Calculate and check. Start from the measurement −1.5. With the current model, one-step replanning gives u=−x/2=0.75; the stale open-loop continuation was 0.5.
At the measured state x = −1.5, change the learned dynamics to x′=x+gu with g = 0.5. For cost (x+gu)2+u2, solve g(x+gu)+u=0 for u.
Check your answer. u∗=−gx/(1+g2)=−0.5(−1.5)/1.25=0.6. Under this updated model the cost is (−1.2)2+0.62=1.8.
At the measured state st, compare candidate action sequences using the learned dynamics and the same objective:
| Search option | Calculation |
|---|---|
| Random shooting | sample several action sequences, simulate each, keep the highest predicted return |
| Cross-entropy method (CEM) | repeatedly refit a sampling distribution to the best candidate sequences |
| Gradient-based planning | differentiate predicted return through a differentiable dynamics model |
Let the one-step model error be at most ϵ and let true dynamics amplify state differences by at most L. For the same actions and e0=0,
For ϵ=0.1:
| amplification | bound after 1 step | after 3 steps | after 5 steps |
|---|---|---|---|
| L=1 | 0.1 | 0.3 | 0.5 |
| L=2 | 0.1 | 0.7 | 3.1 |
Version 3 still acts on the model's mean: it takes actions believed good in expectation, which provides no explicit incentive to seek information. It may still visit unfamiliar states.
Split the error the way Lecture 0 split it, and the way Lecture 2 wrote it:
This decomposition assumes f(X)=E[Y∣X] and zero-mean conditional noise for the evaluation data. The second term includes model error; sparse data can increase it, but no universal equality links error to data density.
Train each θi on Di, sampled with replacement. Lecture 5's ensemble-alarm, in dynamics.
A GP provides a posterior distribution over transitions. Tracking changing dynamics requires an explicit time model, forgetting scheme, or other adaptation; Bayesian updating alone does not establish nonstationarity or robustness. Lecture 4's posterior, used as f.
The third is a Bayesian neural network — put a distribution on the weights rather than a point estimate (Blundell et al., 2015). All three answer the same question Lecture 2 asked about a coin: do not carry a number, carry a belief. PETS combines neural-network ensembles with probabilistic outputs — a probabilistic ensemble, whose spread far from data is epistemic and whose per-member variance is aleatoric — and learns four continuous-control tasks in under 100 000 steps, or 100 trials, where PPO, SAC and DDPG need one to two orders of magnitude more. (Chua et al., 2018)
After one prediction, a future state is uncertain. Feeding only its mean into a nonlinear model generally loses information:
For an illustrative X equally likely to be −1 or 1 and f(x)=x2, the true next-state mean is 1, while the plug-in mean prediction is f(0)=0.
The source uses Monte Carlo propagation and Gaussian moment approximations. An ensemble represents alternative models; transition noise represents variability within a model. Neither a particle count nor ensemble agreement alone certifies calibration.
A model accurate to within ϵ per step is not accurate to within ϵ over fifty steps — the errors feed forward and the imagined state leaves the region the model was ever fitted on. Short rollouts branched from real states keep the model working where it is trustworthy, This shares a concern about model trust with Lecture 5 and Lecture 10, but uses a different mathematical intervention.
The simplest reunion: generate transitions with the learned model and use them in a compatible value or policy learner. The update formula can stay the same even though the data quality changes.
Line 3 is Lecture 8, untouched. Line 4 is a sampled planning backup on an estimated model, extending Lecture 7's planning idea. The two lineages meet inside a single loop, four lines apart. (Sutton, 1990)
Only short rollouts are needed — as few as one step — and the algorithm still sees diverse states, because the imagined transitions start from every state in the buffer. MBPO develops this idea with short policy rollouts branched from real states and an off-policy learner. MVE instead uses model rollouts in value-target construction. The length and the use of the imagined sequence both matter.
Let Q(s,a)=2, α=0.2, γ=0.9, and next maximum value 5.
| source | reward | target | updated estimate from 2 |
|---|---|---|---|
| real transition | 1 | 1+0.9(5)=5.5 | 2.70 |
| correct imagined transition | 1 | 5.5 | 2.70 |
| optimistic model error | 3 | 3+0.9(5)=7.5 | 3.10 |
Keep collecting real experience to update the model. The synthetic buffer expands the learner's training opportunities; it does not add new measurements of the environment.
Count the trade-off: 100 real starting states produce 100 synthetic transitions at horizon 1, or 500 at horizon 5. The second option uses five times as many predictions, with more opportunities for compounding error. These are illustrative budgets, not recommended settings for every task.
An aggregate prediction score hides where errors occur. A small error near a decision boundary may matter more than a larger error in an irrelevant observation. Evaluate the resulting decisions as well as prediction fit. Task-aware model training is one possible extension, developed in the appendix.
Raw observations may be high-dimensional and partial. A useful latent representation should retain information needed to predict and control; it is not guaranteed to be low-dimensional or Markov.
Learn all three at once, with a deterministic encoder qψ(st∣ot)=δ(st=gψ(ot)):
This is a simplified reconstruction-and-prediction objective, not the full VAE ELBO. A partially observed system generally needs history or a belief-state encoder, not one image alone. And the payload of Embed to Control is worth naming: it learns a latent space in which the dynamics are locally linear, so Lecture 9's LQR applies to a robot controlled from pixels. (Watter et al., 2015; Zhang et al., 2019)
The observation may be an image. Infer a compact model state from the observation history, then predict future latent states and rewards under the actor's actions.
From an inferred state, the actor and model predict rewards 2, then 1. The critic assigns value 4 to the final imagined state. With γ=0.9 and no termination:
| Component | What it learns from this computation |
|---|---|
| Critic | Predict future return; 6.14 is one possible bootstrapped training target. |
| Actor | Prefer actions with higher predicted return. The original continuous-action Dreamer propagates gradients through imagined dynamics. |
| World model | Fit observed trajectories, rewards and representations from real replay; imagined reward is not a new ground-truth label. |
| PETS / MPC | MBPO | Dreamer | |
|---|---|---|---|
| Model output | predicted trajectories | short synthetic transitions | latent trajectories and rewards |
| How actions improve | search candidate sequences | off-policy SAC updates | actor–critic learning in imagination |
| At deployment | re-plan, execute the first action | act with the learned policy | infer model state, then act with the learned policy |
| Key risk | plans exploit model error | synthetic data bias value learning | latent predictions bias actor and critic |
PETS emphasizes probabilistic ensembles and trajectory sampling. Dreamer does not need to search action sequences at every real step: the actor has already learned from imagined futures.
| Read | Main question | Evidence or mechanism to examine |
|---|---|---|
| Dreamer — ICLR 2020 | Can an actor learn from compact imagined futures? | Latent dynamics, predicted rewards and value-based imagination |
| DreamerV3 — Nature 2025 | Can the recipe work across diverse domains with fixed hyperparameters? | Normalization, balancing and transformations; broad empirical evaluation |
The 2025 paper reports results across more than 150 tasks in eight domains and collecting diamonds in Minecraft without human demonstrations or curricula. This is evidence about the evaluated settings; it does not establish optimality or success on every new control problem.
A learned model can support planning, simulated experience or policy learning in imagination. These operations connect the course's value and control methods without making them identical.
| Benefit to test | Limitation to check |
|---|---|
| Fewer costly real interactions | Fitting the model also consumes data and computation. |
| More opportunities to improve a policy | Repeated synthetic experience can reinforce the same model error. |
| Compact representations for image observations | A useful latent state must retain information needed for future decisions. |
| Faster action selection with a trained actor | Training performance need not transfer to new states or changed dynamics. |
A mistaken prediction about an unsupported action cannot be checked by trying it during offline training. This recalls Lecture 5's fixed-data design problem, now with sequential values and policies. Evaluation must distinguish what the log supports from what a model merely predicts.
| OR / Dynamic Programming | Control Theory | |
|---|---|---|
| Model-based | MDP & DP (Lec 7 ✓) | Optimal Control (Lec 9 ✓) |
| Data-driven | Value-Based RL (Lec 8 ✓) | Policy-Based RL (Lec 10 ✓) |
| Model-Based RL (Lec 11 ✓) — the four, reunited on a learned model |
We can decide statically (Ch 1–6) and dynamically (Ch 7–11); with a model and without; by searching values and by producing policies; and now by learning the model so that all of it can collaborate.
| Model use learned here | How it helps choose an action |
|---|---|
| MPC / PETS | Predict candidate trajectories, execute one action, then re-plan from a measurement. |
| Dyna / MBPO | Generate short synthetic experience to improve a value function and policy. |
| Dreamer | Learn an actor and critic through imagined latent trajectories. |
These online methods use real experience to correct their learned models. Differentiating a planner for task learning or joint design is an advanced extension in the appendix.
| Role | Read or revisit | Question to answer |
|---|---|---|
| Core | Janner et al., When to Trust Your Model: Model-Based Policy Optimization (NeurIPS 2019) | Why start short model rollouts from real states? |
| Compare | Hafner et al., Dream to Control: Learning Behaviors by Latent Imagination (ICLR 2020) | How can a latent world model train an actor and critic? |
| Apply | The original control cases and Hafner et al., Mastering Diverse Control Tasks through World Models (Nature 2025) | What does the later Dreamer result demonstrate beyond the teaching diagram? |
For a convex QP planning subproblem minz21z⊤Qz+q⊤z subject to Az=b, the optimum is characterised by its KKT system:
Rather than differentiate z∗ directly, take differentials of both conditions:
Each parameter perturbation has its own right-hand side; factorization can be reused. For a scalar outer loss, an adjoint solve yields all parameter gradients. Write [dz;dν] for the solution of the transposed KKT system against [−∇z∗ℓ;0]. Then the chain rule gives ∇Qℓ=21(dzz⊤+zdz⊤), ∇qℓ=dz, ∇Aℓ=dνz⊤+νdz⊤ and ∇bℓ=−dν.
LQR: the structured linear solve can reuse Riccati factorizations. Nonlinear MPC: differentiate a converged local approximation, with a stable active set and nonsingular KKT matrix. If the solver has not converged, differentiating its iterations describes that finite algorithm, not an exact optimum. (OptNet; Differentiable MPC)
Objective. Minimise trajectory cost while forcing the trajectory distribution to agree with the policy:
Lagrangian and alternation. Form LGPS(θ,p,λ)=Ep(τ)[ℓ(τ)]+∑tλtDKL(p(xt)πθ(ut∣xt)∥p(xt,ut)) and minimise by turns:
Why the dual step is cheap. With x∗(λ)=argminxL(x,λ) and g(λ)=L(x∗(λ),λ), the chain rule gives dg/dλ=(dL/dx∗)(dx∗/dλ)+dL/dλ, and the first term vanishes because dL/dx∗=0 at the argmin. So dg/dλ=dL/dλ evaluated at x∗ — no derivative through the inner solve is needed. This envelope calculation differs from the full implicit derivative of an optimizer, developed in the advanced differentiable-control section. Why it is sample-efficient. Time-varying linear-Gaussian dynamics are a strong but reasonable local assumption for a physical system, so each trajectory is optimised with far fewer samples than general model-free search — the return on injecting control-theoretic structure.
| data | planning | fixes | still broken | |
|---|---|---|---|---|
| V1 Model building + open-loop planning | one batch from π0 | plan once, execute all | nothing | pπf=pπ0 |
| V2 Iterative model building | aggregate πf's own visits | plan once, execute all | the training distribution | a mistake mid-plan is never corrected |
| V3 + MPC | aggregate; refit every N steps | plan, execute the first action, re-plan | mid-plan errors; short horizons suffice | no explicit information-seeking incentive |
| V3+ + model uncertainty | as V3 | plan against an ensemble / GP posterior | over-confidence off-distribution | cost, and the horizon still compounds |
| V4 + latent space | observations (o,a,o′) | plan in the learned latent state | high-dimensional, partial observations | everything above, plus representation error |
Propagating uncertainty through a horizon. If the state input is itself uncertain, x∼N(μx,Σx), then p(f(x)∣μx,Σx)=∫p(f(x)∣x,D)p(x)dx, which is intractable and is handled either by Monte-Carlo — sample xt∼p(x) and average p(f(xt)∣xt,D) over T particles — or by computing moments analytically where possible and approximating the result as Gaussian, which is PILCO's choice. Rolling a large number of such trajectories and taking their mean and standard deviation gives the fan of predictions that widens with horizon: compounding uncertainty, drawn.
The gain. A learned model can be queried without environment interaction, so one real transition informs the value or policy at many imagined states. Empirically this cuts the required real samples by orders of magnitude — decisive whenever interaction is expensive, slow or dangerous: robots, chemical processes, buildings, patients.
The hazard. Planning trusts fθ. Where fθ is wrong the planner optimises a fiction, and errors compound over the horizon because each step's error is the next step's input. This is the dynamic cousin of Lecture 5's overestimation trap: an optimiser exploiting a model's blind spots.
| mitigation | mechanism | where |
|---|---|---|
| short planning horizons | fewer compositions of the model with itself | Act 2, V3 |
| re-plan every step | replace predicted inputs with measured ones | Act 2, V3 |
| ensembles and GP posteriors | plan pessimistically where the model disagrees with itself | Act 2, V3+ |
| task loss instead of prediction loss | emphasize errors that affect decisions | advanced differentiable control |
| structural inductive bias | convexity, linear latents, local linear-Gaussian models | Acts 2 and 4 |
The through-line of the whole course: respect the model's uncertainty, or it will be weaponised against you. Lecture 5 said it about a surrogate over designs; this lecture says it about a surrogate over dynamics; Lecture 12 will say it once more, about a value function, with the escape hatch of fresh data closed.
The constrained program, with an augmented Lagrangian:
Step 1 is Lecture 9. Step 2 is plain supervised learning. Step 3 is dual gradient ascent — and its derivation uses an envelope argument: at the inner optimum dL/dx∗=0, so the gradient through the argmin collapses to a single term.
In the stochastic form, the local controller is constrained to stay near the previous one:
Look at the second line. The local policy is Lecture 9's u=Kx, with a Gaussian around it — which is why optimising the trajectory hands you the local controller for free, out of the LQR structure.
And the first line is Lecture 1's trust region, third appearance: a constraint that keeps each step inside the region where the local model is believable. Lecture 1 measured that region in ∥x−x(k)∥, Lecture 10 in KL between policies, and here in KL between trajectory distributions. Same ratio-and-restrict logic every time.
Because time-varying linear-Gaussian dynamics are a strong and reasonable local assumption for a physical system, each trajectory is optimised from very few samples: 5 to 20 where REPS, CEM and RWR need 100 to 800, and nine real manipulation tasks — stacking lego, threading a ring, screwing a bottle cap — converge in about 40 samples each. Policy search has become supervised learning against an oracle. (Levine & Abbeel, 2014; Levine et al., 2016)
The naive version of route 2 collects a dataset from an MPC expert and fits the policy to it. That ignores the one thing imitation always breaks on.
The states visited by the teacher are not the states visited by the learner, so nothing guarantees long-horizon performance. PLATO repairs it by pulling the teacher toward the student at every step:
The only difference from ordinary MPC is that KL term. It encourages the teacher’s actions and state distribution to stay closer to the student’s, while still reacting competently to surprises the half-trained student could not survive.
Two practical consequences. The MPC teacher may use full state at training time while the final policy uses only the observations the robot will have at test time — the input-remapping trick. And in flight experiments the crash count stays near zero throughout training, where DAgger's saturates: these are empirical safety results, not a guarantee of zero crashes in other settings. (Kahn et al., 2017)
Every version in Act 2 fits fθ by minimising L(xt+1,fθ(xt,ut)) — a loss that is task-independent and data-dependent. An aggregate prediction objective need not emphasize the errors that most affect action selection. Its weights and the training distribution determine which errors it prioritizes.
But MPC(⋅) maps a state to an action, which is what a policy is. So fit its parameters end to end on a task loss — for instance, imitating an expert controller θ^:
For a convex quadratic planning subproblem — an LQR, or a QP —
With a locally unique optimum and a nonsingular KKT system (and a stable active set for inequalities), the solution is differentiable locally. Do not differentiate τ∗; differentiate the conditions it satisfies:
The differentials give a linear system in (dτ,dλ) whose matrix is the KKT matrix already formed in the forward pass — so the backward pass is one more solve of the same structure. For LQR that solve is itself an LQR problem: one Riccati sweep. (Amos & Kolter, 2017; Amos et al., 2018)
And the saving is measurable: differentiating the fixed point costs about 1.5×10−2 s over the horizons shown in the reported benchmark, not a horizon-independent complexity guarantee, while unrolling the iLQR solver and backpropagating through every iteration costs ≈3 s at 128 steps — two orders of magnitude, and growing.
A one-step planner chooses u∗(θ) by minimizing 21(u−θ)2+21u2.
The optimality condition is 2u∗−θ=0. Differentiate that condition:
If the training goal is an expert action 1, let ℓ=21(u∗−1)2. At θ=0, u∗=0 and dℓ/dθ=(−1)(1/2)=−0.5.
The expert's dynamics lie outside the learner's model class. Against a plain system-identification baseline, the task-loss method ends with a higher system-ID loss (0.0025 vs 0.0020) and a lower imitation loss (0.12 vs 0.19). A model fitted worse, in the way the task does not care about, controls better.
The honest caveat: for nonlinear problems this needs iLQR to reach a fixed point, and sometimes it does not — then you are back to unrolling the solver. The controller becomes a differentiable layer, and like every layer it has conditions of use.
Every version so far fits a model and hopes the planner copes. Turn the question round: what property should a learned model have so that planning inside it is easy?
Lecture 1's answer, imposed on a network. An input-convex neural network is convex in its input by construction — every W(z) non-negative, every activation convex and non-decreasing — so the predictive-control problem
is convex in the actions only when the whole formulation preserves convexity: appropriate monotone compositions, convex inequality constraints, and affine equalities or a valid reformulation. An ICNN dynamics model alone does not make nonlinear equality constraints convex. (Amos, Xu & Kolter, 2017; Chen, Shi & Zhang, 2019)
An input-convex recurrent model fits building dynamics as accurately as an ordinary RNN, and the controller built on it finds actions worth 11.52% more energy saving — while the ordinary RNN's decisions "vary dramatically". Later work ran the same controller on a real ETH building for a fortnight. Lecture 1's convexity was never a mathematical convenience; it can make the optimization tractable; predictive accuracy, feasibility, and real-system performance still need separate checks.
| How the model helps | Representative method | What the policy learner receives |
|---|---|---|
| Differentiate predictions | PILCO; the original Dreamer | Gradients of predicted future performance |
| Supply a teacher | Guided policy search | Actions from an optimized local controller |
| Supply experience | Dyna → MBPO | Simulated transitions for value/policy updates |
Read the first two as connections to control. Then follow Dyna → MBPO and compare Dreamer's latent imagination. Dreamer also trains a critic; these categories describe uses of a model, not mutually exclusive algorithm families.
Compose policy and model along the horizon and differentiate the whole chain:
Starting from Dθs0=0, propagate these sensitivities and sum ∇θJ=∑t(rsDθst+raDθat), with discount factors when needed.
PILCO does this with a probabilistic model — a GP on the state difference Δt=xt−xt−1 — and propagates the whole distribution forward by moment matching, so long-horizon planning carries the model's own uncertainty. Moment calculations are analytic for the selected GP and cost forms, but the Gaussian rollout distribution is an approximation. (Deisenroth & Rasmussen, 2011)
The result is the data-efficiency headline of the field: real cart-pole swing-up and balance from 17.5 seconds of interaction with the physical hardware; a robotic unicycle in R12 from about 20 trials. Against the methods of the decade before it, roughly three orders of magnitude less interaction.
| Issue | Why it matters | What can help |
|---|---|---|
| Model bias | Optimizing predicted reward can exploit dynamics errors. | Real-data collection, uncertainty estimates and limited imagination horizons |
| Long gradient chains | Repeated Jacobian products can vanish or explode. | Suitable representations, shorter horizons and bootstrapped value estimates |
| Uncertain predictions | A probabilistic model can still be miscalibrated. | Check predictions where the current policy actually visits |
PILCO propagates uncertainty in a GP model. Dreamer later learns a latent state model and combines imagination with a critic. Neither removes the need to learn useful dynamics from real experience.
Lecture 1 wrote an optimisation. Lecture 9 added the dynamics as a constraint. Add one more constraint and you have this lecture.
| objective | dynamics constraint | policy constraint | |
|---|---|---|---|
| Optimisation (Lec 1) | minuc(u) | — | — |
| Optimal control (Lec 9) | minu,x∑tc(xt,ut) | xt+1=f(xt,ut) | — |
| + imitation (Lec 11) | minu,x,θ∑tc(xt,ut) | xt+1=f(xt,ut) | ut=πθ(xt) |
Three rows, three lectures. The middle row constrains the trajectory to be physical; the bottom row constrains it to be reproducible by a policy. Everything in guided policy search follows from that one extra line.
Imagination rollouts "can suffer from severe bias when the learned model is inaccurate". In continuous control it proved "very difficult to train nonlinear neural network models for the dynamics that would actually improve the efficiency of Q-learning when used for imagination rollouts."
The fix that worked was to give up expressiveness: iteratively refitted time-varying linear dynamics. (Gu et al., 2016)
The same paper answers Lecture 8's parting wall from the other side. Write Q as a value plus a quadratic advantage,
with P(x)≻0, the unique maximizing action is μ(x), analytically. The continuous argmax is solved by assuming LQR structure: Lecture 9 answering Lecture 8 directly.
Lecture 1 optimised a wind-farm layout with a trust region, and Lecture 5 designed from a fixed dataset. Neither could touch the controller. Differentiable control closes that loop.
Many real problems are bilevel — an upper-level design p wrapping a lower-level control problem:
Turbine layout with the yaw controller that will run on it; furnace geometry with the recipe that will heat it. The advanced differentiable-control section supplies a possible derivative: differentiate the optimal control through to the design, and optimise both together rather than designing first and controlling afterwards.
The evidence is already in the room. An input-convex model inside an MPC loop saved 11.52% of a building's energy and then ran on a real one; the differentiable-MPC literature names HVAC control and furnace control as its motivating applications. Lecture 1's trust-region widget solved the wind-farm layout by a staircase of convex problems with the controller held fixed. Here the controller stops being fixed.