# Two language models can read and change neural networks, but reliability depends on the task

## Abstract

Researchers want to understand and change neural networks by inspecting their weights, the numbers that govern their behavior. Language models have shown they can do this in individual examples, but those successes leave open how often the technique works and whether it transfers between models. We repeated seven tasks from the report “Sparks of Weight-Space Programming” with two language models, GPT-6 Astra and Claude Opus 5.5. Both succeeded at each kind of task at least sometimes, but their reliability differed sharply by task. Claude wrote a successful car controller in 9/10 attempts versus Astra's 1/10; Astra beat weak trained arcade-game networks in 15/15 attempts versus Claude's 13/15. Both named all original game networks (20/20) and image generators (15/15). Claude identified training languages more often (8/12 versus 5/12), while Astra more often identified the network components that copy earlier text (11/12 versus 7/12). Repeated reading attempts used only three or four networks per task. Tests for shortcuts showed that altered game networks retained detectable traces of training, and every successful car edit also worked on an all-zero network. The evidence supports task-specific capabilities and shortcuts rather than a general ranking of the models.

## Introduction

Neural networks are normally built by training, which adjusts millions of numbers until the network performs a task. These numbers, called weights, determine how inputs affect the network's output. Reading what a trained network does, or changing it by hand, is a goal of interpretability research and is hard. Takehi and colleagues reported that a general-purpose language model can do parts of both when given the weights as text or access to them through Python, a programming language. They call this weight-space programming. Their report, “Sparks of Weight-Space Programming,” describes eight experiments, each run once or a few times with GPT-6 Astra.

Two questions follow for anyone who wants to use the technique. Does it depend on that one model? And how often does a given attempt work? We repeated the experiments with Astra and with Claude Opus 5.5, a language model from a different developer, under comparable tool and prompt conditions. For each experiment we also kept or added a control that could reveal a shortcut, such as identifying a game from traces left by training without understanding how the network plays it.

## Results

Table 1 gives each model's success on seven of the report's eight tasks. The reading tasks ask a language model to identify what a network learned. The writing tasks ask it to supply or edit weights that produce a desired behavior. An attention head is a component of a text model that uses earlier text to help process the current text. Copying, or induction, heads match a previous occurrence of text and copy what followed it. The math task uses MATH-500, a test set of mathematical problems, to measure the accuracy of a repaired language model.

Table 1. Outcomes by task and model, including control conditions. Counts are successes out of attempts; SE denotes standard error, a measure of uncertainty in an estimate. A row-length disguise changes the sizes of groups of weights to obscure traces of training; its remaining directional trace is described below. Thinking mode lets a language model generate intermediate reasoning before its answer.

| Task | What counts as success | Claude Opus 5.5 | GPT-6 Astra |
|---|---|---|---|
| Name the game a small game-playing network was trained on | Correct game, original weights | 20/20 | 20/20 |
| | Correct game, row-length disguise (directional footprint remains) | 12/20 | 20/20 |
| | Rejects training premise, randomized-weight control | 0/20 | 19/20 |
| Name the shape a small image generator draws | Correct shape, original weights | 15/15 | 15/15 |
| Name the language a small text model was trained on | Correct of three languages | 8/12 | 5/12 |
| | All copy heads named exactly | 7/12 | 11/12 |
| Fix a car-driving network in one reply | Car reaches the goal in all 1,024 test episodes | 9/10 | 1/10 |
| Write a game network from scratch in one reply | Beats the best published network after 100 million training steps | 13/15 | 15/15 |
| Write a 9×9 Go network from scratch | Share of games won against same-size trained networks (mean ± SE, 3 attempts) | 62 ± 8% | 31 ± 9% |
| Repair a small language model's math by editing weights | Held-out MATH-500 accuracy, thinking mode, one attempt (published Astra edit: 49%) | 54% | not rerun |

### Reading weights

In the first task, the model sees the weights of a small network trained to play one of four grid games and must name the game. Training leaves a shortcut. Each row of input weights is a vector, with a length that measures its overall size and a direction that describes its relative values. Row lengths map where the game's objects appeared. We call this trace a training footprint. A footprint decoy preserves those lengths but randomizes the directions and the weights in later layers. A row-length disguise replaces short rows with randomly directed rows whose lengths resemble those of active inputs. A conflict control combines row lengths from one game with directions and later weights from another.

Both models named the original game and the footprint decoy's game in 20 of 20 attempts each. Both usually followed the row lengths in the conflict control (Claude 20/20, Astra 19/20). On the row-length disguise, Astra scored 20/20 at mean stated confidence 87%, and Claude 12/20 at 42%. The disguise, however, leaves a directional footprint. We measured alignment between rows using the absolute cosine similarity, which is larger when vectors point along the same axis. Ranking rows by the average of their five largest such similarities distinguishes replaced from retained rows. The areas under the receiver-operating-characteristic curve (AUCs), a measure of how well that ranking separates the groups, were 0.76–0.86; 0.5 would mean chance ordering. The source of Astra's advantage therefore remains unresolved.

Two other replacement constructions also left detectable traces. One copied a trained row from the same input channel, a group of inputs representing the same type of game information. The other mixed two such rows and then matched a donor's length. Across 20 random seeds per network, both revealed replaced rows through unusually high alignment (AUC 0.73–0.88 for the same statistic with its direction reversed). Exact duplicates provided another cue for copied rows (AUC 0.76–0.85). These constructions were evaluated for detectable footprints only; neither was used for additional language-model comparisons.

On randomized-weight controls, Astra declined to name a game in 19/20 attempts. Claude named a game in all 20 at mean confidence 19%. The prompt explicitly asserted that the network had been trained to play a game and asked which one. This test therefore measures willingness to reject a false premise as well as responses to weights. The controls retained shuffled, rescaled values from trained later layers rather than using wholly fresh initializations.

In the second task, naming the shape a small image generator draws, both models were correct in 15 of 15 attempts. The footprint decoy reduced Claude's success to 10 of 15 and Astra's to 6 of 15, so both read more than the footprint here.

In the third task, the model uses Python to inspect a small text model's weights and must identify its training material: Python code, English or Japanese in Latin letters. It must also identify the attention heads that copy earlier text. Running the network on inputs was prohibited. Claude named the language in 8 of 12 conversations and Astra in 5 of 12, with chance at 4 of 12. Astra answered English in 9 of 12, including all four on the Japanese network. Astra named the copy heads exactly in 11 of 12 conversations and Claude in 7 of 12. Claude worked much longer, with up to 59 code runs per conversation against at most 11 for Astra.

The original report found Astra correct on both parts in all 6 of its conversations. Its working folders contained language names. A local test confirmed that folder names change the input token counts of Codex, the command-line tool used to run Astra; tokens are the units of text processed by a language model. This may have exposed the answer in the published setup, although that explanation is unproven. Our reported runs used neutral random folder names. With only three networks, both models' language scores are uncertain.

### Fixing and writing networks

In the fourth task, the model sees a car-driving network that stalls on a slope and must fix it by editing weights in one reply. Claude's edits succeeded in 9 of 10 attempts and Astra's in 1 of 10. Every successful edit, including the published one, also worked when applied to a network whose weights were all set to zero. Each edit writes a small fixed controller that overrides the trained network. A two-step script with no network, reversing and then driving forward, also solves the scene. Success here shows that a model can write such a controller into the weights.

In the fifth task, the model receives a game's source code and writes every weight of a network to play it, in one reply with no tools. The games are Breakout, Seaquest and Asterix from MinAtar, a simplified grid-based arcade benchmark. Astra beat the best published network from 100 million steps of training in 15 of 15 attempts and Claude in 13 of 15. Against networks trained for 500 million steps, Claude succeeded in 4/5 Breakout attempts and Astra in 5/5; both succeeded in 4/5 Asterix attempts and never in Seaquest. The 100-million-step baselines are weak: Breakout scores only 15.8, so surpassing that network is a low bar. Mean game scores were close (Breakout, Claude 384 and Astra 462; Seaquest 36 and 30; Asterix 60 and 61), and single attempts varied widely. Claude's two failures were one Breakout network scoring 8 against its usual 455 to 503, and one Asterix network scoring 20.

In the sixth task, the model writes a network to play Go, a board game, on a 9×9 board with no feedback from play. All six networks beat a random player in at least 97% of games. Against trained networks of the same size, Claude's three networks won 58%, 52% and 77% of games and Astra's won 47%, 15% and 32%. The report's own Astra network won 35% in our rescoring. A random player that never fills its own eyes, enclosed empty spaces that help keep its stones alive, won 14%.

In the seventh task, the model repairs Qwen3.5-0.8B, a small language model whose thinking mode tends to loop on math problems. It gets a Python session with access to the weights and a budget of batches of model runs on practice problems. Claude made one repair attempt, using a smaller graphics processing unit (GPU) than the report's authors used, fewer runs per batch, and 23 of the allowed 50 batches. Its edit rewrote one internal unit in layer 12, 3,072 weights in all, into a detector that fires on repetition and pushes the model to finish thinking.

On 100 held-out MATH-500 problems, which were kept separate from practice, Claude's edit scored 54% with thinking on, against 49% for Astra's published edit. The paired difference was +5.0 ± 4.1 percentage points, where ± gives the standard error. That uncertainty and the single attempt per model prevent a ranking on this task, but the successful repair shows that the capability is not specific to Astra. The unedited model scored 2% on a nested subset of 50 problems, every tenth test problem; Claude's edit scored 52% on that same subset. It used 37% fewer tokens per answer than the published edit. Astra's edit changed about 131,000 weights. In the model's default mode, with thinking off, Claude's edit raised MATH-500 accuracy from 43.8% to 48.0% (+4.2 ± 1.6 percentage points, standard error, n=500 problems) and left accuracy on GSM8K, a test set of grade-school math word problems, unchanged (56.8% both, n=440 problems).

## Methods

### Prompts and model access

Both models received the original report's prompts word for word, except that the Go prompt stated our memory limit (6 GB instead of 96 GB) for both. Requested reasoning-effort labels followed the report's Astra settings on each task: high for reading and fixing the car, extra-high for the language task and for writing networks, maximum for the math repair. These labels request how much effort the model spends reasoning. Single-reply tasks ran with all tools disabled in an empty folder. Session tasks ran Python in a sandbox, an isolated computing environment with no network access, through a loop that executed each code block and returned its output. Astra ran through Codex and Claude through Claude Code, their respective command-line tools. Each tool's system instructions were set to “Answer the user's request.” Failed calls caused by network or service errors were retried, and completed attempts meeting the reported protocol are counted.

The analysis estimates each model's reliability by task. Table 1 counts arcade networks that exceeded the trained baseline. A comparison of mean log-transformed game scores gave Claude-minus-Astra differences of −0.77 ± 0.82 for Breakout, +0.13 ± 0.29 for Seaquest and −0.08 ± 0.30 for Asterix, all ties under a two-standard-error rule. Three Claude car runs at nonmatching extra-high effort were excluded (two succeeded), as were Claude language runs whose working-directory names leaked the answer. The math comparison uses Claude's 23-batch repair and Astra's published edit.

### Reading tasks and shortcut controls

Reading tasks used the report's networks. The footprint decoy gave each input row its original length and a random direction and randomized later weights. The row-length disguise replaced rows shorter than 0.6, except in obstacle channel 3, using lengths sampled from active rows. We assessed whether replaced rows could be detected using the exact three-decimal weights shown in the prompts. The copy and mixture controls used 20 fixed random seeds each. Mixtures assigned two same-channel donor rows weights drawn uniformly between 0.25 and 0.75, then rescaled the mixture to the first donor's length. AUC measures how well a ranking separates replaced from retained rows; it does not measure a trained classifier's performance or show that a language model used the cue.

Randomized-weight controls used random first-layer directions, short-row lengths, random biases (the additive offsets within a network), and shuffled and downscaled trained later weights. Answers were graded by matching the named game or shape. Language answers were graded against the true training text. Copying heads were graded against an induction score above 0.2 from the report's own analysis, a measure of copying behavior. A script checked every code run for forward passes, which run inputs through the network to calculate outputs. None were found, though some of Claude's runs applied thresholds to read-outs taken from the weights.

### Scoring edited and written networks

Car-fixing edits were applied to the network and scored over 1,024 sampled episodes in Kinetix, a physics simulator for two-dimensional control tasks (version 3.0.2). An episode succeeded when the car reached the goal. Each edit was also applied to an all-zero network and to a network with shuffled weights. Our rescoring of the report's network matched its published result exactly (1,024 of 1,024). Game networks were scored on MinAtar 1.0.15 over 200 games with sticky actions, which sometimes repeat the preceding action, and a 10,000-step limit, against the report's trained baselines. Go networks played 2,000 games against each of three same-size networks trained with proximal policy optimization (PPO), a reinforcement-learning method that improves a policy, or action-selection rule, from rewarded play. Half the games were played as Black. Games used the pgx 9×9 Go environment (version 2.6.0). Our rescoring of the report's network agreed with its published scores within about 3.5 points.

For the math repair, the model had a Python session with access to the weights and a tool that ran either answer generation on up to 128 practice problems (16,384 tokens per answer) or a forward pass returning activations, the network's internal responses, over up to 256 texts. The report's authors allowed 512 generations at 32,768 tokens. Practice problems came from the MATH and GSM8K training sets, collections of math problems separate from the tests.

Held-out scoring used every fifth MATH-500 test problem with thinking on and all MATH-500 problems and every third GSM8K test problem in default mode. Generation settings control how the model chooses each next token: temperature changes randomness, top-p and top-k restrict candidate tokens, and a presence penalty discourages reuse. Thinking-mode settings were temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5 and a 32,768-token limit. Default-mode settings were temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5 and an 8,192-token limit. Runs used vLLM, software for running language models, at half precision on an RTX 2080 Ti GPU. Answers were graded with the math-verify software library. Paired standard errors come from per-problem differences, and binomial outcomes are reported as success counts.

## Limitations

These attempts estimate repeatability on a small, fixed task set from one report. Twenty game reads cover four networks, and twelve language reads cover three; repeated reads are not independent network samples. The eighth experiment required a model whose license we could not obtain. Each developer's command-line tool may add instructions, and matching effort labels does not match computation. The analysis protocol and choice of reliability measures were informed by some of the results. The math comparison used unequal budgets and one edit per model. Claude Opus 5.5, one of the evaluated models, wrote the original analysis; grading was automatic. The game disguise uses a row-length threshold rather than verified inactive inputs, and game play was not used to verify that it preserves the original behavior. Low-confidence game answers under a false training premise cannot alone establish poorer weight reading. The car task establishes controller writing, not repair of learned behavior.

## Reference

Takehi R, Teoh J, Zhang A, Khattab O. Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights. November 2026. [Original report](https://rikiyat.github.io/blog/weight-space-programming/).
