Proof Number Based Monte-Carlo Tree Search

Jakub Kowalski, Elliot Doe, Mark H. M. Winands, Daniel Górski, Dennis J. N. J. Soemers

TL;DR

This paper introduces PN-MCTS, a novel game-search algorithm that merges the heuristic exploration of Monte-Carlo Tree Search (MCTS) with the exact endgame-solving capabilities of Proof-Number Search (PNS). By embedding proof and disproof numbers directly into the MCTS framework, the algorithm achieves dramatic performance gains, reaching win rates up to 96.2% against standard MCTS in tactical board games.

What Problem Does This Paper Address?

Monte-Carlo Tree Search (MCTS) is the gold standard for many game AI applications, but it has a well-known blind spot: highly tactical games with narrow, critical paths to victory. In these scenarios, random simulations often fail to find the precise sequence of moves required to win, causing MCTS node values to converge too slowly to their true game-theoretic values.

Conversely, Proof-Number Search (PNS) excels at finding exact game-theoretic values (win/loss) in narrow endgame trees but lacks the broad heuristic power needed to navigate massive, complex search spaces from the start of a game. The authors address this gap by combining the strengths of both methods into a unified algorithm capable of handling both deep tactical lines and broad strategic exploration.

Methods

The authors propose PN-MCTS, which tracks proof numbers ($pn$) and disproof numbers ($dpn$) within the MCTS tree. They introduce three distinct enhancements that leverage this data:

  1. Final Move Selection: If the root node has a child proven to lead to a forced win, the algorithm immediately selects it, bypassing standard visit-count metrics.
  2. Solving Subtrees: PN-MCTS uses (dis)proof numbers to identify fully resolved subtrees, preventing the algorithm from wasting computational budget on already solved positions.
  3. UCT-PN (Modified Selection Mechanism): The core innovation integrates PNS into the UCB1 selection formula. Instead of using raw proof numbers (which lack meaningful relative magnitudes), it ranks children based on their $pn$ or $dpn$ and normalizes this rank into a bonus term added to the standard UCB1 formula.

To handle games where draws are common, they also introduce Double-Layer PN-MCTS. Standard PNS treats draws and losses identically as "disproven." The double-layer extension tracks a second set of proof/disproof numbers where the goal is redefined as "not lost" (win or draw), allowing the AI to distinguish between a draw and a guaranteed loss.

Datasets

Instead of traditional datasets, the algorithm was evaluated using five distinct game domains implemented within the Ludii General Game System:

  • Lines of Action (LOA) (tested on $7\times7$ and $8\times8$ boards)
  • MiniShogi ($5\times5$ variant of Shogi)
  • Knightthrough (a tactical chess-like variant of Breakthrough)
  • Awari (a Mancala variant known for a high frequency of draws)

Key Insights and Ideas

  • Rankings over Raw Values: Directly plugging proof numbers into UCB1 doesn't work well because a $pn$ of 100 isn't necessarily ten times worse than a $pn$ of 10. Converting these numbers into a normalized local ranking elegantly solves this scaling issue.
  • Game-Dependent Synergy: The benefits of combining MCTS and PNS are highly dependent on the game's nature. In highly tactical games like Lines of Action, the synergy is massive, whereas draw-heavy games require the specialized double-layer architecture to prevent performance degradation.
  • Overhead vs. Quality Trade-off: Fully expanding all children at once to compute PNS rankings introduces a memory and computational overhead, but the dramatic increase in search quality easily compensates for fewer total simulations in most tested games.

Key Results

  • Lines of Action: PN-MCTS dominated vanilla MCTS. The impact of the tuning parameter $C_{pn}$ is illustrated below, showing clear optimal performance zones compared to pure MCTS ($C_{pn}=0$) or pure PNS ($C_{pn}=10^6$):
Fig. 3. Tuning the Cpn parameter. PN-MCTS against MCTS for 7×7 and 8×8 LOA (1000 games, 1s per turn).
  • MiniShogi & Knightthrough: The fully enhanced variant (FSU) significantly outperformed the baseline, yielding win rates of 65.8% and 66.8% respectively.
  • Awari (Draw Handling): While the single-layer version struggled due to draws, the Double-Layer PN-MCTS with an optimized "Contempt Factor" turned a losing/tying record into a confident victory against standard MCTS.

The performance of these variants across different time settings is shown below:

Fig. 4. Comparison of the best PN-MCTS variants in different time settings, playing against a basic MCTS (1000 games, Cpn = 1).

Limitations and Future Work

  • Branching Factor Overhead: The current implementation fully expands all children of a node at once to compute PNS rankings. In games with massive branching factors like Gomoku ($15\times15$ board, initial branching factor of 225), this causes severe overhead, making the search up to 20 times slower.
  • Future Directions: The authors plan to optimize the node expansion strategy to mitigate this overhead. They also suggest extending the double-layer concept into a multi-layer framework to handle games with multiple outcomes or more than two players. Finally, exploring the integration of PNS concepts with Product Propagation is highlighted as a promising next step.

Summary updated

BibTeX
@article{kowalski2023proof,
  author = {Jakub Kowalski and Elliot Doe and Mark H. M. Winands and Daniel Górski and Dennis J. N. J. Soemers},
  title = {{Proof Number Based Monte-Carlo Tree Search}},
  journal = {IEEE Trans. Games},
  year = {2023},
}
Figure