Open Interpretability Models Contributors Research Posts About

Sparks of Weight-Space Programming

Source

Citation. Rikiya Takehi, Jayden Teoh (equal contribution), Alex Zhang and Omar Khattab, all of MIT CSAIL. "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights". Blog post, rikiyat.github.io, 2 November 2026, with a "Response to Comments" section added on 12 November 2026. Post, logs (logs, data and networks CC BY 4.0, scripts MIT). An edited Qwen model and a demo are on Hugging Face. A blog post, no venue. The model under study, "Astra", is OpenAI's gpt-6-astra, as the logs' README says. Mismatch: the README's title is "LLMs can understand and write neural network weights", not the post's. The post calls the logs "complete", and the README says that trial runs of earlier prompts are left out.

Status. Planned. #4782 would use it in its strand on weight-space programming. It is also evidence for #5144, which asks how far a reading from weights alone can go. No code, skill or protocol in this repo depends on it. The maintainer designs the campaign to fix models, so the Qwen edit below is evidence only.

Read. On 2026-11-21 a web-fetch subagent (Claude) read the whole post as extracted text, with the response section, and the logs repository's README and file list. It did not open the experiment folders, the figures, the demos or the papers the post cites. The reader was this page's author, a model (Claude Opus 5.5), through that subagent's report.

Summary

Claim. A frontier LLM can read a network's weights to say what it does. It can also write or edit weights to change what it does, from a plain-language request. It needs no gradients. The authors call these "very early results" and say that "Weight-Space Programming is not a method".

Method. Eight experiments, each with the LLM working from the weights as text or in a Python sandbox. Some runs allow no tools, and some allow a budget of forward passes.

Findings, as the source reports them.

Setting Result
4 PPO game policies, 17,253 weights each The right game for all four
3 character transformers, 4 layers × 6 heads, weights only Named copying heads match the ground truth in each model (2 attempts each). Ground-truth scores: copying heads 0.22–0.55, other heads at most 0.02
Sycophantic against honest Gemma 3 270M, 3 pairs Weights alone failed in four attempts. Attention patterns on texts the LLM wrote succeeded: in head 10.2, attention to the question's numbers is 94.3% (honest) against 3.5% (sycophant)
Kinetix car policy, 171,664 weights PPO fails in 256 episodes. One edit to 3.5% of the weights succeeds in 1,024
MinAtar, written with no tools, 1,000 episodes Breakout 517.4 against 25.3 for PPO at 500M steps. Seaquest 53.1 against 88.9. Asterix 53.2 against 55.2
Qwen3.5-0.8B, edit to 131,072 weights (0.016%), 50 forward passes MATH-500 7.9 → 48.1. GSM8K 13.8 → 67.1. IFEval 21.0 → 62.3. Answers that hit the 32,768-token limit: 93.0% → 33.1%
Same edit, after 10 and 25 passes MATH-500 12.3 and 14.1
Gemma 3 270M, math 6.8 → at most 7.7: no real gain

Where the claims go beyond the evidence

The authors state the main limits themselves. The results are early, and context length and the harness limit them. An edit "could not add an ability the model lacked". The weights-only reading of Gemma failed.

Use in this repo