Self-play
Self-play is a training method in which an AI system improves by competing against copies or earlier versions of itself, generating its own training data as it goes.
To get better at a game you need opponents of roughly your own strength. Self-play supplies them automatically: the system plays against itself. Every game produces a record of moves and a result, which becomes training data, and as the system improves so does its opponent. No human games or expert labels are needed, only the rules and a way to tell who won. It is usually combined with reinforcement learning, with the game's outcome as the reward.
An early success was TD-Gammon, built by Gerald Tesauro at IBM's Thomas J. Watson Research Center in the early 1990s. It trained a neural network on backgammon by playing against itself, and version 2.1, trained in 1993 on 1.5 million self-play games, played just below the level of the best human players. Its unconventional assessments of some opening moves were accepted and adopted by expert players.
The best-known example is DeepMind's AlphaGo Zero. Announced in October 2017 and published in Nature, it started from random play with no human games and learned purely by playing itself. After three days it beat the version of AlphaGo that had defeated world champion Lee Sedol by 100 games to 0; after 40 days it surpassed the stronger Master version. A December 2017 follow-up, AlphaZero, applied one general self-play algorithm to chess, shogi and Go, reached superhuman play in each within 24 hours and beat a world-champion program in all three.
Self-play works best where the rules are fixed, the game can be simulated quickly and cheaply, and the result is unambiguous. Those conditions rarely hold in the real world, which is why self-play's biggest successes are in games. Its appeal is that the system generates its own training data and is never limited by the skill of the human players it could learn from; its limit is that it can only become as good as the rules and the scoring allow it to measure.
AlphaGo Zero began with a neural network that knew nothing about Go beyond the rules and played game after game against itself. After each round the network was trained to predict the moves and winners from those games, combined with a search algorithm, and the stronger version became the new opponent. DeepMind reported it beat its human-data-trained predecessor 100 games to 0 after three days. No. Self-play is a way of generating opponents and experience; reinforcement learning is the method that learns from the rewards that experience produces. They are often used together, as in TD-Gammon and AlphaGo Zero, but self-play can also feed other kinds of training. Not necessarily. AlphaGo Zero used no human games at all, and AlphaZero was given only the rules of chess, shogi and Go before teaching itself through self-play. Humans still design the system, the rules it plays by and the reward, usually simply whether it won. Games provide fixed rules, cheap simulation and a clear winner, so a system can play millions of games and always know which ones it won. Because its opponent is itself, the difficulty rises automatically as it improves. Real-world tasks rarely offer all three conditions.Common questions
How did AlphaGo Zero learn by self-play?
Is self-play the same as reinforcement learning?
Does self-play need any human data?
Why does self-play work so well for games?
Search for "self-play reinforcement learning", "AlphaGo Zero", "AlphaZero" or "TD-Gammon" to see how the method developed. The most reliable sources are the original papers, including DeepMind's in Nature and on arXiv, and the labs' own research posts. When reading claims about self-play outside games, check how results are scored and whether the gains hold on independent tests.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.