Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model

  • Problem Tree search needs the game rules or an accurate simulator, which real environments often lack. Learned models have so far struggled to support strong planning in visually complex domains such as Atari.
  • Method MuZero learns a hidden-state model with representation, dynamics and prediction functions, plans with Monte-Carlo tree search over that model, and trains the model end-to-end on search policies, observed rewards and n-step value targets.
  • Results Reached a 731.1% median human normalized score on Atari with 200M frames per game in the MuZero Reanalyze variant, versus 192%, 231% and 431% for IMPALA, Rainbow and LASER. Matched a perfect simulator in Go at search times up to 10s, against about 0.1s during training.

Why planning needs a model that is learned

Lookahead search has produced superhuman play in games such as checkers, chess, Go and poker, and it has been applied to logistics and chemical synthesis. Those planners depend on knowing the environment's dynamics, through the game rules or an accurate simulator, which is rarely available in robotics, industrial control or assistant settings.

Model-based reinforcement learning addresses this by learning a model of the dynamics first and then planning against that learned model.

Earlier learned models were trained either to reconstruct the true environment state or the stream of full observations, and in visually rich domains such as Atari 2600 they stayed well behind the best model-free methods. Model-free methods, in turn, fall short where precise lookahead matters, as in chess and Go.

Predicting pixels is a poor target for planning, because much of the model's capacity goes to detail that does not affect decisions, and planning at pixel granularity does not scale to large problems. Value-equivalent models take a different route by requiring that cumulative reward through the learned model match the real environment, but the predictron learns this for value without actions.

Three learned functions and a hidden state

MuZero keeps the search and policy iteration structure of AlphaZero but drops the simulator that AlphaZero used to update game states, to list legal actions and to detect terminal states. In their place a single learned model is queried inside the search tree, and its internal state is a hidden state rather than a true environment state.

For Go, shogi and chess the input covers the most recent board positions, and for Atari it covers the last 32 RGB frames at 96x96 together with the last 32 actions.

The dynamics function \(g_\theta\) is recurrent: given a hidden state and a hypothetical action, it returns an immediate reward and the next hidden state. The hidden state carries no required meaning as environment state, and its only role is to predict future rewards, policies and values. In this paper the dynamics function is deterministic.

The prediction function \(f_\theta\) reads a hidden state and outputs a policy and a value, in the same spirit as the joint policy and value network of AlphaZero.

Search and the training targets

At each real time step the Monte-Carlo tree search runs over hypothetical actions inside the learned model, using the policy, value and reward estimates produced at each internal node. The search outputs a policy and an estimated value, and the real action is sampled from the search policy.

During selection, each edge score adds a value term to a prior term, where the prior is scaled by the square root of the parent's total visit count divided by one plus the edge's own visit count, and the scale factor is \(c_1\) plus a logarithmic term controlled by \(c_2\). The experiments set \(c_1 = 1.25\) and \(c_2 = 19652\). Because values in Atari are not bounded to the unit interval, each edge value is rescaled by the smallest and largest Q observed so far in the tree before it enters the selection rule.

A simulation reaching a leaf calls the dynamics function once and the prediction function once, so the cost per simulation stays close to that of AlphaZero. The new node's edges start with zero visit counts and zero value, with the prior taken from the prediction function. After a simulation, the discounted return is bootstrapped from the value estimate at the leaf, and each edge's mean value is updated with a running average over visits.

Training unrolls the model for \(K = 5\) hypothetical steps from sampled positions, and the policy target at each step is the search policy from the replay trajectory. The value target is an n-step return that bootstraps from the stored search value, and in board games the final outcome is used as the reward at the end of the episode. The total loss sums reward, value and policy losses over the unrolled steps, plus an L2 regularization term.

Board game results against AlphaZero

Strength in the board games is reported as an Elo rating estimated from tournaments in which each MuZero iterate plays against baseline players using 800 simulations per move. The baselines are AlphaZero for Go and chess and the Stockfish and Elmo players for the other games. The abstract reports that MuZero matched the superhuman performance of AlphaZero in Go, chess and shogi without the game rules.

In Go, MuZero slightly exceeded AlphaZero while using 16 residual blocks per evaluation, against 20 blocks in AlphaZero. The authors suggest that MuZero may cache computation in the search tree and gain a deeper reading of each position from each extra application of the dynamics model.

Atari results and the Reanalyze variant

Atari runs use 50 simulations for each search, a search every fourth time step, and the chosen action repeated four times. Per game the human normalized score is the agent's score minus the random score, divided by the human score minus the random score.

MuZero reached a new state of the art on both the mean and the median across the 57 games and beat R2D2 in 42 of 57 games.

With 200 million frames of experience per game, MuZero Reanalyze reaches a 731.1% median normalized score, compared with 192%, 231% and 431% for the model-free IMPALA, Rainbow and LASER. The main MuZero entry in Table 1 uses a larger data budget, with 20.0B environment frames and a 2041.1% median, and the table separates large-data and small-data agents.

Reanalyze re-runs the search on past time steps with the latest parameters, and the resulting policy serves as the target for 80% of updates. A target network provides a more stable n-step bootstrap for the value, with 2.0 samples per state instead of 0.1, a value weight of 0.25 instead of 1.0, and n equal to 5 instead of 10.

Does search with the learned model scale?

Figure 3 gives the planning scaling results in Go, Atari and Ms. Pacman, and the Go and Atari panels use the search budgets described here.

In Go, the fully trained AlphaZero with a perfect model and the fully trained MuZero were compared as thinking time increased. MuZero matched the perfect model even with searches up to 10s of thinking time, while training used searches of around 0.1s. Training used 800 simulations per search, which corresponds to about 0.1 seconds per search.

In Atari, MuZero improved with more simulations up to about 100 per search, then plateaued, although the network was trained with 50 simulations per search. With a single simulation, which selects moves from the raw policy network alone, MuZero still performed well. The authors presume the weaker scaling in Atari compared with Go reflects greater model inaccuracy in Atari.

Search-based training against Q-learning and fewer simulations

The MCTS training objective was replaced with a Q-learning objective, following R2D2, and the dual value and policy heads were merged into a single Q head that was trained without search. This Q-learning variant reached the same final score as R2D2 on Ms. Pacman, but it learned more slowly and ended at a much lower final performance than MCTS-based training.

Training with only 6 simulations per move, which is fewer than the number of actions, still produced an effective policy that improved quickly on Ms. Pacman. More simulations per move led to clearly higher performance, and Ms. Pacman has 8 possible actions. This contrasts with earlier work the authors cite, in which a few simulations were not enough.

Limitations

The dynamics function is deterministic in this work, and stochastic transitions are left for future work.

The Go scaling comparison uses only the perfect simulator as a reference, and does not test the learned model against other baselines.

Paper info

Authors
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy Lillicrap, David Silver
Venue
arXiv · Preprint
First published
2019-11-19
Added
2026-10-20
Updated
2020-2-21
Version
v2
arXiv
1911.08265
DOI
10.1038/s41586-020-03051-4
Category
cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy Lillicrap, David Silver (2019). Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model. arXiv:1911.08265v2. https://doi.org/10.1038/s41586-020-03051-4

BibTeX
@article{schrittwieser2019mastering,
  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 = {2019},
  eprint = {1911.08265},
  archivePrefix = {arXiv},
  doi = {10.1038/s41586-020-03051-4},
  url = {https://arxiv.org/abs/1911.08265v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up