跳到正文
arXiv (AI + Vision + Imaging)· Mart\'in Escard\'o, Paulo Oliva·· 1 天前AI 评分15

基于Monadic Continuations的Alpha-Beta剪枝

Alpha-Beta Pruning via Monadic Continuations

AI 导读

该研究提出一种基于continuation monad与reader monad组合的alpha-beta剪枝monadic形式化方法,将alpha-beta边界记录在monadic结果中而非编码进可用走法类型,走法类型保持不变。

正文 · 原文

arXiv:2611.32320v1 Announce Type: new Abstract: Alpha-beta pruning is a fundamental technique in game-playing AI, enabling efficient minimax search by avoiding the exploration of branches that cannot affect the optimal decision. We present a monadic formulation of alpha-beta pruning based on the combination of the continuation monad and the reader monad. Unlike previous approaches that encode alpha-beta bounds into the types of available moves, our construction records these bounds within monadic outcomes, leaving the move types unchanged. We further show that the ordinary continuation monad suffices to compute not only optimal outcomes but also optimal plays, by extending the outcome type to include the corresponding sequences of moves. This provides an alternative to generalisations of the continuation monad proposed to address the inefficiencies associated with the selection monad in alpha-beta search. We illustrate our approach with an implementation of Tic-Tac-Toe, observing a 39-fold reduction in the number of plays evaluated, compared with exhaustive search, in computing an optimal play. Finally, we formally establish the correctness of our construction by proving that the monadic alpha-beta search computes the same optimal outcomes and plays as exhaustive minimax search. Our results demonstrate how a foundational algorithm in AI can be expressed and verified using standard monadic abstractions, providing a basis for further development of compositional approaches to adversarial search.

来源:arXiv (AI + Vision + Imaging) · arxiv.org