Search-contempt: a hybrid MCTS algorithm for training AlphaZero-like engines with better computational efficiency
Ameya Joshi
TL;DR
This work introduces search-contempt, a hybrid asymmetric MCTS that blends PUCT with Thompson Sampling via a new control parameter $N_{scl}$. By freezing the visit distribution after $N_{scl}$ visits on the opponent's turns and switching to sampling, the method biases self-play toward more challenging, information-rich positions, improving training data quality and learning efficiency. Empirical results show substantial strength gains in Odds Chess and a significant reduction in compute requirements for AlphaZero-like training, with $N_{scl}$—notably around 5—providing an effective balance between exploration and strength. The approach enables training from zero on consumer hardware by delivering higher-quality self-play data with far fewer games, while also offering a mechanism to generate diverse, puzzle-like positions that challenge neural networks and potentially improve robustness to adversarial strategies.
Abstract
AlphaZero in 2017 was able to master chess and other games without human knowledge by playing millions of games against itself (self-play), with a computation budget running in the tens of millions of dollars. It used a variant of the Monte Carlo Tree Search (MCTS) algorithm, known as PUCT. This paper introduces search-contempt, a novel hybrid variant of the MCTS algorithm that fundamentally alters the distribution of positions generated in self-play, preferring more challenging positions. In addition, search-contempt has been shown to give a big boost in strength for engines in Odds Chess (where one side receives an unfavorable position from the start). More significantly, it opens up the possibility of training a self-play based engine, in a much more computationally efficient manner with the number of training games running into hundreds of thousands, costing tens of thousands of dollars (instead of tens of millions of training games costing millions of dollars required by AlphaZero). This means that it may finally be possible to train such a program from zero on a standard consumer GPU even with a very limited compute, cost, or time budget.
