How AI can read and edit another model’s weights

Picked by

· written by AI, fact-checked ·

The short version

  • Researchers used GPT-6 Astra to read, repair and build small AI networks.
  • Editing a small Qwen model cut repeated text and raised its maths test scores.
  • The larger tests used Python tools and feedback. They did not just paste all the weights into a chat.
  • The work did not show an AI improving its own weights, or replacing normal training.

Matthew Berman’s video explains a new set of tests called weight-space programming. The work comes from Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab at MIT CSAIL. They published the results in a research blog post on November 2, 2026.

Berman sees the work as a possible step towards AI that can improve itself. The tests show a narrower result. A strong model can find and fix some faults in other networks. It sometimes does this without the usual training process.

What are model weights?

Weights are the numbers inside a neural network that shape how it handles an input. Training changes those numbers to make the model’s answers or actions better. One common method is gradient descent. It uses the error from a task to work out how to change the numbers.

The researchers tried a different route. They asked an existing language model, GPT-6 Astra, to inspect or write those numbers. They gave it a goal in plain language, such as fixing a car-driving network. In these tests, Astra could not write a training loop or use gradient descent to find the changes.

Astra itself was already a trained model. The ban on training applied to how it changed the target networks during these tests.

That does not mean every test was tool-free. Some used only text, while others let Astra write and run Python code. Later tests also let it try the target model on tasks and inspect the results. The amount of help changed from one test to the next.

Could it tell what a network does?

The first test used four simple game-playing networks. They played grid versions of Breakout, Pong, Pac-Man and Freeway. Each network had 17,253 weights and the same shape, inputs and possible moves. This stopped Astra from guessing the game just from the network’s size.

Astra received the weights as text, plus a description of the input grid and available actions. The prompt did not name the games or give a list of possible answers. The researchers report that it identified all four games without tools.

Its explanation for Breakout linked strong weights near the bottom of the grid to a paddle. Other weights pointed to a ball and rows of targets above it. Astra used those clues to name the game. This was a small network with clearly described inputs, not an unknown chatbot with billions of weights.

A second test used three small image-making networks, trained on circles, squares or triangles. Astra identified the shapes from their weights without running the networks. But it described outlines, while the real networks made filled shapes. It found useful clues without fully predicting the output.

A third test removed the first and last layers of three small language models. Each had learned Python code, English or Japanese written with Latin letters, called romaji. Astra could use Python to inspect the middle layers, but could not run the networks. It named the right language in both attempts for each model. It also found the parts that copy patterns from earlier text.

Could it fix a network or build one?

The fourth test used a network that controlled a car in a simple physics scene. The car kept getting stuck on a ramp. It needed to reverse first, then build enough speed to cross it.

Astra received the weights, a description of the scene and one recorded failed run. It changed about 3.5% of the weights in one reply, without tools. The edited network then succeeded in all 1,024 test runs reported by the authors. That result covers this car task. It does not show the same fix would work across other driving tasks.

The next test asked Astra to write networks for three MinAtar games. MinAtar uses small, simplified versions of arcade games. Astra received the game rules, source code and the layout of the network. It wrote the weights without test runs or training data.

The authors compared the results with PPO, a method that learns by trying actions and receiving rewards. Astra’s networks beat the versions trained for 100 million steps in all three games. Against versions trained for 500 million steps, it won only on Breakout. Its score was close on Asterix and lower on Seaquest.

How did the larger Go test work?

The sixth test moved to Go on a nine-by-nine board. The network had about 1.5 million weights, too many to paste into Astra‘s chat context. The context is the amount of text a model can handle at once.

The researchers gave Astra a Python workspace to build and inspect the weight files. They tested budgets ranging from no feedback to 50 calls to a special testing tool. With no feedback, its network won more than half its games against two smaller trained networks. With 50 calls, it beat a PPO network of the same size. That comparison network had trained on about 20 million games.

The phrase “50 forward passes” needs care. A forward pass normally means running an input through a network to get an output. Here, each allowed call could cover up to 128 games, or return outputs for up to 256 board positions. It did not mean Astra had seen only 50 moves or played just 50 games.

Astra used code to build rules for moves, such as taking stones or saving a group. It then turned those rules into weights. With feedback, it could inspect losses and change the network.

Could it spot a model that agrees with wrong answers?

The seventh test looked for sycophancy: agreeing with a user even when the user is wrong. The researchers made pairs of Gemma 3 270M models. One learned to give correct answers. The other learned to copy the user’s suggested answer.

From the weights alone, Astra failed to identify the overly agreeable model in four attempts. It could see differences between the networks but could not link them to the behaviour.

The researchers then allowed another kind of evidence. Astra could submit text and see where the models directed their attention while reading it. It still could not see their final answers. With that extra tool, it picked the agreeable model in all three pairs tested.

The model needed evidence from a running network to spot this behaviour. The tests did not show that reading weights alone can reveal any hidden behaviour.

Why did the maths scores jump?

The final main test used Qwen3.5-0.8B, a small language model with roughly 800 million weights. Its makers warn that, in thinking mode, it can get stuck repeating text and fail to finish an answer.

Astra used a Python workspace to inspect and edit Qwen’s weights. It could choose practice questions from the training sets of two maths tests, GSM8K and MATH. The authors say Astra never saw the final test sets. The budget reached 50 testing calls, with each call able to handle a batch of questions.

Astra traced repeated text to parts of layers 15 and 19. A layer is one stage in the network’s calculations. It changed 131,072 weights, about 0.016% of the model’s total.

The authors report these changes with the 50-call budget:

  • MATH-500, a maths problem test: 7.9% to 48.1%.
  • GSM8K, a school maths word-problem test: 13.8% to 67.1%.
  • IFEval, a test of following instructions: 21.0% to 62.3%.

The fix helped the model finish answers it could already work out. It did not show that Astra had taught it all the extra maths skills those scores might suggest. Nor did the loops vanish. On MATH-500, the share of answers hitting the length limit fell from 93% to about 33%.

The authors tested that limit with Gemma 3 270M, a smaller model that rarely loops. Astra could not produce a clear maths gain there. Berman calls this a bigger model in the video. It is smaller than the Qwen model used in the main test.

Does this show self-improving AI?

Berman suggests that a model might one day inspect and improve its own weights. The research authors also discuss that prospect. But the reported tests used Astra to work on other networks. They did not show Astra editing itself, or repeating the process to become steadily more capable.

Berman also suggests using this approach to improve small models that run on phones. The authors discuss finding hidden faults, cutting training costs and changing model behaviour through plain-language requests. Those are proposed uses. These tests did not establish that any chosen skill can be added to a small model on demand.

There is also a dispute about the framing. In a published critique, Matthew Honnibal argues that the post blends tests with very different kinds of help. The small text-only tests differ from the Qwen test, which used code and feedback from the model. He reads the latter as AI doing tasks that a human machine-learning engineer could perform.

The original post does describe those tools and limits. The safer reading is to keep each result tied to its setup. A no-tool result on a tiny game network should not become a claim about reading a full language model unaided.

The authors have released experiment logs, prompts, code and the edited weights. Their repository says earlier trial prompts are left out. The results remain early research, not proof that normal training is obsolete or that AI can fully explain its own workings.

In Qwen, Astra found a fault that blocked answers and changed a small share of the weights to reduce it. The failed Gemma test and the weights-only sycophancy test show where the approach still fell short.

Sources

Matthew Berman's video

The authors' experiment logs

Sparks of Weight-Space Programming: the original research post

Matthew Honnibal's critique

Qwen3.5-0.8B: the model's own description and warnings