A published change to a small language model's weights leaves its default-mode math accuracy unchanged
- Numbers reproduced
- Partly, limits of our recheck
- Original conclusion
- Weakened, error in the original
Every published network and edit we rescored matches, but fresh language-naming runs gave 5/12 against 6/6, likely because the authors' runs held network-specific input we could not identify; the math gain was measured only against a mode the model card warns about, in the default mode the edit adds nothing, and the car repair works without the network.
In plain English
A blog post said an AI fixed a small language model by editing a tiny fraction of its internal numbers, lifting its score on a math test from 8% to 48%. Those scores all came from an optional 'thinking' mode that the model's own documentation warns tends to get stuck in loops. We rebuilt the fix and confirmed it works in that mode, then tested the model the way it runs by default, where it already scores 44% with no fix and the fix adds nothing. It's like praising a repair that gets a stalled car moving when the driver could have left a faulty setting switched off. The thinking-mode repair and writing small game-playing networks from scratch held up, but other claims had mixed results, and most of the math improvement is available from the setting alone.
Abstract
Can a language model repair another neural network by changing its weights, the numbers that determine what it computes? A reported repair of the small language model Qwen3.5-0.8B raised its score on MATH-500, a set of mathematics problems, from 7.9% to 48.1% by editing 0.016% of its weights to stop repetitive answers. But every score used the model's optional thinking mode, which is known to repeat itself, rather than its default mode. We rebuilt the edit bit for bit and tested it in default mode on four benchmarks. Across them, accuracy changed by 0.0 ± 1.25 percentage points, and the unedited model in default mode already reached 74–89% of the published gain. With thinking on, the edit works: we measured 49.0% under the same protocol. The edited thinking-mode model beats the unedited default model by 4–9 points, at 5–11 times the tokens per answer. Tokens are the pieces of text a model generates, so this gain requires substantially more computation. We also rechecked other experiments from the same November 2026 blog post, “Sparks of Weight-Space Programming.” Networks written from scratch in one reply beat its 100-million-step training baseline in 28 of 30 attempts by two language models. Its edit to a car-driving network works equally well when every original weight is zero, showing that the edit overrides the network.
Introduction
Neural networks usually acquire their weights through training, which repeatedly adjusts those numbers using examples or feedback. Directly inspecting and changing weights could offer another way to understand or repair a model. The question is whether a language model can reason about those numbers well enough to make useful changes, and how much those changes improve on simpler alternatives.
The post by Takehi and colleagues calls this approach weight-space programming. It describes eight experiments and makes its logs and edited weights public. Its largest result, Experiment 8, concerns Qwen3.5-0.8B, a small language model. GPT-6 Astra, another language model, received a Python session with access to Qwen's weights and 50 batches of model runs on practice problems. Astra found that Qwen repeats itself while thinking. It removed one direction from 64 output columns of two weight matrices, in layers 15 and 19. A direction here is a pattern of values across a layer's outputs; removing it suppresses that pattern. The share of answers hitting the 32,768-token limit fell from 93% to 33%. Accuracy rose by 40 points on MATH-500, a mathematics test, and by 53 on GSM8K, a grade-school mathematics test.
Qwen3.5-0.8B has two modes. With thinking on, it generates reasoning in a hidden block before answering. With thinking off, it answers directly. Its model card, the documentation describing how to use it, says thinking off is the default and warns that thinking mode is prone to repetition loops. The post cites this warning but evaluates only thinking mode. Its starting score of 7.9% therefore describes a mode known to fail. To judge the practical gain from the repair, we compared it with the same model running in default mode. We also rechecked six of the post's other seven experiments on a smaller scale.
Results
Math accuracy in default mode
We rebuilt the unedited model and the published edit from the public release. Every tensor, or array of model parameters, had a hash matching the authors' manifest, confirming an exact reconstruction. Table 1 compares the published thinking-mode scores with our default-mode scores on the same problems. Alongside MATH-500 and GSM8K, the tests include AMC23, a mathematics competition benchmark, and Minerva, a benchmark of quantitative science and mathematics problems.
Table 1. Accuracy (%) on four benchmarks. “Edit, default minus original, default” is the difference between models on the same problems, with its standard error. The final column gives the share of the published improvement reached by switching the unedited model to default mode.
| Benchmark (problems) | Original, thinking on (published) | Edited, thinking on (published) | Original, default | Edited, default | Edit, default minus original, default | Share of published gain reached by the setting alone |
|---|---|---|---|---|---|---|
| MATH-500 (500) | 7.9 | 48.1 | 43.8 | 43.0 | −0.8 ± 2.2 | 89% |
| GSM8K (440) | 13.0 | 65.9 | 56.8 | 55.0 | −1.8 ± 2.4 | 83% |
| AMC23 (40) | 0.5 | 23.4 | 17.5 | 18.8 | +1.2 ± 3.5 | 74% |
| Minerva (272) | 1.5 | 25.4 | 21.0 | 23.2 | +2.2 ± 2.4 | 82% |
Pooled across the four benchmarks, the edit changed default-mode accuracy by 0.0 ± 1.25 percentage points, so a gain of more than about 2.5 points is unlikely. On MATH-500, the edited model solved 58 problems the original missed, while the original solved 62 that the edited model missed.
In default mode, with its documented limit of 8,192 tokens, 32.4% of original MATH-500 answers exhausted the allowance, compared with 35.8% of edited answers. The edit did reduce exact repetition. Among answers that ran out of tokens, the final 100 characters had appeared earlier in 22 of 162 original answers and 4 of 179 edited answers. Most default-mode failures are long answers that wander without settling, and removing the repetition-related direction leaves those failures in place.
Math accuracy and computation in thinking mode
Our hardware required half-precision arithmetic rather than the authors' bfloat16, a different numerical format. We therefore repeated part of the original evaluation to check our setup. On every fifth MATH-500 problem, the edited model scored 49.0%, with 33% of answers cut off at the token limit; the published score on those problems was 45.0%. On every tenth problem, the original model scored 2.0%, with 98% cut off; the published score on those problems was 7.0%. With only 50 and 100 problems, these results agree within sampling error and reproduce the roughly 40-point improvement in thinking mode.
The edited model with thinking on also beats the original model in default mode. Comparing our default-mode answers with the published thinking-mode answers on the same problems gives differences of 4.3 ± 1.7 points on MATH-500, 9.1 ± 2.3 on GSM8K, 5.9 ± 3.1 on AMC23 and 4.4 ± 2.2 on Minerva. These are the gains available to a user from making thinking mode usable. Mean tokens per answer were 5.9 times higher on MATH-500, 10.7 times on GSM8K, 4.8 times on AMC23 and 6.9 times on Minerva. On MATH-500, the default model produced 117 correct answers per million tokens, compared with 22 in our rerun of the edited thinking-mode model.
Comparison with an edit found without a language model
To test how much the language model's reasoning contributed, we constructed an edit with a simple statistical recipe. From the original model's published answers to non-mathematics benchmarks, we selected 40 answers that never ended their thinking block and 40 that did. We computed the difference between the groups' mean layer outputs and removed that direction from the two layers where it separated the groups best, layers 17 and 14.
We chose how strongly to remove the direction using 60 practice problems, before examining any test problem. With a token limit of 16,384, the original model scored 8.3% on these problems and the published edit scored 43.3%. Edit strengths of 1, 2, 4, 6 and 8 scored 18.3%, 18.3%, 25.0%, 25.0% and 15.0%. We fixed strength 4 for testing, following the rule that ties go to the smaller edit.
On held-out MATH-500 problems with thinking on, this statistical edit scored 17.0%, against 49.0% for the published edit on the same 100 problems. The paired difference was −32.0 ± 4.7 points. On the 50 problems also tested with the controls, it scored 14.0%, against 2.0% for the original model and 2.0% for an edit using a random direction of the same size. Its paired difference from the control was +12.0 ± 4.6 points. The simple recipe therefore found a useful direction, while a random direction did nothing. The published edit nevertheless scored about three times as high as this recipe.
Writing game-playing networks from scratch
The post asked Astra to write every weight of a small game-playing network for three games in MinAtar, a collection of simplified video-game environments. Astra received each game's source code and had to write the network in one reply without tools. We repeated this with the authors' exact prompts, five times per game for Astra and five times for Claude Opus 5.5, another language model. We scored each network over 200 games (Table 2). The comparison networks in the post were trained using proximal policy optimization (PPO), a standard method that learns through interaction with an environment. Training steps count those interactions.
Table 2. Mean score per game for networks written in one reply. Each number in a five-repeat column is a separate network's mean. Standard errors are 0.5–21.3. M denotes million training steps.
| Game | Published Astra | Astra, five repeats | Claude, five repeats | Best published PPO, 100M steps | Best published PPO, 500M steps |
|---|---|---|---|---|---|
| Breakout | 517.4 | 353, 466, 504, 464, 522 | 491, 465, 455, 8, 503 | 15.8 | 25.3 |
| Seaquest | 53.1 | 18, 42, 36, 24, 31 | 28, 51, 39, 51, 14 | 5.6 | 88.9 |
| Asterix | 53.2 | 67, 62, 81, 33, 61 | 62, 92, 69, 57, 20 | 25.8 | 55.2 |
Twenty-eight of 30 attempts beat the post's best 100-million-step training baseline. The exceptions were one Claude Breakout network and one Claude Asterix network. Seventeen of the 20 Breakout and Asterix attempts also beat the 500-million-step score; no Seaquest attempt did. The published network's Breakout score held up on 1,000 fresh games at 500.7 ± 7.7, and half of those games reached the 10,000-step limit. For comparison, a network with one hand-set unit that follows the ball scored 6.1, and a short script that predicts where the ball lands scored 12.6. The technique is reproducible across the two language models, although the wide variation makes a single attempt a poor estimate of ability.
Identifying a network's training task from its weights
In Experiment 1, Astra identified the game a network was trained on by inspecting its raw weights. Those weights can reveal the training data without revealing how the network plays. Inputs that never activate receive no training gradient, the signal used to adjust weights, so their weights remain at their initial size. The lengths of the input rows, measured as vectors of weights, can therefore map where game objects appeared.
We tested Astra on modified weights, five times for each of four games, in fresh conversations without tools. Astra named the right game in 20 of 20 readings of the original weights. It also succeeded in 20 of 20 readings of a decoy that retained only the row lengths while destroying the network's function, with the same reported confidence of 96%. A second decoy preserved the network's function but disguised its inactive inputs; Astra succeeded in 20 of 20 readings, at confidence 87%.
When we combined row lengths from one game with all other weights from another, Astra named the game associated with the row lengths in 19 of 20 readings, at confidence 88%. On untrained networks, which had no game to identify, it declined to name one in 19 of 20 readings. When the cues conflict, the training-data pattern decides the answer. High stated confidence therefore cannot establish that Astra has read the network's function. Its success with disguised inactive inputs shows that it can also identify the game without that pattern.
Experiment 2 tested a different task: identifying the shape generated by a small diffusion model, a network that produces samples by progressively removing noise. Here, the row-length decoy reduced Astra's accuracy from 15 of 15, at confidence 82%, to 6 of 15, at confidence 16%. Astra was using more than the row-length pattern in this task.
Repairing a car-driving network
In Experiment 4, Astra fixed a small car-driving network that stalled on a slope. It produced the edit in one reply, after which the car reached the goal in every episode, or simulated attempt. Our rescoring of the published edit matched this result exactly: 1,024 of 1,024 episodes succeeded. The same edit also succeeded in every episode when applied to a network with every weight set to zero, and when applied to a network with shuffled weights. The edit writes a small fixed controller that overrides the trained network. A two-step script that reverses and then drives forward also solves the scene without a network. In ten new attempts with the authors' prompt, Astra succeeded once.
Identifying a text model's training language
In Experiment 3, Astra used a Python session to inspect a small text model's weights and identify its training material as Python code, English or Japanese written in Latin letters. The post reports 6 of 6 conversations correct. In 12 new conversations under the same rules, Astra was correct in 5, against 4 expected by chance. It answered English in all four conversations about the Japanese-trained network.
In the post's logs, the six opening prompts are identical, yet the reported input token count differs by network and matches between the two runs of each network. Something specific to each network was therefore likely present in Astra's input, although we could not establish what.
Writing a Go-playing network
In Experiment 6, Astra wrote a network to play the board game Go on a 9×9 board, without feedback from play. We rescored the published network over 2,000 games against each of three trained networks of the same size. Its win shares were 42%, 30% and 34%, compared with published values of 43%, 26% and 36%. Three new Astra attempts won 47%, 15% and 32%.
A different edit in default mode
A one-unit edit found by Claude Opus 5.5 in thinking mode raised default-mode MATH-500 accuracy from 43.8% to 48.0% (+4.2 ± 1.6 points, n=500) and left GSM8K unchanged. This result fits an edit that shortens answers that would otherwise run out of tokens. Other edits can therefore provide a small benefit in default mode.
Methods
Weights came from the public Qwen3.5-0.8B release and the post's public logs. We wrote our own weight reader, rebuilt the edits from their published descriptions and checked their hashes. We treated the authors' logged code as text rather than executing it.
Models ran in vLLM, software for running language models, at half precision on one RTX 2080 Ti graphics processor. Default-mode sampling followed the model card's non-thinking settings: temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5 and up to 8,192 tokens. Thinking mode followed the post: temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5 and up to 32,768 tokens. Temperature controls randomness; top-p and top-k restrict the candidate tokens considered at each step; the presence penalty discourages reuse of tokens already generated.
Prompts and grading followed the post. We extracted the last boxed answer after any thinking block and compared it with the reference answer using math-verify, a software library for checking mathematical equivalence. Paired standard errors came from per-problem differences, using the mean across samples when a problem had more than one. The pooled estimate weighted benchmark results by inverse variance, giving more weight to more precise estimates, because the benchmarks share no problems.
For network-writing tests, we used the authors' prompts in an empty working folder with no tools and the xhigh reasoning-effort setting for both models. Two Astra Seaquest runs returned nothing within a one-hour limit and were repeated with a three-hour limit. Every completed attempt is reported. We scored networks on MinAtar 1.0.15 with sticky actions 0.1, meaning a chance of repeating the previous action, and a 10,000-step limit, as in the post. Each attempt was scored over 200 games.
For network-reading tests, Astra received the post's prompt with the weights as text in a fresh conversation with tools disabled. The row-length decoy gave each input row its original length but a random direction, and randomized all other weights. The disguised-input decoy gave inactive input rows random directions and the lengths of active rows. This left the function unchanged because those inputs never activate.
For Experiments 3, 4 and 6, Astra ran through Codex, a command-line interface, with the authors' prompts and reasoning effort. All built-in tools were disabled. Python code from each reply ran in an isolated environment with no network access. The Go prompt stated our memory limit of 6 GB instead of 96 GB. Car edits were scored over 1,024 sampled episodes in Kinetix, a physics simulator (version 3.0.2), and on all-zero and shuffled copies of the network. Language answers were graded against the actual training text. Go networks played 2,000 games against each trained network, half as Black, in the pgx 9×9 Go game environment (version 2.6.0).
Limitations
We used one sample per problem on MATH-500, GSM8K and Minerva and four on AMC23, whereas the post averaged two to sixteen; GSM8K used every third problem. The comparison uses the model card's settings for each mode, including their different token limits, and default mode still fails on a third of MATH-500 problems. We tested only one statistical recipe for finding an edit, so its performance is a lower bound on what such methods can achieve. We did not rerun IFEval, a test of instruction following for which the post reports a rise from 21.0% to 62.3%, or Experiment 7, which requires a model we could not license.
Reference
Takehi R, Teoh J, Zhang A, Khattab O. Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights. November 2026. https://rikiyat.github.io/blog/weight-space-programming/