TL;DR
Size-Constrained State Abstraction (SCSA) improves Monte Carlo Tree Search (MCTS) in strategy games by limiting how many game states can be grouped into a single abstract node. This simple constraint prevents poor-quality abstractions from biasing the search, eliminating the need for complex "early stop" mechanisms and providing robust performance across games of varying complexity.
What Problem Does This Paper Address?
Strategy games present a massive challenge for AI due to their combinatorial search spaces. In games like StarCraft, the state space grows exponentially with the number of units and their properties (health, position, etc.). Standard search algorithms like Monte Carlo Tree Search (MCTS) often get lost in this "branching factor hell," unable to explore deeply enough to find good moves.
State abstraction—grouping similar states together to simplify the search tree—is a common solution. However, it’s a double-edged sword. If the abstraction is based on insufficient data (which is common in complex games), it can be "poor quality," leading the AI toward local optima. Previous state-of-the-art methods, like Elastic MCTS, tried to fix this by abandoning the abstraction halfway through the search. While effective, this introduced a sensitive "early stop" hyperparameter that is notoriously difficult to tune for different games.
Methods
The authors propose Size-Constrained State Abstraction (SCSA). Instead of trying to decide when to stop using an abstraction, SCSA focuses on how much we abstract.
- Base Algorithm: The method builds on MCTS with unit ordering (MCTSu), which handles the multi-unit action space by processing units sequentially rather than simultaneously.
- Similarity Metric: It uses Approximate MDP Homomorphism to measure state similarity. Two states are considered similar if they yield similar rewards and transition to similar future states.
- The Innovation (SCSA): During the abstraction phase, the algorithm groups similar ground nodes into abstract nodes. However, it enforces a global
SIZE_LIMIT. Once an abstract node contains a certain number of ground nodes (e.g., 2 or 3), it is "full," and no more nodes can be added to it.
This simple limit prevents the search tree from becoming overly compressed and inaccurate, which is what usually causes performance to tank when abstractions are poor. Crucially, because the abstraction remains "safe," the agent never needs to abandon it.
Datasets
The researchers evaluated their agent using the Stratega platform, a general strategy game framework. They tested on three distinct turn-based games:
- Kill The King (KTK): A combat-focused game where players control a small army (king, warrior, archer, healer) to eliminate the opponent's king.
- Push Them All (PTA): A tactical game where units must push enemies into holes on the map.
- Two Kingdoms (TK): The most complex scenario, involving resource management (gold mining), technology research, and unit spawning alongside combat.
Key Insights and Ideas
- The Compression Trade-off: There is a fundamental trade-off between memory usage (compression) and agent performance. As seen in Figure 6, Elastic MCTS achieves much higher compression but eventually has to "drop" the abstraction to maintain performance. SCSA maintains a lower, more stable compression rate that remains effective throughout the search.
- Hyperparameter Stability: One of the biggest wins is that
SIZE_LIMITis far less sensitive than the "early stop" threshold used in previous work. The authors found that aSIZE_LIMITof 2 worked well across all three games, whereas previous methods required different tuning for every domain. - Optimal "Granularity": The study found that a size limit of 3 was often optimal for simpler games, but larger limits (like 5) caused performance to degrade because the resulting search tree became too small and lost critical detail.
Key Results
SCSA demonstrated superior robustness compared to standard MCTS and the previous state-of-the-art, Elastic MCTS:
- Dominance in Simpler Games: In KTK and PTA, SCSA outperformed all other agents, including Rule-based, standard MCTS, and Elastic MCTS.
- Competitive in Complexity: In the highly complex Two Kingdoms game, SCSA remained competitive with Elastic MCTS, showing it can handle resource management and tech trees.
- Overall Performance: Figure 4 highlights that SCSA consistently outperformed a higher number of opponent types across all tested games compared to its peers.
Limitations and Future Work
While SCSA is robust, the authors noted a potential "scalability ceiling." In the most complex game (Two Kingdoms), SCSA's lead over other methods narrowed. This suggests that for extremely high-dimensional games, state abstraction alone might not be enough.
The authors suggest that future work should explore combining state abstraction with pruning techniques to further narrow the search space without losing accuracy. They also plan to investigate how SCSA scales to even more complex, real-time strategy environments.
Summary updated