Search the guide

Start with a guide

Research article

Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights

Rikiya Takehi, Jayden Teoh, Alex Zhang, Omar Khattab

A general-purpose LLM reads numerical weights, constructs networks, and edits a language model. Tool access varies by experiment, from no tools to Python and limited model executions.

Read, construct and edit

Published on November 2, 2026, Sparks presents three operations: infer behavior from weights, write a network for a task, and modify an existing network. It connects small-network examples with language-model analysis and repair.

Its general-purpose LLM is not specifically trained for this purpose. PAW specifically trains a compiler to generate programs; Tracr constructs weights through formal compilation. The shared subject is programming neural computation through weights.

Read the experimental conditions separately

Game identification and small-network construction use no tools. Language identification permits Python but no model forward pass. Go construction and Qwen repair permit Python and bounded forward-pass feedback. Qwen repair targets repetition loops in a specified model and evaluation setting.

The released logs include prompts, model responses, sandbox code, evaluations and network artifacts. The edited checkpoint documents the weight changes. A community demo compares base and edited outputs.

Responses and independent tests

Matthew Honnibal challenges combining different tool and feedback conditions into one capability claim. Sean Goedecke questions the superhuman-research interpretation. The authors’ November 12 response explains their broader framing and addresses experimental comparisons.

Simon Willison repeats game identification with a local model. Goworek and colleagues test changed games, code-policy controls and shuffled weights. Read the experiment analysis for the connections between these results.

How it works

Construction
The LLM reasons about the computation and writes the numerical parameters. Larger experiments use a Python environment and forward-pass feedback.
Preparation and training
The general-purpose LLM is not specifically trained for this purpose. The reported construction and editing procedures prohibit gradient descent and training loops.
Execution
The constructed or edited network runs on new inputs.

Cite this work

BibTeX
@misc{sparks-weight-space-programming,
  title = {{Sparks of Weight-Space Programming: LLMs can natively read \& write neural network weights}},
  author = {Takehi, Rikiya and Teoh, Jayden and Zhang, Alex and Khattab, Omar},
  year = {2026},
  date = {2026-11-02},
  howpublished = {Research article},
  url = {https://rikiyat.github.io/blog/weight-space-programming/}
}

Related reading