Last week Takehi et al. published Sparks of Weight-Space Programming. They gave the weights of a small neural network, about 17,000 numbers, to GPT-6 Astra, and asked which game the network had been trained on. Astra recognized the right game in all four networks they tried.
The capability seems impressive at first glance (can a frontier model intuit what a network does without running it?). But it's worth decomposing "reading" into two different skills. First, recognition: can the model pattern-match the "shape" of the weights into something familiar, likely within its pretraining distribution? And second, computation: can the model follow the arithmetic the weights encode, from input to output, and understand what it does to some arbitrary inputs?
I trained toy networks to separate what the models recognize and compute, and found that both models are indeed strong at recognition, beyond pretraining pattern-matching. For computation and intuition, I use a twin-game study to demonstrate that the models still do fail at really understanding what a network does, unless specifically prompted for it.
The code and setup for every experiment are on GitHub.
The original weight-reading experiment
The neural networks in the MIT experiment are policies: each looks at a game board and picks a move. The board is a 10 × 10 grid with five on-off channels per cell (the player's piece, moving objects, reward targets, obstacles and the previous frame), which makes 500 inputs. Two hidden layers of 32 units sit in between, for 17,253 weights in all.
first layer 16,000second layer 1,024output layer 160biases 69
17,253 numbers. Nothing in them is labeled as a board position, a move or a game.
The paddle slides along the left edge and returns the ball. Most of these first lines are identical in all four networks.
The paddle slides along the bottom and bounces the ball into the bricks.
The player eats pellets while two ghosts give chase. Switch games: the play changes completely, the numbers barely change.
The player crosses six lanes of traffic to the top row. Nothing in these numbers says so.
Figure 1Left: a policy playing the game, live in your browser, with each hidden unit's output and the chance of each move at this step. Right: the start of what the model is given, the same network as printed numbers. Pick a game.
The weights contain a picture of the board
How does a model get from that wall of numbers to a game? If you rearrange the first layer of weights, the answer is trivial: the different channels encode the shape of the board or where the player can move. Recognizing a famous game this way is closer to spotting an encoded photo than understanding a network.
The board, hidden in the first layer
Layout
Network
Game still recognized with the picture erased
Pick a game
Astra
100%, 12 of 12
92%, 11 of 12
100%, 12 of 12
92%, 11 of 12
Opus
100%, 12 of 12
100%, 12 of 12
100%, 12 of 12
100%, 12 of 12
The player channel is one bright column: a paddle on the left edge. The ball's channel fills the court; the obstacle channel draws the wall.
This is the order the model sees, one square per printed line. Switch the layout to Board to sort each line into its cell and channel.
Unused inputs now hold copies of trained inputs' weights, so most of the picture is gone and the moves are unchanged.
Figure 2The weights as printed look like noise, but folded onto the 10 × 10 board, the game's boundaries and how to play are obvious.
Camouflaging the input layer
To test the model's reading ability, I obscured the neural network (without retraining), to preserve the game's function but write a used input's weights into the dark cells. On these 48 camouflaged networks, Opus recognized all 48, and Astra 46.
Rewriting the network
So I went a step further, with eight rewrites to test the neural network recognition ability for increasingly complex networks. They cover two network shapes: the original shape, with two hidden layers of 32 tanh units, and a deeper one with three hidden layers of 24 ReLU units. Each preserves or improves on the original game-playing ability.
Eight exact rewrites of a game policy
2Copy camouflage
First layer, as a picturechanges
The network, one square per unitchanges
trainedadded by the rewrite
Two hidden layers, tanhAstraOpus
4/44/4
4/44/4
3/42/4
4/44/4
4/43/4
4/44/4
Three hidden layers, ReLUAstraOpus
1/42/4
1/42/4
1/42/4
GPT-6 AstraClaude Opus 5.5recognizedanother gameno answer
One network per game in each row. Squares run Pong, Breakout, Pac-Man, Freeway; point at one for the game.
Figure 3Each row is a different neural network rewrite. Select a row to see what changes and how many of the four games each model still recognized.
Astra and Opus were strong at recognizing the two-layer tanh policies, even after large changes like adding units that cancel, splitting every unit in two and mixing the inputs. But with a three-layer ReLU policy, when input weights are randomly filled, success goes down from 100% to 25% for Astra and 50% for Opus across the four networks. Adding extra do-nothing layers doesn't change this, so the random fill, and not the added depth, is what causes the degradation. On the tanh policies the same switch costs Astra only the Breakout policy, and I do not know why it costs so much more here.
With a Python sandbox on the four deepest networks, where the models could also run the network, both do slightly better: Opus recognizes 3 of 4 instead of 2, Astra 2 instead of 1.
Twin games: same board, opposite goal
To catch a model recognizing when it should be computing, I trained networks to play a twin game, with the same board and pieces as a famous game but rewards for the opposite behavior. In Catch a paddle collects falling objects; in its twin, Dodge, it must avoid them. Hunter chases the creatures that Pac-Man flees. Car-tag touches the cars that Freeway avoids.
Both models walk into the trap. Both call Car-tag Frogger, Freeway's better-known cousin, nearly every time, and Opus calls 2 of its 6 Dodge networks Catch. Astra reads Hunter as a chase about half the time. Astra describes the right behavior for 9 of the 18 twins, Opus for 7 of the 18. The skill that took Opus to 48 of 48 on the camouflaged networks takes it to 7 of 18 here.
Ask and you shall receive
If you warn Astra that the game might be a look-alike, it checks more carefully, going from 50% to 89% accuracy (Opus: 39% to 83%). Ask as well whether the player moves toward the moving objects or away from them (giving away the challenge), and it gets 100% (Opus 94%). Replace the open question with a forced choice between the two games and Astra again gets 100%, Opus only 89%. The models can tell the twins apart; they just don't check unless asked.
What it takes to get a twin's behavior right
Networks
Weights onlyDodgeHunterCar-tag
1Open question"Which game was it trained on?"50%39%*
2Plus a warningIt may be a lesser-known variant with the same layout, so do not decide from the layout alone.89%83%*
3Plus a question about behaviorWork out whether the player moves toward the moving objects or away from them.100%94%*
4Forced choiceBoth games of the pair are described. Which one was it trained on?100%89%*
With PythonDodgeHunterCar-tag
5Open question, with PythonThe open question, in a sandbox where the model may run the policy.67%67%
6Behavior question, with PythonRow 3's question, in the same sandbox.100%92%
GPT-6 AstraClaude Opus 5.5rightwrongno reply yet
One square per network. Point at a row for the split by game. * Run at xhigh, one setting lower, because Opus ran out of output at max effort; these answers are counted, right or wrong: 4 in row 1, 10 in row 2, 7 in row 3, 6 in row 4.
The same questions on the famous-game networks. Pointed questions barely hurt. * Run at xhigh, one setting lower, because Opus ran out of output at max effort; these answers are counted, right or wrong: 2 in row 2, 4 in row 3, 3 in row 4.
Figure 4Twin networks under questions that get more pointed row by row, then with Python. Bars count answers that describe the right behavior. Switch to the famous games for comparison.
A sandbox helps less than a hint
Given the open question and a sandbox with no rules, Astra was free to run the policy and watch. On the camouflaged twins, Python lifts Hunter (2 of 4 to 4 of 4) and nothing else: Car-tag stays at 0 of 4, still called Frogger. The hint does more than the tools. With both, Astra gets all 12 right. Opus gets 8 of 12 with Python and 11 of 12 with both.
How much can a model compute in its head?
The twin experiment demonstrates that models are capable, when pushed, of computation to recognize a neural network's function. To measure how far that goes, I trained deeper networks to follow one of two opposite rules: move toward the ball when it travels right and away when it travels left, or the opposite. The first layer looks the same, but the computation is hidden deeper in the network.
Paddle rule right, by number of hidden layers
Model has
X axis
GPT-6 AstraClaude Opus 5.5Fixed scripts, all networks
Bars are 95% intervals. Number on each curve is the 75% crossing-point. Gray lines are two fixed scripts that read the weights mechanically, shown for comparison.
Any arithmetic on the weights is allowed; running the network is not.
The same replies, placed by prompt size instead of depth: 2 to 16 layers, left to right. A layer adds more tokens to Opus's prompt than to Astra's, so its points sit further right. Numbers mark the 75% crossing, in thousand tokens.
Figure 5Share of paddle networks whose rule each model gets right with no tools. Astra holds up about twice as deep as Opus. The x-axis can also show prompt length in tokens, and the Python toggle shows the run where both models had a calculator.
I measure how deep the network has to be to get the accuracy of the model to 75%, halfway between random chance and perfect. Astra maintains 75% accuracy until 11.1 layers deep, versus 6.1 for Opus. Measured by the size of the prompt instead, it is about 115,000 tokens for Astra and 100,000 for Opus (perhaps a better metric for comparing the two, as Opus has more tokens per number).
At 8 layers, the answer requires tracing 24,000 printed numbers and nine matrix multiplications. With no calculator, Astra is right on 45 of 48 networks and Opus on only 30 of 48.
Forward vs. backward tracing
Astra and Opus often start from different ends. Astra traces further by tracing from the input layer by hand in 46 of its 60 replies. Deeper than 4 layers, it starts approximating some calculations. By 14 and 16 layers it often decides it cannot trace that far and guesses.
Opus more often starts at the output and works backward: treat the network as one long matrix product by pushing the "right" score minus the "left" score back through every weight matrix. Where Opus carries its reasoning through every layer it is right 21 times in 23. But from 8 layers on it tries this in only 4 of 35 replies. The other 31 replies call the arithmetic too long to do by hand and fall back on the first and last layers, which is a failing strategy.
How far each no-tools reply says it got
says it followed the signal through the networkstops at the first and last layersno answerright
4 layers
6 layers
8 layers
10 layers
12 layers
Astra
11/12
11/12
11/12
8/12
7/12
Opus
11/12
7/12
5/12
5/12
4/12
Point at a square to see what the model said about how far it traced through the network.
Figure 6One square per reply, colored by how far it says it traced through the network. The bar indicates it got the answer right.
Models can trace the network with code
Given a Python sandbox for arithmetic on the weights (but no forward pass), both models jump to 53/60 networks correct from 4 to 20 layers deep. In nearly every conversation, they read the network's linear approximation by multiplying the weight matrices. Then, they trace every route, calculating the same product Opus/Astra try to think through but can't finish past a few layers. But without actually running a forward pass, they still fail when failing to approximate nonlinearities well.
An unfamiliar rule in a scrambled transformer
Next, I ask the model to attempt to follow a more complicated rule on a larger neural network, a transformer with 63,360 parameters (~260,000-290,000 tokens). The models have never seen the rule before, so recognition can't help, and the network is scrambled so that no single weight gives it away.
The transformer reads a sequence of 16 tokens. The last token repeats one that appeared earlier. The transformer finds that earlier occurrence and uses its position to decide which token to copy. For example, one rule copies the token two places to the left of that position if the repeated token is odd, or one place to the left if it’s even. There are 120 possible rules, each defined by a condition and two offsets. Astra and Opus had to figure out which rule each transformer followed. Before showing them the weights, I randomly rotated the transformer’s internal coordinate system. This spread the information across many weights while preserving the output for every input.
With no tools, Astra gets the whole rule right for 6 of 16 networks (baseline: guessing gets it right with 1/120 chance) and Opus for none. On 24 other networks, Python for arithmetic on the weights (but no running the network) takes Astra from 6 right to 19, and Opus from 1 to 18. That's much better, but still not all.
Even a right answer could rest partly on a guess, most likely in the rule's direction: which offset goes with "yes". So the 24 networks are 12 networks and their mirrors. A mirror is the same network with its tokens relabeled so it takes the opposite offset. To any statistic that ignores which token is which, the two look identical. Only a model that follows the mechanism can tell them apart. Neither model was told that mirrors existed.
Astra on 12 networks and their mirrors
Model
Astra has
19of 24Whole rule right (chance 1 in 120)
Each rule reads offset a, offset b, test: output the token a places from the earlier copy of the last token if the test passes, b places if not. C1: last token odd. C2: last token 32 or more. C3: last token leaves 2 or 3 divided by 4. C4: first token odd. For a mirror, the correct rule is the original's with a and b swapped. A model that actually read the weights should swap them too.
True rule
Astra on the network
Astra on its mirror
Astra flipped a and b for the mirror?
−2−1C1
−2−1C1
−1−2C1
✓ Yes: correct
−2−3C4
−2−3C1
−3−2C4
−2+1C3
−2+1C3
+1−2C3
✓ Yes: correct
−2+1C4
−2+1C4
+1−2C4
✓ Yes: correct
−2+3C2
−2+3C2
+3−2C2
✓ Yes: correct
−3−2C2
−3−2C2
−2−3C2
✓ Yes: correct
−3+3C4
+3−3C1
−3+3C1
✓ Yes: correct
+1−2C1
+1−2C1
−2+1C1
✓ Yes: correct
+2−2C1
+2−2C1
−2+2C1
✓ Yes: correct
+3−1C3
+3−1C3
−1+3C3
✓ Yes: correct
+3+1C3
+3+1C3
+1+3C3
✓ Yes: correct
+3+2C2
+3+1C2
+1+3C2
✓ Yes: correct
Lit: matches the truth. Dashed: right offsets, wrong way round. Blank: the two answers differ in test or offsets, so they can't be compared.
Lit: matches the truth. Dashed: right offsets, wrong way round. Blank: the two answers differ in test or offsets. With no tools only 4 pairs can be compared, too few to say anything.
Lit: matches the truth. Dashed: right offsets, wrong way round. Blank: the two answers differ in test or offsets, so they can't be compared.
Lit: matches the truth. Dashed: right offsets, wrong way round. Blank: the two answers differ in test or offsets. With no tools Opus gives the same answer for both in all 5 pairs that can be compared.
Figure 7Astra and Opus identify the rule in a transformer model. With Python; switch for no tools.
With Python, Astra gives the network and its mirror opposite directions in all 11 pairs where its two answers name the same test and offsets, and Opus in all 9. With no tools, only 4 of Astra's pairs get that far, too few to say anything; Opus gives the same answer for both in all 5 of its pairs.
Limitations
These are toy networks: at most 20 layers and 63,360 weights. The same effort setting is not the same amount of work: on the camouflaged recognition test on max effort for both models, Opus used 8x the thinking tokens. When Opus ran out of output at max, I reran it one step lower (xhigh) and count that answer; the figures mark those counts with an asterisk. In a few Opus traces, the model made up code output that it hadn't run.
Ticks mark chance. Hover a row for its split by game, depth or design. * Opus twin replies run at xhigh, one setting lower, because Opus ran out of output at max effort; these answers are counted, right or wrong: 4 in Twin games, open question; 6 in Twin games, forced choice.
Figure 8Share of networks each model read correctly, test by test. Select a test to jump to its section.
So how well can a model recognize and understand a network?
Astra and Opus are both very good at recognizing a network from its weights. They do it even when the "picture" in the weights has been rewritten or camouflaged, demonstrating superhuman pattern-matching ability. However, intuiting still falls short, for two reasons:
The model can compute, but takes the shortcut. The twin experiment demonstrates models can do the math to trace a neural network. Given a forced choice between the two games, Astra gets 18 of 18 and Opus 16 of 18. Without forcing a choice, however, both models fall back to incorrect pattern-matching. The shortcut sometimes went further: Opus occasionally claimed results from code it had never run.
The model has limited "mental math" capacity for weight tracing. Without tools, Astra can trace a network to about 11 layers before its accuracy falls to 75%, and Opus only to 6. That is remarkable in itself: at those depths, Astra's median reply takes ~32,000 tokens of reasoning, and Opus's 10x more, at 360,000 (far less token-efficient). Given a calculator, models stay accurate to 20 layers and counting.
Given a calculator and the right questioning, Astra's transformer-reading result is the strongest evidence of deeper neural network understanding. Without running the network, it worked out an unfamiliar rule in 19 of 24 cases, even distinguishing it from a tricky mirrored rule.
Beyond recognizing what a neural network can do, I'm excited to see more work in weight-level understanding, which seems to be a potentially useful benchmark capability for recursive self-improvement. I look forward to seeing future work that probes the limits of understanding of frontier intelligence.