r/MachineLearning • u/jackyuanybt • 33m ago
Project Three LLMs hand-wrote every weight of a chess neural net with zero training. Best reached ~3,000 Elo [P]
https://x.com/JackYuan35/status/2127094713996247069?s=20
I gave Claude, GPT and Gemini one rule: build a chess engine whose position evaluation is a neural network, but no training, no fitting, no auto-tuning. They had to write every weight themselves, as code, then play test games and iterate. Search code was unrestricted; an auditor zeroes/perturbs the weight tensors to make sure the net actually does the evaluating.
Final results (400 games, held-out openings, vs a Stockfish ladder at 10+0.1):
- Gemini: 2,962 [2,936, 2,990]
- Claude: 2,882 [2,855, 2,908]
- GPT: 2,608 [2,577, 2,641]
For context, the same models playing chess directly rate ~1,800–2,200 on the LLM Chess Benchmark. So each built an engine far stronger than itself.
Things I found interesting:
- Each picked a different design: Gemini a 2.9M-weight deep net, Claude a sparse net of named chess concepts (it has a "passed pawn" neuron), GPT a tiny 13k net with a strong search.
- With the same tiny 13k-weight net and the same fixed search, all three hand-written nets beat our own gradient-trained version of that net.
- Without search, the nets play ~1,150. The search matters a lot (they wrote that too).
- Claude was disqualified 14 times for slipping classical eval code in. Once it argued its if-statements were "an unmaterialized 4.5M-connection ReLU circuit."
Everything is open: code, weights, every audit and transcript. Each net regenerates bit-for-bit from the model's own code, and the sandboxes had no internet.
Code: github.com/JackYBT/zero-gradient-chess
Report: bitianyuan.com/writing/zero-gradient-chess
Play it: lichess.org/@/ZeroGradient