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
2
u/public_hedgehog_3917 13m ago
How are they doing this?
1
u/brainExploded99 8m ago
lmao I've always noticed claude models are the best at pretending they are aligned, when they are not. People need to be careful of claude models, esp with the recent news of it being of very questionable quality on ML tasks.
1
u/Deto 7m ago
Really interesting!
What's the search mean here? Do they propose a set potential of next moves and then the net scores them?
Is it possible they are finding pre-fit nets online and using those?
For your gradient trained version, does it use the same search module?
1
u/HansDelbrook 4m ago
I've been hesitant to give the conversation around LLMs being able to "hand-write" functional nets much weight - is it not expected that a large amount of material related to these tasks would be present in training corpora? Why is the narrative "it wrote this by hand" not "its parroting a version of the problem its seen before"? This is akin to the ability for an LLM to spit out the entirety of Harry Potter, which has been within the realm of reasonable tasks for years.
In other words - we're automatically applying this super-powered reasoning lens to a task that could feasibly be accomplished by parroting - and it may be super-powered reasoning yet, but none of the tasks I've seen (Chess, RL-gym games like Cartpole) rule out the possibility of parroting.