Bayesian Optimization in AlphaGo

Yutian Chen, Aja Huang, Ziyu Wang, Ioannis Antonoglou, Julian Schrittwieser, David Silver, Nando de FreitasarXiv 2018

Abstract

While AlphaGo’s success is often attributed to deep reinforcement learning, this paper reveals that Bayesian Optimization (BO) was the essential tool used to fine-tune its complex game-playing hyperparameters. By automating the tuning of Monte Carlo Tree Search (MCTS) constants and time-management formulas, the team boosted AlphaGo’s win rate from 50% to 66.5% prior to the Lee Sedol match—an improvement that would have been nearly impossible with manual tuning.

Introduction

Tuning a system as complex as AlphaGo presents a "black-box" optimization challenge. There is no analytical formula to determine how changing a search threshold or a "temperature" setting will affect the final win rate. Traditional methods like grid search or manual "hand-tuning" are impractical due to the extreme cost of evaluations; a single high-quality game can take 20 minutes. A simple grid search for six hyperparameters would have required over eight days of continuous computing on 400 GPUs. Furthermore, many parameters are correlated, making manual one-by-one tuning ineffective at finding global optima.

Methods

The researchers implemented Bayesian Optimization as a routine service to navigate this high-stakes parameter space efficiently.

Surrogate Modeling and Acquisition

The team utilized Gaussian Processes (GPs) to create a probabilistic surrogate model of the win-rate function. This model predicts performance at untested parameter settings while quantifying uncertainty. To decide which parameter set to test next, they employed the Expected Improvement (EI) acquisition function, which balances "exploitation" of promising areas with "exploration" of uncertain regions.

Gaussian Process surrogate model at step t=2, showing the mean prediction (blue line) and uncertainty (shaded area) relative to the true function (dashed red).
The corresponding Expected Improvement (EI) acquisition function at t=2. The red triangle indicates the maximum, which determines the next point for evaluation.

Handling Noise and Correlation

Since win rates are derived from noisy Bernoulli trials (win/loss), the team used a non-stationary Gaussian observation noise model, estimating noise levels based on the number of games played ($N=50$) and the Central Limit Theorem. Additionally, they developed visualization tools to identify highly correlated parameters. When a "diagonal ridge" was found in the data, they reparameterized the formulas to "decorrelate" variables, simplifying the optimization task for the GP.

Key Insights

  • Shift in Strategy: BO revealed that as AlphaGo evolved, the optimal mixing ratio shifted from "fast roll-outs" toward "value network" evaluations. This insight eventually led to the abandonment of roll-outs in AlphaGo Zero.
  • Surpassing Human Intuition: Parameters discovered by BO were often significantly different from those chosen by human experts, reaching regions of the parameter space that manual tuning would never have explored.
  • Critical Phase Optimization: Visualization showed that the win rate was most sensitive to parameter changes around move 150. Consequently, time-control formulas were optimized to peak at this critical juncture.

Results

Tuning MCTS parameters alone resulted in Elo gains of approximately 100 in multiple iterations. Prior to the match against Lee Sedol, BO-tuned hyperparameters improved AlphaGo’s win rate from 50% to 66.5% against its own untuned baseline. Furthermore, tuning the "fast" players used for data generation resulted in massive Elo gains (129 to 300), significantly enhancing the quality of training data for the policy and value networks. Finally, BO allowed for rapid adaptation when AlphaGo migrated from GPUs to TPUs, yielding further performance improvements.

Conclusion

Bayesian Optimization proved to be a critical component in AlphaGo's development, providing a systematic and efficient way to optimize high-dimensional, noisy, and expensive-to-evaluate functions. While computational overhead and scaling to very high dimensions remain challenges, the success of BO in AlphaGo demonstrates its power in fine-tuning state-of-the-art AI systems.

Summary updated

BibTeX
@misc{chen2018bayesian,
  author = {Yutian Chen and Aja Huang and Ziyu Wang and Ioannis Antonoglou and Julian Schrittwieser and David Silver and Nando de Freitas},
  title = {{Bayesian Optimization in AlphaGo}},
  year = {2018},
  eprint = {1812.06855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.06855},
}
Figure