基于 Monad Continuation 的 Alpha-Beta 剪枝方法
Alpha-Beta Pruning via Monadic Continuations
AI 导读
arXiv 论文提出一种用 continuation monad 与 reader monad 组合表述 alpha-beta 剪枝的方法,将搜索边界记录在 monadic 结果中而不改动走子类型。作者以井字棋实现为例,相较穷举搜索在计算最优对局时减少 39 倍的被评估对局数,并证明该 monadic 搜索与穷举 minimax 搜索给出相同的最优结果与最优对局。
正文 · 原文
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.
| Comments: | 19 pages |
| Subjects: | Artificial Intelligence (cs.AI); Computer Science and Game Theory (cs.GT); Logic (math.LO) |
| MSC classes: | 68T20 (Primary), 91A18, 91A05, 68N18, 18C15, 68V15, 03B38, 68Q55, 91A46 (Secondary) |
| ACM classes: | I.2.8; D.1.1; D.3.2; F.3.2; D.2.4; F.3.1; F.4.1 |
| Cite as: | arXiv:2611.32320 [cs.AI] |
| (or arXiv:2611.32320v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.32320 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Paulo Oliva [view email]
[v1]
Tue, 24 Nov 2026 10:14:04 UTC (29 KB)
来源:arXiv cs.AI · arxiv.org