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

AlphaViT:一种适用于多种游戏和可变棋盘大小的灵活游戏AI

AlphaViT: A flexible game-playing AI for multiple games and variable board sizes

Komatsu University(komatsu大学)

Kazuhisa Fujita

AI总结:

AlphaViT通过融合Vision Transformers开发出灵活的游戏AI,能适应多种游戏和可变棋盘大小,优于传统算法并接近AlphaZero性能。

摘要:

我们提出了三个游戏AI代理,将Vision Transformers(ViT)融入AlphaZero框架中:AlphaViT、AlphaViD(AlphaViT带Transformer解码器)和AlphaVDA(AlphaViD带可学习的动作嵌入)。这些代理可以使用单个具有共享权重的神经网络来玩多种大小各异的棋盘游戏,从而克服了AlphaZero固定棋盘大小的限制。AlphaViT仅使用Transformer编码器,而AlphaViD和AlphaVDA则同时包含Transformer编码器和解码器。在AlphaViD中,解码器处理编码器的输出,而AlphaVDA使用可学习的嵌入作为解码器输入。AlphaViD和AlphaVDA中额外的解码器提供了适应各种动作空间和棋盘大小的灵活性。实验结果表明,所提出的代理在单独游戏或同时多个游戏训练的情况下,均优于传统算法,如Minimax和蒙特卡洛树搜索。它们在依赖单一深度神经网络(DNN)和共享权重的情况下,接近AlphaZero的性能。特别是,AlphaViT在所有评估游戏中表现强劲。此外,使用在小棋盘游戏中预训练的权重微调DNN可以加速收敛并提高性能,尤其是在五子棋中。有趣的是,同时在多个游戏中训练的性能与或甚至超过单一游戏训练的性能。这些结果表明,基于Transformer的架构在开发更灵活和稳健的游戏AI代理方面具有潜力,这些代理在多种游戏和动态环境中表现优异。

英文摘要:

We present three game-playing agents incorporating Vision Transformers (ViT) into the AlphaZero framework: AlphaViT, AlphaViD (AlphaViT with a transformer decoder), and AlphaVDA (AlphaViD with learnable action embeddings). These agents can play multiple board games of varying sizes using a single neural network with shared weights, thus overcoming AlphaZero's limitation of fixed board sizes. AlphaViT employs only a transformer encoder, whereas AlphaViD and AlphaVDA incorporate both a transformer encoder and a decoder. In AlphaViD, the decoder processes outputs from the encoder, whereas AlphaVDA uses learnable embeddings as the decoder inputs. The additional decoder in AlphaViD and AlphaVDA provides flexibility to adapt to various action spaces and board sizes. Experimental results show that the proposed agents, trained on either individual games or on multiple games simultaneously, consistently outperform traditional algorithms, such as Minimax and Monte Carlo Tree Search. They approach the performance of AlphaZero despite relying on a single deep neural network (DNN) with shared weights. In particular, AlphaViT performs strongly across all evaluated games. Furthermore, fine-tuning the DNN with weights pre-trained on small board games accelerates convergence and improves performance, particularly in Gomoku. Interestingly, simultaneous training on multiple games yields performance comparable to, or even surpassing, that of single-game training. These results indicate the potential of transformer-based architectures for developing more flexible and robust game-playing AI agents that excel in multiple games and dynamic environments.

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

↑