All models

mu_zero_dynamics

Planning network that learns a latent model predicting reward, policy and value, so tree search needs no rules.

Reinforcement learning and control · 145 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
MuZero
Parameters
73.5M
Operations
145
Framework
PyTorch
Recurrent
No
Published
Nature (arXiv 2019)
Cited by
1,204 (as of 17 October 2026)
Authors
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert and others
License
GPL-3.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7515
Graph hash
a0cd0c63eda9755a39bfacdae531a8520e38219e2cdd8658098f449ae5cfeb11
Skeleton hash
4ca6684e340c67aa52c4c3b841f88e94f23149ddefc295d91c7d3eabf71d10ea
Architecture hash
47f9a6604fc7331e34d60973915ed68105477d7886d45813dacac70e084d6086
Diagram SHA-256
a58874cb2d66a16f7d6e57b8e9be09d5034d325c206b4a9e5b348140a3ba839f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Only the dynamics function of the muzero-general residual network, traced on its own.

About this model's family

MuZero plans with a model it learns itself: a tree-based search over a learned model, with no knowledge of the environment's underlying dynamics. The model predicts only the quantities that matter for planning: the reward, the action-selection policy and the value function. On 57 Atari games, where model-based planning had historically struggled, it set a new state of the art. On Go, chess and shogi it matched the superhuman AlphaZero without being told the rules that AlphaZero was given.

The network is three functions: a representation function, a dynamics function and a prediction function. The representation function turns an observation such as a Go board or an Atari screen into a hidden state. The dynamics function is a recurrent process that takes the previous hidden state and a hypothetical action and returns an immediate reward and the next hidden state. That hidden state has no semantics of environment state attached; its sole purpose is to predict future policies, values and rewards. The prediction function reads policy and value from a hidden state, akin to AlphaZero's joint policy and value network. In the paper the representation function keeps AlphaZero's convolutional residual architecture but with 16 residual blocks instead of 20. The dynamics function shares that architecture, the prediction function keeps AlphaZero's, and every network uses 256 hidden planes.

The MuZero rows traced here come from muzero-general, a PyTorch reimplementation with both a residual network and a fully connected network, captured whole and as the three component networks. EfficientZero, the other member, is built on MuZero with three critical changes aimed at sample efficiency. The first uses self-supervised learning to make the environment model temporally consistent. The second learns the value prefix end to end, which eases the compounding error in the model. The network that does that is an LSTM. The third uses the learned model to correct off-policy value targets. With only two hours of real-time game experience it reaches 194.3% mean human performance on the Atari 100k benchmark.

Key idea. A learned model split into representation, dynamics and prediction functions and trained end to end only to predict reward, policy and value, so tree search can plan in environments whose rules it is never given.

  • muzero
  • efficientzero
  • muzero-general
  • model-based reinforcement learning
  • monte carlo tree search
  • mcts
  • atari
  • go
  • chess
  • shogi
  • alphazero successor
  • learned model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{schrittwieser2020masteringatarigochess,
      title={Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model}, 
      author={Julian Schrittwieser and Ioannis Antonoglou and Thomas Hubert and Karen Simonyan and Laurent Sifre and Simon Schmitt and Arthur Guez and Edward Lockhart and Demis Hassabis and Thore Graepel and Timothy Lillicrap and David Silver},
      year={2020},
      eprint={1911.08265},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1038/s41586-020-03051-4},
      url={https://arxiv.org/abs/1911.08265}, 
}