Arkonium 0.9

Arkonium 0.9 is Convergent's strongest chess engine so far. It is a neural network trained from random initialisation (not a fine-tune of another model) that is used inside a Monte Carlo tree search, in the style of AlphaZero and Leela Chess Zero. It follows the Arkon line (Arkon 0.1 to Arkon-AoM 1.0 Maximum). Its architecture, data and search are new.

Network squeeze-and-excitation ResNet, 20 blocks x 256 channels, 25,234,441 parameters
Policy head from-square x to-square attention (4,096 moves) plus 72 under-promotions
Value head expected score for the side to move
Search PUCT Monte Carlo tree search, batched GPU evaluation (32 positions, CUDA graphs)
Speed about 1,800 to 2,200 visits per second on an RTX 3060 Ti; about 130 per second on CPU
Weights arkonium-0.9.safetensors (101 MB) + config.json

Results

Against Stockfish 18 with limited strength

The protocol is the same one used for the Arkon 1.0 ratings:

  • Stockfish 18 with UCI_LimitStrength at fixed UCI_Elo settings, Threads 1, Hash 16 MB.
  • 0.5 seconds per move for both sides.
  • Paired openings: every opening is played once with each colour.
  • At most 200 plies after the opening.
  • Maximum-likelihood rating over all games, with a 95 % interval from an opening-pair bootstrap.

96 games were played. The 3 games that reached the ply limit are not counted.

Stockfish setting Win Draw Loss Unfinished
1800 12 0 0 0
2000 12 0 0 0
2200 11 0 1 0
2400 8 3 1 0
2600 9 3 0 0
2800 7 3 0 2
3000 3 2 6 1
3190 (maximum) 0 5 7 0

Estimate: 2910 on the Stockfish UCI_Elo scale (95 % interval 2827 to 2990).

Earlier engines of the line, measured with the same protocol:

Engine Estimate
Arkon 1.0 Maximum 1574
Arkon-AoM 1.0 Maximum 1941
Arkonium 0.9 2910

How to read these numbers:

  • They are not FIDE or Lichess ratings. Stockfish calibrates UCI_Elo against engine rating lists at longer time controls; here both sides get 0.5 s per move.
  • Arkonium searched on an RTX 3060 Ti GPU. The Arkon 1.0 numbers were measured with the Arkon engines on CPU.
  • 12 games per setting is a small sample. The interval above shows the uncertainty.

Head-to-head against Arkon-AoM 1.0 Maximum

20 games with 0.1 s per move. There were 10 paired openings, and every opening was played once with each colour. Both engines ran on the same RTX 3060 Ti, with five games in parallel.

Win Draw Loss Score
Arkonium 0.9 16 4 0 18 : 2

All 16 wins ended in checkmate. Average thinking time was 97 ms per move for Arkonium and 89 ms for Arkon-AoM. Under GPU load from the parallel games, Arkonium's longest move took 229 ms. The games are in results/duel-arkon-aom.json.

Lichess puzzles

The test set has 1,050 Lichess puzzles: 150 per 400-point rating band, each with popularity at least 80 and at least 500 plays, sampled with a fixed seed. A puzzle counts as solved only if every move of the solution is found; a different move that mates at once also counts, as on Lichess.

Puzzle rating Network only (no search) Search, 400 visits per move Search, 1600 visits per move
400-799 147/150 150/150 150/150
800-1199 133/150 149/150 150/150
1200-1599 116/150 147/150 148/150
1600-1999 96/150 147/150 148/150
2000-2399 58/150 129/150 138/150
2400-2799 28/150 104/150 125/150
2800+ 5/150 48/150 90/150
Total 583/1050 (55.5 %) 874/1050 (83.2 %) 949/1050 (90.4 %)

The starting positions of 11 of the 1,050 puzzles also occur in the training data. Without them the scores are 577/1039 (55.5 %) without search, 866/1039 (83.3 %) with 400 visits and 940/1039 (90.5 %) with 1600 visits.

Training

  • Data: 55,559,925 positions from three of the twenty files (0, 6 and 13) of the Lichess evaluation database (Lichess/chess-position-evaluations, CC0). Lichess users evaluated these positions with Stockfish, often to depth 40 and beyond.
    • For each position the deepest evaluation is used, with up to five principal variations.
    • Policy target: the first moves of those variations, weighted by their centipawn gap (softmax with a 60 cp temperature).
    • Value target: the expected score of the best line, using the Lichess win-probability formula (mate = 1).
    • Arkonium therefore learns from Stockfish evaluations; it did not learn by self-play.
  • Run: one pass over the data (54,062 steps of 1,024 positions).
    • Optimizer: AdamW with learning rate 2e-3 and a warm-up / stable / decay schedule.
    • bf16 on one RTX 3060 Ti, about 6.5 hours.
  • Held-out positions (200,000):
    • The network's first choice equals Stockfish's best move in 51.8 % of positions.
    • Value mean squared error 0.0387 on the [-1, 1] scale.

Use

Requirements: Python 3.10+ and the packages in requirements.txt. A CUDA GPU is strongly recommended; on CPU the engine is far weaker. Install PyTorch with CUDA support from pytorch.org first, then:

pip install -r requirements.txt

Download everything in this repository into one folder:

hf download Convergent-ch/Arkonium-0.9 --local-dir Arkonium-0.9
cd Arkonium-0.9

Play in the terminal:

python play.py --seconds 2           # you play White
python play.py --black --seconds 2   # you play Black

Use Arkonium in a chess GUI (Cute Chess, Arena, BanksiaGUI, ...) as a UCI engine with the command python uci.py, or with Arkonium-0.9-UCI.cmd on Windows.

Use it from Python:

import chess
from engine import Engine

engine = Engine("arkonium-0.9.safetensors")      # uses the GPU when one is available
board = chess.Board()
move, stats = engine.search(board, seconds=1.0)  # or nodes=800
print(board.san(move), stats["q"], stats["pv"])

The engine supports go movetime, go nodes, and clock-based time control.

Limitations

  • Board input: the network sees only the current position, not earlier positions. Draws by repetition are handled by the search (a repeated position counts as a draw inside the tree), not by the network.
  • Draws in won positions: in some won endgames it let the opponent escape into a draw (repetition or a stalemate trick).
  • Speed: the search is written in Python, so it visits about 2,000 positions per second. Engines written in C++ search far more positions per second.

Files

File Purpose
arkonium-0.9.safetensors, config.json network weights and configuration
model.py, encoding.py network definition, board and move encoding
engine.py Monte Carlo tree search
uci.py, Arkonium-0.9-UCI.cmd UCI engine for chess GUIs
play.py play in the terminal
requirements.txt Python packages
results/ all rating games, puzzle results and the Arkon-AoM duel

License

Apache 2.0 for the code and weights. Training data: Lichess evaluation database (CC0).

Downloads last month
22
Video Preview
loading

Dataset used to train Convergent-ch/Arkonium-0.9