Pac-Man

Limitations of Weight-Space Programming Recognizing a network is not understanding it

Claude Opus 5.5 and GPT-6 Astra are really good at reading weights. But how does that translate into understanding?

Published
Nov 09, 2026
Category
Research
Reading time
9 min
Code
GitHub

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.

A small neural network that plays a grid game
Game
What it does
step 1 reward 0
Player Moving objects Reward targets Obstacles
Layer 1
Layer 2
Move
stay
up
down
left
right
What the model is given
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.
Figure 1 Left: 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
PlayerMoving objectsReward targetsObstaclesPrevious frame500 lines, in the order printed
Game still recognized with the picture erased
Pick a game
Astra100%, 12 of 1292%, 11 of 12100%, 12 of 1292%, 11 of 12
Opus100%, 12 of 12100%, 12 of 12100%, 12 of 12100%, 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.
Figure 2 The 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
Player (paddle)Moving objects (ball)Reward targetsObstacles
The network, one square per unitchanges
50032325
trained added by the rewrite
  1. Two hidden layers, tanh AstraOpus
  2. 4/4 4/4
  3. 4/4 4/4
  4. 3/4 2/4
  5. 4/4 4/4
  6. 4/4 3/4
  7. 4/4 4/4
  8. Three hidden layers, ReLU AstraOpus
  9. 1/4 2/4
  10. 1/4 2/4
  11. 1/4 2/4
GPT-6 AstraClaude Opus 5.5 recognized another game no answer
One network per game in each row. Squares run Pong, Breakout, Pac-Man, Freeway; point at one for the game.
Figure 3 Each 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
  1. Weights only
  2. 1 Open question "Which game was it trained on?" 50% 39%
  3. 2 Plus a warning It may be a lesser-known variant with the same layout, so do not decide from the layout alone. 89% 83%
  4. 3 Plus a question about behavior Work out whether the player moves toward the moving objects or away from them. 100% 94%
  5. 4 Forced choice Both games of the pair are described. Which one was it trained on? 100% 89%
  6. With Python
  7. 5 Open question, with Python The open question, in a sandbox where the model may run the policy. 67% 67%
  8. 6 Behavior question, with Python Row 3's question, in the same sandbox. 100% 92%
GPT-6 AstraClaude Opus 5.5 rightwrongno 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.
Figure 4 Twin 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.5 Fixed scripts, all networks
25%50%75%100%chance234567810121416hidden layers (32 units each)11.16.1Full scriptAstra3-path scriptOpus
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.
Figure 5 Share 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 answer right
4 layers6 layers8 layers10 layers12 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 6 One 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 24 Whole 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 ruleAstra on the networkAstra on its mirrorAstra flipped a and b for the mirror?
−2 −1 C1−2 −1 C1−1 −2 C1✓ Yes: correct
−2 −3 C4−2 −3 C1−3 −2 C4
−2 +1 C3−2 +1 C3+1 −2 C3✓ Yes: correct
−2 +1 C4−2 +1 C4+1 −2 C4✓ Yes: correct
−2 +3 C2−2 +3 C2+3 −2 C2✓ Yes: correct
−3 −2 C2−3 −2 C2−2 −3 C2✓ Yes: correct
−3 +3 C4+3 −3 C1−3 +3 C1✓ Yes: correct
+1 −2 C1+1 −2 C1−2 +1 C1✓ Yes: correct
+2 −2 C1+2 −2 C1−2 +2 C1✓ Yes: correct
+3 −1 C3+3 −1 C3−1 +3 C3✓ Yes: correct
+3 +1 C3+3 +1 C3+1 +3 C3✓ Yes: correct
+3 +2 C2+3 +1 C2+1 +3 C2✓ 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.
Figure 7 Astra 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.

Takeaways

Networks read correctly, by test
Game-playing networks
Recognize the game, picture erased All Astra96% 46/48 Opus100% 48/48
Twin games, open question All Astra50% 9/18 Opus39% 7/18, 4 answered at xhigh
Twin games, forced choice All Astra100% 18/18 Opus89% 16/18, 6 answered at xhigh
Paddle networks, by depth
Paddle rule, no tools All Astra81% 303/374 Opus61% 227/374
Paddle rule, with Python All Astra88% 53/60 Opus88% 53/60
Small transformers
Small transformers, warm-up All Astra100% 24/24 Opus88% 21/24
Transformer rule, no tools All Astra38% 6/16 Opus0% 0/16
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 8 Share 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.

Share