Back to David Shapiro

What is "Weight Space Programming"???

David ShapiroNovember 6, 202616m
In a Nutshell

MIT researchers demonstrated that GPT-6 Astra can directly read and write neural network weights without training or execution, identifying which games, languages, and circuits are encoded in raw weight values and then modifying those weights to create new functionality. In the key experiment, Astra edited just 0.016% of an 800-million-parameter Alibaba model by removing a single "direction" causing repetitive loops, raising Math 500 accuracy from 7.9% to 48.1% and instruction-following from 21% to 62.3%. The work shows that the last black-box layer of AI—the weights—can now be programmatically edited, enabling both rapid self-improvement and scalable removal of safety training on open-weight models.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

Weight space programming is when artificial intelligence reads and writes the weights of another artificial intelligence. On November 2nd, a team of researchers at the Massachusetts Institute of Technology published an article entitled "Sparks of Programming Weight Space." The claim made in that article is very significant. They found that a sophisticated artificial intelligence model can look at the raw weights of a neural network and figure out what that network is doing. The model itself can write new weights directly without any training. The model they used is the GPT-6 Astra from OpenAI.

One headline suggested that this work is similar to gene editing for neural networks. To understand the importance of this, you need to know what weights are. A neural network is essentially a huge list of numbers, and these numbers are called weights. Each weight is like a disc that determines how much one part of the network affects the next part. A small net may contain thousands of weights. While the large language model contains billions or even trillions of them.

No one adjusts these weights manually. Instead, the network is trained. An algorithm checks how wrong the network's answers are. Then you adjust each weight slightly so that the answers become less wrong. This was repeated over and over again, millions of times. Finally, the network becomes ready for operation. But the weights themselves seem to be just noise. For almost anyone, it is impossible to read. What these researchers found is that the large language model can now read and write those weights as well. It defines what each part of the network does or should do. He then intentionally changes the weights through inference without any actual training. They call that weight space programming.

Let's start with the reading side of this. In their first experiment, they trained four small networks to play simple versions of four video games: Breakout, Pong, Pac-Man, and Freeway. The four nets had the same structure, so the only difference between them was the weights. Then they gave Astra all 17,253 weights for each grid as text and asked him about the game the grid had practiced. They did not give him a list of games to choose from, yet he named the correct game for all four networks. One piece of evidence was the location where the weights were concentrated. For example, in the Breakout game grid, the player's weights were concentrated along the bottom row of the screen. In that game, the player controls a paddle that slides across the bottom of the screen.

Then they made the task even more difficult. They trained three small language models containing approximately 7 million weights each. The first one learned the Python programming language and the second one learned the English language. The third one learned the "Romaji" language, which is Japanese written in the Latin alphabet. After the training, the researchers cut the first and last layers of each network. These are the layers that connect the network to the actual characters. So there was nothing in the rest of each network that defined what each letter was, and Astra was not allowed to actually run the networks, not even once. She could only study weights. In both of her attempts, she identified the correct language for all three. She also found every "copy head" in those networks and did not make a mistake in naming any of them. The copy header is a part of the network that allows the model to replicate something from previous text. For example, if the word "total" appeared previously and the form starts typing that word again, the copy head helps it complete the word itself. Astra found those heads using a method published by researchers at Anthropic in 2021. No one told Astra about that method. Since code repeats names much more than plain text, many copy headers pointed to the Python language.

So far, this is only regarding the reading aspect. Now, let's look at the writing aspect. The researchers asked Astra to write networks from scratch for three simple Atari-style games. All weights started at zero. Astra obtained the rules and source code for each game, but did not obtain data, training, or tools. She was never allowed to watch her network play. She simply wrote the weights as text in only one reply. Typically, a network like this learns through trial and error over millions of steps. In all three games, Astra networks outperformed networks trained in this way for 100 million steps. In the game "Breakout", the "Astra" network achieved scores equivalent to 20 times that of a network trained for 500 million steps. But in the other two games, the networks with 500 million training steps outperformed by a small margin.

So, how did Astra do that? She formulated the program she wanted each network to run, and then converted that program into weights. For example, in the game "Breakout", the first layer was set up to calculate where the ball would land. The second layer was prepared to move the racket to that location.

Finally, try a real language model. It was a small, open-weight model from Alibaba that contained 800 million weights. The open weights mean that anyone can download them, and they asked Astra to improve the model's math skills, again without any training. Now, small inference models like this one tend to get caught in vicious cycles. It repeats the same text over and over again until it runs out of the available space. Alibaba's company documents for this model warn against those same repetitive loops. In this case, 85 out of the first 96 training responses to the model reached the maximum length limit because they got stuck in iterative loops.

So, Astra looked for the ring inside the weights, and found it. The reason for the repetition is due to a single direction being written by two layers of the model. In this case, the trend is a particular pattern that spreads across many numbers at once, or many weights together. Astra introduced that trend from these two layers. This modification resulted in a change of 131,072 weights, which represents only about 0.016% of the total model.

The results were extremely dramatic. In a standardized math test called "Math 500," the score rose from 7.9% to 48.1%. In a primary school mathematics test, the score rose from 13.8% to 67.1%. Loops are not just a math problem, so the fix helped with other things as well. In the instruction following test, the score increased from 21% to 62.3%. The math result had already been verified. Then, an engineer at "Hugging Face" reconstructed the modified model from the researchers' published records. In that same math test, the reconstructed model scored 51%. So, in this case, another researcher was able to replicate most of the results, even if he did not get the exact same answer.

Now, there is an obstacle. The settings used by the researchers may have caused the original model to replicate more than usual. Therefore, the jump in results may be smaller with other settings. But Alibaba says this pattern repeats itself even with the settings recommended by Alibaba.

So, what does all this mean? My personal opinion is that this seems almost holographic in nature, but it also has enormous implications for repeated self-improvement. Let's start with holograms. The hologram stores the image in a strange way. Each part of it contains information about the entire scene. So, if you cut a piece of a holographic panel and shine a laser through it, you will still see the whole scene. You will only see it in less detail and from a narrower angle. If you look at the painting itself, you will not see the scene at all. You will see a subtle pattern that appears almost random, and you cannot distinguish the scene from it. To us, the weights of the neural network look like that random pattern. But the information contained within it is not stored in any one place. Rather, it is distributed across the entire network. Thus, Astra was able to look at the middle of a language model after removing its two ends, and still determine what the model had learned in its entirety. Even the episode wasn't stored in a single specific number. Rather, it was a trend, that is, a pattern distributed across many weights and biases.

In 1969, a neuroscientist suggested that the brain also stores memories in a way similar to holograms. Now, a neural network is not literally a hologram. A piece of the hologram shows you the whole scene, but from the middle of the neural network, only the language is selected by "Astra." However, the meaning within the network is not in one specific weight. It lies in the pattern. If weights resemble holograms, then the pioneering model began to resemble that of a laser.

So, what are the implications for iterative self-improvement? I'll get to that in a moment, but first, here's a quick word from me. As you know, I am fully supported by the community. You can sign up on Patreon, Substack, or X. Also, everyone who signs up on Patreon gets access to our exclusive Discord server. The work has been going on for years, and we have a great community. People connect, we share memes, and we talk about technology. So, join us. Thank you, and now we return to the program.

Okay, let's talk about iterative self-improvement. This idea dates back to 1965. In that year, mathematician I. J. Goode wrote that a super-intelligent machine could design machines better than itself. He said there would be an explosion in intelligence, and human intelligence would become very far behind. Today, artificial intelligence is already helping to improve artificial intelligence, but often through programming code. He writes the training code and conducts the experiments. But the weights themselves are still a result of training. The researchers behind the programming in the space of weights explain this point themselves. They say that a model that can examine, correct, and improve weights offers a richer and more suitable path for iterative self-improvement. Those weights could be specific to it or to newer models. And here lie the enormous repercussions.

Training a leading model requires enormous amounts of time and computing power. Adjusting the weights directly may save a lot of both. One model can open up the next model, find out what's holding it back, and fix it. Then this model can do the same thing for the model that follows it. Now, to be clear, this is not yet an iterative self-improvement, not entirely. "Astra" did not adjust its own weights. He modified much smaller models, and there was a limit to that. The researchers also tried a small Google model that rarely replicates itself, and Astra was unable to improve its performance in mathematics. As the researchers put it, the modification to Alibaba's model removed an obstacle that was blocking a latent capability. However, adjusting the weights failed to add a capability that the model lacked. So, for now, programming the weights space can fix what is broken. But it cannot yet add what is missing.

This also confirms what Max Tegmark called "Life 3.0". In his book of the same name, Tegmark describes three stages of life. Life 1.0 is biological life. For example, bacteria derive both their physical components and their software from evolution. Life 2.0 is cultural life, and that includes us. Our bodies come from evolution, but we design a large part of our own software through learning. Life 3.0, on the other hand, is technological life. Life is designed in both its physical components and its software. For the machine, Life 3.0 means the ability to completely reprogram every level within it. There are the hardware components, the software, and the models. Artificial intelligence now operates on all three levels. On the hardware side, Google has used an AI system called "Alpha Chip" to help design every generation of its AI chips since 2020. On the software side, by May of this year, "Cloud" was writing more than 80% of the code that Anthropic integrates. Until now, models have been the only level that comes almost entirely through training. Programming the weight space means that artificial intelligence can start reprogramming this level as well.

Now, this may also help in AI matching research. Currently, the main way to check a model is to test it, but you only find what you are looking for. For example, in 2024, researchers at Anthropic trained covert agents with hidden backdoors, behaviors that only work when a secret stimulus is present. Standard safety training has not succeeded in removing it. The researchers who programmed the weight space say that reading the weights can detect such problems directly without running the model at all. They call that auditing without evaluation. But this type of scrutiny has not yet reached maturity. In one test, the researchers took a small model and trained three pairs of copies. In each pair, one copy was trained to be truthful. The other version was trained to be compliant or obsequious, so that it always agreed with the user's guesses. From the weights alone, Astra was unable to determine which version was the compliant one, not even after four separate attempts. But, once she could see where each model was directing its attention, she was able to identify the compliant version in the three pairs. In other words, she needed to see the model actually working in order to pinpoint where the problem lay.

But this can also be extremely dangerous. For example, it might open up new ways to break the protection of models. Most jailbreaking operations today are just scams. You are submitting a request in a clever way, so the form violates its own rules. But this is not about deceiving the model, but about radically rewriting it. Do you remember how Astra dealt with that loop problem? She found one direction and put it down. This is the same type of modification that people already use to remove safety training from open weight models. In 2024, researchers showed that in 13 open-weighted chat models, rejecting a malicious request depends on only one direction. Once that trend is removed, the model stops rejecting.

In fact, on Hacker News, the most common criticism of the MIT publication was that the Astra modification was not new. It's just the same trick aimed at repetitive loops instead of rejection. So, the new part is the one that can do that. Up until now, you had to figure out the method, and you had to find the direction yourself. Now, you might be able to hand over the weights to a sophisticated model and simply ask it to do that. To be fair, this only works if you have the weights. For open weight models, removing safety training has become quite easy. In 2024, a team removed it from a model weighing eight billion pounds in about one minute on a single graphics processor. So, the danger is not that this has suddenly become possible. The danger is that it has become easier and more scalable.

So, this is the situation we have reached. Throughout the entire history of deep learning, weights have served as a black box. We could have designed the chips and written the code, but the weights were a result of training, and we accepted them as they were. Now, artificial intelligence itself has begun to open that black box. He can read weights, and he can even rewrite them. This might help us examine what's inside our models, and it might also help someone to remove what we've put there to keep them safe. In both cases, the last level of the machine began to open up. One headline stated that this work is similar to genetic modification of neural networks.

Keep David Shapiro in your library

Save the videos and channels worth coming back to, and find them again in one place.