This article needs to be updated. (May 2022) |
| This article is part of the series on |
| Chess programming |
|---|
MuZero is a reinforcement learning algorithm developed by DeepMind that learns a model of an environment for planning without being given its rules or dynamics. It was introduced in a 2019 preliminary paper and described in a 2020 Nature paper. MuZero was evaluated on Go, chess, shogi, and Atari games, where it achieved performance comparable to or better than previous systems in the reported experiments.
MuZero was trained via self-play, with no access to rules, opening books, or endgame tablebases. The trained algorithm used the same convolutional and residual architecture as AlphaZero, but with 20 percent fewer computation steps per node in the search tree.
MuZero really is discovering for itself how to build a model and understand it just from first principles.
— David Silver, DeepMind, Wired
On November 19, 2019, the DeepMind team released a preprint introducing MuZero.
MuZero (MZ) is a combination of the high-performance planning of the AlphaZero (AZ) algorithm with approaches to model-free reinforcement learning. The combination allows for more efficient training in classical planning regimes, such as Go, while also handling domains with much more complex inputs at each stage, such as visual video games.
MuZero was derived directly from AZ code, sharing its rules for setting hyperparameters. Differences between the approaches include:
The previous state of the art technique for learning to play the suite of Atari games was R2D2, the Recurrent Replay Distributed DQN.
MuZero surpassed both R2D2's mean and median performance across the suite of games, though it did not do better in every game.
MuZero used 16 third-generation tensor processing units (TPUs) for training, and 1000 TPUs for selfplay for board games, with 800 simulations per step and 8 TPUs for training and 32 TPUs for selfplay for Atari games, with 50 simulations per step.
AlphaZero used 64 second-generation TPUs for training, and 5000 first-generation TPUs for selfplay. As TPU design has improved (third-generation chips are 2x as powerful individually as second-generation chips, with further advances in bandwidth and networking across chips in a pod), these are comparable training setups.
R2D2 was trained for 5 days through 2M training steps.
MuZero matched AlphaZero's performance in chess and shogi after roughly 1 million training steps. It matched AZ's performance in Go after 500,000 training steps and surpassed it by 1 million steps. It matched R2D2's mean and median performance across the Atari game suite after 500 thousand training steps and surpassed it by 1 million steps, though it never performed well on 6 games in the suite.
MuZero was viewed as a significant advancement over AlphaZero, and a generalizable step forward in unsupervised learning techniques. The work was seen as advancing understanding of how to compose systems from smaller components, a systems-level development more than a pure machine-learning development.
While only pseudocode was released by the development team, Werner Duvaud produced an open source implementation based on that.
MuZero has been used as a reference implementation in other work, for instance as a way to generate model-based behavior.
In late 2021, a more efficient variant of MuZero was proposed, named EfficientZero. It "achieves 194.3 percent mean human performance and 109.0 percent median performance on the Atari 100k benchmark with only two hours of real-time game experience".
In early 2022, a variant of MuZero was proposed to play stochastic games (for example 2048, backgammon), called Stochastic MuZero, which uses afterstate dynamics and chance codes to account for the stochastic nature of the environment when training the dynamics network.
In February 2022, DeepMind reported a first application of MuZero to a real-world task, collaborating with YouTube to improve video compression in the open-source VP9 codec. A version called MuZero-RC replaced VP9's default rate-control mechanism, selecting the quantisation parameter for each frame, and achieved an average 4% bitrate reduction across a diverse set of videos without quality degradation.