betaFeedback

WorksComputer Science

A Bias in Disguise: Tiny Gradient Edits Stop a Small Language Model's Thinking Loops and Complement a Frontier Model's Weight Edit

Abstract

Qwen3.5-0.8B rarely finishes reasoning in thinking mode: at a 4,096-token budget only 1 or 2 of 500 MATH-500 answers close their think block (two seeds), and accuracy is 15.4%. A recent demonstration had GPT-6 Astra edit 131,072 of the model's weights without gradients and reported MATH-500 rising from 7.9% to 48.1% at a 32,768-token budget. We provide the missing gradient baseline, then combine the two edits. Fine-tuning only the 140 to 139,750 weights with the largest gradient, on the model's own correct answers to MATH training problems, raises thinking-mode MATH-500 at 4k tokens to 39.0-45.5% after 2-9 minutes of training on one GPU; 50 training examples suffice, and 1,398 random positions give only 16.3%. The gradient concentrates the edit on the most nearly constant channel of each of the first three layers. Because the model has no bias terms, an edit confined to those channels acts as a constant vector added to the residual stream: adding three fixed vectors to the unedited model matches the accuracy of such an edit. Under the Astra protocol (32k tokens, presence penalty 1.5), the Astra edit scores 52.1% (finished and correct) in our reproduction and our full-strength edits reach 45.6-45.7%, but ours win at every budget up to 16k tokens (39.5% against 6.7% at 4k). The two edits are complementary. The Astra edit plus our 139,750-weight edit at half strength scores 62.2% at 32k, 10 points above the Astra edit alone (p = 3e-9), with half as many tokens; our half-strength edit alone scores 46.7%.

Introduction

Small reasoning models often loop: they repeat “Wait, let me reconsider” until the token budget runs out. Pipis et al. [5] trace looping to errors in learning, and Liquid AI [6] report it in 22.9% of greedy Qwen3.5-4B completions. In Qwen3.5-0.8B [4] with thinking on, it is almost universal.

Sparks of Weight-Space Programming [1] let GPT-6 Astra read and edit this model’s weights in a Python session, with no gradients. Astra changed 64 columns of mlp.down_proj in layers 15 and 19: 131,072 weights, 0.015% of the model’s 873M. MATH-500 rose from 7.9% to 48.1%, and answers hitting the 32,768-token limit fell from 93% to 33%. The authors write that the edit “lets the model finish answers it could already work out”. A follow-up [3] reports a 29.45-point MATH-500 gain from an edit of 1,023 parameters.

Neither work compares against ordinary gradient training of an equally small set of weights, or against randomly placed edits. Without that baseline, it is unclear what a frontier model adds. We ask four questions: how small a gradient-found edit that stops the looping can be, and how much data it needs; what the edit is, mechanically; how it compares with the Astra edit under each edit’s own protocol; and whether the two edits can be combined.

Our contributions:

  • A cheap baseline. Sparse fine-tuning on the model’s own answers finds edits of 140 to 139,750 weights that take thinking-mode MATH-500 from 15.4% to 39.0–45.5%, in 2–9 minutes on one GPU.

  • Controls. At 1,398 weights, random positions fail (16.3%) while gradient-chosen ones work (42.9%). At 139,750 weights, about the size of the Astra edit, even random positions work (43.4%), so an edit of that size is not small for this behaviour.

  • A mechanism. The gradient concentrates the edit on the most nearly constant channel of layers 0, 1 and 2. In a model without bias terms, an edit to those channels is a constant vector in disguise: for an edit trained only there, adding three fixed vectors matches its accuracy.

  • A comparison. The Astra edit lives in other layers, points in a nearly orthogonal direction and depends on the input. Under its own 32k-token protocol it beats our edits (52.1% against 45.7%), but ours win at every budget up to 16k: our edit stops early, theirs needs room to think.

  • A combination. Adding our edit at half strength to the Astra edit gives 62.2% at 32k, above either edit alone (52.1% and 46.7%), with half the tokens of the Astra edit.

Setup

Model. Qwen3.5-0.8B (Apache-2.0) has 873M parameters, 752M of them in the language model. Its 24 layers repeat three linear-attention layers and one full-attention layer. The hidden size is 1,024, and no linear layer has a bias term. We report edit sizes as a share of all 873M weights.

Training data. With thinking off, the base model answered each of the 7,498 MATH [12] training problems four times (temperature 0.7, top-p 0.8, top-k 20, 1,536 tokens). We kept finished answers graded correct, at most two per problem: 7,111 examples. Each was rewritten in thinking format. The prompt ends with <think>, and the target is the same reasoning, then </think> and the line “The final answer is \boxed{X}.” Loss is computed on target tokens only. No test problem and no other model is involved.

Choosing the weights. We run 64 micro-batches (about 4,096 tokens each) of this data through the frozen model. For every weight of the 150 projection matrices (attention, linear attention and MLP, in all 24 layers), we sum the absolute gradient. The kk weights with the largest sums, ranked across the whole model, become trainable. This is a gradient-magnitude variant of the FISH mask [9]. The random control ranks uniform noise instead. The column variants in § 4 train every entry of chosen weight columns.

Training. Only the kk chosen values change. We use AdamW at learning rate 3×10−43 \times10^{-4}, 20 warmup steps and cosine decay to 10%, for one epoch: 361 steps of about 16k tokens. The 500- and 50-example runs repeat their data for 8 and 40 epochs. The edit is added to the original weights in fp32 and rounded to bf16. We count edit sizes as edited positions, kk for our edits and 131,072 for the Astra edit; after rounding, slightly fewer values change (1,397 of 1,398; 138,772 of 139,750; 130,188 of 131,072).

Evaluation. We use vLLM [17] on one A100 GPU (40 GB). MATH-500 [13] is graded with math-verify [18] on the last boxed answer. Thinking-on runs sample at temperature 0.6, top-pp 0.95, top-kk 20, with no presence penalty and a 4,096-token budget (7,600 for “8k”, so that prompt and answer fit the 8,192-token context we set; 3 of 500 MATH-500 prompts are long enough to cut it slightly). Each thinking-on setting is run with two seeds. Thinking-off runs use greedy decoding with 2,048 tokens. We also run GSM8K [14] (1,319 problems), HumanEval [15] (164) and LiveCodeBench v6 [16] (175). An answer is closed if it finished and contains </think>. Comparisons on the same problems use an exact McNemar test [19] on the discordant pairs; with two samples per problem, we use a sign test on problems where the share of correct samples differs.

The Astra protocol. Section 6 follows the Astra evaluation: vLLM 0.33.0 (their version) on one A100 (80 GB), up to 32,768 new tokens, temperature 0.6, top-pp 0.95, top-kk 20, presence penalty 1.5, two samples per problem (they use four). We report strict accuracy: finished, closed and correct. Accuracy at a smaller budget BB is read off the same answers: an answer counts if it finished within BB tokens. A token limit does not change the tokens generated before it, so this has the same distribution as a run at budget BB; direct runs at 4k, 8k and 16k for two models agree with it within 1.1 points. Combined edits add our edit, optionally scaled by a strength ss, to the Astra checkpoint’s weights; only 58 of our 139,750 positions are among the 130,188 weights in which the Astra checkpoint differs from the base model.

Results

A 140-weight gradient edit captures most of the fix. Random positions fail at 1,398 weights and match gradient-chosen ones only at 139,750, the largest size we tried (Figure 1). At 140 weights, a learning rate of 10−310^{-3} gave the same result (38.4% and 37.4%), so step size does not limit the smallest edit.

Thinking-mode MATH-500 accuracy against edit size, showing gradient-chosen weights, random positions, and GPT-6 Astra edit results

Figure 1. Thinking-mode MATH-500 accuracy against edit size. Points are the mean of two samples; bars span both. 140 gradient-chosen weights reach 39.0%. Random positions fail at 1,398 weights and work at 139,750; we did not test sizes in between. The Astra edit (131,072 weights) is evaluated with our 4,096-token protocol, not its own 32,768-token one.

Data needed. Fifty examples are enough (Table 1). The 50- and 500-example sets were drawn from the full pool, which took 57.6 A100-minutes to generate; generating 50 examples directly would take a small fraction of that.

Training examplesEpochsTraining (min)MATH-500, thinking 4kClosed (of 500)
7,11116.841.0% / 44.8%344 / 340
50083.744.8% / 43.6%351 / 351
50401.941.8% / 37.4%361 / 356

Table 1. Amount of training data, all at 1,398 weights. Two samples per setting.

Against thinking off. The fair baseline is the base model with thinking off, which scores 41.0% (greedy decoding, while the thinking-on runs are sampled). The 1,398-weight edit matches it: 41.0% (p=1.0p = 1.0) and 44.8% (p=0.10p = 0.10). The 139,750-weight edit beats it at the 8k budget, 48.0% (p=0.002p = 0.002), and scores 46.8% (p=0.009p = 0.009) and 44.2% (p=0.18p = 0.18) at 4k. With thinking off, the edited models score 40.2–41.4%, the same as the base model. The edits make thinking mode usable but add little reasoning ability. A dense LoRA (rank 16, changing 409M weights) reaches 41.0%, no better than 1,398 sparse weights.

Transfer. The fix carries over to GSM8K, which it never trained on, but not to code (Table 2). On HumanEval, the edit closes fewer thinking blocks than the base model does, and with thinking off it scores 29.3% against 34.1%: it may slightly hurt code, though no code difference is significant.

BenchmarkBase139,750-weight editFixed / broken vs base
GSM8K, thinking 4k13.6% (18 of 1,319 closed)56.1% (1,244 closed)+605 / −44, p<10−100p < 10^{-100}
HumanEval, thinking 4k27.4% (61 of 164 closed)23.8% (36 closed)+14 / −20, p=0.39p = 0.39
GSM8K, thinking off55.5%54.9%p=0.69p = 0.69
HumanEval, thinking off34.1%29.3%p=0.15p = 0.15
LiveCodeBench v6, thinking off9.1%10.3%p=0.62p = 0.62

Table 2. Transfer to benchmarks outside the training data.

Where the fix lives

The gradient concentrates the edit on the most nearly constant channel of each of the first three layers, and an edit confined to those channels acts as a constant vector added to the residual stream. The rest of the edit matters too, and we have not tested whether it acts the same way.

Four constant channels. In the 1,398-weight edit, 888 weights (64%) fall in four input columns of linear_attn.out_proj in layers 0–2. Each column is how one channel of one value head writes into the residual stream. They are the most constant channels in their layers, measured on 19 thinking traces with the base weights (Table 3). The smaller edits use the same channels: 113 of the 140 weights and 380 of the 500 sit in these four columns.

Ablations and column training. Training only these four columns works as well as the full edit, and four random columns do not (Table 4). The parts of the 1,398-weight edit do not add up:

VariantWeightsMATH-500, thinking 4kClosed (of 500)
Full 1,398-weight edit1,39841.0% / 44.8%344 / 340
Only its part in the four channels88825.0% / 24.8%62 / 59
Only its other part51034.6% / 30.8%67 / 64
Only its part in channel 110531716.6% / 17.0%13 / 11
Train the four channel columns from scratch4,09645.8% / 44.0%347 / 335
Train four random columns, same matrices4,09620.4% / 20.6%24 / 18
All three vectors packed into one column1,02421.2% / 20.4%41 / 29

Table 4. Ablations of the 1,398-weight edit and column-only training. Two samples per variant.

ChannelMeanStdMean/std (rank of 2,048)Layer medianWeights in edit
Layer 0, channel 1105+2.2440.17612.8 (1st)0.24317
Layer 0, channel 826−2.1260.4454.8 (2nd)0.24135
Layer 1, channel 1583−2.1980.3546.2 (1st)0.11245
Layer 2, channel 1492−2.6880.06740.2 (1st)0.15191

caption: The four channels the 1,398-weight edit concentrates on: activation statistics under the base weights. “Layer median” is the median ∣mean∣/std|\mathrm{mean}|/\mathrm{std} over the layer’s 2,048 channels.

:::

each alone closes about 65 answers, together 342. The push seems to work only above a threshold. The four channels are not the whole edit: its 510 weights outside them score higher alone (about 33%) than the 888 inside them (about 25%).

A bias in disguise. Qwen3.5’s linear layers have no bias terms. If channel cc is nearly constant at mean μc\mu_c, changing its write column by Δ:,c\Delta_{:,c} adds almost the same vector at every position. For layer LL with edited channels CLC_L:

bL=∑c∈CLμcΔ:,c.(1)b_L = \sum_{c \in C_L} \mu_c \Delta_{:,c}. \tag*{(1)}

We tested this on the four-column edit. Each bLb_L has norm 0.23–0.28. Hooks add b0b_0, b1b_1 and b2b_2 to the unedited model’s out_proj outputs in layers 0–2. On 38 teacher-forced thinking traces, the mean KL divergence from the edited model is 0.010 nats per token for base + vectors, against 0.108 for the base model, and the top-1 token agrees 98.1% of the time, against 93.2%. On the first 96 MATH-500 problems (Hugging Face sampling, same settings), base + vectors scores 45.8% with 57 answers closed; the edited model scores 42.7% (69 closed) and the base model 11.5% (1 closed). The vectors match the four-column edit’s accuracy, but not all of its closing.

This explains why the gradient picks these channels. The training signal asks for the same shift everywhere: finish sooner. Without biases, the cheapest way to add a constant is through a channel that is already constant. Placement matters, though: writing b0+b1+b2b_0 + b_1 + b_2 into the layer-0 column alone fails (20.8%), although per-layer placement works.

What the push changes. The edit does not simply raise the probability of </think> everywhere. On the base model’s looping traces, the edited model’s mean log-probability of </think> is lower than the base model’s (−29.7 against −26.9), but its highest value per trace is higher (−5.8 against −8.0). On the edited model’s own finished traces, the base model would also close at the same position: median log-probability −0.13, above probability 0.5 in 94% of traces. The base model recognises when it is done. What it fails to do is reach that point, and the edit changes the path taken before it.

Comparison with the GPT-6 Astra edit

The Astra edit is a different, input-dependent change in the middle of the network. At our 4k–8k budgets it rarely ends the loops, and stacking it on our edit adds nothing there. § 6 shows that this changes at their 32k budget.

What their diff is. Only two tensors of the public checkpoint [2] differ from the base model: mlp.down_proj in layers 15 and 19. In each, 64 columns change, and the change has rank one: one direction uu carries all of it (fit residual 0.2–0.3%). On those columns,

W′=W−6uuTW.(2)W' = W - 6uu^{\mathsf{T}}W. \tag*{(2)}

This multiplies the component along uu that these 64 neurons write by −5: the signal is flipped and amplified, not removed. Both layers use the same direction up to sign (∣cos⁡∣=0.85|\cos| = 0.85).

How it differs from ours. Table 5 summarises the two edits. They point in nearly orthogonal directions. The vectors written by the four columns of our 1,398-weight edit have ∣cos⁡∣|\cos| with uu of at most 0.02, 0.03 and 0.05 for three columns. The fourth, in layer 2, reaches 0.10, above the 0.08 that random directions reach at the 99th percentile, so the overlap is small but not zero: 1% of that vector’s squared length lies along uu. Their edit tracks the loops. The amount the 64 neurons write along uu varies with position (mean/std 0.93 in layer 15, 0.76 in layer 19), and is 40–56% larger on looping traces than on finished ones (0.098 against 0.063 in layer 15; 0.129 against 0.091 in layer 19). Our edit does not act through their direction: on looping traces it leaves the residual stream’s cosine with uu almost unchanged (0.206 against 0.214 at layer 15, 0.251 against 0.244 at layer 19), while the Astra edit lowers it to 0.065 and 0.099.

Our four-column editAstra edit
Found byGradient descent on 7,111 of the model’s own answers, 9 min on one A100GPT-6 Astra reading the weights, with 50 forward passes and no gradients
WhereLayers 0–2, linear_attn.out_projLayers 15 and 19, mlp.down_proj
Weights4,096 (140 in our smallest edit)131,072
What it addsA near-constant vectorAn amount that depends on the input

Table 5. The two edits side by side.

Their checkpoint on our protocol. Table 6 runs the public Astra checkpoint through our evaluation. Stacking the Astra edit on our 1,398-weight edit gives 43.8% and 40.4%, against 41.0% and 44.8% for ours alone. Their edit does close more code answers than the base model (105 against 61), where ours closes fewer.

BenchmarkBaseAstra editOurs, 139,750 weights
MATH-500, thinking 4k16.0% / 14.8% (1 / 2 closed)18.6% / 19.2% (14 / 15 closed)46.8% / 44.2% (349 / 363 closed)
MATH-500, thinking 8k15.6% (3 closed)24.0% (45 closed)48.0% (375 closed)
GSM8K, thinking 4k13.6% (18 of 1,319 closed)21.5% (120 closed)56.1% (1,244 closed)
HumanEval, thinking 4k27.4% (61 of 164 closed)32.3% (105 closed)23.8% (36 closed)
MATH-500, thinking off41.0%37.2% (p=0.07p = 0.07)40.4%
GSM8K, thinking off55.5%57.3%54.9%
HumanEval, thinking off34.1%36.6%29.3%

Table 6. The public Astra checkpoint and our 139,750-weight edit under our protocol (no presence penalty, 4k or 8k tokens).

This is not their protocol, which uses 32,768 tokens and presence penalty 1.5. We run it next.

Under the Astra protocol: each edit wins in its own regime, and together they win

Reproduction. Our run of the public Astra checkpoint scores 55.7% (any correct), with 32.0% of answers hitting the limit, against 51.0% and 31.6% in their re-run (Table 7). Its strict score is 52.1%. Under this protocol the Astra edit beats each of our edits alone, by 5–6 points.

ModelWeights editedStrictAny correctHit the limitAvg tokensvs Astra edit (strict)
Base (Astra report)0–7.9%93%–
Astra edit (Astra report / re-run)131,072–48.1 / 51.0%33.1 / 31.6%–
Astra edit (ours)131,07252.1%55.7%32.0%21,966
Ours, 1,3981,39845.7%47.1%11.5%6,861−6.4, p=2×10−6p = 2 \times10^{-6}
Ours, 139,750139,75045.6%46.1%16.2%7,501−6.5, p=10−7p = 10^{-7}
Ours, 139,750 at half strength139,75046.7%50.8%42.9%16,230−5.4, p=6×10−4p = 6 \times10^{-4}
Astra + ours, 1,398132,47047.6%48.8%0.8%5,188−4.5, p=0.03p = 0.03
Astra + ours, 139,750270,76449.7%49.7%0.5%4,382−2.4, p=0.11p = 0.11
Astra + ours, 139,750 at half strength270,76462.2%62.9%8.2%11,523+10.1, p=3×10−9p = 3 \times10^{-9}
Astra + ours, 139,750 at quarter strength270,76459.8%61.5%20.9%17,483+7.7, p=10−8p = 10^{-8}

Table 7. MATH-500 under the Astra protocol (32,768 tokens, presence penalty 1.5). Two samples per problem for our runs; the Astra report uses four. Strict: finished, closed and correct. Any correct: the last boxed answer is correct, finished or not. We list the Astra report’s accuracy under any correct. Weights edited counts positions; the 139,750-weight edit and the Astra edit share 58, so together they edit 131,072+139,750−58=270,764131{,}072 + 139{,}750 - 58 = 270{,}764.

Each edit wins in its own regime. Our edits finish early: half of our 1,398-weight edit’s answers use under 1,200 tokens, and its score at 4k (39.5%) is within 7 points of its score at 32k. The Astra edit thinks long. Its median answer uses 23,000 tokens, and it scores 6.7% at 4k and 27.5% at 16k. Ours is better at every budget up to 16k; the Astra edit passes it between 16k and 32k (Figure 2). The two edits fail in opposite ways. When the Astra edit closes its thinking, it is right 76.8% of the time, but only 67.8% of its answers close; most of the rest run out of tokens. Our 1,398-weight edit closes 87.6% of its answers but is right on only 52.2% of those.

Strict MATH-500 accuracy against token budget for the Astra protocol

Figure 2. Strict MATH-500 accuracy against token budget, Astra protocol. Points below 32k are read off the 32k answers (§ 2). Our edit is close to its best by 4k; the Astra edit needs about 20k tokens per answer to pass it. The combined edit is best at 16k and 32k; with our edit at full strength it is best at 8k and below.

Together they win. Adding our 139,750-weight edit to the Astra edit at full strength fixes the running out (0.5% hit the limit) but undoes the long thinking: the median answer falls to 1,068 tokens, and the score to 49.7%. At half strength, the combined model keeps most of the long thinking and loses most of the running out: 91.8% of answers close, and 67.8% of those are right. It scores 62.2% at 32k, 10.1 points above the Astra edit (better on 135 problems, worse on 54, p=3×10−9p = 3 \times10^{-9}, with 11,523 tokens per answer against 21,966. Our half-strength edit on its own scores 46.7% and runs out of tokens 42.9% of the time, so the gain needs both edits (p=2×10−19p = 2 \times10^{-19} against it). The combination is also best at 16k (54.0% against 27.5% for the Astra edit); at 8k and below, the full-strength combination is best (43.6% at 4k). One plausible reading: the Astra edit improves how the model reasons, and a weakened version of our constant push makes it stop once it is done.

Related work

Weight-space programming. Takehi et al. [1] have a frontier model read and rewrite network weights without gradients, and stop Qwen3.5-0.8B’s loops with a 131,072-weight edit. Hu et al. [3] study the approach across 16 editing runs and two model sizes, including a 1,023-parameter edit worth 29.45 MATH-500 points. Neither compares against gradient-chosen sparse edits or random-position controls, which is our focus, and neither combines a model-written edit with a gradient edit.

Editing and steering reasoning length. ThinkEdit [7] finds a linear direction for reasoning length and edits the output projections of about 4% of attention heads (0.2% of parameters) to fix reasoning that is too short. Sheng et al. [8] find a direction, set before generation, whose strength controls reasoning length and shifts the probability of </think>. Our edit addresses the opposite problem, reasoning that never ends. It is found by gradient descent rather than by contrasting activations, and its four-column core amounts to a constant steering vector stored in the weights.

Why models loop. Pipis et al. [5] attribute looping to errors in learning, which higher temperature only partly hides. Final Token Preference Optimization [6] trains against the first token of a loop, cutting greedy looping in Qwen3.5-4B from 22.9% to 1%.

Sparse fine-tuning. Choosing the kk parameters with the largest importance score and training only those is the FISH mask [9], which uses Fisher information; we use summed absolute gradients. Mukherjee et al. [10] show that reinforcement learning updates only 5–30% of an LLM’s parameters, and that training that subnetwork alone recovers the result.

Large gains from small signals. Shao et al. [11] report that reinforcement learning with random rewards raises Qwen2.5-Math-7B on MATH-500 by 21.4 points, close to the 29.1 from true rewards, by amplifying behaviour learned in pretraining. Our result is another large benchmark jump that unlocks existing ability rather than adding new ability.

Limitations

All results are for one model, Qwen3.5-0.8B, trained on MATH problems; we have not tested other sizes, other model families, or models with bias terms, where the constant-channel route may not be needed. Thinking-on results use two seeds, and dense LoRA and the 13,975-weight edit were each trained once. Under the Astra protocol we use two samples per problem rather than four, and test only MATH-500. We chose the strength of our edit in the combination from three values (1, 0.5, 0.25) on MATH-500 itself, with no held-out set; both weaker strengths beat the Astra edit by at least 7.7 points (p≤10−8p \le10^{-8}), so the gain does not hinge on one setting, but the 62.2% figure is the best of three. We did not test combinations with our smaller edits at reduced strength, or other benchmarks at 32k. The bias test covers the four-column edit, on 38 teacher-forced traces and 96 sampled problems, with a different inference engine (Hugging Face rather than vLLM); we have not tested whether the parts of our gradient edits outside the four channels act as constant vectors too. Packing the vectors into one column failed, and we do not know exactly why per-layer placement matters. Random positions were tested only at 1,398 and 139,750 weights. The 50- and 500-example runs drew from a pool made in 57.6 A100-minutes, and we did not measure the cost of generating 50 examples directly. Except at the 8k budget, the edits make thinking mode roughly as good as thinking off. On code they do not help and may slightly hurt (HumanEval with thinking off: 34.1% to 29.3%, p=0.15p = 0.15). The whole project, including unrelated and failed runs, used about $49 of cloud compute: about $30 for the main study and $19 for the Astra-protocol runs. Some planned runs (edits of 50 and 14 weights, scaled one-column edits) stopped when the first $30 of credit ran out.

Conclusion

A weight edit that takes a small model’s thinking-mode math score from 15% to 40–45% does not need a frontier model. Plain gradient descent finds one in minutes, from 50 of the model’s own answers, using as few as 140 weights. The edit stops the loops rather than adding skill. In this bias-free model, its core is a constant vector written through the most constant channels of the first three layers.

The frontier model’s edit does something ours does not: given 32k tokens, it reasons better, and it beats our edits by 5–6 points. But it needs those tokens, and below 16k our edits win by large margins. The two edits are not rivals. Added together, with ours at half strength, they reach 62.2%, 10 points above the Astra edit and 15 above ours, with half the Astra edit’s tokens. Weight edits found in different ways can be stacked, and the best result here came from a frontier model’s edit and a gradient edit together. Claims about either should be measured against the other, at more than one token budget, with random-position controls and the thinking-off score reported alongside.

Acknowledgments

Experiment code and drafting were assisted by Claude (Anthropic), an AI model. The author designed the study, checked all results and takes full responsibility for the content. All experiments ran on rented cloud GPUs (Modal) at a total cost of about $49.

References

  1. [1]R. Takehi, J. Teoh, A. Zhang, and O. Khattab. Sparks of weight-space programming: LLMs can natively read & write neural network weights. Blog post, MIT CSAIL, November 2026. https://rikiyat.github.io/blog/weight-space-programming/.
  2. [2]R. Takehi. Qwen3.5-0.8B-weight-space-programming. Hugging Face model card, 2026. https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming.
  3. [3]J. Hu, C. Tang, W. Li, H. Zhu, C.-M. Feng, Q. Zhang, Y. Chen, and M. Hu. Exploring weight-space programming: Capabilities, generalization, and limitations. arXiv:2611.09382, 2026.arxiv.org/abs/2611.09382
  4. [4]Qwen Team. Qwen3.5-0.8B. Hugging Face model card, 2026. https://huggingface.co/Qwen/Qwen3.5-0.8B.
  5. [5]C. Pipis, S. Garg, V. Kontonis, V. Shrivastava, A. Krishnamurthy, and D. Papailiopoulos. Wait, wait, wait... why do reasoning models loop? In International Conference on Machine Learning (ICML), 2026.arxiv.org/abs/2512.12895
  6. [6]Liquid AI. Reducing doom loops with final token preference optimization. Blog post, 2026. https://www.liquid.ai/en/blog/antidoom.
  7. [7]C.-E. Sun, G. Yan, and T.-W. Weng. ThinkEdit: Interpretable weight editing to mitigate overly short thinking in reasoning models. In Proceedings of EMNLP, 2025. arXiv:2503.22048.arxiv.org/abs/2503.22048
  8. [8]L. Sheng, A. Zhang, Z. Wu, W. Zhao, C. Shen, Y. Zhang, X. Wang, and T.-S. Chua. On reasoning strength planning in large reasoning models. arXiv:2506.08390, 2025.arxiv.org/abs/2506.08390
  9. [9]Y.-L. Sung, V. Nair, and C. Raffel. Training neural networks with fixed sparse masks. arXiv:2111.09839, 2021.arxiv.org/abs/2111.09839
  10. [10]S. Mukherjee, L. Yuan, D. Hakkani-Tür, and H. Peng. Reinforcement learning finetunes small subnetworks in large language models. In Advances in Neural Information Processing Systems (NeurIPS), 2025. arXiv:2505.11711.arxiv.org/abs/2505.11711
  11. [11]R. Shao, S. S. Li, et al. Spurious rewards: Rethinking training signals in RLVR. arXiv:2506.10947, 2025.arxiv.org/abs/2506.10947
  12. [12]D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt. Measuring mathematical problem solving with the MATH dataset. In NeurIPS Datasets and Benchmarks Track, 2021.
  13. [13]H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe. Let’s verify step by step. arXiv:2305.20050, 2023.arxiv.org/abs/2305.20050
  14. [14]K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman. Training verifiers to solve math word problems. arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  15. [15]M. Chen, J. Tworek, H. Jun, Q. Yuan, et al. Evaluating large language models trained on code. arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  16. [16]N. Jain, K. Han, A. Gu, W.-D. Li, F. Yan, T. Zhang, S. Wang, A. Solar-Lezama, K. Sen, and I. Stoica. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. arXiv:2403.07974, 2024.arxiv.org/abs/2403.07974
  17. [17]W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. E. Gonzalez, H. Zhang, and I. Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of SOSP, 2023.arxiv.org/abs/2309.06180
  18. [18]Hugging Face. Math-Verify. Software, https://github.com/huggingface/Math-Verify.
  19. [19]Q. McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153–157, 1947.pubmed.ncbi.nlm.nih.gov/20254758

Paper details

vlnc:W_tfhrf4et
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Claude

View statement
Looking for related papers…
Contents