chessforge-5m is a 5,123,809-parameter searchless human chess behavioral & cognitive-effort foundation model built in JAX / Flax NNX. Strictly smaller than MAIA-3-5M (5,230,084 parameters), it jointly models human move selection and normalized thinking time $p_\theta(a, u \mid s) = p_\theta(u \mid s),p_\theta(a \mid s, u)$ across both Titled Online (Blitz/Rapid) and FIDE Over-The-Board (OTB) Classical chess.
Key Highlights
Strictly Parameter-Matched Small-Scale SOTA: With fewer parameters than MAIA-3-5M (5.12M vs. 5.23M), chessforge-5m outperforms MAIA-3-5M by +1.55% Move Accuracy on Titled Online (60.55% vs. 59.00%, paired McNemar $\chi^2 = 211.11, p = 7.88 \times 10^{-48}$) and +2.88% on FIDE OTB (54.87% vs. 51.99%, $\chi^2 = 892.78, p = 3.64 \times 10^{-196}$).
Surpasses MAIA-3-23M on Classical OTB & MAIA-3-79M on Outcome Calibration: Despite having 4.5× fewer parameters and 8× fewer training examples (512M vs. 4.10B), chessforge-5m beats MAIA-3-23M on FIDE OTB move prediction (54.87% vs. 54.57%, $p = 7.28 \times 10^{-4}$) and outperforms MAIA-3-79M (15.4× larger) on WDL game-outcome calibration across both domains (61.54% vs. 60.64% Online; 62.21% vs. 57.08% OTB).
Joint Move & Cognitive-Effort Factorization: Predicts a 16-bin HL-Gauss distribution over scale-invariant cognitive effort $u \in [0,1]$ (Pearson $r = 0.6559$, $\text{MAE} = 0.1024$) and conditions move logits on effort via a rank-16 bilinear EffortMoveResidual (+6,464 parameters), capturing fast System-1 intuition vs. slow System-2 calculation ($I(A; U \mid S) = 0.0260\text{ nats}$).
Architectural Innovations Over Vanilla Chessformer / MAIA-3
Component
MAIA-3-5M (5.23M)
chessforge-5m (5.12M, Ours)
Board State Markovity
Non-Markov ($8\times 12$ piece planes only)
Full Markov v3: piece history + relative castling + side-to-move EP square + Zobrist repetitions
All training shards strictly terminate on or before July 2025. Models are evaluated zero-shot on held-out post-cutoff benchmarks annotated with Stockfish 16 (5,000 nodes/move; AntiSF denotes sound human–engine disagreements where $a_{\text{hum}} \neq a_{\text{SF}}$ and $\Delta_{\text{cp}} \le 35$).
import json
from pathlib import Path
import chess
import jax
import jax.numpy as jnp
import numpy as np
from flax import nnx, serialization
from chessforge import chess_utils as cu
from chessforge.config import ModelConfig
from chessforge.models import build_model, forward_model
from chessforge.models.joint_time import sample_joint_move_time
ckpt_dir = Path("./chessforge-5m")
meta = json.loads((ckpt_dir / "model_config.json").read_text())
model_cfg = ModelConfig(**meta["model_config"])
# Build model & load pure fp32 weights from model.msgpack
model = build_model(model_cfg, rngs=0)
graphdef, state = nnx.split(model)
template = jax.tree.map(np.asarray, nnx.to_pure_dict(state))
pure_params = serialization.from_bytes(template, (ckpt_dir / "model.msgpack").read_bytes())
pure_params = jax.tree.map(jnp.asarray, pure_params)
ifhasattr(nnx, "replace_by_pure_dict"):
nnx.replace_by_pure_dict(state, pure_params)
else:
state.replace_by_pure_dict(pure_params)
model = nnx.merge(graphdef, state)
# Run inference on starting position (GM 2550, 180s remaining clock)
board = chess.Board()
legal = np.zeros((1, cu.VOCAB_SIZE), dtype=bool)
legal[0, cu.legal_move_indices(board)] = True
batch = {
"board": jnp.asarray(np.tile(cu.board_codes(board), (1, model_cfg.history, 1))),
"self_elo": jnp.array([2550.0]),
"oppo_elo": jnp.array([2550.0]),
"self_title": jnp.array([cu.TITLE_GRANDMASTER]),
"oppo_title": jnp.array([cu.TITLE_GRANDMASTER]),
"game_format": jnp.array([cu.FORMAT_BLITZ]),
"clk_left": jnp.array([180.0]),
"has_clock": jnp.array([1.0]),
"legal": jnp.asarray(legal),
}
logits_move, logits_value, ponder_sec, aux = forward_model(model, batch, deterministic=True, return_aux=True)
sample = sample_joint_move_time(
jax.random.PRNGKey(0), aux["ponder_logits"], aux["conditional_move_logits"], batch["clk_left"], batch["legal"]
)
print("Top marginal move:", cu.index_to_uci(int(jnp.argmax(logits_move[0]))))
print("Sampled (move, think_sec):", cu.index_to_uci(int(sample["move"][0])), round(float(sample["ponder_sec"][0]), 2))
print("WDL probs [loss, draw, win]:", jax.nn.softmax(logits_value[0]).tolist())
Training Provenance & Limitations
Training Corpus (Strictly Pre-Cutoff <= 2025-07): Trained for 250,000 steps at global_batch_size = 2048 (512M positions) on a single Google Cloud TPU v6e-1 using an exact 1-pass streaming shard iterator (0% within-epoch duplicates) and Warmup–Stable–Decay (WSD, lr = 4.0e-4 -> 2.0e-6, grad_clip_norm = 2.0). The first 80% (200k steps) trained on Pool B (703.6M unique positions: Lichess Blitz + Rapid $\ge 1800$ Elo with official title purity enforced $\ge 2350$ Elo + uncapped titled games + FIDE OTB), followed by 20% cosine annealing (50k steps) on Pool C (310.6M unique positions: 88.26% Pure Titled Online + 11.74% FIDE OTB Classical).
Limitations: Because ~88% of titled training examples carry online game priors, passing --mask_titles during inference on classical OTB games can slightly improve pure classical calibration. This 5.12M checkpoint is Stage-2 WSD-trained (without Stage-3 Anti-Engine DPO); for anti-engine preference-aligned weights, see chessforge/chessforge-35m.
Citation
@misc{acharya2026chessforge,
title = {ChessForge: Joint Move--Effort Modeling, Domain-Aligned Scaling, and Anti-Engine Alignment for Master and Over-the-Board Human Chess},
author = {Acharya, Rishiraj and Rakshit, Soumik},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/chessforge/chessforge-5m}}
}