arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.12272cs.LG
收藏

使用 Transformer 模型掌握国际象棋

Mastering Chess with a Transformer Model

University of California at San Diego(加利福尼亚大学圣迭戈分校);Williams College(威廉姆斯学院)

Daniel Monroe, Philip A. Chalmers

AI总结:

本文提出 Chessformer,通过增强国际象棋位置表示,让 Transformer 以远低计算量超越 AlphaZero 并追平大师级智能体,还能发现传统引擎忽视的高级局面特征。

摘要:

Transformer 模型在大规模训练后已展现出令人瞩目的能力,擅长需要复杂推理和理性决策的困难认知任务。本文探讨 transformer 在国际象棋中的应用,重点关注位置表示在注意力机制中的关键作用。我们表明,具备足够表达能力的位置表示的 transformer,能够以少量计算成本达到现有国际象棋对弈模型的水平。我们的架构称为 Chessformer,在计算量减少 8 倍的情况下,于对弈实力和谜题求解能力上均显著优于 AlphaZero;并在计算量减少 30 倍的情况下,在这些指标上追平此前基于 transformer 的大师级智能体。我们的模型还表现出与顶级传统引擎不同且正交的国际象棋理解,能够检测这些引擎难以处理的高级局面特征,如被困棋子和堡垒。本工作表明,面向领域的增强可在很大程度上替代对模型规模的需求,同时也凸显出,即使在由基于搜索的方法主导的领域,深度学习也能取得长足进步。

英文摘要:

Transformer models have demonstrated impressive capabilities when trained at scale, excelling at difficult cognitive tasks requiring complex reasoning and rational decision-making. In this paper, we explore the application of transformers to chess, focusing on the critical role of the position representation within the attention mechanism. We show that transformers endowed with a sufficiently expressive position representation can match existing chess-playing models at a fraction of the computational cost. Our architecture, which we call the Chessformer, significantly outperforms AlphaZero in both playing strength and puzzle solving ability with 8x less computation and matches prior grandmaster-level transformer-based agents in those metrics with 30x less computation. Our models also display an understanding of chess dissimilar and orthogonal to that of top traditional engines, detecting high-level positional features like trapped pieces and fortresses that those engines struggle with. This work demonstrates that domain-specific enhancements can in large part replace the need for model scale, while also highlighting that deep learning can make strides even in areas dominated by search-based methods.

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

↑