Planning and learning are the same operation, a backup of values, applied to different experience: real, or simulated by a model. Every method on this page differs only in where the model comes from (given, as the rules of Go are, or learned), when the planning happens (in the background, or at decision time from the state the agent is in), and how far a learned model is trusted before its errors pile up.
Sutton and Barto's Figure 8.1, redrawn in space (§8.2).
You need the Q-learning update (Model-free prediction and control), UCB1 (Bandits and exploration) and policy iteration (Dynamic programming).
| Method | Model | What the model predicts | How it plans | Headline |
|---|---|---|---|---|
| Dyna-Q (1990) | Learned table | Last seen next state and reward | Background: extra Q-learning updates on remembered transitions | Maze solved in 3 episodes instead of about 25 (§2) |
| Prioritised sweeping (1993) | Learned table with predecessors | Next state, reward, and who leads where | Background, most urgent update first | 5 to 10 times fewer updates on mazes (§4) |
| Rollouts, MCTS, UCT (1996, 2006) | Given simulator | Exact next state | Decision time: simulate from the current state, act, discard | Computer Go from weak amateur (2005) to 6 dan (2015) (§5) |
| AlphaGo (2016) | Given (rules of Go) | Exact; networks give priors and values | MCTS with policy and value networks plus rollouts | Beat Fan Hui 5-0, Lee Sedol 4-1 (§6) |
| AlphaGo Zero, AlphaZero (2017) | Given (rules) | Exact; one network gives p and v | MCTS with no rollouts, at every self-play move | Superhuman Go, chess and shogi from the rules alone (§7) |
| MuZero (2019) | Learned, latent | Only reward, policy and value, never the observation | MCTS inside the learned model | Matched AlphaZero without the rules; Atari-57 state of the art (§8) |
| EfficientZero (2021) | Learned, latent | As MuZero, plus a consistency target | MCTS, with model-corrected value targets | Above human median on Atari 100k, about two hours of play (§9) |
| World Models, PlaNet, Dreamer (2018 to 2025) | Learned, latent | Next latent state and reward; usually also the image | Policy trained in imagination (World Models, Dreamer) or MPC in latent space (PlaNet) | DreamerV3: one configuration over 150+ tasks; Minecraft diamonds (§10) |
| Genie, GameNGen, DIAMOND (2024 to 2025) | Learned from video | The next frame, given an action | Mostly none yet: interactive simulators; agents trained inside a few | Genie 3: playable worlds at 720p, 24 frames per second (§11) |
| PETS, MBPO (2018, 2019) | Learned ensemble | Distribution of the next state | MPC (PETS); short branched rollouts feeding SAC (MBPO) | Model-free final scores with far fewer samples (§12) |
The parent, Topic: rl, places these among all RL methods: its Method atlas tab has rows for Dyna-Q, AlphaGo, AlphaGo Zero, AlphaZero, MuZero and Dreamer, and its Milestones and benchmarks tab the AlphaGo, AlphaZero, MuZero and EfficientZero results with their compute.
"Given a state and an action, a model produces a prediction of the resultant next state and next reward" (Sutton and Barto §8.1). Dynamic programming needs a distribution model, p(s′, r | s, a), because its expected updates sum over every successor. Almost everything else uses a sample model: the book's example is the sum of a dozen dice, where a program that rolls twelve dice is easy and the table of all sums is "harder and more error-prone". Simulators, game engines and most learned models are sample models. Either part, transitions and rewards, can be given (the rules of Go, exactly; a physics simulator, approximately) or learned (Dyna's table; MuZero learns only what its search needs, §8).
Planning is "any computational process that takes a model as input and produces or improves a policy". The chapter's unifying claim: all state-space planning computes value functions, by backups applied to simulated experience. Learning is the same backups applied to real experience. The smallest case, random-sample one-step tabular Q-planning, picks a state and action at random, asks a sample model for a reward and next state, and applies the Q-learning update; it converges to the optimal policy for the model under the same conditions as Q-learning (§8.1).
Two times to plan. Background planning (DP, Dyna) gradually improves a value table or network, and actions are later read off it cheaply. Decision-time planning (heuristic search, rollouts, MCTS) starts when a state is reached and outputs one action; most of what it computes is discarded (§8.8). It suits problems with time to think per move, such as chess. AlphaZero does both: search at every move, and a network that learns from the search. "Model-based" does not mean "learned model": DP and AlphaZero use a given one. And the reward model of RLHF does not make RLHF model-based: nothing plans with it (RL for LLMs).
Learning a model from data is what control engineers call system identification; Sutton and Barto borrow direct RL (values from real experience) and indirect RL (values through a model) from the adaptive control literature (chapter 8 notes, p. 192). This page is about state-space planning, search through states; plan-space planning, which edits whole plans, is "difficult to apply efficiently to the stochastic sequential decision problems" of RL.
Dyna (Sutton 1990, cited in Sutton and Barto's chapter 8 notes) is the hero figure as an algorithm. Each real transition updates Q directly and is stored in a table model; then n planning steps replay remembered transitions through the same update, "just as if they had really happened". Which simulated transitions to generate is called search control. The book's trade-off: indirect methods "often make fuller use of a limited amount of experience"; direct methods "are much simpler and are not affected by biases in the design of the model" (§8.2).
Without (e) and (f) this is one-step Q-learning. Planning only replays pairs actually experienced, so the model is never asked about something it has not seen.
Example 8.1, the Dyna maze: a 6 × 9 grid with 47 open cells, reward +1 only for entering the goal, γ = 0.95, α = 0.1, ε = 0.1, 30 repetitions. With no planning (n = 0) the agent needed "about 25 episodes" to reach ε-optimal performance, n = 5 about five, and n = 50 "only three episodes" (Example 8.1). Predict before you press play: halfway through episode 2, how many cells will have a greedy arrow with no planning, and with 50 planning steps per real step?
Figure 8.3, recomputed as heights: each bar is maxa Q(s, a) of an open cell, the ball is the agent, and under each maze the count of cells with a greedy arrow (the four action values not all equal). The same run with 0 planning steps (left) and 5 or 50 (right); episode 1 is identical because planning draws from a second stream of random numbers.
Figure 8.2, the book's learning curves, comes from 30 such runs per setting: steps per episode fall fastest with the most planning. Choose the planning steps to compare, change α or ε and rerun; the maze is the same 47 open cells, S to G in 14 steps at best.
Defaults reproduce the shape of Sutton and Barto's Figure 8.2, independently (same maze, α, ε, γ, 30 runs, random tie-breaking; our random numbers), run live by this page's engine and checked against a Python implementation (src/recompute.py). Not reproduced: the book's first episode, "about 1700 steps"; here it averages 760 over the 30 runs, and the exact expected length of a random walk from S to G in this layout is 869 steps; the book does not say whether 1,700 is one run or a mean.
Models are wrong because the environment is stochastic and few samples were seen, because function approximation generalised badly, or because the environment changed (§8.3). The two cases behave differently. An optimistic model corrects itself: in the blocking maze (Example 8.2) the short path is closed after 1,000 steps; the planned policy walks into the new wall, finds out, and both agents recover. A pessimistic model may never be corrected: in the shortcut maze (Example 8.3) a shortcut opens after 3,000 steps, and plain Dyna-Q "never switched to the shortcut. In fact, it never realized that it existed. Its model said that there was no shortcut, so the more it planned, the less likely it was to step to the right and discover it."
Dyna-Q+ treats this as exploration of the model: for each pair it counts the steps τ since it was last tried for real, and plans as if that transition paid a bonus.
The bonus is used only in planning updates, so values become optimistic about long-untested actions and the agent goes to test them, even through long detours. The book's footnote adds that untried actions may be planned with, their initial model leading back to the same state with reward 0.
Exploration bonuses taken "to its logical extreme" become provably efficient model-based algorithms: E3 (Kearns and Singh 2002) and R-max (Brafman and Tennenholtz 2003) assume every incompletely explored choice is maximally rewarding and plan to test it, and find a near-optimal policy in time polynomial in the number of states and actions; "usually too slow for practical algorithms but ... probably the best that can be done in the worst case" (chapter 8 notes). Exploration in general is on Bandits and exploration.
Defaults reproduce the shape of Figures 8.4 and 8.5, independently. The book prints no parameters for these two figures; ours are α = 1 (the maze is deterministic), ε = 0.1, γ = 0.95, n = 50, κ = 10−3, 20 runs, layouts as in Zhang's reproduction code (chapter08/maze.py); illustrative choices, not the book's. Here the walls change at exactly step 1,000 or 3,000, not at the end of the episode in progress as in that code. κ = 0 makes Dyna-Q+ differ from Dyna-Q only in the footnote's changes.
Dyna replays transitions uniformly, which is wasteful: at the start of episode 2 only the pair leading into the goal has a non-zero value, so almost every replay moves zero into zero. Prioritised sweeping (§8.4; Moore and Atkeson 1993, Peng and Williams 1993) keeps a queue ordered by how much each pair's value would change and, after each update, pushes the predecessors of the changed state; on mazes of this shape it reached the optimum with fewer updates, "often by a factor of 5 to 10". Decision-time planning (§5) is the extreme of this focusing: all computation goes to the state the agent is in. The sweeps themselves are owned by Dynamic programming (section 12 and its Sweep lab, which races them on this same maze).
Rollout algorithms (§8.10) estimate each action's value at the current state by averaging the returns of simulated episodes that start with that action and then follow a fixed rollout policy, act on the best, and repeat. By the policy improvement theorem (Dynamic programming), acting greedily on qπ(s, ·) is at least as good as π, so a rollout algorithm is one step of policy iteration at one state; its aim "is to improve upon the rollout policy; not to find an optimal policy".
Monte Carlo tree search (MCTS) is a rollout algorithm that remembers: it keeps value estimates for the state-action pairs near the root in a tree it grows, so later simulations follow the beginnings of earlier good ones. Its ideas are from 2006: Coulom's backup operators in Crazy Stone (Coulom 2006; the survey credits him with the name) and Kocsis and Szepesvári's UCT (2006). MCTS "is largely responsible for the improvement in computer Go from a weak amateur level in 2005 to a grandmaster level (6 dan or more) in 2015" (§8.11). Each iteration has four steps, which Figure 3 walks through: selection down the tree by a tree policy; expansion of a new node; simulation of a complete episode with the rollout policy (or, since AlphaGo Zero, evaluation of the leaf by a network); backup of the result into every edge on the path. When time runs out the agent plays the most visited root action, which is robust to a value inflated by a few lucky simulations.
The tree policy is a bandit at every node. UCT applies UCB1 (derived on Bandits and exploration) to each node; PUCT, the AlphaGo family's rule, adds a network's prior.
The figure runs both rules from one tic-tac-toe position, 30 simulations each. O is to move and X threatens to complete the middle row: the only move that does not lose is the right-hand middle cell. Predict: will plain UCT with random playouts find the block in 30 simulations?
A random X often fails to complete the row it threatens, so leaving it open looks safe: after 30 simulations UCT has spent only 5 on the block and prefers another move. With the trained network's prior and value, 26 of 30 simulations go to the block. Even the untrained network gets there (12 of 30), because tic-tac-toe is short and a few simulations reach real game ends, whose values are exact. The root's visit counts, normalised, are the search policy π; in AlphaGo Zero they become the training target for the network's prior (§7).
Real data: the networks are this page's own (§7), the playouts use a fixed random seed, and the same search in Python gives the same counts (src/recompute.py).
How many simulations are enough? UCT finds the block reliably only with many more simulations, while the trained network's prior finds it almost at once. The same position, measured: UCT, share of 40 random seeds whose most visited move is the block: 30% at 32 simulations, 50% at 64, 92.5% at 128 and every time from 256 on. PUCT is deterministic, so 100% or 0% per count: with the trained network it blocks from 4 simulations (the fewest tried), with the untrained network or after iteration 1 from 32. Computed here; src/recompute.py gives the same numbers.
Heuristic search, the classical AI planner, builds a tree of continuations from the current state, applies an approximate value function at the leaves and backs values up to the root with max backups, then picks the best root action and throws the rest away (§8.9). With a perfect model and an imperfect value function, deeper search usually gives better moves; Tesauro found TD-Gammon played better the deeper it searched, at the price of time per move. A search tree is just many one-step backups ordered from the leaves up, so its strength comes from "the focus and concentration of updates on states and actions immediately downstream from the current state".
The name "rollout" comes from backgammon, where rolling a position out with random dice estimates its equity. Tesauro and Galperin ran rollouts on IBM supercomputers over base players from random to TD-Gammon and reported error rates reduced "by as much as a factor of 5 or more"; "potentially 80% or more of the base player's equity loss can be eliminated" (NIPS 1996). In MCTS, expansion adds one or more children on some iterations, and nothing is stored for the rollout beyond the tree.
UCT's constant is 2Cp with Cp = 1/√2 for rewards in [0, 1], which gives UCB1's √2; Kocsis and Szepesvári proved the failure probability at the root goes to zero ("consistent").
Go's rules are a perfect model, but the tree is too wide and deep for search alone; the strongest programs were MCTS with hand-made rollout policies, such as Pachi, ranked 2 amateur dan on KGS. AlphaGo (Silver et al., Nature 529, 2016; free PDF) put four learned functions into MCTS. Toggle to see what AlphaGo Zero changed: the same search, fed by one network and feeding it back.
The SL policy gives the prior of a PUCT rule (cpuct = 5); each leaf is scored as V(sL) = (1 − λ) vθ(sL) + λ zL with λ = 0.5, where zL is one fast rollout's result. The mix won at least 95% of games against value-only (λ = 0) and rollout-only (λ = 1) variants; even λ = 0 beat every other Go program. Two findings are counter-intuitive: the weaker SL policy made the better prior, "presumably because humans select a diverse beam of promising moves, whereas RL optimizes for the single best move"; but the value network trained on the stronger RL policy's games made the better evaluator. AlphaGo won 494 of 495 games against other programs, beat the European champion Fan Hui 5-0 in October 2015, and a larger version, AlphaGo Lee on 48 TPUs, beat Lee Sedol 4-1 in March 2016 (results and compute on the root's Milestones and benchmarks tab of Topic: rl; the whole story is in Sutton and Barto §16.6).
The match program ran 40 search threads on 48 CPUs and 8 GPUs; the distributed version used 1,202 CPUs and 176 GPUs.
AlphaGo Zero (Silver et al., Nature 550, 2017; author copy) used no human data, only the stones as input, one network fθ(s) = (p, v) and no rollouts. Its loop is policy iteration with MCTS as the improvement step: "MCTS may therefore be viewed as a powerful policy improvement operator", and self-play with search, scored by the winner, "a powerful policy evaluation operator".
A worked loss (illustrative numbers). The player went on to win (z = 1), the network predicted v = 0.6, search visited three moves in proportions π = (0.7, 0.2, 0.1) and the network gave them p = (0.5, 0.3, 0.2). Value term (1 − 0.6)² = 0.16; policy term −(0.7 ln 0.5 + 0.2 ln 0.3 + 0.1 ln 0.2) = 0.4852 + 0.2408 + 0.1609 = 0.887; loss before weight decay 1.047. For a softmax output the gradient on the logits is p − π = (−0.2, 0.1, 0.1): the update raises the move search liked. In general:
The 3-day run passed AlphaGo Lee after 36 hours and beat it 100-0 after 72 hours. The 40-day run, 29 million games, beat AlphaGo Master 89-11 and reached an Elo of 5,185. The same network with no search rated 3,055: search was worth about 2,100 Elo on top of the network that learned from it.
AlphaGo Zero Methods: 1,600 simulations per move, about 0.4 s; moves sampled in proportion to visit counts for the first 30 moves (temperature τ = 1), then the most visited; Dirichlet noise at the root, P = 0.75 p + 0.25 η with η ∼ Dir(0.03), so every move can be tried "but the search may still overrule bad moves"; resignation, with the threshold set so fewer than 5% of resigned games could have been won (checked by playing out 10% of them); and an evaluator gate: a new network replaced the self-play player only if it won more than 55% of 400 games. The 3-day run generated 4.9 million games, updated on 700,000 mini-batches of 2,048 positions with a 20-block residual network, and played on a single machine with 4 TPUs. Four TPUs is the playing machine: the paper does not give the self-play training hardware.
AlphaZero (Silver et al. 2017, arXiv v1) removed what was specific to Go: it optimises the expected outcome, so draws count; no symmetry augmentation, since chess and shogi are not symmetric; one network updated continually, with no evaluator gate; the same hyperparameters for every game except the Dirichlet noise, α = 0.3, 0.15 and 0.03 for chess, shogi and Go ("scaled in inverse proportion to the approximate number of legal moves"). From the rules alone it reached superhuman play in all three "within 24 hours" and defeated a world-champion program in each (Stockfish, Elmo and the 3-day AlphaGo Zero). It passed Stockfish "after just 4 hours (300k steps)", which is 4 hours on 5,000 first-generation TPUs generating games and 64 second-generation TPUs training.
800 simulations per move; about 80 thousand positions searched per second in chess, against 70 million for Stockfish; 700,000 training steps of 4,096 positions; the Stockfish it beat had a 1 GB hash and one minute per move.
The same loop, small enough to watch: AlphaZero on tic-tac-toe, trained for this page (src/train_ttt.py): 60 iterations of 48 self-play games, 2,880 games, about half a minute on a laptop CPU, scored against the exact solution of the game tree.
One network with 18 inputs (the mover's stones and the opponent's), one hidden layer of 64 units, 9 move logits and a tanh value; every self-play move chosen by a 50-simulation PUCT search (c = 1.25, no rollouts) with Dirichlet noise (α = 1, weight 0.25) and visit-proportional sampling for the first 5 moves; AlphaZero's loss with Adam on the last 8 iterations' games and their 8 board symmetries. The game tree has 5,478 positions, 4,520 with a move to make. Weights are stored at 8 bits; everything on the page uses those stored weights.
Top: share of the 4,520 positions where the network's highest-prior move is optimal (blue) and its mean value error against the exact value (orange), after each iteration; dashed lines mark the stored checkpoints (iterations 0, 1, 3, 10 and 60). Bottom: that iteration's 48 self-play games; perfect play draws, and the noise keeps some decisive games in the data. With a 50-simulation search on top, the share of optimal moves is 95.8% at initialisation and 99.0% at the end. Against a perfect opponent over 100 games, the untrained network lost 48 playing on its prior alone and 34 with search; from iteration 10 on it lost none, with or without search.
Look inside a checkpoint. Pick a checkpoint, a search and a position, then click an empty cell to play it. In each empty cell: the network's prior p (top), the search's visits N (middle), and the exact result of that move for the player to move (W win, D draw, L loss). Shading: visit share. Try the block position at checkpoint 0 against 60, or UCT against PUCT at 16 simulations.
"Optimal" means the move keeps the exact game value. Value in the right third: v ≥ 1/3 for won positions, |v| < 1/3 for drawn ones, v ≤ −1/3 for lost ones. Games: 100 against a perfect player that picks at random among optimal moves, 50 as X and 50 as O; the agent plays its prior's top move (raw) or the most visited move of a 50-simulation search. The search columns were computed offline by src/train_ttt.py and src/recompute.py; the others are recomputed here from the stored weights.
AlphaZero needs the rules to step its search. MuZero (Schrittwieser et al. 2019; Nature 588, 2020) learns a model instead, three functions in one network:
The search is AlphaZero's, run on hidden states: expanding a node calls g instead of the rules. What the hidden state is not trained to do is the point: there is "no direct constraint or requirement for the hidden state to capture all information necessary to reconstruct the original observation ... nor is there any requirement for the hidden state to match the unknown, true state of the environment". It only has to make rewards, values and policies right along imagined action sequences. Such a model is value-equivalent (Grimm et al. 2020): it may be wrong about everything planning does not use.
A diagram, not data, in MuZero mode: hidden states, rewards, priors and values are bars meaning "a vector the network chose". In AlphaZero mode the three positions are real, and p and v are this page's trained network (§7, iteration 60; v for the player to move). The structure (which function is called when, which target trains which output) is the paper's (Figure 1 and Section 3).
Training. From a real trajectory in the replay buffer, the model starts at s0 = h(observations up to t) and is unrolled K = 5 steps with the actions actually taken; at every step three predictions are matched to targets:
Results (compute on the root's Milestones tab). Without the rules it matched AlphaZero's superhuman play in Go, chess and shogi; on 57 Atari games, "in which model-based planning approaches have historically struggled", it set a new state of the art: median 2,041.1% and mean 4,999.2% human-normalised, ahead of R2D2 on 42 of 57 games, from 20 billion frames per game. How much the learned model is worth:
MuZero Reanalyze re-runs the search on old trajectories with the latest network to refresh the targets (80% of policy targets, n = 5); with 200 million frames it reached a median of 731%, against 192%, 231% and 431% for IMPALA, Rainbow and LASER.
Ms. Pac-Man: trained with only 6 simulations per move, fewer than the 8 actions, it still learned an effective policy; a model-free variant with the same network matched R2D2 but learned much more slowly, which the authors attribute to search giving "a stronger learning signal" than Q-learning targets.
800 simulations per move in board games and 50 in Atari (searching every fourth frame and repeating the action four times). PUCT with a slowly growing exploration weight, c1 + log((ΣN + c2 + 1)/c2) with c1 = 1.25 and c2 = 19,652; since Atari values are unbounded, Q is rescaled to [0, 1] by the minimum and maximum seen in the tree so far. The dynamics are deterministic; stochastic transitions were "left for future work".
On the root's Taxonomy and Method atlas tabs of Topic: rl: AlphaGo and AlphaZero store a policy and a value (actor-critic heads), use a given model (the rules), learn from self-play, and act in discrete action spaces. MuZero stores the same two heads plus a learned latent model, and learns from its own games replayed from a buffer, also with discrete actions. With a known model and a combinatorial search space, AlphaZero-style search; with no model but a need to plan, MuZero, at a large compute cost per decision.
The Atari 100k benchmark allows 100,000 agent steps per game (400,000 frames, about two hours of play) on 26 games. EfficientZero (Ye et al. 2021) made "three critical changes" to MuZero, each aimed at a weak learning signal or a compounding error:
It reached 194.3% mean and 109.0% median human-normalised score (Table 1 of the current version), "the first time an algorithm achieves super-human performance on Atari games with such little data"; the same table gives 70.4% and 41.5% for SPR and 56.2% and 22.7% for MuZero at the same budget, and the authors call it "close to DQN's performance at 200 million frames while we consume 500 times less data". The paper gives no training time or hardware; the code's instructions use 4 GPUs.
A second line learns a model of the observations themselves, compressed into a small latent state, and trains or plans inside it. Unlike MuZero's, these models are usually trained to reconstruct what they see, which gives a dense learning signal even when rewards are rare.
World Models (Ha and Schmidhuber 2018; interactive version) split the agent in three: V, a variational autoencoder compressing each frame to a latent z (32 numbers for CarRacing, 64 for Doom); M, a recurrent network (256 hidden units for CarRacing, 512 for Doom) predicting the next z as a mixture of 5 Gaussians; and C, a linear controller with "a mere 867 parameters", trained by CMA-ES. On CarRacing-v0, where 900 counts as solved, it scored 906 ± 21 over 100 trials. For DoomTakeCover the controller was trained entirely inside the dream generated by M, and it learned to game the dream: it moved so that the dream's monsters never fired ("Cheating the World Model"). Making the dream noisier with a temperature τ fixed that (their Table 2; survival steps over 100 trials, 750 counts as solved):
| Temperature τ | Score in the dream | Score in the real game |
|---|---|---|
| 0.10 | 2086 ± 140 | 193 ± 58 |
| 0.50 | 2060 ± 277 | 196 ± 50 |
| 1.00 | 1145 ± 690 | 868 ± 511 |
| 1.15 | 918 ± 546 | 1092 ± 556 |
| 1.30 | 732 ± 269 | 753 ± 139 |
A policy that scores 2,086 in an exploitable dream scores 193 in reality: the clearest small example of a planner exploiting model error (§13).
PlaNet (Hafner et al. 2019) plans instead of learning a policy: a recurrent state-space model (RSSM) with a deterministic and a stochastic path ("crucial for high planning performance"), and MPC in latent space with the cross-entropy method (horizon 12, 10 iterations, 1,000 candidate action sequences refit to the best 100, replanning every step). On six DeepMind Control tasks from pixels it used 1,000 episodes where A3C and D4PG used 100,000.
Dreamer (Hafner et al. 2019, ICLR 2020) keeps the RSSM but learns an actor and a critic purely from trajectories imagined in latent space, "propagating analytic gradients of learned state values back through trajectories imagined" by the model. It is Dyna's idea scaled to images (the root's Method atlas lists Dreamer as Dyna-Q's descendant).
A diagram, not data: the structure and the settings are the paper's (Hafner et al., Appendix A).
Dreamer beat the model-free D4PG's score on 20 visual control tasks with 20 times fewer environment steps (5 × 106 against 108). DreamerV2 was the first to reach human level on the 55-game Atari benchmark by learning behaviours inside a separately trained world model. DreamerV3 (Hafner et al. 2023; Nature 640, 2025) uses one configuration that "outperforms specialized methods across over 150 diverse tasks", and is "the first algorithm to collect diamonds ... from scratch without human data or curricula" in Minecraft, on 1 GPU for 9 days.
On 20 visual control tasks Dreamer averaged 823 after 5 × 106 environment steps, against 332 for PlaNet and 786 for the model-free D4PG after 108 steps, at about 3 hours per million steps on one V100 (PlaNet 11, D4PG 24 to reach similar performance). DreamerV2 (Hafner et al. 2020) replaced the Gaussian latents with 32 categorical variables of 32 classes and added KL balancing (the prior pulled towards the posterior faster than the reverse, weights 0.8 and 0.2); it "constitutes the first agent that achieves human-level performance on the Atari benchmark of 55 tasks by learning behaviors inside a separately trained world model": gamer-normalised median 2.15 at 200 million frames with sticky actions, against 1.47 for Rainbow and 1.29 for IQN, in under 10 days on one V100, learning from 468 billion imagined states, 10,000 times its 50 million real inputs.
DreamerV3 (the 2023 preprint and the Nature version) is about robustness: one configuration "outperforms specialized methods across over 150 diverse tasks". The changes handle scale: symlog targets, sign(x) ln(|x| + 1), so rewards and values of any magnitude train the same networks; free bits, no penalty on KL terms below 1 nat; and return normalisation by the 5th to 95th percentile range, only ever scaling large returns down. In Minecraft it is "the first algorithm to collect diamonds ... from scratch without human data or curricula" (the Nature version adds "to our knowledge"), within 100 million environment steps, on 1 GPU for 9 days; the paper contrasts VPT's 720 GPUs for 9 days with human video. Larger models, from 12 million to 400 million parameters, scored higher and needed less interaction (Crafter and one DMLab task).
PlaNet proposed a multi-step training objective, latent overshooting, but the final RSSM agent "does not require it".
Since 2024 the term "world model" also names large generative models that predict the next video frame given an action, trained mostly on video. They are the same object as M in World Models, at a far larger scale, and they meet the same limit: an autoregressive model feeds its own output back in, so "inaccuracies tend to accumulate over time" (DeepMind on Genie 3), which is §13's compounding error. Planning inside them is still mostly a research direction; the sources below report simulators, and two report agents.
| Model (first source) | What it learns from | What it does | Headline, as the source states it |
|---|---|---|---|
| Genie (Bruce et al., Feb 2024) | Over 200,000 hours of public Internet gaming videos, no action labels | A video tokenizer, a latent action model (8 discrete latent actions, learned unsupervised) and an autoregressive dynamics model | 11B parameters, "a foundation world model"; playable frame by frame from an image prompt |
| DIAMOND (Alonso et al., May 2024) | The agent's own Atari experience | A diffusion model of the next frame; the agent is trained entirely inside it | Mean human-normalised 1.46 on Atari 100k, "a new best for agents trained entirely within a world model" |
| GameNGen (Valevski et al., Aug 2024) | Recorded play of an RL agent in DOOM | A diffusion model of the next frame given past frames and actions: a neural game engine | 20 frames per second on a single TPU; next-frame PSNR 29.4; raters "only slightly better than random chance" at telling clips apart |
| V-JEPA 2-AC (Assran et al., Jun 2025) | Over 1 million hours of internet video, then under 62 hours of unlabelled robot video | Predicts in embedding space, not pixels; plans robot actions towards an image goal | Zero-shot pick-and-place on Franka arms in two labs, "without collecting any data from the robots in these environments" |
| LeWM (Maes et al., 2026; NeurIPS 2026) | Pixels of Push-T expert demonstrations | A 15M-parameter JEPA trained end to end with two losses, prediction in embedding space and SIGReg; a CEM planner looks 25 steps ahead | 96.0% on Push-T over 50 tasks with the goal 25 steps away |
| Genie 3 (DeepMind blog, 5 Aug 2025) | Not disclosed | Text prompt to a navigable world, in real time | 720p at 24 frames per second, consistent "for a few minutes", visual memory "as far back as one minute ago"; a limited research preview |
| Dreamer 4 (Hafner et al., Sep 2025) | Mostly unlabelled video, a small amount with actions | A transformer world model with real-time inference on a single GPU; RL inside it | "the first agent to obtain diamonds in Minecraft purely from offline data, without environment interaction" |
Read 24 October 2026 (LeWM 27 November 2026) from the arXiv papers and the DeepMind post. Vendor claims, not independent measurements. The video-generation side of these models (diffusion, tokenizers) is on the generative-models pages; this page owns their use as models to plan or train in.
A world model need not be video, or large. WorldTUI fine-tunes a 0.5B coding model (358M parameters once its vocabulary is cut) on 336,000 recorded terminal sessions to predict, for each keypress, the edits to the screen's character grid; with no shell behind it, what stays consistent between commands is what the network carries in context, and it runs in a browser. It meets §13's compounding error the way DAgger meets distribution shift: self-repair training examples go from the model's own wrong screen to the real next one (one author's small tests; free-running drift was not measured; WorldTUI).
Model-predictive control (MPC) comes from control engineering: "the current control action is obtained by solving, at each sampling instant, a finite horizon open-loop optimal control problem, using the current state of the plant as the initial state; the optimization yields an optimal control sequence and the first control in this sequence is applied to the plant" (Mayne et al. 2000, abstract). Replanning every step is what keeps model errors from accumulating past a few steps.
Grey: steps already taken. Solid blue: the one action applied at that step. Dashed: the rest of the planned sequence, discarded when the next real state arrives. Drawn with PlaNet's horizon of 12 (8 at phone width). With a learned neural model the optimisation is done by sampling: random shooting (many random action sequences, keep the best first action) or the cross-entropy method (CEM: sample, keep the best few, refit a Gaussian, repeat).
PETS (Chua et al. 2018, probabilistic ensembles with trajectory sampling) made this work on standard continuous-control benchmarks. Each of 5 networks ("We found B = 5 sufficient") outputs a Gaussian over the next state, capturing aleatoric uncertainty, the noise in the data; the disagreement between the 5, each trained on its own bootstrap sample, captures epistemic uncertainty, "our subjective uncertainty due to a lack of data", which is largest away from the data. Planning propagates particles through randomly chosen members and optimises with CEM. It "matches the asymptotic performance of model-free algorithms on several challenging benchmark tasks, while requiring significantly fewer samples (e.g., 8 and 125 times fewer samples than Soft Actor Critic and Proximal Policy Optimization respectively on the half-cheetah task)".
MBPO (Janner et al. 2019, "When to Trust Your Model") is Dyna with a neural ensemble and SAC: from states in the real replay buffer it runs short branched rollouts of k steps in the model and trains SAC mostly on that model data; in its own words the branched rollout "resembles the scheme proposed in the original Dyna algorithm ... which can be viewed as a special case of a length 1 branched rollouts". Its bound on the true return subtracts a penalty whose model-error part is
Error grows linearly with k while the benefit of model data does not, so the bound favours short rollouts. "MBPO's performance on the Ant task at 300 thousand steps matches that of SAC at 3 million steps", "an order of magnitude faster on some tasks". On Hopper its model was accurate enough for 200-step rollouts, yet they trained worse than short ones, and "500-step rollouts are too inaccurate for effective learning".
Taken literally the bound is best at k = 0; a refined version, using the model's error on the new policy's own states, justifies some k > 0 when that error is low. Settings: k = 1 on three tasks and schedules growing to 15 or 25 on the others, an ensemble of 7, 400 model rollouts and 20 to 40 policy updates per real step; final performance comparable to SAC's.
A model trained to predict one step is used to predict many, by feeding its own output back in. "If there is any error or approximation in the one-step predictions, then it can compound to make the long-term predictions wildly inaccurate. In practice this is often what happens" (Sutton and Barto §17.3). Three reasons:
Both pendulums get the same 50 random torques. Real dynamics against network 1 of the ensemble, test start 6 of 200: it starts 0.41 rad from upright, falls, and swings back to within about 0.2 rad of the top near step 30, where a small error decides whether it goes over. The model's goes over; the real one falls back. Right: the angle error |θmodel − θreal| by step, wrapped to [−π, π]. The branched mode restarts the model from the real state every 5 steps (MBPO-style).
The first effect, on real numbers: Gymnasium's Pendulum-v1 (source: θ = 0 upright, g = 10, time step 0.05 s, torque in [−2, 2]) against an ensemble of five small networks (two layers of 24 units) that this page fitted, PETS-style on bootstrap resamples, to 2,000 transitions from random torques (src/fit_pendulum.py). Each network's one-step angle error averages 0.0016 rad. Predict: after 50 steps, how many times larger is the error?
Not every long-horizon failure is model error. On Push-T, an author swapped LeWM's learned predictor (§11) for the simulator's exact physics: with an expert subgoal every 25 steps, on 250 tasks with the goal 75 steps away, the two succeed 78% and 77% of the time, a tie (two seeds of one planner disagree on 15% of tasks). Without subgoals one 75-step search reaches 22% with LeWM and only 42% with exact physics, which cannot drift: the search fails before the model does. Over short searches this learned model is not the limit, and chaining short searches through subgoals is what pays (single runs, no code released; After 600 experiments with JEPA world models).
The remedies. Plan short and replan often (MPC, MBPO: short branched rollouts and replanning are the same remedy). Measure uncertainty and stay where the model is confident (PETS's ensembles). Make the dream harder than reality (World Models' temperature). Learn only what planning needs (MuZero, value equivalence). Ground the model in real targets (EfficientZero's consistency loss and value prefix). Prefer search in a perfect model whenever one exists (AlphaZero). Sutton and Barto's verdict: "cases of full model-based reinforcement learning, in which the environment model is learned from data and then used for planning, are rare ... More work is needed before planning with learned models can be effective" (§17.5).
Over 200 random starts, the error grows from 0.0016 rad after one step to 0.044 after 25 and 0.20 after 50, 125 times the one-step error, and the mean hides a heavy tail: for network 1 the median error at step 50 is 0.024 rad but 11 of the 200 rollouts are off by more than 0.5 rad, the ones that went over the top the wrong way. The spread between the five networks grows with the error (0.18 rad at step 50): disagreement flags where the model should not be trusted. Restarting every 5 steps keeps the mean error over 50 steps at 0.0044 rad, against 0.071 open loop.
A model trades computation for real experience. Each row is a published figure under its own protocol; compare within a row's paper, not across rows. The Atari rows are on the root's Milestones and benchmarks tab, which keeps each table's protocol separate.
| System | Real experience | Computation | Result in its own paper |
|---|---|---|---|
| DQN (model-free) | 50 million frames per Atari game (Nature 2015), "around 38 days of game experience" | One network update per few steps | Professional-tester level on 49 games |
| MuZero | 20 billion frames per Atari game | 50 simulations per move; 8 TPUs training and 32 self-play per game | Atari-57 median 2,041% |
| MuZero Reanalyze | 200 million frames | Search re-run on old data | Median 731% |
| EfficientZero | 100,000 steps (about 2 hours of play) | MuZero-style search per step; plus re-searching stale targets | Atari 100k median 109.0%, mean 194.3% |
| DreamerV2 | 200 million frames (50 million inputs) | 468 billion imagined states; one V100, under 10 days | Gamer-normalised median 2.15 on 55 games |
| PETS | 8 times fewer samples than SAC, 125 than PPO (half-cheetah) | CEM planning at every step | Model-free asymptotic performance |
| MBPO | Ant: 300 thousand steps | 400 model rollouts and 20 to 40 SAC updates per real step | Matches SAC at 3 million steps |
| AlphaZero | Self-play only (the rules are the model): 700,000 updates of 4,096 positions | 800 simulations per move; 5,000 TPUs generating games | Passed Stockfish after 4 hours |
| Dactyl (model-free, for contrast) | About 100 years of simulated experience, in about 50 hours (OpenAI 2018) | 6,144 CPU cores and 8 GPUs; no planning | Block reorientation on a real robot hand |
Sources: DQN, MuZero, EfficientZero, AlphaZero and Dactyl figures as on the root's Milestones tab (each with its paper); DreamerV2, PETS and MBPO as cited in §10 and §12.
Planning tends to pay when real experience is expensive and computation is not (robots, physical systems, users); when a perfect or good model exists and the problem is combinatorial (board games, puzzles, theorem proving); when rewards are sparse and planning carries them back faster than real experience (Dyna's maze); and when one model is reused for new goals. It tends not to pay when a fast simulator makes data nearly free, so model-free methods run at scale (Dactyl, OpenAI Five); when the environment is hard to model and the planner will exploit the gaps; and when actions must be chosen faster than a search can run (AlphaGo Zero took about 0.4 s per move at 1,600 simulations). Planning is free of real experience, not of computation, and model-based agents have more parts to tune: a model, its uncertainty, a planner, and how much to trust each.
Language models. In text generation the transition model is known exactly (the next state is the prompt plus the chosen token), so the open question is only whether decision-time search pays. TS-LLM applied AlphaZero-like tree search to decoding and training, and AlphaProof coupled a pretrained language model with "the AlphaZero reinforcement learning algorithm" to prove olympiad problems in Lean (root Milestones tab). DeepSeek-R1's authors tried MCTS and dropped it: the token search space is exponentially larger than chess, capping each node's expansions traps the search in local optima, and a fine-grained value model is hard to train (DeepSeek-R1 paper page, Failed attempts).
An interpretation, not a claim of the papers: long chain-of-thought in o1- and R1-style models can be read as a sequential search in token space, with the policy proposing and checking steps; OpenAI reported that o1 "consistently improves with more reinforcement learning (train-time compute) and with more time spent thinking (test-time compute)".
The RL side of language models is on RL for LLMs.
"A model with lower one-step error will plan better." Not necessarily: errors compound and planners exploit them (objective mismatch); MBPO's 200-step rollouts were accurate yet trained worse than short ones.
"Planning with a model explores for you." A pessimistic model can hide a better option forever (plain Dyna-Q and the shortcut); planning needs an exploration incentive such as Dyna-Q+'s κ√τ bonus or R-max's optimism.
"AlphaZero beat Stockfish after 4 hours of training." Four hours on 5,000 TPUs generating games and 64 more training (arXiv v1), against a Stockfish at one minute per move; the Science version replayed the match at championship settings: 155 wins, 6 losses in 1,000 games.
The Reading tab (41 minutes, plus 9 in closed details) goes from what a model is, through Dyna, Monte Carlo tree search and the AlphaGo to MuZero line, to learned and video world models, MPC and MBPO, compounding model error and when planning pays; its visuals include the Dyna maze, a search on one tic-tac-toe position, an AlphaZero replication you can inspect, and a model pendulum drifting from the real one. Links open in a new tab, with reading times (estimated for external resources).
The intuitive overview of RL. Its Taxonomy tab has the model-based against model-free axis and the background against decision-time planning distinction among its 18 axes; its Method atlas tab has rows for Dyna-Q, AlphaGo, AlphaGo Zero, AlphaZero, MuZero and Dreamer with sources; its Milestones and benchmarks tab has AlphaGo, AlphaGo Zero, AlphaZero, MuZero, EfficientZero and AlphaProof with their compute, and the Atari tables with their protocols. (17 min, plus 2 in closed details)
UCB1, which UCT applies at every node of the tree, and the exploration bonuses Dyna-Q+ and R-max echo.
Planning with a known distribution model: policy and value iteration, the policy improvement theorem behind rollouts and AlphaZero, and the sweeps (in place, prioritised, RTDP) raced on the Dyna maze. (35 min, plus 11 in closed details)
Q-learning, the update Dyna applies to both real and simulated experience, and the n-step returns MuZero's value targets use.
DQN, Rainbow, R2D2 and Agent57: the model-free Atari agents MuZero and EfficientZero are compared with. (34 min, plus 16 in closed details)
SAC, which MBPO trains on model data, and the actor-critic that Dreamer learns in imagination.
This page: the sixth of the eight.
Learning from a fixed dataset, where a learned model's errors cannot be corrected by new experience.
RL post-training of language models, where the transition model is known and the open question is search at test time. (53 min, plus 13 in closed details)
Its Failed attempts section: why MCTS over reasoning steps did not work at scale for the authors. (34 min read)
Where the reward model sits in post-training, and why it does not make RLHF model-based. (33 min, plus 4 in closed details)
Policy and value networks inside MCTS; the Methods give every training and search detail of section 6. (about 1h)
Search as policy improvement, the loss, the self-play and evaluation pipeline. (about 1h)
The peer-reviewed numbers (1,000-game match, training times), with supplementary tables. (about 1h)
The learned model of what matters, with pseudocode in the appendix. (about 1h 15m)
Three changes that make MuZero data-efficient. (about 45 min)
Bandit-based Monte Carlo planning and its consistency proof. (about 45 min)
Every MCTS variant and enhancement up to 2012, with a history. (about 3h; sections 1 to 3 in 45 min)
The interactive article: V, M and C, the car racer and the Doom dream. (about 40 min)
One configuration across 150+ tasks, with the robustness techniques of section 10. (about 1h)
Training agents inside a scalable video world model; Minecraft diamonds from offline data. (about 1h)
A world model learned from unlabelled gaming video, with latent actions. (about 50 min)
Ensembles, aleatoric and epistemic uncertainty, and MPC with CEM. (about 45 min)
The bound behind short branched rollouts, and the experiments. (about 50 min)
Why a model need only be right about what planning uses. (about 45 min)
The source of sections 1 to 5: Dyna, prioritised sweeping, expected against sample updates, trajectory sampling, rollouts and MCTS. (about 1h 30m)
AlphaGo and AlphaGo Zero explained in the book's terms. (about 30 min)
Model learning, Dyna, simulation-based search and MCTS on Go, in one lecture (slides and video on the course page). (1h 40m)
Optimal control and planning, model-based RL, model-based policy learning: MPC, uncertainty, MBPO and Dreamer-style methods. (about 4h)
A map of the whole field: what to learn, how to plan, how to combine them. (about 3h)
MuZero explained by its first author, from the three functions to Reanalyze. (about 20 min)