World models
How robots learn an internal simulator of the world — and then imagine before they act.
A world model is a learned predictor of what happens next: given the current state and an action, where will the robot be a moment later? Once a robot has one, it can try out thousands of action sequences in its head, keep the best, and only then move. Plan, act, collect what really happened, improve the model, repeat.
The idea is old — Sutton’s Dyna architecture dates from 1991 — but it now runs from a five-network ensemble that learns a pendulum swing-up in a few episodes all the way to video models that simulate kitchens and streets from a single image. This course follows that line, one model at a time, with a working implementation or a careful reading of the paper behind each.
It starts with the smallest complete version: a world model and a planner in about 400 lines of PyTorch, run on two toy robots. Everything later in the course is a variation on that loop. The variations change three things: what the model predicts (states, latent vectors, video), how it is trained, and how the plan is chosen.
Prerequisites
- Deep learning: MLPs, training with Adam, and what a loss function is.
- Convex optimization, the lessons on MPC and stochastic MPC: the planners here are model predictive controllers with a learned model.
- Some probability: a Gaussian, its log-likelihood, sampling.
Roadmap
Lesson 1 is written. The rest are coming soon, roughly in this order:
- A tiny world model — learn, imagine, plan (PETS from scratch)
- MBPO — when to trust your model
- PlaNet — latent dynamics and planning from pixels
- DreamerV3 — learning behaviours in imagination
- TD-MPC2 — a decoder-free world model with MPPI and a learned value
- TD-MPC2 with stochastic MPC — chance constraints in place of MPPI
- DINO-WM — planning in pretrained feature space
- V-JEPA 2 — a self-supervised video world model that plans
- UniSim — an interactive simulator learned from video
- Genie — latent actions from unlabelled video
- Cosmos — world foundation models you can fine-tune
- Ranking robot policies with a world model
After those, a set of deeper readings: Ha and Schmidhuber’s World Models, Visual Foresight, MuZero, DayDreamer, the Robotic World Model, Neural-Fly, PhysTwin, Unified World Models, DreamZero, Dreamer 4, and world models for multi-agent racing.