A General Upper Bound for the Runtime of a Coevolutionary Algorithm on Impartial Combinatorial Games

Alistair Benford, Per Kristian Lehre

TL;DR

This paper introduces a general theoretical framework for analyzing the performance of coevolutionary algorithms (CoEAs) on impartial combinatorial games. They provide a novel upper bound on the number of simulated games required for a specific CoEA (UMDA) to discover an optimal strategy, proving it's polynomial or quasipolynomial in the game's complexity. This work is crucial for understanding how CoEAs can be reliably applied to complex strategic domains.

What Problem Does This Paper Address?

Combinatorial games, like Chess and Go, are notoriously difficult to solve optimally due to their vast search spaces and complex strategic interactions. While coevolutionary algorithms (CoEAs) have shown promise in game playing through self-play, their application is often hampered by pathological behaviors like cycling, especially in games with intransitive payoff landscapes. Existing theoretical analyses of CoEAs are limited to very specific, often simplified, game settings. This paper aims to bridge this gap by providing a general runtime analysis for CoEAs on a broad class of games: impartial combinatorial games, which are fundamental in game theory and represent a significant step towards understanding CoEA behavior on more realistic and complex strategic problems.

Methods

The core of this paper is a theoretical runtime analysis of a specific coevolutionary algorithm, UMDA (an Estimation of Distribution Algorithm), applied to impartial combinatorial games. The authors represent game strategies as mappings from game positions to moves. They leverage Sprague-Grundy theory to analyze game properties and introduce a new concept called "switchability" (denoted by $\xi$) to characterize the complexity of a game's graph structure. The main technical contribution is a general upper bound on the number of game evaluations required for UMDA to find an optimal strategy with high probability. This bound is expressed in terms of the game's size ($n$), maximum degree ($\Delta$), and the switchability ($\xi$) of its critical positions. The proof involves intricate probabilistic arguments and lemmas that connect game properties to the algorithm's convergence.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and applies its findings to well-known combinatorial games rather than training on specific datasets.

Key Insights and Ideas

  • Generalizing CoEA Analysis: The paper significantly expands the scope of theoretical runtime analysis for CoEAs beyond simple bitstring optimization problems to complex combinatorial games. This is a major step towards a comprehensive theoretical understanding of these algorithms.
  • Switchability as a Complexity Measure: The introduction of "switchability" ($\xi$) provides a novel way to quantify the difficulty of a combinatorial game for CoEAs. This invariant captures how easily a game's state can be influenced by specific strategy choices, directly impacting learning efficiency.
  • UMDA's Robustness: The analysis demonstrates that UMDA, a specific type of Estimation of Distribution Algorithm, can effectively learn optimal strategies in impartial combinatorial games, even those with complex payoff landscapes, within a theoretically bounded number of evaluations.
  • Bridging Theory and Practice: By providing a general upper bound and then applying it to several well-known games (Nim, Chomp, etc.), the paper connects abstract theoretical results to concrete game-playing scenarios, offering valuable insights for algorithm design.

Key Results

The main result is a general upper bound for the runtime of UMDA on impartial combinatorial games. Specifically, Theorem 5.2 states that for an $n$-vertex game with maximum degree $\Delta$ and maximum switchability $\hat{\xi}$, UMDA can find an optimal strategy with high probability within $O(\mu \cdot (20\Delta n)^{1+2\hat{\xi}} \log n)$ game evaluations, where $\mu$ is a population size parameter. Corollary 5.5 simplifies this to $O(C^2(K+5+1)(20\Delta n)^{2+3\hat{\xi}} \log^2 n)$ for appropriately chosen parameters. The paper then applies this to several games:

  • Subtraction Nim: Polynomial runtime of $O((kn)^5 \log^2 n)$.
  • Silver Dollar: Polynomial runtime of $O(n^{5+3k+(2/k)} \log^2 n)$ for fixed $k$.
  • Turning Turtles: Quasipolynomial runtime of $O(n^{c \log n})$ for some constant $c$.
  • Chomp: Quasipolynomial runtime of $O(n^{c \log n})$ for some constant $c$.

Limitations and Future Work

The authors acknowledge that their derived upper bound might be higher than the true runtime for specific games. The current analysis relies on a naive representation of strategies (exhaustive listing of actions for each position), which is memory and time-intensive for very large games. Future work aims to extend this analysis to more sophisticated game representations, such as those used in genetic programming, and to develop runtime analyses applicable to games with exponentially many positions. They also suggest that a deeper analysis of coevolutionary dynamics, particularly how opponents exploit misplays, could lead to tighter bounds and more efficient learning mechanisms.

Summary updated

BibTeX
@inproceedings{benford2025general,
  author = {Alistair Benford and Per Kristian Lehre},
  title = {{A General Upper Bound for the Runtime of a Coevolutionary Algorithm on Impartial Combinatorial Games}},
  booktitle = {GECCO},
  year = {2025},
  doi = {10.1145/3712256.3726437},
}
Figure