mlsanityData to 7 Oct 2026

Mastering Chess with a Transformer Model

arXiv 2409.12272 ↗First posted 18 Sep 2024cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 15 of its 23 references that are in the map. First posted on arXiv 18 Sep 2024.

Builds on

15 of 23 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  6. 2020GLU Variants Improve Transformercited by 1,724
  7. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
  8. 2018Self-Attention with Relative Position Representationscited by 1,112
  9. 2023From Sparse to Soft Mixtures of Expertscited by 245
  10. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  11. 2019Mish: A Self Regularized Non-Monotonic Activation Functioncited by 141
  12. 2021Acquisition of Chess Knowledge in AlphaZerocited by 120
3 more
  1. 2019Accelerating Self-Play Learning in Gocited by 60
  2. 2024Evidence of Learned Look-Ahead in a Chess-Playing Neural Networkcited by 33
  3. 2023Representation Matters for Mastering Chess: Improved Feature Representation in AlphaZero Outperforms Switching to Transformerscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 5; 2026: 6.

14 papers.

Sort:

By area: