Jacob Strauss replicated MIT CSAIL’s weight-space programming experiments. He built a harness letting an LLM read and write neural network weights directly. The LLM used Claude Opus 5.5 and ran in a Docker container with no internet access. It solved MNIST with 64.1% accuracy using template matching. It achieved a perfect score on CartPole by implementing a linear rule. It scored 86.2% on IMDB sentiment analysis by assigning sentiment scores to words. It solved Two Spirals with 99.9% accuracy by designing a layered approach. It solved the Brackets task with 100% accuracy using simple counters. It improved a Shakespeare LSTM from 39.9% to 40.5% accuracy. The experiments showed LLMs can reason explicitly about weights but struggle with undertrained models. Weight-space programming offers interpretability but is not yet a replacement for gradient descent.
What changed
Neural network weights were typically set via gradient descent or random initialization.
What it unlocks
Directly editing neural network weights to solve tasks without training loops.
- 64.1% test accuracy on MNIST
- 86.2% test accuracy on IMDB
- 99.9% test accuracy on Two Spirals
- 100% accuracy on Brackets
What you need to act on it
- access to a frontier LLM like Claude Opus 5.5
- a harness to read and write weights as NumPy arrays
- a constrained environment to prevent rule-breaking
Sources