arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05347cs.LGcs.AI
收藏

通过Transformer桥接棋盘游戏中的局部与全局知识

Bridging Local and Global Knowledge via Transformer in Board Games

Institute of Information Science, Academia Sinica, Taiwan(Academia Sinica 信息科学研究所)

Yan-Ru Ju, Tai-Lin Wu, Chung-Chin Shih, Ti-Rong Wu

AI总结:

本文提出ResTNet,通过交错残差块与Transformer块桥接局部和全局知识,在围棋和Hex中显著提升胜率及长序列模式识别能力,为改进AlphaZero类算法提供新思路。

摘要:

尽管AlphaZero在棋盘游戏中已取得超越人类的表现,但近期研究揭示其在处理需要全面理解整个棋盘的场景时存在局限,例如识别围棋中的长序列模式。为应对这一挑战,我们提出ResTNet,一种交错使用残差块和Transformer块的网络,以桥接局部与全局知识。ResTNet在多种棋盘游戏中提升了棋力,在9x9围棋中将胜率从54.6%提高到60.8%,在19x19围棋中从53.6%提高到60.9%,在19x19 Hex中从50.4%提高到58.0%。此外,ResTNet能有效处理全局信息,并应对19x19围棋中的两种长序列模式,包括环形模式和阶梯模式。它将环形模式识别的均方误差从2.58降低到1.07,并将针对对手程序的攻击概率从70.44%降低到23.91%。ResTNet还将阶梯模式识别准确率从59.15%提高到80.01%。通过可视化注意力图,我们证明ResTNet在围棋和Hex中都能捕捉关键的游戏概念,为AlphaZero的决策过程提供了洞见。总体而言,ResTNet展示了一种整合局部与全局知识的有前景方法,为棋盘游戏中更有效的基于AlphaZero的算法铺平了道路。我们的代码可在https://rlg.iis.sinica.edu.tw/papers/restnet获取。

英文摘要:

Although AlphaZero has achieved superhuman performance in board games, recent studies reveal its limitations in handling scenarios requiring a comprehensive understanding of the entire board, such as recognizing long-sequence patterns in Go. To address this challenge, we propose ResTNet, a network that interleaves residual and Transformer blocks to bridge local and global knowledge. ResTNet improves playing strength across multiple board games, increasing win rate from 54.6% to 60.8% in 9x9 Go, 53.6% to 60.9% in 19x19 Go, and 50.4% to 58.0% in 19x19 Hex. In addition, ResTNet effectively processes global information and tackles two long-sequence patterns in 19x19 Go, including circular pattern and ladder pattern. It reduces the mean square error for circular pattern recognition from 2.58 to 1.07 and lowers the attack probability against an adversary program from 70.44% to 23.91%. ResTNet also improves ladder pattern recognition accuracy from 59.15% to 80.01%. By visualizing attention maps, we demonstrate that ResTNet captures critical game concepts in both Go and Hex, offering insights into AlphaZero's decision-making process. Overall, ResTNet shows a promising approach to integrating local and global knowledge, paving the way for more effective AlphaZero-based algorithms in board games. Our code is available at https://rlg.iis.sinica.edu.tw/papers/restnet.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑