Automatically Reinforcing a Game AI

David Lupien St-Pierre, Jean-Baptiste Hoock, Jialin Liu, Fabien Teytaud, Olivier TeytaudarXiv 2016

TL;DR

This paper explores how to improve game-playing AI (GPPs) by creating "portfolios" of existing programs. They show that by intelligently combining different versions of a GPP (e.g., with different random seeds or parameters), you can achieve stronger performance without needing to develop entirely new AI from scratch. This approach is particularly effective for creating more robust AIs that can better handle adaptive opponents.

What Problem Does This Paper Address?

Developing high-performing AI for complex games like Go or Chess is a significant challenge. Even with sophisticated algorithms, there's often room for improvement. This paper tackles the problem of enhancing an existing GPP's performance without the substantial effort of redesigning its core logic. They focus on the idea of "portfolio methods," which combine multiple existing programs to create a stronger, unified agent. This is especially relevant when you have a single, powerful but potentially imperfect GPP, and you want to squeeze more performance out of it by exploring its variations. The authors also consider the scenario where you might have a single GPP and want to decompose it into multiple variants through parameter tuning or by leveraging different random seeds.

Methods

The authors propose three main methods for creating these AI portfolios:

  • Best Arm: This is a straightforward approach where they identify the "best" variant (based on random seeds or parameters) by directly testing it against opponents. It's like picking the single strongest player from a team. While effective in some scenarios, it can be vulnerable to opponents who learn and adapt.
  • Nash-Portfolio: This method aims to create a more robust portfolio by finding a Nash Equilibrium. Essentially, it computes a probability distribution over the available GPP variants such that no single variant is easily exploitable by an opponent. This is like creating a team where each member has a specific role and they work together to cover each other's weaknesses. This approach is trained offline.
  • UCBT-Portfolio (Upper Confidence Bound Tuned): This is an online learning approach. It uses a bandit algorithm to adaptively choose which GPP variant to play at any given moment, based on the opponent's behavior. This allows the AI to learn and exploit an opponent's weaknesses in real-time, making it adaptive.

Datasets

The authors evaluate their methods on several games, using existing GPPs and their variants:

  • Go (9x9 board): They use GnuGo, a well-known Go AI, and create 32 variants by manipulating its random seeds. They also explore variants based on different configuration options of GnuGo.
  • Chess: They use a vanilla Monte-Carlo Tree Search (MCTS) implementation and create 100 variants by manipulating random seeds.
  • Havannah: Similar to Chess, they use MCTS and create 100 seed-based variants.
  • Batoo: A simplified version of Batoo is used, with seed-based variants.

The "datasets" in this context are essentially the matrices of game results between different variants of the GPPs, which are used to train the Nash-Portfolio. For the UCBT-Portfolio, the "dataset" is the ongoing stream of games played against an opponent.

Key Insights and Ideas

  • Random Seeds Matter: The paper highlights that even seemingly minor changes, like different random seeds in a stochastic GPP, can lead to significant performance differences. By intelligently combining these seed-based variants, substantial improvements can be achieved.
  • Robustness vs. Exploitation: The Nash-Portfolio offers robustness by being hard to exploit, even against adaptive opponents. In contrast, the Best Arm approach, while strong against static opponents, can be easily exploited by adaptive ones.
  • Offline vs. Online Learning: The paper demonstrates the effectiveness of both offline (Nash-Portfolio) and online (UCBT-Portfolio) learning strategies. Nash-Portfolio provides a strong, pre-computed strategy, while UCBT-Portfolio offers real-time adaptation.
  • "Free" Improvement: A key selling point is that these portfolio methods can improve an existing GPP without requiring fundamental changes to its architecture or algorithms, effectively offering an "improvement for free."

Key Results

  • Significant Performance Gains: Both Nash-Portfolio and Best Arm consistently outperformed the original, uniformly randomized GPP across all tested games (Go, Chess, Havannah, Batoo) in generalization tests. For example, in Go, Nash-Portfolio achieved a winning rate of 54.16% against the uniform baseline, compared to the baseline's own performance.
  • Nash-Portfolio's Robustness: The Nash-Portfolio proved to be significantly more resilient against "exploiter" opponents (who adapt to the AI's strategy) than the Best Arm approach. While Best Arm could be easily exploited, Nash-Portfolio maintained a much higher win rate.
  • UCBT's Adaptive Power: The UCBT-Portfolio demonstrated efficient learning against various opponents, including Nash-Portfolio and the uniform baseline. It was able to reach near-optimal performance and even outperform the Nash-Portfolio against a uniform opponent, showcasing its ability to exploit specific weaknesses.
  • Variants of GnuGo: For GnuGo variants, the Nash-Portfolio also showed superior performance compared to the uniform strategy and Best Arm, indicating that even with more complex parameterizations, the Nash approach provides a robust combination.

Limitations and Future Work

  • Computational Cost: While the authors argue that solving Nash equilibria is fast and can be further optimized, building the initial matrix of game results can be computationally intensive, especially when dealing with many variants or requiring many games per entry (as in the GnuGo variants case).
  • "Exploiter" as a Proxy: The "exploiter" opponent used to test robustness is a specific type of adaptive opponent. The authors acknowledge that real-world opponents might behave differently.
  • Future Work: The authors suggest exploring faster approximate Nash equilibrium algorithms to reduce computational cost. They also propose using discounted bandits for UCBT to handle non-stationary opponents more effectively and investigating specialized representations beyond simple random seeds. They also mention the potential for randomizing parameters of evaluation functions in deterministic algorithms.

Summary updated

BibTeX
@misc{stpierre2016automatically,
  author = {David Lupien St-Pierre and Jean-Baptiste Hoock and Jialin Liu and Fabien Teytaud and Olivier Teytaud},
  title = {{Automatically Reinforcing a Game AI}},
  year = {2016},
  eprint = {1607.08100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.08100},
}
Figure