Model-based RL and planning

Child of Topic: rl. What a model is, planning in the background (Dyna) or at decision time (Monte Carlo tree search), AlphaGo to MuZero, learned world models from Dreamer to Genie, MPC and MBPO, why model errors compound, and when planning pays. Sources linked inline; data as of October 2026. Reading: 41 min, plus 9 in closed details.

The idea in one screen

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.

  1. Act. The policy acts in the environment and gets back real experience: a state, an action, a reward and the next state.
  2. Direct RL. Each real transition updates the values directly. Model-free RL uses only this path: one update per real step.
  3. Model learning. The same transition is stored in a model (Dyna's table remembers the last next state and reward of each pair it has tried).
  4. Planning. The model generates simulated transitions, and the same backup updates the same values. The bars are this page's Dyna maze (§2): maxa Q per cell at the end of episode 2, 2 cells with a value without planning, 34 with 50 planning steps per real step.
  5. Where each method sits. Dyna uses both paths with a table model; AlphaZero skips "model learning" because the rules are given; MuZero and Dreamer learn the model as a network. Planning runs in the background (Dyna, Dreamer) or from the current state at every decision (MCTS, MPC).

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).

model
predicts the next state and reward from a state and action; a distribution model gives all outcomes with probabilities, a sample model draws one
planning
any computation that turns a model into a better policy without touching the environment
background / decision-time
planning that improves stored values for later use, against planning that starts from the current state and outputs one action
rollout, tree policy
a simulated episode under a fixed policy; the rule that picks actions inside a search tree
PUCT
a tree policy that explores where a network's prior points
world model
a learned model, usually of compressed observations, in which an agent plans or trains
MPC
model-predictive control: plan a short horizon, apply the first action, replan
value-equivalent
a model trained only to get the rewards and values planning needs right
MethodModelWhat the model predictsHow it plansHeadline
Dyna-Q (1990)Learned tableLast seen next state and rewardBackground: extra Q-learning updates on remembered transitionsMaze solved in 3 episodes instead of about 25 (§2)
Prioritised sweeping (1993)Learned table with predecessorsNext state, reward, and who leads whereBackground, most urgent update first5 to 10 times fewer updates on mazes (§4)
Rollouts, MCTS, UCT (1996, 2006)Given simulatorExact next stateDecision time: simulate from the current state, act, discardComputer Go from weak amateur (2005) to 6 dan (2015) (§5)
AlphaGo (2016)Given (rules of Go)Exact; networks give priors and valuesMCTS with policy and value networks plus rolloutsBeat Fan Hui 5-0, Lee Sedol 4-1 (§6)
AlphaGo Zero, AlphaZero (2017)Given (rules)Exact; one network gives p and vMCTS with no rollouts, at every self-play moveSuperhuman Go, chess and shogi from the rules alone (§7)
MuZero (2019)Learned, latentOnly reward, policy and value, never the observationMCTS inside the learned modelMatched AlphaZero without the rules; Atari-57 state of the art (§8)
EfficientZero (2021)Learned, latentAs MuZero, plus a consistency targetMCTS, with model-corrected value targetsAbove human median on Atari 100k, about two hours of play (§9)
World Models, PlaNet, Dreamer (2018 to 2025)Learned, latentNext latent state and reward; usually also the imagePolicy 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 videoThe next frame, given an actionMostly none yet: interactive simulators; agents trained inside a fewGenie 3: playable worlds at 720p, 24 frames per second (§11)
PETS, MBPO (2018, 2019)Learned ensembleDistribution of the next stateMPC (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.

1What a model is, and what planning means

"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).

Terms from control and planning (under 1 min)

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.

2Dyna: learning, planning and acting together

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).

Tabular Dyna-Q (Sutton and Barto, p. 164) Loop forever: (a) S ← current state; (b) A ← ε-greedy(S, Q) (c) take A; observe R, S′ (d) direct RL: Q(S, A) ← Q(S, A) + α [R + γ max_a Q(S′, a) − Q(S, A)] (e) model learning: Model(S, A) ← R, S′ (deterministic environment assumed) (f) planning, repeat n times: S ← a random previously observed state; A ← a random action previously taken in S R, S′ ← Model(S, A); apply the update of (d)

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?

  1. Episode 1 is the same for every n. In this run it is a random walk of 141 steps: every reward is zero until the final step into G, which sets that action's value to 0.1 (α × reward). Before that last step planning could change nothing, and the replays after it do not spread the value yet: almost every replayed transition still leads from a zero value to a zero value. Both agents start episode 2 with one arrow.
  2. The first quarter of episode 2. Without planning, a value moves back one cell each time the agent walks through. With n = 50, each real step is followed by 50 planning updates on remembered transitions, so the goal's value spreads back while the agent is still wandering.
  3. Halfway: the book's Figure 8.3 moment. In our run 0, at the midpoint of episode 2, the n = 0 agent has a greedy arrow in 1 cell, n = 5 in 17 cells and n = 50 in 26 cells.
  4. To the goal. Episode 2 took 809, 233 and 47 steps. Without planning the value has moved back only along steps the agent itself repeated; with planning it reaches far back towards S. The book: "By the end of the third episode a complete optimal policy will have been found".
  5. The price. The planning steps are not free: n = 50 does 50 table updates for every real one. Dyna pays when real steps are expensive (a robot, a user) and computation is cheap.

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.

Steps per episode: more planning, fewer episodes to learn the maze (Figure 8.2, recomputed)

3When the model is wrong

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.

planned reward = r + κ √τ
r
the reward the model predicts
τ
real time steps since the pair was last tried
κ
a small constant (the book gives no value; this page uses 10−3)

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.

Optimism taken to its extreme: E3 and R-max (under 1 min)

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.

Dyna-Q+ finds the shortcut; Dyna-Q never does (Figures 8.4 and 8.5, recomputed)

Before the change
After the change
Dyna-QDyna-Q+
Change n, κ and α and rerun (controls)

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.

4Where to spend planning

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).

Sample against expected updates, trajectory sampling and RTDP (1 min)
  • Prioritised sweeping works backwards from wherever values changed, so the model must also predict predecessors; Example 8.4 allowed at most n = 5 updates per real step. The priority is |R + γ maxa Q(S′, a) − Q(S, A)|.
  • Sample against expected updates (§8.5). An expected update of one pair costs about b times a sample update, where b is the number of possible next states. With equally likely successors and correct successor values, t sample updates leave an error of √((b − 1)/(b t)) of the initial error, so a small fraction of b samples removes most of it. Sample updates are likely better "on problems with large stochastic branching factors and too many states to be solved exactly"; learned models in deep RL are sample models for this reason.
  • Trajectory sampling and RTDP (§8.6 to 8.7). Simulating whole trajectories under the current policy puts updates where the policy goes. In the book's random tasks this helped early and hurt late, and helped more with more states and fewer branches; real-time DP solved a racetrack with about half the updates of sweeping value iteration.

5Decision-time planning: rollouts and Monte Carlo tree search

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.

UCT:  a = argmaxa [ Q(s, a) + c √( ln N(s) / N(s, a) ) ]     PUCT:  a = argmaxa [ Q(s, a) + c P(s, a) √N(s) / (1 + N(s, a)) ]
Q(s, a)
mean result of the simulations through that edge, for the player to move at s
N(s), N(s, a)
visits to the node and to the edge
c
exploration constant (UCB1's √2 for rewards in [0, 1])
P(s, a)
a policy network's prior; with a value network scoring leaves, no rollouts are needed

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?

  1. The root. The position, O to move, and its six legal moves, one slot each on the floor. With PUCT the thin purple bars are the network's prior p over the moves (networks from §7).
  2. The first simulations. Each simulation adds one node. A node's bar grows with its visits N and is coloured by its mean result for O (green good, orange bad).
  3. Selection. One simulation in detail: from the root the tree policy follows UCB1 (UCT) or Q + 1.25 P √N / (1 + N) (PUCT) at each node until it leaves the tree.
  4. Expansion. The last position on the path is added to the tree; with PUCT the network gives it a prior over its moves and a value.
  5. Evaluation. UCT plays a uniformly random game to the end from the new node; PUCT plays no rollout and uses the network's value for the new position. A finished game needs neither: its value is exact.
  6. Backup. The result is added along the path, with alternating sign at each level, and every edge on it gets one more visit.
  7. The other simulations, up to 30. Visits pile up under the moves that look best so far; the tree grows deep only there.
  8. The search policy. Each root move's share of the visits, π, against its prior p: with the trained network π is sharper than p.

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, and rollouts in backgammon (1 min)

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").

UCT needs 256 simulations to block every time; PUCT with the trained network blocks at 4

6AlphaGo (2016): networks inside the search

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 four networks in numbers, and the match hardware (1 min)
  • SL policy network pσ: 13 layers, trained on 30 million positions from the KGS Go Server to predict the expert's move; 57.0% accurate with all input features (55.7% from the raw board and history), against 44.4% for the previous best.
  • Rollout policy pπ: a linear softmax over small patterns; 24.2% accurate but "using just 2 μs to select an action, rather than 3 ms for the policy network"; about 1,000 full-game rollouts per second per search thread.
  • RL policy network pρ: the SL network improved by policy-gradient self-play (50 GPUs, one day). It won "more than 80%" of games against the SL network and, with no search, 85% against Pachi, which does 100,000 simulations per move.
  • Value network vθ: predicts the winner (15 layers, 50 GPUs for one week). Trained on full human games it memorised outcomes (test MSE 0.37 against 0.19 on training data), so the team generated 30 million positions "each sampled from a separate game" of RL-policy self-play: MSE 0.226 train, 0.234 test.

The match program ran 40 search threads on 48 CPUs and 8 GPUs; the distributed version used 1,202 CPUs and 176 GPUs.

AlphaGo searches to play; AlphaZero searches to learn

7AlphaGo Zero and AlphaZero: search as the policy improvement operator

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:

ℓ = (z − v)² − π⊤ log p + c‖θ‖²
z
the game's result from the player to move's view: +1, 0 (AlphaZero, which allows draws), −1
v, p
the network's value and move probabilities
π
the search's visit distribution at that position
c
L2 weight decay, 10−4; the two loss terms are weighted equally

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.

The details that made it work, and the 3-day run's numbers (1 min)

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.

AlphaZero's search and training budget (under 1 min)

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 two AlphaZero papers differ: quote one
The preprint (arXiv v1, December 2017) and the peer-reviewed paper (Science 362, 2018; author preprint) differ. Training TPUs: 64 second-generation in v1, 16 in Science. Search speed: 80,000 against Stockfish's 70 million positions per second in v1; 60,000 against 60 million in Science. The match: v1 played 100 games with 64 threads, a 1 GB hash and one minute per move (28 wins, 72 draws, 0 losses); Science played 1,000 games at its 2016 TCEC superfinal settings (44 threads, a 32 GB hash, 3 hours plus 15 seconds per move) and AlphaZero won 155 and lost 6. Science also gives training times of about 9 hours (chess), 12 hours (shogi) and 13 days (Go). This page and the root's Milestones tab use v1's numbers. AlphaZero v1's main text says the noise is "scaled in proportion" while its Methods say "inverse proportion"; the α values fit inverse.

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.

The replication's setup (under 1 min)

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.

The network's top move goes from 53.7% to 94.3% optimal; search on top lifts it to 99.0%

X wonO wondraw

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.

Look inside a checkpoint: the prior, the value, and what search does with them

Every checkpoint at a glance (table)

"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.

8MuZero (2019): planning with a learned model of what matters

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:

s0 = hθ(o1, ..., ot)    rk, sk = gθ(sk−1, ak)    pk, vk = fθ(sk)
h (representation)
encodes the past observations into a hidden root state
g (dynamics)
from a hidden state and an action, the reward and the next hidden state
f (prediction)
a policy and a value, as AlphaZero's network gives from a real position

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.

  1. Representation: observations to a hidden root state. h encodes the observations up to now (in Atari, the last 32 frames and actions) into s⁰. Nothing forces s⁰ to look like the screen or the true state: it is whatever vector makes later predictions right.
  2. Prediction at the root. f(s⁰) gives a move prior p⁰ and a value v⁰, as AlphaZero's network does from a real position. The search starts here.
  3. Dynamics: the learned model takes the step. The search picks a¹ by PUCT. Instead of asking the rules, it calls g(s⁰, a¹), which returns a predicted reward r¹ and the next hidden state s¹. No observation is predicted.
  4. Prediction at the new node. f(s¹) gives p¹ (the prior for the next choice) and v¹. Each simulation expands one new node this way.
  5. One more step. g(s¹, a²) gives r² and s², and f(s²) gives p², v². In Atari the search does 50 simulations per move; in board games 800.
  6. Backup with rewards and discounting. The leaf value is backed up with the predicted rewards: from the root, r¹ + γ r² + γ² v². Q values are rescaled to [0, 1] by the smallest and largest seen in the tree, because Atari values are unbounded.
  7. Act in the real environment. After all simulations the root's visit counts give the search policy π; MuZero acts by it, and the next observation comes from the real environment. The model is only ever used inside the search.
  8. Training: unroll K = 5 steps along what really happened. From a stored trajectory, h encodes the observations at time t; g is then applied with the actions actually taken. At every unrolled step k, the predictions are pulled towards real targets: rk to the observed reward ut+k, vk to the n-step return zt+k (n = 10 in Atari), pk to the visit distribution πt+k of the search run at real step t+k. Gradients flow through all of h, g and f.

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:

ℓt(θ) = Σk=0..K [ ℓr(ut+k, rk) + ℓv(zt+k, vk) + ℓp(πt+k, pk) ] + c‖θ‖²
u
the reward actually observed
z
an n-step return bootstrapped from the search value, zt = ut+1 + γut+2 + ... + γn−1ut+n + γnνt+n, with n = 10 in Atari; in board games, the final outcome
π
the visit distribution of the search run at that real step
losses
squared error for reward and value in board games; cross-entropy over a categorical representation in Atari, "more stable" with values of variable scale; cross-entropy for the policy

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:

  • Go: trained at 800 simulations (about 0.1 s), the learned model kept improving with searches up to 10 s, "two orders of magnitude longer", and matched a perfect simulator.
  • Atari: gains "plateaued at around 100 simulations", "perhaps because of greater model inaccuracy"; even 1 simulation played well, "suggesting that ... the raw policy has learned to internalise the benefits of search".
Reanalyze, Ms. Pac-Man, search settings, and MuZero on the root's taxonomy (2 min)

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.

9EfficientZero (2021): MuZero with little data

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:

  1. Temporal consistency. A self-supervised loss (SimSiam-style, as SPR) makes the hidden state predicted by g agree with the encoding h of the observation that really followed. MuZero's model learns only from rewards, values and policies, which are sparse with little data.
  2. Value prefix. An LSTM predicts the sum of rewards so far directly instead of summing per-step predictions, "helping to alleviate the compounding error in the model".
  3. Model-based off-policy correction. Old trajectories came from older policies, so it uses fewer real rewards the older the data and re-searches the last state with the current network to bootstrap.

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.

EfficientZero's numbers moved between versions
The first arXiv version's abstract says 190.4% mean and 116.0% median; the current version's abstract and Table 1 say 194.3% and 109.0%, while its Section 5.2 still prints the old 1.904 and 1.160. An independent rerun in the BBF paper gives a median of 1.116 (Schwarzer et al. 2023). Atari 100k results also depend on how runs are aggregated (Agarwal et al. 2021): the root's Milestones tab keeps each table's protocol separate.

10Learned world models: World Models, PlaNet, Dreamer

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 dreamScore in the real game
0.102086 ± 140193 ± 58
0.502060 ± 277196 ± 50
1.001145 ± 690868 ± 511
1.15918 ± 5461092 ± 556
1.30732 ± 269753 ± 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).

  1. Real frames, encoded. Real observations from the replay buffer are encoded into latent states.
  2. The model learns on real data. The RSSM learns to predict each latent state from the last (and the action taken), with the frames as the dense learning signal.
  3. Imagination. From a real latent state the actor picks actions and the model predicts the next latent state and reward, for an imagination horizon of 15, with no images decoded.
  4. The critic. The critic learns λ-returns (γ = 0.99, λ = 0.95) on these imagined steps.
  5. The actor. The actor is trained by gradients through them: the value of the imagined states is differentiated back through the model to the actions that led there.

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.

Dreamer, DreamerV2 and DreamerV3 in numbers (2 min)

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's 50 or 200 times, and latent overshooting (under 1 min)
PlaNet: 50 or 200 times?
The first preprint and Google's blog ("5000% more data efficient") say 50 times less environment interaction; the final ICML 2019 version says "on average 200× less", with Table 1's per-task gains over D4PG ranging from 40 to over 500.

PlaNet proposed a multi-step training objective, latent overshooting, but the final RSSM agent "does not require it".

11World models from video, and small ones

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 fromWhat it doesHeadline, as the source states it
Genie (Bruce et al., Feb 2024)Over 200,000 hours of public Internet gaming videos, no action labelsA video tokenizer, a latent action model (8 discrete latent actions, learned unsupervised) and an autoregressive dynamics model11B parameters, "a foundation world model"; playable frame by frame from an image prompt
DIAMOND (Alonso et al., May 2024)The agent's own Atari experienceA diffusion model of the next frame; the agent is trained entirely inside itMean 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 DOOMA diffusion model of the next frame given past frames and actions: a neural game engine20 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 videoPredicts in embedding space, not pixels; plans robot actions towards an image goalZero-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 demonstrationsA 15M-parameter JEPA trained end to end with two losses, prediction in embedding space and SIGReg; a CEM planner looks 25 steps ahead96.0% on Push-T over 50 tasks with the goal 25 steps away
Genie 3 (DeepMind blog, 5 Aug 2025)Not disclosedText prompt to a navigable world, in real time720p 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 actionsA 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).

12Model-predictive control, PETS and MBPO

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.

Plan a short horizon, apply one action, throw the rest away, plan again

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

2 rmax · k (εm + 2επ) / (1 − γ)
k
rollout length in the model
εm
the model's error, a bound on the total-variation distance between its next-state distribution and the true one
επ
how far the policy has moved from the one that collected the data

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".

MBPO's bound at k = 0, and its settings (under 1 min)

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.

13Why model error compounds, and what to do about it

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:

  • Errors feed on themselves. "A flawed sample is given as input to the model, which causes more errors, and so on" (Talvitie 2014); the model is now asked about states it was never trained on, "breaking the train-test i.i.d assumption" (Venkatraman et al. 2015), whose bound on the T-step error grows exponentially in T when the dynamics expand errors (Lipschitz constant above 1), and is tight.
  • The planner seeks the errors out. An optimiser maximising return under the model finds wherever the model is too optimistic: the Doom agent that stopped the dream's monsters firing (§10).
  • One-step accuracy is the wrong target. "The likelihood of one-step ahead predictions is not always correlated with control performance" (Lambert et al. 2020, objective mismatch).

A tiny one-step error decides whether the model's pendulum goes over the top

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?

  1. Step 0: the same start. θ = 0.41 rad from upright; both pendulums get the same 50 random torques, and the model now predicts 50 steps ahead by feeding its own predictions back in.
  2. Steps 1 to 10: the pendulum falls. The one-step error is about a thousandth of a radian; each prediction starts from the previous one, so errors are carried forward: 0.011 rad after 10 steps.
  3. Steps 11 to 25: through the bottom and back up. The model is now being asked about states it predicted itself, not ones from its training data; the error reaches 0.18 rad.
  4. Steps 26 to 33: near the top. Both swing back to within about 0.2 rad of upright, where the dynamics amplify small differences: two nearly equal states can fall to opposite sides. The model's goes over the top; the real one falls back.
  5. Steps 34 to 50: two different motions. The model's pendulum has gone its own way: after 50 steps it is 2.24 rad off, against 0.011 after 10 steps.

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).

Error grows 125 times over 50 steps; restarting from real states every 5 steps keeps it small

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.

14When model-based pays: samples against compute

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.

SystemReal experienceComputationResult 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 stepsProfessional-tester level on 49 games
MuZero20 billion frames per Atari game50 simulations per move; 8 TPUs training and 32 self-play per gameAtari-57 median 2,041%
MuZero Reanalyze200 million framesSearch re-run on old dataMedian 731%
EfficientZero100,000 steps (about 2 hours of play)MuZero-style search per step; plus re-searching stale targetsAtari 100k median 109.0%, mean 194.3%
DreamerV2200 million frames (50 million inputs)468 billion imagined states; one V100, under 10 daysGamer-normalised median 2.15 on 55 games
PETS8 times fewer samples than SAC, 125 than PPO (half-cheetah)CEM planning at every stepModel-free asymptotic performance
MBPOAnt: 300 thousand steps400 model rollouts and 20 to 40 SAC updates per real stepMatches SAC at 3 million steps
AlphaZeroSelf-play only (the rules are the model): 700,000 updates of 4,096 positions800 simulations per move; 5,000 TPUs generating gamesPassed 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 planningBlock 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).

Long chain-of-thought as search: an interpretation (under 1 min)

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.

Misconceptions worth a second look (under 1 min)

"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.