Mastering chess and shogi by self-play with a general reinforcement learning algorithm
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "arXiv — non-exclusive licence to distribute" does not allow redistributing the text itself. Original — arxiv.org/pdf/1712.01815
Summary
The paper asks whether a single learning method, given only the rules of a game, can reach top strength in several board games. The strongest chess and shogi engines rely on decades of expert-designed evaluation features and alpha-beta search tuned for each game. The authors present AlphaZero, a generalized form of AlphaGo Zero. It uses no human game records and no game-specific tuning. One deep neural network outputs move probabilities and an expected-outcome value, and the outcome can be a draw as well as a win or loss. These outputs guide a Monte-Carlo tree search (MCTS). The network starts from random weights and improves only by playing against itself, with continuous updates instead of AlphaGo Zero's best-player gating. The same hyper-parameters are used for chess, shogi and Go, and no symmetry augmentation is applied. Within hours of training, AlphaZero beat the champion programs Stockfish, Elmo and AlphaGo Zero. This suggests that general self-taught search can replace handcrafted domain engineering, even though it examines far fewer positions.
Key points
-
Training setup: each game was trained for 700,000 steps with mini-batches of 4,096. Self-play ran on 5,000 first-generation TPUs, and network training used 64 second-generation TPUs.
-
Speed of learning: AlphaZero surpassed Stockfish after about 4 hours (300k steps) and Elmo after under 2 hours (110k steps). It overtook AlphaGo Lee after about 8 hours (165k steps).
-
100-game matches at 1 minute per move:
Opponent Wins Draws Losses Stockfish (chess) 28 72 0 Elmo (shogi) 90 2 8 AlphaGo Zero, 3-day version (Go) 60 – 40 -
Search efficiency: AlphaZero evaluates about 80k positions per second in chess and 40k in shogi. Stockfish evaluates about 70M and Elmo about 35M. AlphaZero's MCTS also gained more from extra thinking time than the alpha-beta engines.
-
Chess openings: AlphaZero rediscovered the 12 most popular human openings during self-play. It beat Stockfish when starting from each of them.
Cited by
- Quiet-STaR: Language models can teach themselves to think before speaking
- ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematics
- Constitutional AI: Harmlessness from AI Feedback
- Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinking
- HyperTree Proof Search for Neural Theorem Proving
- Generative Language Modeling for Automated Theorem Proving
- Formal Mathematics Statement Curriculum Learning
- Green AI
- Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
Cite
@misc{anon2017mastering,
title = {{Mastering chess and shogi by self-play with a general reinforcement learning algorithm}},
year = {2017},
eprint = {1712.01815},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1712.01815}
}References
- Online chess games database, 365chess, 2017. URL: https://www.365chess.com/. ↗
- Victor Allis. Searching for Solutions in Games and Artificial Intelligence. PhD thesis, University of Limburg, Netherlands, 1994. find
- Thomas Anthony, Zheng Tian, and David Barber. Thinking fast and slow with deep learning and tree search. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pages 5366–5376, 2017. find
- Oleg Arenz. Monte Carlo chess. Master’s thesis, Technische Universitat Darmstadt, 2012. find
- Computer Shogi Association. Results of the 27th world computer shogi championship. http://www2.computer-shogi.org/wcsc27/index\_e.html. Retrieved November 29th, 2017. ↗
- J. Baxter, A. Tridgell, and L. Weaver. Learning to play chess using temporal differences. Machine Learning, 40(3):243–263, 2000. find
- Donald F. Beal and Martin C. Smith. Temporal difference learning for heuristic search and game playing. Inf. Sci., 122(1):3–21, 2000. find
- Donald F. Beal and Martin C. Smith. Temporal difference learning applied to game playing and the results of application to shogi. Theoretical Computer Science, 252(1–2):105–119, 2001. find
- M. Campbell, A. J. Hoane, and F. Hsu. Deep Blue. Artificial Intelligence, 134:57–83, 2002. find
- R. Coulom. Whole-history rating: A Bayesian rating system for players of time-varying strength. In International Conference on Computers and Games, pages 113–124, 2008. find
- Omid E David, Nathan S Netanyahu, and Lior Wolf. Deepchess: End-to-end deep neural network for automatic learning in chess. In International Conference on Artificial Neural Networks, pages 88–96. Springer, 2016. find
- Kunihito Hoki and Tomoyuki Kaneko. Large-scale optimization for evaluation functions with minimax search. Journal of Artificial Intelligence Research (JAIR), 49:527–568, 2014. find
- Feng-hsiung Hsu. Behind Deep Blue: Building the Computer that Defeated the World Chess Champion. Princeton University Press, 2002. find
- Hiroyuki Iida, Makoto Sakuta, and Jeff Rollason. Computer shogi. Artificial Intelligence, 134:121–144, 2002. find
- Norman P. Jouppi, Cliff Young, Nishant Patil, et al. In-datacenter performance analysis of a tensor processing unit. In Proceedings of the 44th Annual International Symposium on Computer Architecture, ISCA ’17, pages 1–12. ACM, 2017. find
- Tomoyuki Kaneko and Kunihito Hoki. Analysis of evaluation-function learning by comparison of sibling nodes. In Advances in Computer Games - 13th International Conference, ACG 2011, Tilburg, The Netherlands, November 20-22, 2011, Revised Selected Papers, pages 158–169, 2011. find
- John Knudsen. Essential Chess Quotations. iUniverse, 2000. find
- D. E. Knuth and R. W Moore. An analysis of alphabeta pruning. Artificial Intelligence, 6(4):293–326, 1975. find
- Matthew Lai. Giraffe: Using deep reinforcement learning to play chess. Master’s thesis, Imperial College London, 2015. find
- Emanuel Lasker. Common Sense in Chess. Dover Publications, 1965. find
- David N. L. Levy and Monty Newborn. How Computers Play Chess. Ishi Press, 2009. find
- Chris J. Maddison, Aja Huang, Ilya Sutskever, and David Silver. Move evaluation in Go using deep convolutional neural networks. In International Conference on Learning Representations, 2015. find
- Tony Marsland. Computer chess methods. In S. Shapiro, editor, Encyclopedia of Artificial Intelligence. John Wiley & sons, New York, 1987. find
- Raghuram Ramanujan, Ashish Sabharwal, and Bart Selman. Understanding sampling style adversarial search methods. In Proceedings of the 26th Conference on Uncertainty in Artificial Intelligence (UAI), 2010. find
- Tord Romstad, Marco Costalba, Joona Kiiski, et al. Stockfish: A strong open source chess engine. https://stockfishchess.org/. Retrieved November 29th, 2017. ↗
- A. L. Samuel. Some studies in machine learning using the game of checkers II - recent progress. IBM Journal of Research and Development, 11(6):601–617, 1967. find
- Claude E Shannon. Xxii. programming a computer for playing chess. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 41(314):256–275, 1950. find
- David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy Lillicrap, Madeleine Leach, Koray Kavukc… find
- David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy Lillicrap, Fan Hui, Laurent Sifre, George van den Driessche, Thore Graepel, and Demis Hassabis. Mastering the game of go withou… find
- Wilhelm Steinitz. The Modern Chess Instructor. Edition Olms AG, 1990. find
- Sebastian Thrun. Learning to play the game of chess. In Advances in neural information processing systems, pages 1069–1076, 1995. find
- J. Veness, D. Silver, A. Blair, and W. Uther. Bootstrapping from game tree search. In Advances in Neural Information Processing Systems, pages 1937–1945, 2009. Methods Anatomy of a Computer Chess Program find