A Bias in Disguise: Tiny Gradient Edits Stop a Small Language Model's Thinking Loops and Complement a Frontier Model's Weight Edit
Organizations: Independent Researcher
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%.
Figures & tables
| Training examples | Epochs | Training (min) | MATH-500, thinking 4k | Closed (of 500) |
|---|---|---|---|---|
| 7,111 | 1 | 6.8 | 41.0% / 44.8% | 344 / 340 |
| 500 | 8 | 3.7 | 44.8% / 43.6% | 351 / 351 |
| 50 | 40 | 1.9 | 41.8% / 37.4% | 361 / 356 |
| Benchmark | Base | 139,750-weight edit | Fixed / broken vs base |
|---|---|---|---|
| GSM8K, thinking 4k | 13.6% (18 of 1,319 closed) | 56.1% (1,244 closed) | +605 / 44, |
| HumanEval, thinking 4k | 27.4% (61 of 164 closed) | 23.8% (36 closed) | +14 / 20, |
| GSM8K, thinking off | 55.5% | 54.9% | |
| HumanEval, thinking off | 34.1% | 29.3% | |
| LiveCodeBench v6, thinking off | 9.1% | 10.3% |
| Channel | Mean | Std | Mean/std (rank of 2,048) | Layer median | Weights in edit |
|---|---|---|---|---|---|
| Layer 0, channel 1105 | +2.244 | 0.176 | 12.8 (1st) | 0.24 | 317 |
| Layer 0, channel 826 | 2.126 | 0.445 | 4.8 (2nd) | 0.24 | 135 |
| Layer 1, channel 1583 | 2.198 | 0.354 | 6.2 (1st) | 0.11 | 245 |
| Layer 2, channel 1492 | 2.688 | 0.067 | 40.2 (1st) | 0.15 | 191 |
| Variant | Weights | MATH-500, thinking 4k | Closed (of 500) |
|---|---|---|---|
| Full 1,398-weight edit | 1,398 | 41.0% / 44.8% | 344 / 340 |
| Only its part in the four channels | 888 | 25.0% / 24.8% | 62 / 59 |
| Only its other part | 510 | 34.6% / 30.8% | 67 / 64 |
| Only its part in channel 1105 | 317 | 16.6% / 17.0% | 13 / 11 |
| Train the four channel columns from scratch | 4,096 | 45.8% / 44.0% | 347 / 335 |
| Train four random columns, same matrices | 4,096 | 20.4% / 20.6% | 24 / 18 |
| Our four-column edit | Astra edit | |
|---|---|---|
| Found by | Gradient descent on 7,111 of the model’s own answers, 9 min on one A100 | GPT-6 Astra reading the weights, with 50 forward passes and no gradients |
| Where | Layers 0–2, linear_attn.out_proj | Layers 15 and 19, mlp.down_proj |
| Weights | 4,096 (140 in our smallest edit) | 131,072 |
| What it adds | A near-constant vector | An amount that depends on the input |
| Benchmark | Base | Astra edit | Ours, 139,750 weights |
|---|---|---|---|
| MATH-500, thinking 4k | 16.0% / 14.8% (1 / 2 closed) | 18.6% / 19.2% (14 / 15 closed) | 46.8% / 44.2% (349 / 363 closed) |
| MATH-500, thinking 8k | 15.6% (3 closed) | 24.0% (45 closed) | 48.0% (375 closed) |
| GSM8K, thinking 4k | 13.6% (18 of 1,319 closed) | 21.5% (120 closed) | 56.1% (1,244 closed) |
| HumanEval, thinking 4k | 27.4% (61 of 164 closed) | 32.3% (105 closed) | 23.8% (36 closed) |
| MATH-500, thinking off | 41.0% | 37.2% ( ) | 40.4% |
| GSM8K, thinking off | 55.5% | 57.3% | 54.9% |
| Model | Weights edited | Strict | Any correct | Hit the limit | Avg tokens | vs 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,072 | 52.1% | 55.7% | 32.0% | 21,966 | |
| Ours, 1,398 | 1,398 | 45.7% | 47.1% | 11.5% | 6,861 | 6.4, |
| Ours, 139,750 | 139,750 | 45.6% | 46.1% | 16.2% | 7,501 | 6.5, |
| Ours, 139,750 at half strength | 139,750 | 46.7% | 50.8% | 42.9% | 16,230 | 5.4, |
Language Model Editing
Language model editing changes a model’s knowledge or behavior, or revises its outputs, while aiming to preserve unrelated capabilities.
See all 98 papers