An LLM That Reads and Writes Neural Network Weights
Here is something that should not work: take a neural network trained to play Breakout. Strip away any metadata, any labels, any human-readable hints. Dump the raw weights as a list of numbers. Hand them to an LLM and ask, "What game was this network trained to play?"
GPT-6 Astra answers correctly. 99% confident. Breakout [1].
A new blog post by Rikiya Tanaka demonstrates that frontier LLMs can natively read and write neural network weights, without gradient descent, without training loops, and in some cases without any environment feedback at all. The post calls this "Weight-Space Programming," and it sits at the top of Hacker News with over 2'600 points and 800 comments [2].
Reading weights
The experiments start small. Four MLPs with identical architecture (17'253 weights each) were trained with PPO on four different games: Breakout, Pong, Pac-Man, and Freeway. Astra gets the weights as text, plus a description of the grid and actions. No game names are mentioned. It correctly identifies all four.
How? It reads the first-layer weights. For Breakout, the agent's input weights concentrate along the bottom row of the grid, which is where a paddle lives. The output layer tells it which actions matter. From those geometric clues alone, it names the game.
The post then raises the stakes. Astra is given diffusion models trained to generate circles, squares, and triangles. It correctly identifies each shape from the weights alone, without running a single forward pass. It even draws the shapes by reading the output layer, where each hidden unit traces one edge of the shape's outline.
Then the real test: can it read intermediate layers? Three small language models (7.2M parameters) were trained on Python, romaji, and English. The input and output layers were removed. Astra got only the four transformer blocks in between, with no labels on the 384 dimensions, and was not allowed to run the network on any input. It identified the correct language for all three models and correctly located every copying head (induction head) in each one [3].
Writing weights
Reading is impressive. Writing is where it gets unsettling.
A PPO-trained network for a car-on-ramp task gets stuck in a local minimum: it drives straight at the ramp and never backs up to get a running start. Astra is given the weights, the scene description, and one recorded episode. It identifies the failure, then edits 3.5% of the weights in a single shot. The car succeeds on all 1'024 subsequent episodes.
The fix is not random. Astra adds a small parallel path through a few units per layer that reads the car's position and speed. Once the car is past the ramp, the path switches off and the original trained policy takes over. That is a surgically inserted circuit, written by an LLM in natural language reasoning [4].
Then the zero-shot test: Astra is given the rules and source code for three MinAtar games (Breakout, Seaquest, Asterix) and asked to write network weights from scratch. No data, no loss, no gradients, no tools, no trial runs. The networks it writes beat PPO trained for 100 million steps in all three games. Against PPO trained for 500 million steps, Astra's Breakout network scores 20 times higher [5].
Fixing Qwen
The most real-world-relevant experiment: Astra is asked to make Qwen3.5-0.8B better at math, without gradients. It identifies a reasoning loop issue in the weights that Qwen's own model card warns about. It fixes this by editing 0.016% of the weights. MATH-500 scores jump from 7.9% to 48.1%. IFEval (instruction following) improves by 3x, generalizing beyond the math fix [6].
That is a 0.016% weight edit producing a 6x improvement on a math benchmark, plus out-of-distribution generalization to a completely different task. The implications for interpretability and model patching are significant.
Why this matters
Throughout the history of deep learning, we have encoded our inductive biases into small symbolic optimizers like Adam or Muon. The post argues this is changing: neural network weights will soon be natively optimized by LLMs that deliberately reason about them.
Whether that turns out to be true at scale is an open question. All the experiments here use small networks (the largest is 1.5M parameters for a Go policy). The Qwen edit is real but narrow. But the direction is clear: LLMs are developing a native understanding of weight space, not just token space, and that opens a door that did not exist before [7].
The full post is worth reading. It includes detailed experimental setups, ablations, and a scaling analysis of how Astra's Go performance improves with more forward-pass budget. The code and logs are on GitHub [8].
Footnotes
[1] Rikiya Tanaka, "Sparks of Weight-Space Programming: LLMs can natively read and write neural network weights," rikiyat.github.io, November 2026.
[2] Hacker News discussion: news.ycombinator.com/item?id=50341174, 2'685 points, 812 comments as of November 3, 2026.
[3] The copying head (induction head) is a known mechanism described by Elhage et al. in the Anthropic interpretability papers. Astra was not told about this concept and discovered it independently from the weights.
[4] The Kinetix environment is a physics-based reinforcement learning benchmark. The car-on-ramp task requires the agent to reverse before accelerating forward.
[5] MinAtar is a simplified version of Atari games on a 10x10 grid. PPO results are the best of 3 to 10 seeds. Astra's networks were scored over 1'000 episodes each.
[6] Qwen3.5-0.8B is a small language model from Alibaba. The model card warning about reasoning loops is documented on Hugging Face.
[7] The post explicitly frames this as "very early results" and uses cautious language throughout. The experiments are reproducible and the code is open.
[8] Experiment logs and code: github.com/RikiyaT/lm_understand-logs.