Strategy Game-Playing with Size-Constrained State Abstraction

Linjie Xu, Diego Perez Liebana, Alexander Dockhorn

Abstract

Monte Carlo Tree Search (MCTS) faces significant challenges in strategy games due to astronomical branching factors. State abstraction simplifies the search space but often leads to over-generalization. We present Size-Constrained State Abstraction (SCSA), a novel approach that limits the number of ground states mapped to a single abstract state. By maintaining small abstract groups, SCSA avoids the need for complex "early-exit" mechanisms required by previous state-of-the-art methods. Evaluated on the Stratega platform, SCSA outperforms existing techniques in tactical scenarios and remains competitive in complex resource-management tasks.

Introduction

Strategy games like StarCraft or Civilization present a significant challenge for traditional search algorithms. The high number of units and diverse properties result in a branching factor that prevents MCTS from searching deep enough within time constraints to find winning strategies. State abstraction groups similar states to simplify the search space, but poor abstractions—where strategically different states are grouped together—can lead to sub-optimal decision-making. Previous solutions, such as Elastic MCTS, attempted to mitigate this by abandoning abstractions mid-search, but these require game-specific hyperparameter tuning.

Methods

SCSA builds on a foundation of MCTS with unit ordering ($MCTS_u$) and utilizes Approximate MDP Homomorphism to measure state similarity based on rewards and transition probabilities. The core innovation is the introduction of a SIZE_LIMIT constraint.

Unlike standard abstraction methods that maximize group size, SCSA caps the number of ground (real) nodes that can be mapped to a single abstract node. If an abstract group reaches its limit, the algorithm creates a new group or finds another existing one. This conservative approach prevents the "local optimum" trap of over-simplification, allowing the AI to benefit from abstraction throughout the entire search process without needing to "early-exit."

Experimental Setup

The researchers evaluated SCSA using the Stratega platform across three turn-based games of varying complexity:

  1. Kill The King (KTK): Squad-based combat focused on eliminating the enemy leader.
  2. Push Them All (PTA): Tactical positioning where units push enemies into environmental hazards.
  3. Two Kingdoms (TK): A complex scenario involving resource gathering, technology research, and unit production.

Key Results and Discussion

SCSA was compared against standard MCTS, rule-based agents, and the previous state-of-the-art, Elastic MCTS.

Figure 4: Performance comparison of SCSA against various baselines across the three test games. SCSA (red) shows clear dominance in KTK and PTA.

In tactical games like KTK and PTA, SCSA significantly outperformed all other agents. For instance, in Push Them All, SCSA achieved a win rate of nearly 80% against the rule-based baseline, compared to approximately 49% for standard MCTS. In the more complex Two Kingdoms, SCSA remained competitive with Elastic MCTS, though the performance gap narrowed, reflecting the difficulties of state abstraction in high-complexity environments.

Figure 5: The effect of the SIZE_LIMIT constraint on win rate. Performance peaks at a limit of 3, supporting the "less is more" philosophy of conservative abstraction.

A critical finding was the robustness of the SIZE_LIMIT hyperparameter. A limit of 2 or 3 provided optimal performance across all games. While larger limits lead to higher compression (smaller search trees), they eventually cause performance to drop as the abstraction becomes too "blurry" and loses strategic nuance.

Conclusion

SCSA demonstrates that high-quality, conservative abstraction is more valuable than aggressive simplification in strategy game-playing. By constraining the size of abstract groups, SCSA provides a robust, "plug-and-play" method that avoids the accuracy trade-offs and tuning complexities of previous approaches. Future work will explore combining SCSA with move-pruning techniques and investigating dynamic size limits that adapt to different game phases.

Summary updated

BibTeX
@inproceedings{xu2024strategy,
  author = {Linjie Xu and Diego Perez Liebana and Alexander Dockhorn},
  title = {{Strategy Game-Playing with Size-Constrained State Abstraction}},
  booktitle = {CoG},
  year = {2024},
}
Figure