Accelerating and Improving AlphaZero Using Population Based Training

Ti-Rong Wu, Ting-Han Wei, I-Chen Wu

Introduction

Training AlphaZero-style agents is notoriously expensive, often requiring massive compute clusters and tedious manual hyperparameter tuning. This research introduces a method to integrate Population Based Training (PBT) into the AlphaZero pipeline, allowing the system to automatically discover optimal hyperparameters—such as learning rate and loss weighting—on the fly. The result is a more efficient training process that achieves significantly higher win rates, reaching up to 74% against the state-of-the-art ELF OpenGo within a single training run.

The AlphaZero Bottleneck

The AlphaZero algorithm revolutionized AI for games like Go, Chess, and Shogi by learning entirely through self-play. However, it suffers from two major "hidden" costs:

  1. Compute Intensity: Generating millions of self-play games requires thousands of GPUs or TPUs.
  2. Hyperparameter Sensitivity: Performance depends heavily on variables like the learning rate or the balance between policy and value losses. Finding the "right" settings usually requires running multiple full training sessions (grid search), which multiplies the already astronomical compute costs.

The authors aim to eliminate the need for offline hyperparameter tuning by making the training process "self-tuning" through a population-based approach.

Population Based Training for Self-Tuning

The authors adapt Population Based Training (PBT), a technique originally developed by DeepMind, to the AlphaZero framework. Instead of training one agent, they train a population of $P=16$ agents simultaneously.

The Exploit & Explore Cycle

  • Self-Play Diversity: In each iteration, agents are paired up to play against each other. This increases the diversity of the generated game data compared to an agent only playing against itself.
  • Exploit: Periodically, the agents undergo a "round-robin" tournament. The bottom-performing 20% of the population is replaced by the top 20%. The weaker agents "inherit" the neural network weights and hyperparameters of the stronger ones.
  • Explore: The inherited hyperparameters are then "perturbed" (multiplied by 0.8 or 1.2) to search for even better settings.

Crucially, while they train 16 agents, the most expensive part—generating self-play records—is kept at a constant volume relative to standard AlphaZero. The extra cost is shifted to the optimization and evaluation phases, which are computationally much cheaper than self-play.

Dynamic Hyperparameter Discovery

PBT discovered hyperparameter schedules that look remarkably like the hand-tuned schedules used by experts. For instance, it automatically found a schedule with a high learning rate early in training that decayed over time.

Figure 5: The evolution of the learning rate across the population over 200 iterations, showing an automatic discovery of a decay schedule.

Beyond the learning rate, the value loss ratio (the weight given to predicting the game winner vs. predicting the next move) turned out to be a critical parameter. PBT found that increasing the weight of the value loss during certain phases of training significantly accelerated progress. The authors observed that the learning rate and value loss ratio seem to "hand off" to each other; when one stabilizes, PBT often begins aggressively tuning the other.

Performance Results

The researchers evaluated their method using the game of Go on two scales: 9x9 and 19x19.

Superiority over Baselines

In 9x9 Go, the PBT-tuned agent consistently outperformed eight different baseline agents, each of which used a different fixed hyperparameter configuration.

Figure 3: Win rate of the PBT agent against eight different fixed-hyperparameter baselines. The PBT agent maintains a high win rate across the board.

Dominating ELF OpenGo

In 19x19 Go, the PBT agent achieved a 74% win rate against ELF OpenGo v2, a world-class open-source AlphaZero implementation. For context, a non-PBT version of the same agent only achieved a 47% win rate under the same conditions. One of the most impressive findings was that PBT could take an agent that had "plateaued" and push it to a new level of strength by discovering better parameter configurations.

Conclusion

By integrating PBT, the authors have transformed AlphaZero into a self-tuning system. This method achieves superior performance in a single run, avoiding the need for the dozens of runs typically required for a comprehensive offline hyperparameter sweep. While training 16 models in parallel increases optimization costs, this is a small fraction of the total budget compared to self-play generation, making it a highly efficient path toward stronger game-playing AI.

Summary updated

BibTeX
@inproceedings{wu2020accelerating,
  author = {Ti-Rong Wu and Ting-Han Wei and I-Chen Wu},
  title = {{Accelerating and Improving AlphaZero Using Population Based Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i01.5454},
}
Figure