All benchmarks

  Paper (arXiv), Google DeepMind

A 270M chess model solves 95% of puzzles, without search

Google DeepMind trained a 270M-parameter transformer only on chess, from 10 million games labelled by Stockfish. With no search at play time it solved 95.4% of 10,000 Lichess puzzles. GPT-3.5-turbo-instruct solved 66.5%.

Made by Anian Ruoss and nine co-authors

NeurIPS 2024

The result

  • Quality

    Puzzles solved, whole move sequence exact (10,000 Lichess puzzles). Small model: 270M transformer, no search. Large model: GPT-3.5-turbo-instruct, whole game as PGN (Carlini’s method).

    95.4%vs 66.5%

    Ahead by 28.9 points

    270M transformer95.4%
    GPT-3.5-turbo-instruct66.5%

    Lichess puzzles solved · higher is better

  • Latency

    Average over 1,000 random opening positions (Encyclopedia of Chess Openings) on a single TPU v5, standard deviation 117.2 ms (Table A3a). Stockfish 16 at the labelling setting took 1,525.3 ms. GPT-3.5-turbo-instruct’s time per move isn’t reported.

    No comparison

    Only the small model’s time is reported.

    270M transformer57.1 mson 1× TPU v5
    GPT-3.5-turbo-instructNot reported

    ms per move · lower is better

The story

Chess without looking ahead

Strong chess engines search: before each move they look through many possible continuations. Google DeepMind wanted to know how far a transformer gets without any search, choosing each move from the board alone. The task is as narrow as they come: one game, a board in, a move out.

The model never writes a move itself. For each legal move, supplied by the chess program, it predicts how likely that move is to win, and plays the highest. It sees the board as a FEN string, which records the current position but not the game’s history.

Data

ChessBench

10 million games: about 530 million positions and 15.3 billion move values

Lichess games from February 2023, each position and legal move scored by Stockfish 16 at 50 ms

Released with the paper: the Lichess games and puzzles are CC0, the rest of the dataset CC-BY 4.0.

To train it the team built ChessBench: 10 million Lichess games from February 2023, with every position and every legal move scored by the Stockfish 16 engine at 50 milliseconds each. That is about 530 million positions and 15.3 billion move values, roughly 8,864 days of single-core Stockfish time by the authors’ count. In effect, the model learns to imitate Stockfish.

Small model

270M transformer

270M · Google DeepMind

Trained from scratch to predict Stockfish’s win-probability bin for each move; 16 layers, width 1024, 8 heads

Base
None: trained from scratch

Training

Supervised learning from scratch

Cross-entropy with HL-Gauss label smoothing over 128 value bins

128 TPU v5 chips per model
Time
10 million steps at batch size 4,096 (2.67 epochs)

Not reported: cost.

Training is plain supervised learning: for each position and move, predict which of 128 win-probability bins Stockfish’s score falls into. The team used Adam at a learning rate of 0.0001 for 10 million steps at batch size 4,096, about 2.67 passes over the data, on 128 TPU v5 chips per model, and trained three sizes: 9M, 136M and 270M parameters. The code, the data and the trained checkpoints are published through the project’s GitHub repository.

The test: 10,000 puzzles

The headline test is 10,000 Lichess puzzles rated from 399 to 2867, taken from a different month than the training games. A puzzle counts only if the model plays the entire solution. Only 1.33% of the puzzles’ starting positions also appear in the training data. The 270M model solved 95.4%, the 136M 94.5% and the 9M 88.9%.

Large model

GPT-3.5-turbo-instruct

Size not disclosed · OpenAI

Used as released, given the whole game so far in PGN notation, following Carlini (2023)

Base
General model, not trained for chess

Evaluation

10,000 test items

Test set
10,000 Lichess puzzles rated 399 to 2867
Metric
Puzzle accuracy: the whole move sequence must match the solution
How it was compared
Same puzzles and scoring for both. GPT-3.5-turbo-instruct got the whole game as PGN, the 270M only the board and the legal moves; GPT-3.5’s settings and handling of illegal moves aren’t stated.

As the general language model, the team used GPT-3.5-turbo-instruct with a method from Nicholas Carlini: the model gets the whole game so far in PGN notation and continues it. It solved 66.5% of the same puzzles. GPT-4 wasn’t tested, because Carlini had found that it struggled to play full games without illegal moves.

Speed, games and versions

Without search, an answer comes fast: 57 milliseconds per move on average on a single TPU v5, over 1,000 opening positions, against about 1.5 seconds for Stockfish at the setting used to label the data. The authors still call their models too slow for computer-chess tournaments with compute limits. The paper reports no cost, and no time per move for GPT-3.5-turbo-instruct.

In blitz games on Lichess the 270M reached an Elo of 2895 against humans and 2299 against bots; GPT-3.5-turbo-instruct reached 1755 against bots. The 95.4% is from the October 2024 version of the paper; the first version, in February 2024, reported 93.5% for the 270M and the same 66.5% for GPT-3.5-turbo-instruct.

All the numbers

Show all numbersHide all numbersEvery model · Cost, latency and energy · The full table

Every model on the headline test

Cost, latency and energy, as reported

Cost · per 1,000 moves
Not reported
Elo · Lichess blitz, vs bots
2299
1755
Latency · per move
57 ms1× Google TPU v5
not reportedOpenAI API, hardware not disclosed
Energy
Not reported

The full table

ModelPuzzlesElo vs botsvs humansPer move
270M transformer95.4%2299289557 ms
136M transformer94.5%2156—32 ms
9M transformer88.9%2054—14.5 ms
GPT-3.5-turbo-instruct66.5%1755——

Times are averages over 1,000 opening positions on a single TPU v5 (paper, Table A3). The paper reports no cost.

Worth knowing

  • The model is given the list of legal moves by the chess program and only ranks them; it never has to produce a legal move itself. How illegal moves by GPT-3.5-turbo-instruct were handled is not described in the parts we read.
  • In games (not puzzles), two workarounds were used. A check against threefold repetition. And when the model’s top five moves all scored above 99% win probability, the authors checked with Stockfish and played Stockfish’s top choice among them (§4).
  • ‘Grandmaster level’ holds only against humans; against bots the Elo is lower. A third-party critique (Panickssery) argues that Lichess 2300 is roughly FIDE 2000.
  • The model imitates Stockfish; it doesn’t discover chess on its own. GPT-3.5-turbo-instruct is a 2023 model.
2 more caveats
  • Recent frontier models were tested on other puzzle sets, so they’re not compared here. We’re running them on the same set (see “Next on the bench”).
  • Code is Apache-2.0; the weights are CC-BY 4.0.

Weights

Weights published, but not on Hugging Face (official)

DeepMind publishes the 9M, 136M and 270M checkpoints via the GitHub repository’s download script (weights CC-BY 4.0, code Apache 2.0). There is no official DeepMind repository on Hugging Face.

GPT-3.5-turbo-instruct: closed, no weights.

Sources

  1. Ruoss et al. (Google DeepMind), ‘Amortized Planning with Large-Scale Transformers: A Case Study on Chess’, arXiv 2402.04494v2, 21 Oct 2024Primary (paper)
  2. github.com/google-deepmind/searchless_chess (README: licences, checkpoints)Primary (code)
  3. Arjun Panickssery, ‘Skepticism about DeepMind’s grandmaster-level chess’, 12 Feb 2024Third-party critique
4 more sources behind this page
  1. arXiv 2402.04494v2
  2. github.com/google-deepmind/searchless_chess
  3. nicholas.carlini.com/writing/2023/chess-llm.html
  4. arXiv 2402.04494v1
Share this benchmark

Drawing the image…

Post text