Introduction
Developing high-performance game AI agents involves more than just selecting an algorithm like Monte Carlo Tree Search (MCTS) or Rolling Horizon Evolution (RHEA). A critical, yet often overlooked, component is hyper-parameter tuning. Parameters such as planning horizon or mutation rates significantly impact an agent's success. However, tuning these is challenging due to game stochasticity (noise) and the high computational cost of evaluating parameters through full game playouts. This paper explores model-based optimization as a solution to these hurdles.
The Fast Planet Wars Environment
To facilitate large-scale experimentation, the researchers developed "Fast Planet Wars," a stripped-down version of the classic real-time strategy game. While original versions are computationally heavy, this variant runs at over 10 million game ticks per second.
In this environment, two players compete to occupy territory by moving ships between planets. The speed of this simulator allowed the authors to establish a "ground truth" fitness landscape by evaluating 288 unique parameter configurations over 100 games each.
Optimization Methods
The study focused on optimizing a Rolling Horizon Evolutionary Algorithm (RHEA) agent using several strategies:
- N-Tuple Bandit Evolutionary Algorithm (NTBEA): The primary focus. It builds a model tracking statistics for parameter combinations and uses bandit-based sampling to balance exploration and exploitation, effectively filtering noise.
- Sequential Model-based Algorithm Configuration (SMAC): An industry-standard benchmark for hyper-parameter tuning.
- Baselines: Simple methods like Random Mutation Hill Climber (RMHC) and Simple Genetic Algorithms (SGA).
Key Results and Insights
The core finding is that model-based algorithms (NTBEA and SMAC) significantly outperform standard evolutionary methods. By building an internal model of the parameter space, these algorithms "understand" the landscape rather than performing a blind search.
Quantitatively, NTBEA variants achieved the highest fitness scores (0.51 ± 0.01), closely followed by SMAC (0.49 ± 0.01). In contrast, standard evolutionary methods like RMHC and SGA performed poorly, often failing to find a signal amidst the game's noise (scores ranging from -0.29 to 0.03). Optimized agents were found to be dominant, sometimes winning 100% of games against untuned counterparts.
Discussion and Future Work
The research highlights that for noisy environments like games, model-based approaches are essential for efficient optimization. NTBEA's N-tuple statistics provide a "heat map" of parameter interactions, revealing how specific settings (e.g., mutation rate) depend on others (e.g., planning horizon).
Future work includes moving beyond fixed opponents toward co-evolutionary tuning and automating the selection of "tuples" within NTBEA. Additionally, these optimization tools could be applied to game balancing, ensuring fair and engaging mechanics by tuning the rules themselves.
Summary updated