Is recursive self-improvement already here, and not just for big labs?
AI can now read, fix, and build the raw weights of other models.
MIT researchers show that the old ways in which a network learns by slowly adjusting its weights, with an optimizer like Adam or an RL method like PPO they might be surpassed soon. Pre-Weight-Space Programming skips that, you can describe the behavior you want to a frontier LLM, and it inspects the weights and edits them or writes new ones.
Training
Training data
An optimizer like Adam, or an RL method like PPO
Weights adjusted slowly
Weight-Space Programming
The behavior you want, described to a frontier LLM
It inspects the weights
It edits them or writes new ones
title = Training and Weight-Space Programming Training = Training data | An optimizer like Adam, or an RL method like PPO | Weights adjusted slowly Weight-Space Programming = The behavior you want, described to a frontier LLM | It inspects the weights | It edits them or writes new ones
The authors show three things it can do: work out what a network does from its weights alone, fix a problem by changing them, and write a working network from scratch.
Read
Which game was this network trained on?
Sketch: where Breakout's strong weights sit
4 of 4
games named from the weights alone
Fix
Make Qwen3.5-0.8B better at math.
48.1%
on MATH-500, up from 7.9%, with 50 forward passes
Write
Write, from scratch, a network that plays Breakout.
517.4
points in Breakout, vs 25.3 for PPO trained for 500M steps
In one test it changed 0.016% of Qwen3.5-0.8B's weights, and its MATH-500 score went from 7.9% to 48.1%.
But GPT-6 Astra didn't teach Qwen math. Before the edit, Qwen3.5-0.8B ran out of tokens on 93% of math answers, stuck in thinking loops.
Summary of what MIT researchers found
Understanding neural networks just by reading the weights
In 4 trained, identically structured networks on simplified 10×10 versions of Breakout, Pong, Pac-Man, and Freeway, using PPO for 1 billion steps, Astra received the raw weights and the input/output specification, but not the game names. 4 of 4 games identified
Breakout
Pong
Pac-Man
Freeway
Green is the player. Astra named all four games from the weights alone.
title = The four games, drawn as 10×10 boards key = b: grey, o: ink, p: green, e: grey, w: grey, d: dot, y: green, g: ink, c: grey, k: green Breakout = ---------- | bbbbbbbbbb | bbbbbbbbbb | bbbbbbbbbb | ---------- | ------o--- | ---------- | ---------- | ---ppp---- | ---------- Pong = ---------- | e--------- | e--------- | e--------- | -----o---- | ---------- | ---------p | ---------p | ---------p | ---------- Pac-Man = wwwwwwwwww | wddddddddw | wdwwddwwdw | wdddgddddw | wdwdwwdwdw | wdddyddddw | wdwwddwwdw | wddddddddw | wddwwwwddw | wwwwwwwwww Freeway = ---------- | -cc------- | ------cc-- | cc-------- | -----cc--- | --------cc | ---cc----- | cc----cc-- | ---------- | ----k----- note = Green is the player. Astra named all four games from the weights alone.
It interpreted the spatial structure of the weight matrices. For Breakout, for example, it recognized that the network paid particular attention to the bottom row, where the paddle moves.
Identifying images generated by diffusion models
With three small diffusion models that produce circles, triangles, and squares in 12x12 grayscale, it correctly identified all three shapes from their weights, without running the networks. It examined the output-layer weights and found geometric patterns corresponding to shape boundaries. Astra described the shapes as outlines, although the models actually generated filled shapes.
The model generates
Astra described
circle
triangle
square
title = What the models generate and what Astra described shapes = circle, triangle, square series = The model generates | Astra described
Understanding a language model's internal attention heads
Here they removed the input and output layers, leaving only the middle transformer blocks. They trained 3 character-level language models on python, japanese written in roman letters (romaji) and english. Astra was allowed to analyze weight matrices using Python but could not execute any part of the neural network
Was able to identify the exact induction heads confirmed by behavioral measurements, without being shown those measurements.
For Python, it noticed stronger copying mechanisms, consistent with repeated variable names and code patterns. For romaji, it detected a reduced number of distinct directions in the later transformer representations, consistent with its more restricted character usage.
Python
Astra, from the weights
Measured, by running the model
Romaji
Astra, from the weights
Measured, by running the model
English
Astra, from the weights
Measured, by running the model
Each grid: layer 0–3 top to bottom, head 0–5 left to right.
title = Copying heads: Astra vs measured size = 4 x 6 rows = layer cols = head series = Astra, from the weights | Measured, by running the model Python = 2.1, 3.1, 3.5 | 2.1, 3.1, 3.5 Romaji = 3.3 | 3.3 English = 3.1 | 3.1
Writing neural networks from scratch
Tested three simplified Atari-style games: Breakout, Seaquest, and Asterix. After receiving the game rules, source code, and an architecture initialized with zero weights, it was not allowed to train, execute the network, collect data, or test its solution before final evaluation.
Rather than learning through trial and error, Astra reasoned about the ideal algorithm and encoded that algorithm into network weights.
For Breakout, it constructed a circuit that estimates where the ball will land and another circuit that moves the paddle toward that position.
Seems that neural network can, at least for certain small problems, be created as a compiled computational program rather than a statistically trained model.
Astra outperformed PPO trained for 100 million steps in all three games, but did not outperform the 500-million-step baseline in Seaquest or Asterix.
title = MinAtar games, mean score series = PPO, 100M steps | PPO, 500M steps | Astra, one shot Breakout = 15.8, 25.3, 517.4 Seaquest = 5.6, 88.9, 53.1 Asterix = 25.8, 55.2, 53.2
Scaling Weight-Space Programming to larger neural networks
Astra was allowed to use Python to program the weight tensors and, in some conditions, evaluate its network through a limited number of forward-pass batches. It designed the network layer by layer to implement specific Go concepts. With zero feedback, it implemented the policy using 336 lines of Python. When evaluation feedback was allowed, it refined the programmed circuits based on observed failures.
9×9 Go
An illustration, not a game from the paper.
title = A 9×9 Go board style = go note = An illustration, not a game from the paper. 9×9 Go = --------- | --b---w-- | -bbw-ww-- | --bw--b-- | --bww-b-- | -b-bw-b-- | --bw-w--- | -----w--- | ---------
- First layersmark each side's stones and the empty points next to them (liberties)
- Middle layerscarry these along chains of connected stones to find groups in danger
- Last layerscore each move: capture, save its own group, avoid atari, don't fill its own eyes
First layers: mark each side's stones and the empty points next to them (liberties) │ ▼ Middle layers: carry these along chains of connected stones to find groups in danger │ ▼ Last layer: score each move: capture, save its own group, avoid atari, don't fill its own eyes
Weight-Space Programming can extend beyond models small enough to fit into an LLM's context window. Python can serve as a tool for precisely expressing and applying weight modifications.
However, this also shows that limited evaluation feedback can improve the results substantially.
Detecting sycophancy from model internals
Weights only - Failed. Astra could not reliably distinguish the models in four attempts.
Weights + attention patterns -> when given attention patterns from selected test inputs, it correctly identified the sycophantic network in all three model pairs.
The sycophantic model focused disproportionately on the answer suggested by the user, rather than the evidence required to solve the question. LLM-assisted interpretability may identify behavioral differences by connecting internal attention mechanisms to model behavior.
title = Where head 10.2 looks from the answer position max = 100 unit = % series = The question's numbers | The user's answer Honest model = 94.3, 0.75 Sycophant = 3.5, 85.7
Can an LLM improve an existing language model without training?
Improve the mathematical performance of an existing 800-million-parameter language model without using gradient descent.
Astra received a Python environment with access to the model's weights and a limited inference budget on practice problems.
Qwen3.5-0.8B suffered from repetitive reasoning loops. It frequently repeated intermediate reasoning until reaching its maximum token budget without giving an answer.
It found a weight-space direction associated with that problem in MLP layers 15 and 19.
It modified 64 output columns in each layer, changing 131,072 parameters. The identified failure was a general reasoning-loop problem, not a mathematics-specific knowledge deficit.
title = Qwen3.5-0.8B before and after the edit max = 100 unit = % series = Base | Edited, 50 forward passes MATH-500 = 7.9, 48.1 GSM8K = 13.8, 67.1 IFEval = 21.0, 62.3 Answers that hit the token limit (lower is better) = 93.0, 33.1
title = MATH-500 by forward passes max = 100 unit = % series = Base | 10 forward passes | 25 forward passes | 50 forward passes MATH-500 = 7.9, 12.3, 14.1, 48.1
Previous approaches generally use gradient-based optimization, specialized interpretability tools, models specifically trained to generate weights, or gradient-free trial and error.
The distinction in this work is the use of a general-purpose frontier LLM, without specialized weight-space training, to reason about and directly manipulate neural parameters.
Recursive Self-Improvement seems to be here, where AI writes its own programs, generates new math, and learns autonomously.
This is not something super new. In jailbreaking, the core abliteration process works as well without gradient descent. It measures activations, extracts behavioral directions, then directly projects those directions out of the weights.
References
Arditi, A., Obeso, O., Syed, A., Paleka, D., Panickssery, N., Gurnee, W., & Nanda, N. (2024, June 17). Refusal in language models is mediated by a single direction. arXiv. https://arxiv.org/abs/2406.11717
Kadali, S. D. S. S., & Papalexakis, E. E. (2026, February 12). Jailbreaking leaves a trace: Understanding and detecting jailbreak attacks from internal representations of large language models. arXiv. https://arxiv.org/html/2602.11495v1
Takehi, R., Teoh, J., Zhang, A., & Khattab, O. (2026, November 2). Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights. MIT CSAIL. https://rikiyat.github.io/blog/weight-space-programming/
The numbers in the charts are from the MIT post.