
EfficientZero
Reinforcement learning and control493 ops8.4M params
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
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}