Skip to content
The Daily Triptych106 / 365
MuZero planning and learning loop

Observations become a latent state; search expands with learned dynamics and prediction; real interaction supplies targets that retrain all three functions.

II · THE IDEA · ARTIFICIAL INTELLIGENCE

Model-Based Reinforcement Learning with MuZero

Reinforcement learning · arXiv 1911.08265 · Learned model for planning · Atari, Go, chess, shogi

▶ Listen · narrated

A perfect simulator is a luxury. MuZero shows that search can still work when the agent must invent its own dynamics, trained only from interaction.

At a glance

What it is
Model-based RL that plans with a learned model of reward, policy and value
Core idea
Search inside a latent model trained only from interaction, not from known rules
Three heads
Representation, dynamics and prediction functions trained end-to-end
Planning
Monte Carlo tree search over imagined latent states
Reported scope
Go, chess, shogi and the Atari suite in one algorithm

Think of learning to play a board game in your head without ever being told the rules booklet. You do not need a perfect mental photograph of the board. You only need to answer three questions after each imagined move: how good does this position feel, which moves seem promising, and did I just score a point?

MuZero works like that. A first network turns what the agent sees into a compact internal state. A second network steps that internal state forward when an action is chosen and guesses the immediate reward. A third network reads the internal state and guesses both a preference over actions and an overall value. Planning is a tree of these imagined steps. After the real move is taken in the true environment, the networks are trained so their guesses line up with what search decided and what rewards actually arrived. The internal state is never forced to redraw the pixels; it only has to keep the planner honest.

Look closer

  1. The model does not reconstruct the world

    MuZero’s dynamics step in a hidden state produced by a representation function, not in pixels or board squares. That hidden state is trained only to support three outputs the planner actually uses: an immediate reward, a policy over actions, and a value. Anything in the raw observation that does not help those predictions can be discarded. The internal trajectory is therefore a planning substrate, not a miniature copy of the environment.

  2. Search improves the targets the model learns

    At each real state the agent runs Monte Carlo tree search using the current learned model. The visit counts of that search yield an improved policy, and the backed-up returns yield improved value targets. The networks are then trained to match those search-improved targets, together with the observed rewards. Planning and learning therefore tighten each other: better models make search more informative, and better search supplies sharper training signals.

  3. One design across very different action spaces

    Board games such as Go, chess and shogi supply a single dense terminal outcome and perfect information; Atari supplies partial observability, long horizons and shaped rewards. MuZero uses the same three functions and the same search procedure in both regimes. The paper’s claim is not that every hyper-parameter is identical, but that the algorithmic skeleton—latent dynamics plus policy-value-reward prediction plus tree search—transfers without a hand-written rules engine.

The story

Model-based reinforcement learning has always carried an obvious promise and an equally obvious cost. If an agent can imagine future trajectories, it can plan. But building or learning a model accurate enough for long-horizon planning is hard. Small errors compound; a planner that trusts a bad model can be worse than one that never looks ahead. For decades, the practical successes of deep reinforcement learning therefore leaned heavily on model-free methods, while the most celebrated planning agents—AlphaGo and AlphaZero among them—relied on a perfect simulator of the rules.

MuZero, introduced by Schrittwieser and colleagues, attacks that split directly. It keeps tree-based planning, but it does not assume that the environment’s transition rules are known. Instead it learns a model whose only job is to support planning. The model is not asked to predict the next raw observation. It is asked to predict, at each imagined step, the quantities the search procedure will actually consume: a policy prior over actions, a value estimate, and a reward.

Concretely, the architecture factors into three learned pieces. A representation function maps a history of observations into an initial hidden state. A dynamics function, given a hidden state and an action, produces a next hidden state and a scalar reward. A prediction function, given a hidden state, produces a policy and a value. Monte Carlo tree search then unfolds entirely inside this latent space: each simulated edge applies the dynamics function; each node is evaluated by the prediction function. After search, the agent acts in the real environment according to the visit distribution at the root, observes the true next observation and reward, and stores the trajectory for training.

Training closes the loop. The network is updated so that its predicted rewards match the observed ones, its policy matches the search visit counts, and its values match the bootstrapped returns implied by search. The hidden state is never supervised toward reconstructing pixels or board geometry. It is free to keep only what helps the three planning heads.

The same skeleton is applied to Go, chess, shogi and Atari. In the board games the comparison is with AlphaZero-style planning that enjoys an exact rules engine; MuZero reaches comparable strength without that engine. In Atari the comparison is with strong model-free agents; MuZero is competitive while retaining the ability to plan. The result is not a claim that every environment is solved, but a demonstration that planning and a learned model can be coupled tightly enough to remove the requirement for known dynamics.

Why it mattered then

When MuZero appeared, deep RL was split in practice between model-free methods that scaled to raw sensory input and planning methods that needed an exact simulator. AlphaZero had shown how powerful MCTS plus a policy-value network could be, but only inside games whose rules could be coded by hand. MuZero mattered because it removed that dependency without abandoning search. It offered a single algorithmic story that could be told about both board games and Atari, and it reframed the purpose of a learned model: not faithful world reconstruction, but accurate support for the quantities a planner uses.

Why it matters now

Many deployed decision systems still lack a clean simulator—robotics, recommender stacks, operations research with messy transition noise. MuZero’s design remains a reference point for anyone who wants planning without a hand-written dynamics engine. The idea that a latent state need only be useful for reward, policy and value, rather than photorealistic prediction, continues to shape model-based RL, learned world models for control, and hybrid architectures that mix search with neural priors. It also remains a caution: if the model is only as good as the planning signal it was trained for, transferring that latent to a different objective is not free.

The surprising detail

MuZero can match planning agents that know the rules, yet its dynamics never have to answer “what would the board look like?”. The hidden state is under no obligation to be human-interpretable. Two states that look different to us may collapse to similar latents if they demand the same policy, value and reward predictions—and conversely, subtle differences that matter for search can be amplified even when they are visually small. The model is a calculator for planning, not a mirror.

What is disputed

The original paper reports strong aggregate results across Go, chess, shogi and Atari, but per-game sensitivity to search budget, replay settings and representation details is not exhaustively characterised here. Treat the unified-algorithm claim as demonstrated at the level of overall performance, not as identity of every hyper-parameter across domains.

Remember this

MuZero plans inside a latent model trained only to predict reward, policy and value—search without a rule book.

Test yourself

Why might MuZero’s learned dynamics succeed at supporting MCTS even if a decoder from hidden state back to raw observations would be inaccurate?

Go deeper

Image: Original diagram, The Daily Triptych. Licence: Original work. Source.

← Back to day 106