papers / alphazero2017
Next task →
Research Papers/Deep RL and RLHF/Mastering chess and shogi by self-play with a general reinforcement learning algorithm
Deep RL and RLHF · #11 · seminal

Mastering chess and shogi by self-play with a general reinforcement learning algorithm

David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang et al. · 2017 · arXiv (published in Science, 2018)
reproduction difficulty: very_highReinforcement LearningPlanningGames

1. Research problem

AlphaGo still depended on human expert games and separate policy and value networks, and it was unclear whether self-play alone could reach expert level.

2. Motivation

The authors wanted a single tabula rasa algorithm that learns from nothing but the rules of the game.

3. Previous approaches

AlphaGo used human game records for supervised policy pretraining; earlier self-play methods had not matched it in Go.

4. Core contribution

Introduced AlphaZero, which trains one network with policy and value heads purely by self-play reinforcement learning and uses MCTS both for data generation and decision making.

5. Mathematical formulation

Network f_theta(s) outputs move probabilities p and value v; MCTS improves the policy pi; the network is trained to minimize (v - z)^2 - pi^T log p using self-play outcomes z.

6. Methodology

Iterate self-play games guided by MCTS, add search statistics to the replay buffer, and train the shared network by stochastic gradient descent.

7. Architecture

A single residual convolutional network with policy and value heads, shared across games.

8. Experimental setup

Go, chess, and shogi, defeating leading programs including Stockfish and AlphaGo itself after short training.

9. Datasets

Self-play games generated by the algorithm; no human game data.

10. Results

Achieved superhuman performance in all three games from random initialization, showing that self-play plus search can replace human knowledge.

11. Limitations

Requires the exact rules and a perfect simulator; extremely compute-intensive; does not transfer to domains without clear win conditions.

12. Critical analysis

A striking demonstration of self-play and search but heavily dependent on a known simulator, a limitation MuZero later addressed.

13. Implementation tasks

  • 1.Implement self-play with MCTS and a shared policy/value network on a small board game.
  • 2.Verify training from random initialization without human data.
  • 3.Ablate the number of MCTS simulations per move.

14. Follow-up work

  • 1.Mastering the game of Go with deep neural networks and tree search (Silver et al., 2016)
  • 2.Mastering Atari, Go, chess and shogi by planning with a learned model (Schrittwieser et al., 2019)

15. Open research questions

  • 1.Can tabula rasa self-play work without a perfect simulator?
  • 2.How much search is necessary at training versus inference time?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.