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 Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm

  • Problem Strong chess and shogi programs rely on hand-built evaluation functions and alpha-beta search, and that engineering does not carry over to other games.
  • Method AlphaZero trains one neural network from random parameters by self-play, uses it to guide Monte-Carlo tree search, and is given only the game rules.
  • Results Outperformed Stockfish in chess after 4 hours of training (300k steps).

Why hand-built engines set the bar

Computer chess has been a benchmark for AI for decades, and the strongest engines reach superhuman play through long engineering effort. Those engines combine position features written by strong human players, weights tuned by hand, and a high-performance alpha-beta search loaded with domain-specific heuristics. Such systems are tuned to one domain, so moving them to a new problem costs substantial human work.

The aim here is one algorithm that starts from random play and knows only the game rules, yet reaches superhuman play in chess, shogi and Go. AlphaGo Zero had already shown this kind of learning for Go, using deep convolutional networks trained only by self-play.

How the rules of each game fit a convolutional network

Go's rules are translationally invariant, which matches the weight sharing of a convolutional network. Liberties are defined through adjacency between points, which matches the local structure of convolution, and the rules are rotationally and reflectionally symmetric, which permits data augmentation and ensembling. The action space is simple, since a stone may go on any point, and outcomes are binary wins or losses, which may help neural network training.

Chess and shogi do not share this fit. Their rules depend on position, are asymmetric, and include long-range moves such as a queen crossing the whole board in one move. Chess's action space covers every legal destination for every piece, and in shogi captured pieces can also be placed back on the board. Both games can end in a draw as well as a win or a loss.

How the network and search fit together

The network takes a board position s and returns move probabilities p, with components \( p_a = \Pr(a \mid s) \), and a scalar value v, written as \( (p, v) = f_\theta(s) \). The value v estimates the expected outcome z from s, so \( v \approx \mathbb{E}[z \mid s] \). Both outputs are learned purely from self-play and then steer the search.

Instead of alpha-beta search with hand-made enhancements, AlphaZero runs a general Monte-Carlo tree search. Each simulation walks from the root to a leaf, and at each state it picks a move with a low visit count, a high move probability from the network and a high average value over the leaf states reached through that move. The search returns \( \pi \), a distribution over moves at the root, which is either proportional to visit counts or chosen greedily.

Training minimises the loss \[ l = (z - v)^2 - \boldsymbol{\pi}^{\top} \log p + c\,\lVert \theta \rVert^2 \] where the first term is a squared error on the value, the second is a cross-entropy that pulls the policy p towards the search distribution, and c sets the L2 weight regularisation. The parameters θ are updated by gradient descent, and the updated network is used in later self-play games.

Changes from the AlphaGo Zero training loop

AlphaZero's target is the expected outcome, so draws and other results enter training directly, whereas AlphaGo Zero estimated the probability of winning under binary outcomes.

AlphaGo Zero used the eight symmetries of Go to augment each training position, and randomly rotated or reflected boards during search. Chess and shogi have no such symmetry, so AlphaZero does not augment its data and does not transform boards during search.

AlphaGo Zero replaced its best player only when a new player won by a margin of 55%, and generated self-play games from that best player. AlphaZero keeps one network that is updated continually, and self-play always uses the latest parameters without an evaluation step.

AlphaGo Zero tuned its search hyper-parameters by Bayesian optimisation, whereas AlphaZero reuses one set across all three games. The one exception is the exploration noise added to the prior policy, which is scaled to the typical number of legal moves in each game. Board inputs are spatial planes built from the basic rules of each game, and actions are encoded by spatial planes or a flat vector, again from the rules.

Training progress on the Elo scale

Each game gets its own AlphaZero instance, trained for 700,000 steps from randomly initialised parameters. Mini-batches were of size 4,096, self-play used 5,000 first-generation TPUs, and the networks were trained on 64 second-generation TPUs.

Figure 1 tracks progress against training steps on the Elo scale, with ratings computed from games given one second per move. The chess panel is compared with Stockfish, the shogi panel with Elmo, and the Go panel with AlphaGo Lee and with AlphaGo Zero (20 block / 3 day).

In chess, AlphaZero passed Stockfish after 4 hours, at 300k steps. In shogi, it passed Elmo in less than 2 hours, at 110k steps, and in Go it passed AlphaGo Lee after 8 hours, at 165k steps. The three crossings occur at different step counts, so the games are not compared at one shared training budget.

Head-to-head results against each baseline

Fully trained instances played 100-game matches at one minute per move, against Stockfish in chess, Elmo in shogi and the three-day AlphaGo Zero in Go. Stockfish and Elmo ran at their strongest skill level with 64 threads and a hash size of 1GB, while AlphaZero ran on a single machine with 4 TPUs.

In chess, AlphaZero scored 25 wins and 25 draws with no losses when it had the white pieces against Stockfish. With the black pieces it scored 3 wins, 47 draws and no losses.

In shogi against Elmo, AlphaZero won 43, drew 2 and lost 5 as white, and won 47, drew none and lost 3 as black. In Go against the three-day AlphaGo Zero, it won 31 and lost 19 as white, and won 29 and lost 21 as black, with no draws listed.

Across these matches AlphaZero lost no games to Stockfish and eight games to Elmo. The authors describe the results as a convincing win over every opponent, including the previous AlphaGo Zero.

Search throughput and scaling with thinking time

AlphaZero searches 80 thousand positions per second in chess and 40 thousand in shogi, while Stockfish searches 70 million and Elmo 35 million. The gap in raw evaluations is offset by using the network to focus on the most promising variations. The authors describe this selective search as more human-like, linking it to Shannon's original proposal.

Figure 2 plots Elo against thinking time per move, measured relative to Stockfish or Elmo at 40ms thinking time. Measured on the Elo scale, AlphaZero's MCTS improves faster as thinking time grows than either Stockfish or Elmo. The authors argue this challenges the common view that alpha-beta search is inherently better in these domains.

The same algorithm, used unchanged on shogi, is said to surpass the leading shogi program within a few hours. Chess play in that setting uses no domain knowledge beyond the rules, and the search covers a thousand times fewer positions than the leading engines.

Results from common human openings

Each opening is labelled with its ECO code and common name, and the authors report that AlphaZero independently discovers and plays each one often during self-play training.

From each opening, 100-game matches against Stockfish were played as white and as black, from AlphaZero's perspective. Over all openings, AlphaZero recorded 242 wins, 353 draws and 5 losses as white, and 48 wins, 533 draws and 19 losses as black. The overall percentages in win/draw/loss order are 40.3/58.8/0.8 as white and 8.0/88.8/3.2 as black.

The authors take these results as evidence that AlphaZero has mastered a wide spectrum of chess play.

Limits of the reported evidence

The match results use 100-game matches at one minute per move, while the Elo training curves use one second per move. Shogi is compared only with Elmo, and Go is compared with the three-day AlphaGo Zero rather than a longer-trained version. The authors did not repeat the longer training that AlphaGo Master and AlphaGo Zero received, which was 100 times this length.

The authors note that the prevalence of draws in high-level chess compresses the Elo scale compared with shogi or Go. Elo differences are therefore harder to compare directly across the three games.

Paper info

Authors
Silver, David, Hubert, Thomas, Schrittwieser, Julian, Antonoglou, Ioannis, Lai, Matthew, Guez, Arthur, Lanctot, Marc, Sifre, Laurent, Kumaran, Dharshan, Graepel, Thore, Lillicrap, Timothy, Simonyan, Karen, Hassabis, Demis
Venue
arXiv · Preprint
First published
2017-12-5
Added
2026-10-20
Updated
2017-12-5
Version
v1
arXiv
1712.01815
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

Silver, David, Hubert, Thomas, Schrittwieser, Julian, Antonoglou, Ioannis, Lai, Matthew, Guez, Arthur, Lanctot, Marc, Sifre, Laurent, Kumaran, Dharshan, Graepel, Thore, Lillicrap, Timothy, Simonyan, Karen, Hassabis, Demis (2017). Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm. arXiv:1712.01815v1. https://arxiv.org/abs/1712.01815v1

BibTeX
@misc{david2017mastering,
  title = {{Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm}},
  author = {Silver, David and Hubert, Thomas and Schrittwieser, Julian and Antonoglou, Ioannis and Lai, Matthew and Guez, Arthur and Lanctot, Marc and Sifre, Laurent and Kumaran, Dharshan and Graepel, Thore and Lillicrap, Timothy and Simonyan, Karen and Hassabis, Demis},
  year = {2017},
  eprint = {1712.01815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.01815v1}
}

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