Abstract
While transformers have gained the reputation as the "Swiss army knife of AI", no one has challenged them to master the game of chess, one of the classical AI benchmarks. Simply using vision transformers (ViTs) within AlphaZero does not master the game of chess, mainly because ViTs are too slow. Even making them more efficient using a combination of MobileNet and NextViT does not beat what actually matters: a simple change of the input representation and value loss, resulting in a greater boost of up to 180 Elo points over AlphaZero.
Introduction
AlphaZero, the gold standard for reinforcement learning in games, traditionally relies on a ResNet (Convolutional Neural Network) architecture. With the rise of Vision Transformers (ViTs), a natural question arose: Can Transformers make AlphaZero even stronger?
The challenge in the chess domain is twofold. First, Latency: Monte-Carlo Tree Search (MCTS) requires evaluating thousands of positions per second. Pure ViTs are often too slow and computationally expensive for this real-time requirement. Second, Representation: Chess positions contain subtle, long-range logic—such as material imbalances or specific endgame patterns—that even deep networks struggle to "see" from raw board states alone. This paper demonstrates that for high-precision, low-latency domains, smarter feature engineering and loss functions are more impactful than simply swapping architectures.
Methods: The AlphaVile Architecture and FX Suite
The authors introduce a hybrid model called AlphaVile, designed to balance the local pattern recognition of CNNs with the global dependency capture of Transformers.
AlphaVile Architecture
The model utilizes Mobile Convolutional Blocks (MCB) for efficient early-stage processing and Next Transformer Blocks (NTB) in later stages. This hybrid approach allows the model to benefit from self-attention mechanisms without the crippling latency of a pure Transformer.
The "FX" (Feature eXtension) Suite
Beyond architecture, the authors implemented a suite of representation improvements referred to as the "FX" extension:
- Expanded Input Representation: Input planes were increased from 39 to 52, adding explicit features like piece masks, material counts, material differences, and a "checkerboard" pattern.
- WDLP Value Head: Instead of a single scalar win/loss prediction, a Win-Draw-Loss-Ply head predicts outcome distributions and forecasts the number of moves (plies) remaining until the game ends.
Results and Discussion
The evaluation utilized the KingBase Lite 2019 dataset and Lichess variant databases, comparing AlphaVile against standard AlphaZero (ClassicAra) and engines like Stockfish.
Performance Gains
The AlphaVile-FX model outperformed the standard AlphaZero architecture by a staggering 180 Elo points in chess. It also showed significant improvement in "opposite-colored bishop" endgames—a classic "blind spot" for many neural-network-based engines. Gains of approximately 100 Elo were also observed in variants like Crazyhouse and Atomic chess.
The Importance of Representation
A key insight is that a pure Vision Transformer (ViT) actually performed worse than AlphaZero when constrained to similar latency. The "FX" extension provided the network with "pre-digested" information, allowing it to allocate parameters to higher-level strategy rather than basic arithmetic. Furthermore, predicting the "distance to goal" (Moves Left) provided a richer training signal, which proved particularly effective in endgames where the path to victory is long but forced.
Conclusion
This research demonstrates that while architectural improvements like AlphaVile provide a foundation for efficiency, the most significant gains in domain-specific tasks like chess come from refined feature representation and loss functions. The "Swiss army knife" of Transformers is not a silver bullet; representation still matters. Future work includes exploring multimodal inputs and retrieval-based approaches to further enhance engine performance during search.
Summary updated