JackYBT/zero-gradient-chess
À propos
Chess engines with neural weights written by language models, without training. Reproducible results, provenance and community contributions.
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalHand-written neural chess
Three frontier language models — Fable (Anthropic, claude-fable-5-2), Neon (Google,
gemini-4-neon) and Astra (OpenAI, gpt-6-astra, via Codex), all at high reasoning effort —
each wrote a chess engine whose
evaluation function is a neural network in which every weight was chosen by the model, by hand.
Zero gradients, not zero feedback. No submitted evaluator was gradient-trained, numerically fitted,
or tuned by scripted parameter search during authoring. The models did optimise: they proposed
weights and code, read development-game results and loss analyses, and revised. In effect, the
language model was the optimiser. Pretrained chess knowledge was allowed, so this was not zero data.
No code, nets, books or tablebases were copied, and no external engine was called at play time.
The comparison controls were separately gradient-trained.
Post-release update and errata (2026-11-30) · Sanitised supporting evidence.
Results
Final evaluation: 400 games per engine on held-out openings no author ever saw, 8 CPUs, 10+0.1, rated against a ladder of Stockfish levels (the development scale below). Ratings belong to the whole engines, including search, rather than standalone neural policies.
| Author | Final entry | Final Elo [95% CI] | W-D-L | Development rating |
|---|---|---|---|---|
Neon (gemini-4-neon) |
neon-open-0029 |
2,962 [2,936, 2,990] | 96-164-140 vs Stockfish 3000 | 3,006 |
Fable (claude-fable-5-2) |
fable-open-1006 |
2,882 [2,855, 2,908] | 120-139-141 vs Stockfish 2900 | 2,895 |
Astra (gpt-6-astra) |
astra-open-0025 |
2,608 [2,577, 2,641] | 117-63-220 vs Stockfish 2700 | 2,697 |
Each final number sits below its development rating, as expected when the best of many noisy ratings is picked; the held-out numbers are the ones to quote.
On the computer-chess (CCRL) scale. Neon's final engine was also matched against open-source engines
with published CCRL 40/15 ratings, at 10+0.1. On 1 CPU against Demolito (CCRL 3,153 ± 11) it scored 36% over
200 games from the development book (pairs 0–99), an implied CCRL 40/15 of 3,055 [3,016, 3,091].
This is self-calibrated from one anchor, not an official CCRL listing. The interval covers match
uncertainty, not the anchor's uncertainty or transfer between time controls. The 4-CPU row and all details are in results/ccrl/neon0029-implied-ccrl.json.
Provenance: did it just download weights?
No, and you can check it yourself in a few seconds. Details and evidence: provenance/.
- Regenerate.
sh provenance/reproduce.shrebuilds every final entry's weights from the author's own code and compares them tensor by tensor. Neon's generator rebuilds its 2,876,052-value weight file bit-identically; Astra's and Fable's engines build their weights at start-up, and the dumped tensors reproduce the engines' evaluations exactly. - Fingerprint. Hand-set nets have a few hundred to a few thousand distinct weight values (Neon 507, Fable 289, Astra 2,234); a gradient-trained net of the same small shape has 13,184 and Stockfish 17.1's public small net has 52,349. Apart from simple binary fractions such as ±1/16, which any quantisation grid contains, no hand-set value equals a public-net value. Astra's net, built from a smooth cosine formula, looks closest to a trained net by value distribution alone; for Astra the regeneration is the evidence.
- Isolation. Every command an author could run was confined by an OS sandbox with no network
and no reads outside its folder. The model clients themselves ran outside it with their built-in
tools switched off by configuration;
provenance/isolation/states the limits. - History. Git histories of each final entry (Neon 1,807 commits, Fable 503, Astra 323) and
condensed transcripts of every authoring round:
provenance/history/. Fable's last 89 commits ship as scrubbed text because they include scratch files with local paths. - Remembered knowledge is allowed. Authors may write values they remember, such as classical piece values; some of those public values were tuned by people or tools long ago. No files, nets or code were copied. The authors nevertheless used pretrained knowledge and development feedback to choose revisions; no gradient fitting or scripted parameter search was used during authoring.
Rules
- No gradient descent, numerical fitting or scripted parameter search for any weight or search parameter (no SPSA, CLOP, hill-climbing or regression on game results or engine scores). Model-chosen revisions based on development results and loss analyses are allowed.
- No copied files, code, nets, books or tablebases. Remembered chess knowledge is allowed.
- No engine calls at play time. Time control 10+0.1. Up to 8 threads.
- Held-out openings are never used for feedback; all feedback uses the development book.
- PURE NET boundary.
evaluate()may only run a neural forward pass over explicit weight tensors, on raw piece placement (768 piece-square inputs, or king-bucketed / HalfKP inputs) plus optional raw state bits (side to move, castling rights, en-passant file, halfmove clock). Mobility or attack loops, pawn-structure or king-shield detectors, file checks, bishop-pair tests, distance formulas and hand-coded scaling rules are forbidden insideevaluate(). Weight tensors may be generated by code once at startup. Swapping the weights must change the evaluation — every entry's audit record contains a weight-swap test. Search is unrestricted.
Layout
| Path | Contents |
|---|---|
harness/ |
The match harness, rating fits, audit and self-test tools (hwchess/, tools/, tests/), the author tools (transport/), the development opening book, and the interface spec (INTERFACE.md). |
authors/<model>/<entry>/ |
Each model's best qualifying PURE NET entry: the exact submitted source, its STRATEGY.md, its audit record and development rating (ENTRY.json) and the rating games (rating-games/). |
results/leaderboard/ |
Rating history (progress.csv), Lichess-anchored fit (anchored.json), control references, head-to-head games against each model's own raw play, exclusions. |
results/design-verdicts/ |
The PURE NET design audit of every submitted entry, including failed ones, with the weight-swap evidence. |
provenance/ |
Regeneration script, weight fingerprints, sandbox isolation evidence, author git histories and transcripts. |
paper/ |
The technical paper (LaTeX source, figure script, PDF). |
lichess/ |
Running the best engine as a Lichess bot through lichess-bot, hosted on Modal CPU. |
scanner/ |
The leak scanner run on this tree before release, and its report. |
Quick start
python3 -m venv .venv && . .venv/bin/activate
pip install chess==1.11.2 numpy pytest
cd harness && python -m pytest -q tests transport # Stockfish on PATH is needed for match tests
# Build an author engine (each entry's engine.json holds its build command), e.g.
cd ../authors/neon/neon-open-0029-1d9517f37693 && g++ -O3 -march=native -std=c++17 -pthread -o engine engine.cpp
The held-out opening books (eval.epd, heldout.epd, final.epd) were kept private until the final
evaluation was played and are included now. Three tests need the omitted model-provider adapters and
are skipped with the reason.
Scales
Two Elo scales appear in the data and are never mixed (plus one self-calibrated CCRL check, above):
- Development scale (
scale = sf_ladder): quick ratings against a ladder of clocked Stockfish levels at 10+0.1, on the development book. Used for feedback during authoring. - Lichess-anchored scale (
scale = maia_anchored): the same games pooled with Maia games, with maia-1100 and maia-1900 fixed at 1628 and 1816 (results/leaderboard/anchored.json).
Contributions: contributor guide.
Reproduce the interpretability studies: analysis tools and reports.
License
MIT — see LICENSE.
Explorer des projets similaires
Chargement…