Self-play is a technique for improving the performance ofreinforcement learning agents. Intuitively, agents learn to improve their performance by playing "against themselves".
Inmulti-agent reinforcement learning experiments, researchers try to optimize the performance of a learning agent on a given task, in cooperation or competition with one or more agents. These agents learn by trial-and-error, and researchers may choose to have the learning algorithm play the role of two or more of the different agents. When successfully executed, this technique has a double advantage:
It provides a straightforward way to determine the actions of the other agents, resulting in a meaningful challenge.
It increases the amount of experience that can be used to improve the policy, by a factor of two or more, since the viewpoints of each of the different agents can be used for learning.
Czarnecki et al[1] argue that most of the games that people play for fun are "Games of Skill", meaning games whose space of all possible strategies looks like a spinning top. In more detail, we can partition the space of strategies into sets, such that any, the strategy beats the strategy. Then, in population-based self-play, if the population is larger than, then the algorithm would converge to the best possible strategy.
Self-play is used by theAlphaZero program to improve its performance in the games ofchess,shogi andgo.[2]
Self-play is also used to train the Cicero AI system to outperform humans at the game ofDiplomacy. The technique is also used in training the DeepNash system to play the gameStratego.[3][4]
^Czarnecki, Wojciech M.; Gidel, Gauthier; Tracey, Brendan; Tuyls, Karl; Omidshafiei, Shayegan; Balduzzi, David; Jaderberg, Max (2020)."Real World Games Look Like Spinning Tops".Advances in Neural Information Processing Systems.33. Curran Associates, Inc.:17443–17454.arXiv:2004.09468.
^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 (5 December 2017). "Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm".arXiv:1712.01815 [cs.AI].