
Same fix, different weights
We replicated weight-space programming with Claude Opus 5.5 in ten pre-registered experiments. The headline is a Qwen3.5-0.8B edit that lifts MATH-500 from 6.7% to 58.1% with no gradients, and a single H200 that did all the generating.
Two weeks ago we wrote notes on weight-space programming: the claim that a frontier model, given another network's weights as numbers, can say what the network does, find what is wrong with it and fix it without training. We said we had not reproduced any of it, and that reproducing it was the first job.
The paper is out: Same Fix, Different Weights: Replicating Weight-Space Programming with Claude (arXiv:2611.20953). It re-runs the core of Takehi et al. (2026), which used GPT-6 Astra, with Claude Opus 5.5 in ten pre-registered experiments. Grading rules were written before the first API call. Every network has untrained or permuted controls, and every sandboxed code cell was audited by hand. The whole project cost $83.38 in API calls over 193 runs.
This post covers the parts we think matter most: the Qwen edit, and the GPU setup that made it possible to run honestly.
The short version
| Probe | Result with Claude Opus 5.5 |
|---|---|
| Name the Atari game from policy weights | 3 of 4 games; 14 of 20 attempts |
| Find the copying heads in a character LM | 15 of 15 runs |
| Spot the sycophantic Gemma 3 270M finetune from weights alone | 6 of 6 (original: 0 of 4) |
| One-shot fix of a failing MountainCar policy | 0% → 100% success |
| One-shot fix of a hovering LunarLander policy | 0% → 85.6% success |
| Write policies from zero weights, no feedback | Beat PPO at 100k steps on 4 of 5 environments |
| Write a 9×9 Go network, no training, no forward passes | 1.48M parameters; won 85–94% against three PPO opponents |
| Edit Qwen3.5-0.8B for math, 50 forward passes | MATH-500 6.7% → 58.1%; GSM8K 11.6% → 68.2%; IFEval 22.2% → 54.2% |
| Same, on Gemma 3 270M, which rarely loops | No gain (−0.8 points) |
Reading was mixed. Claude found real structure, but its answers about what a network was trained on often followed priors rather than the weights. Writing and fixing were stronger than we expected. In most cases the network Claude wrote implemented a textbook controller it already knew.
The Qwen edit
This is the original's largest claim, and the one experiment run on the same model, benchmarks and sampling as the original. Its numbers can be compared directly.
The setup. Qwen3.5-0.8B in thinking mode, sampled with the original's published protocol: temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5, up to 32,768 new tokens. Claude worked in an isolated Python session holding all 752,393,024 language-model parameters as float32 arrays. It could read, analyse and rewrite them freely. It could not run the model, any layer of it, or any gradient. Everything it learned about behaviour came from a practice tool, budgeted in forward passes of 64 problems each: 10, 25 or 50 passes, so 640, 1,600 or 3,200 practice problems.
The failure. The unedited model scores 6.7% on MATH-500. 93.3% of its answers run to the 32,768-token limit, almost all of them repeating "Wait, …". Every answer that did finish was correct. The base score was set entirely by how often the model stopped.
The result.
| Qwen3.5-0.8B | MATH-500 | GSM8K | IFEval | Hit token limit | Weights changed |
|---|---|---|---|---|---|
| Base | 6.7% | 11.6% | 22.2% | 93.3% | – |
| Edited, 10 passes | 51.4% | 67.4% | 48.9% | 39.1% | 18.5M (2.46%) |
| Edited, 25 passes | 55.2% | 64.8% | 43.6% | 28.8% | 8,192 (0.0011%) |
| Edited, 50 passes | 58.1% | 68.2% | 54.2% | 32.7% | 6,144 (0.0008%) |
| Original (Astra), 50 passes | 48.1% | 67.1% | 62.3% | 33.1% | 131,072 (0.016%) |
At 50 passes the gain on MATH-500 is +51.4 points, with a 95% paired bootstrap interval of [47.9, 55.0]. By the pre-registered rule that replicates the original. The shape across budgets does not replicate, though. Astra barely moved at 10 and 25 passes (12.3%, 14.1%) and only jumped at 50. Claude was already at 51.4% after 10.
What Claude actually changed
Every run found the same failure in its first practice call and fixed it the same way, at the output of the model.
- It scaled the final RMSNorm gain by 0.6 (10 and 25 passes) or 0.68 (50 passes). Qwen3.5-0.8B ties its input embedding to its output layer, so this multiplies every logit by a constant. Because vLLM applies the presence penalty before dividing by temperature, logits × 0.6 at temperature 0.6 is the base model sampled at temperature 1.0 with penalty 2.5. Claude described it the same way in its own notes: "logits ×0.6, i.e. temperature 0.6→~1.0".
- It turned "Wait" down and
</think>up by scaling rows of the tied embedding. The 50-pass edit scales the four "Wait" rows by 0.7 and</think>by 1.25. That is five rows, 6,144 weights in total with the norm.
What it did not do is what the original did. Astra found one direction written by the MLPs of layers 15 and 19 that drives the loop, and subtracted it from 64 output columns in each. Claude considered projecting out the looping-versus-finished activation difference and rejected it, reasoning that the difference "mixes loop state with ordinary reasoning and problem difficulty." The activations back that up. The loop direction is nearly orthogonal to the "Wait" and </think> readouts Claude edited (|cos| ≤ 0.06 at layers 15, 19, 21 and 23). The two edits are different mechanisms. Astra changed the model's internal state. Claude changed which token gets sampled.
How much of it is just temperature
A norm scale is a temperature change, so the obvious question is whether that is the whole story. To answer it, we evaluated the base model with only the norm part of each edit: Claude's own saved norm.weight, 1,024 weights.
| Gain over base | Whole edit | Norm only (temperature) | Token edits on top |
|---|---|---|---|
| MATH-500, 50 passes | +51.4 | +14.2 | +37.2 [34.0, 40.4] |
| GSM8K, 50 passes | +56.5 | +27.7 | +28.8 [26.7, 31.0] |
| IFEval, 50 passes | +32.1 | +30.0 | +2.0 [−1.5, 5.6] |
Temperature alone lifts MATH-500 to 20.9–22.1%, about a third of the gain. The token edits do the rest on math. On IFEval they add nothing measurable: that gain is entirely temperature.
The hit-limit share also hides a second effect. After the edits, actual looping (measured from the text) fell to 1.4–7.1%. Yet 29–39% of answers still reach the limit. Those are not loops. They are long, non-repeating reasoning that runs out of room. A higher temperature breaks exact repetition, and the model then wanders until it is cut off.
The control that did not move
Gemma 3 270M rarely loops: 4.6% of its answers reach the limit. An edit that helped it would have to improve reasoning itself rather than remove an obstacle. Claude's best edit there was a pure temperature change (final norm × 0.86), and MATH-500 moved from 9.2% to 8.3%, −0.8 points [−1.9, +0.2]. That matches the original's null result, and Claude's own summary said its gain "is about zero, within noise."
The two arms together say what weight editing does today. It reliably removes an obstacle the model can be seen tripping over. It does not yet add an ability the model lacks.
The GPU side
The editing model never touched a GPU. The model being edited needed one for every observation. Most of the engineering, and most of the wall-clock time, went into keeping those two apart.
One H200, by policy. Generation ran on an NVIDIA H200 NVL (143,771 MiB) in a two-GPU lab server, allocated through SLURM. The stack was vLLM 0.33.0, PyTorch 2.14.0, CUDA 13.0 and Transformers 5.20.2. The SLURM association allows one GPU per user, so the second card was never available. A parallel evaluation job sat pending with AssocGrpGRES until it was cancelled. Every practice call and every evaluation was serialised on a single card.
Two engines, one card. A FastAPI service ran as one SLURM job holding two vLLM engines: one with the base weights, and one whose weights are swapped in place for each edit. It exposed /practice, /edit, /result and, only outside Claude runs, /eval. Each practice call generated with both engines using identical per-request seeds, so base and edit are paired on every problem. It returned accuracy, loop statistics, text samples, and per-layer mean MLP-output and residual activations (24 × 1,024) from a teacher-forced pass, split into answers that hit the limit and answers that finished.
The weights stayed on the laptop. The Claude loop, the budget guard, the sandbox holding Qwen's weights and the API key all lived on an M4 Max laptop. The sandbox reached the GPU service through an SSH tunnel over the lab VPN. Claude submitted edits as full replacement tensors for the changed parameters only. The service then:
- cast them to bf16;
- dropped any tensor that ended up identical to the base;
- recorded elements whose change was lost to rounding;
- verified that every untouched tensor was bit-identical to the base;
- reported exactly how many weights changed.
Every final edit was rebuilt on the server and checked this way. Checkpoints are stored as deltas against the base.
Why 32k-token generation was affordable. Qwen3.5-0.8B is a hybrid: three linear-attention layers, then one full-attention layer, repeated. Only the six full-attention layers (3, 7, 11, 15, 19, 23) keep a KV cache, so long generations are cheap in memory. Throughput still falls hard as answers get longer.
| Thinking | Max tokens | Answers hitting limit | Median length | Throughput on one H200 |
|---|---|---|---|---|
| Off | 32,768 | 0 of 256 | 513 | 24.6k tok/s |
| On | 8,192 | 48 of 64 | 8,192 | 14.4k tok/s |
| On | 32,768 | 101 of 256 | 21,107 | 8.0k tok/s |
That table also caught a trap. Qwen's chat template turns thinking off by default by inserting an empty <think> block. With it off, the model never loops, and there is nothing to fix. The thinking flag and sampling settings are recorded on every call for that reason.
Where the hours went.
| Job on the single H200 | Time |
|---|---|
| Base evaluation (166M generated tokens at 6.8k tok/s) | 6.8 h |
| Each edited model's evaluation | 2.3–2.6 h |
| Each norm-only control (still runs to the limit) | 4.6–4.8 h |
| Gemma evaluation | ~2 min |
| One practice call of 64 problems | 8–10 min |
What broke, and what it changed.
- The budget unit. The first pilot counted one call as one pass whatever its size. Claude asked for 512 problems per call, about an hour each. That projected roughly 50 hours for the 50-pass run, beyond SLURM's 48-hour job limit. It also gave far more compute per pass than the original's average batch of 64. The pass was redefined as 64 problems and the pilot ($0.23) was abandoned and excluded.
- Contention. A base re-evaluation sharing the card stretched one practice call to about two hours. From then on the service ran in practice-only mode during Claude runs, with evaluations queued afterwards.
- A quadratic pipe. Saving an edited 1 GB embedding table hit the 300-second cell timeout three times. The cause was the harness reading the sandbox pipe with a quadratic byte concatenation. After the fix the same save takes about 104 seconds. The 10-pass run was left as pre-registered, so it could not save an embedding edit. It reached the same effect by projecting a "Wait" readout subspace out of layers 20–23, which is why it touches 18.5M weights instead of about 6,000.
- The network. VPN drops and two faults in the tunnel-reconnection code stalled runs for about 13 hours in total. Every in-flight call was collected by request ID afterwards, so none was lost or charged twice.
- Silent failures. Two control jobs crashed but reported success to SLURM, because the job script masked Python's exit code. They were found from missing output files.
- The penalty cap. vLLM rejects presence penalties above 2, so the temperature control could not be run as a sampling setting. It runs instead as a weight edit holding only the norm part, which gives the same distribution.
Experiment 8 cost $8.48 in API calls across the three Qwen runs, Gemma, the abandoned pilot and one cache test. The Claude runs took 1.8, 12.5 and 11.5 hours of wall-clock time. Most of that was waiting on the GPU.
What this changes for PatchBench
The first post said the reasoning-loop case would ship as a PatchBench fixture. This replication makes it one, and shapes the grader in three ways.
- Matched controls are part of the score. An edit that is mostly a temperature change should be reported as one. Every PatchBench edit will be scored against its own norm-only control, the way Table 18 of the paper splits the gain.
- "Hit the limit" is not "looped". The grader measures repetition from the text, separately from length, because the two came apart as soon as the model was edited.
- The editor never runs the subject. Isolation, a forward-pass budget, bit-identical checks on untouched tensors and paired seeds are the harness, not extras. Without them the numbers above would not mean much.
Limitations
Sample sizes are small: one run per budget for Qwen, and three to five attempts per network elsewhere. Several subject networks and environments differ from the original's. Claude often leaned on implementations it remembered. Only one model at one effort level was tested. The practice tool returned activation summaries that the original does not describe, so anything Claude found through them counts as found with that tool, not from weights alone. The paper lists every design error and protocol change with its date. None changed a grading rule.
Read it
- Paper: arXiv:2611.20953
- Code, prompts, transcripts and logs: github.com/Cenrax/weight-space-programming-claude
References
- S. Kundu. Same Fix, Different Weights: Replicating Weight-Space Programming with Claude. arXiv:2611.20953, 2026.
- R. Takehi, J. Teoh, A. Zhang, O. Khattab. "Weight-Space Programming." rikiyat.github.io, 2026.
- W. Kwon et al. Efficient Memory Management for Large Language Model Serving with PagedAttention. SOSP 2023. The vLLM paper.
- A. Arditi et al. Refusal in Language Models Is Mediated by a Single Direction. 2024.
- H. Lightman et al. Let's Verify Step by Step. 2023. The source of the MATH-500 subset.
- K. Cobbe et al. Training Verifiers to Solve Math Word Problems. 2021. GSM8K.
- J. Zhou et al. Instruction-Following Evaluation for Large Language Models. 2023. IFEval.