A changing practice partner #
A novice chess player who always faces the same weak opponent can learn a narrow set of tricks. In self-play, the opponent can improve along with the learner. As useful strategies emerge, the system encounters them from both sides. The rules and game outcome provide a consistent way to judge the result, and every new game provides another sequence of positions on which to practice.
The AlphaGo Zero example #
In 2017, the AlphaGo Zero team described a Go system trained from self-play without examples of human moves. A neural network predicted move preferences and an expected game result. Tree search used these estimates to explore promising continuations. The outcomes of completed games and the move choices informed by search then supplied targets for further training. The design connected planning during a game with improvements that carried over into future games.
An algorithm can travel between games #
The AlphaZero team applied a common underlying approach to chess, shogi and Go. The experiments trained a system for each game under that game’s rules. This distinguishes two meanings of generality. A learning procedure can work across several settings even when a particular trained player specializes in one. Transfer to a new game without retraining would be a different experimental claim.
What carries over to AI research? #
Self-play illustrates a feedback loop that can generate training experience without waiting for a human to label every move. The board provides unusually favorable working conditions. Actions are defined, positions can be copied and the rules settle the outcome. A research proposal has no equivalent of checkmate. Evaluating whether a proposed discovery is true and valuable can require new experiments, independent review or months of observation. Those differences matter when using game-playing results as evidence for recursive improvement in broader domains.
Training against a population #
An opponent drawn only from the latest policy can leave gaps. Rock beats scissors, scissors beats paper, and paper beats rock. A training sequence that measures progress only against the preceding opponent might cycle through the three pure choices, each apparently successful against its predecessor. Measuring performance against a collection of past opponents would reveal the vulnerability.
The AlphaStar team used a league of agents while training for StarCraft II. Different agents provided opponents with different strategic pressures, including opponents seeking weaknesses in other members of the league. The study also used human game data, and its evaluation specified constraints on observations and actions. A report of grandmaster performance in that setting describes a particular trained system and evaluation. The population of sparring partners is one component of the method that can be examined independently from the final game rank.
Two training targets from a single board #
Suppose the player tries several continuations before choosing a move. Its search spends most of its trials on two plausible moves, and the game eventually ends in a loss. Which lesson should the player remember? AlphaGo Zero kept two records. The visits that Monte Carlo tree search assigned to each move supplied a target distribution for the policy. The final result, viewed from the side to play at that position, supplied the target for the value estimate. One lost game alone gives little basis for declaring every move along the way a mistake. Across many games, the two targets let the network learn both where to look and how favorable a position tends to be.
Testing against an unfamiliar opponent #
Wang and colleagues trained opponents specifically against the Go program KataGo. One such opponent won over 97 percent of its games against a tested configuration that ordinarily played at superhuman strength. Its success was highly specific to the opponent. This makes a second evaluation possible alongside tournament strength. Hold the trained player fixed, vary which opponents it encounters and check where its decisions break down. Performance against familiar sparring partners and resilience to unfamiliar strategies can improve at different rates.
Sources
- David Silver and colleagues, AlphaGo Zero: Starting from Scratch (2017) deepmind.google
- David Silver and colleagues, Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm (2017) arxiv.org
- Oriol Vinyals and colleagues, Grandmaster level in StarCraft II using multi-agent reinforcement learning (2019) doi.orgCited in
- David Silver and colleagues, Mastering the Game of Go without Human Knowledge (2017) nature.com
- Tony Tong Wang and colleagues, Adversarial Policies Beat Superhuman Go AIs (2023) proceedings.mlr.press