Weight-Space Programming builds neural networks like a 1990s researcher
TL;DR Highlight
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques
Who Should Read
A backend or AI-service developer curious what Weight-Space Programming, where LLMs write neural network weights, actually does in practice
Core Mechanics
- LLM wrote every weight by hand
- Claude Fable 5.2 had to set all 5,994 weights of a fixed CNN in code.
- No training, regression or search was allowed, and it only got loss, accuracy and a confusion matrix after each attempt.
- Over up to 50 steps, all three runs reached about 90% on the test set.
- It rebuilt a 1990s pipeline
- It used hand-drawn digit templates, naive Bayes-style scoring, and loop and corner detectors.
- All three runs built the same kind of pipeline.
- It matches LeCun's 1998 description of a hand-crafted feature extractor plus a trainable classifier.
- Measuring beat guessing
- In the best run (run 1), step 4 tested the loop detector alone, like a unit test.
- Corner weights stalled at 81% when guessed, then reached 83% after three measurement steps.
- At step 24, plugging in 15 measurements took accuracy from 83% to 88%.
- 91.3% matches Adam's 50 steps
- The best run scored 91.3% on the test set.
- That is roughly where 50 gradient steps of Adam land.
- It is not like-for-like, since Adam sees 3,200 images in total while Claude gets scores over all 10,000 training images at every step.
- Opus 5.5 guessed more and got 74%
- Opus 5.5 reached for the same toolbox.
- It measured less than Fable and preferred guessing.
- It never beat 74% on the test set.
- Harder tasks exposed the limits
- On Dogs vs. Cats (64x64, 24,898 weights) the run stopped at step 17 with 61.6% test accuracy, against 50% for a coin flip.
- Ear detectors failed, while green, texture and vertical edges worked.
- Adam got 55% at 500 steps and 74% at 5,000, and the Fable run cost $8.08 for 17 steps.
- The Go network was a rule-based program
- Astra's Go network from the original post compiled classic Go program elements like liberties, captures, eye avoidance and ko handling into weights.
- Behind the 1.48M weights sat a config of 26 hand-set numbers.
- The author concludes LLMs are chaining hand-designed techniques rather than truly writing in weight space.
Community Reactions
- One commenter said the post demystifies weight-space programming, since models iterate on weights with reasoning like a human engineer's rather than intuiting meaning from a blob.
- A commenter shared an arXiv paper with a benchmarking framework for how well current agents do WSP.
- One commenter asked whether PPO would learn quickly from the hand-engineered solution, or whether PPO gets a terrible init.
- One commenter liked that models dig into a custom, domain-specific solution instead of relying on one-shot answers.
How to Apply
- Run a measure-then-fix loop on a small classifier
- Within 30 minutes, take one classification problem and have the model write a rule-based classifier in 3 to 5 rounds.
- Paste accuracy and a confusion matrix each round, and tell it to measure instead of guess.
- Use the codeExample prompt below.
- Add a step that tests one feature alone
- When an agent's rules or features are evaluated mixed together, spend one step measuring a single feature.
- Change the output so only that feature's activation distribution shows.
- Treat it like a unit test.
- Hide the holdout test set from the model
- When designing iterative improvement loops, feed back only training scores and use test scores only for final selection.
- The original picked the network with the lowest training loss to get the final test score.
Try It
# Paste into a Claude or ChatGPT chat (simplified version of the post's method: a measurement loop done through conversation instead of code)
You work like a 1990s computer vision engineer. With no training, regression or search, you build the classifier below using only hand-designed rules and templates.
Problem: {{problem description}}
Input format: {{data example}}
Rules:
1. Each step, output one complete classifier function in a code block.
2. I will return accuracy and a confusion matrix.
3. Do not tune weights by guessing. Spend one step measuring a single feature alone, for example how often it fires per class.
4. Set weights from the measurements.
First give me the step 1 classifier and 3 candidate features to measure next.
Next: paste the results table back, repeat for steps 2 to 5, and compare accuracy gains from guessing steps versus measuring steps.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
How the Claude Code team thinks about verification
E2E, property and differential tests plus verification rules let Claude run in parallel.