TL;DR
This paper introduces PN-MCTS, a novel game-search algorithm that enhances Monte-Carlo Tree Search (MCTS) by incorporating Proof-Number Search (PNS) concepts. By leveraging proof and disproof numbers, PN-MCTS significantly improves decision-making in various board games, achieving win rates up to 96.2% and outperforming standard MCTS across multiple domains.
What Problem Does This Paper Address?
Traditional Monte-Carlo Tree Search (MCTS) is a powerful technique for game AI, but it can struggle in tactical games where the path to victory is narrow. In such scenarios, MCTS's reliance on randomized simulations might not converge quickly enough to the true game-theoretic value of moves. This can lead to suboptimal decisions. While MCTS has been enhanced with various techniques, this paper addresses the challenge of integrating the strengths of MCTS with Proof-Number Search (PNS), a method known for its efficiency in solving endgames and proving win/loss conditions. The goal is to create a hybrid approach that benefits from both the broad exploration of MCTS and the precise reasoning of PNS.
Methods
The core innovation is PN-MCTS, which combines MCTS and PNS. The authors explore three key areas for integration:
- Final Move Selection: When the search time is up, PN-MCTS prioritizes moves that lead to proven wins, a concept derived from PNS.
- Solving Subtrees: Similar to MCTS-Solver, PN-MCTS uses proof and disproof numbers to identify and potentially skip already solved subtrees, saving computational effort.
- UCB1 Formula Modification (UCT-PN): The standard Upper Confidence Bound 1 (UCB1) selection mechanism in MCTS is augmented with proof and disproof numbers. This is achieved by ranking nodes based on their proof/disproof numbers and using this rank to influence the selection process, rather than directly using the numbers themselves. A "Contempt Factor" is also introduced to manage the preference for draws in games with multiple outcomes.
Additionally, a "double-layer" PN-MCTS is proposed to better handle games with draws by distinguishing between a loss and a draw, which the basic PNS cannot do.
Datasets
The paper does not introduce new datasets. Instead, it uses five established two-player, zero-sum board games for evaluation:
- Lines of Action (LOA) on 7x7 and 8x8 board sizes.
- MiniShogi
- Knightthrough
- Awari
These games were chosen because both MCTS and PNS have shown effectiveness in them, making them suitable testbeds for a hybrid approach. The experiments were conducted using the Ludii General Game System.
Key Insights and Ideas
- Synergy of MCTS and PNS: The paper demonstrates that combining MCTS and PNS is not just additive but can lead to synergistic improvements, significantly outperforming vanilla MCTS.
- Proof/Disproof Numbers as Heuristics: Proof and disproof numbers, traditionally used for solving, can effectively guide MCTS exploration by providing a more informed heuristic for move selection and subtree evaluation.
- Game-Specific Performance: The effectiveness of different PN-MCTS enhancements varies by game. For instance, the "solver" enhancement is particularly beneficial for games with clear win/loss states, while the "double-layer" approach is crucial for games with draws like Awari.
- Overhead is Manageable: While calculating proof and disproof numbers introduces computational overhead, it is relatively mild for most tested games, with the performance gains often outweighing the cost.
- Draw Handling is Crucial: The inability of basic PNS to distinguish draws from losses is a significant limitation. The proposed double-layer approach effectively addresses this, improving performance in games like Awari.
Key Results
- Outperformance of MCTS: PN-MCTS consistently outperforms standard MCTS across all tested games. Win rates of up to 96.2% were achieved in Lines of Action.
- Best Combination: The FSU variant (Final move selection, Solver, UCT-PN) was the best combination in 3 out of 5 tested domains and second-best in one more.
- Time Efficiency: PN-MCTS variants generally show improved performance with increased computation time, with the FSU variant achieving its peak win rate of 96.2% on LOA 8x8 at a 2-second time limit.
- Draw Handling Improvement: The double-layer PN-MCTS showed improvements in Awari, a game with many draws, where single-layer PN-MCTS struggled.
- Overhead: The overhead for PN-MCTS was generally low (ratios between 0.901 and 0.959 for most games), though higher for games with large branching factors like Knightthrough and MiniShogi.
Limitations and Future Work
- Computational Overhead: While manageable, the overhead for calculating proof and disproof numbers can be significant in games with very large branching factors and fast move applications (e.g., Gomoku, which was excluded from detailed results due to extreme overhead). The authors plan to improve their implementation to mitigate this.
- Parameter Tuning: The UCT-PN formula introduces a new parameter ($C_{pn}$) that requires tuning, and the "Contempt Factor" for draw handling also needs careful selection.
- Game Dependency: The effectiveness of specific enhancements is game-dependent, requiring further investigation into why PN-MCTS performs better or worse in certain domains.
- Future Research:
- Testing PN-MCTS on a wider range of games.
- Developing alternative methods for combining UCB1 with PN values.
- Extending the double-layer concept to multi-layer PN-MCTS for games with more than two outcomes.
- Adapting the concept to handle multi-player games.
- Exploring other probabilistic information backup methods like Product Propagation.
Summary updated