Qwen3.5-0.8B Weight-Space Programming: What Is It? No Training, Just 0.016% of Weights Edited — MATH-500 Jumps from 7.9% to 48.1%
Zero training, direct weight edits: changing 131,072 weights (0.016% of the model) lifts MATH-500 from 7.9% to 48.1% — preliminary, single reproduction.
1. What it is: no training, no fine-tuning — direct weight edits
2. How the edit works: 50 forward passes to locate it, layers 15 and 19, 131,072 weights
3. The effect: the base model loops to the token limit on nearly every problem; after the edit, it mostly stops
4. Independent reproduction: 51.0% on the full MATH-500, 31.6% hitting the limit
5. Who it fits, limitations, and sources
Comparison: base Qwen3.5-0.8B, edited (author's article), edited (independent reproduction)
| Item | Base Qwen3.5-0.8B | Edited (author's article) | Edited (independent reproduction) |
|---|---|---|---|
| MATH-500 | 7.9% | 48.1% | 51.0% |
| GSM8K | 13.8% | 67.1% | Not tested in the reproduction |
| IFEval | 21.0% | 62.3% | Not tested in the reproduction |
| Hitting the token limit (MATH-500) | 93.0% | 33.1% | 31.6% |
| Weights changed | — | 131,072 (0.016%) | Same edit as the author (hash-verified) |
| Training / gradient descent | — | Zero training, no gradient descent | Same |
MATH-500 scores (%) — base, edited (author), edited (independent reproduction)
数据来源:Author's blog https://rikiyat.github.io/blog/weight-space-programming/ and HF model page https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming (verified 2026-11-09): base 7.9%, edited (author) 48.1%, edited (reproduction) 51.0% (preliminary)
Frequently Asked Questions
How is weight-space programming different from fine-tuning?
Fine-tuning changes behavior by computing gradients under a training objective and updating weights; weight-space programming uses no training and no gradient descent. Instead, another model locates a specific direction in the weights (here, the direction that causes reasoning loops) and subtracts it from specific matrix columns. The edit is tiny — 131,072 weights, 0.016% of the model — and targets a located fault rather than tuning everything globally.
Why does changing 0.016% of the weights have such a big effect?
Because the base model's problem is not 'it cannot do math' but 'it gets stuck': 93.0% of MATH-500 problems loop all the way to the token limit, so the score is dragged down by the looping fault. The edit removes exactly that looping direction, releasing capability that was blocked. The jump is large first of all because the starting point was crushed by the fault; on a model without the looping fault, the same operation would likely not produce this effect.
Can the scores be trusted?
Treat them as preliminary. The author's scores (MATH-500 48.1%, GSM8K 67.1%, IFEval 62.3%) are the author's own tests; the independent reproduction ran once and covered MATH-500 only (51.0%), with no reproduction data for GSM8K or IFEval. The reproduction confirms the direction and magnitude, but the specific number 51.0% may not hold under different sampling settings — do not quote it as a leaderboard ranking.
Why did the reproduction get 51.0% while the article reports 48.1%?
The model page states the reason: the reproduction used the full 'multimodal checkpoint,' while the article's scores used a text-only export. The language-model tensors of the two were verified identical by hash, so the edit itself did not change — it is the same edit measured on a different export. When quoting a number, state which run and which checkpoint it came from.
Can this method be applied to other models and tasks?
There is no evidence yet. Only one 0.8B small model and the math task family (MATH-500, GSM8K, plus IFEval) have been validated. The underlying idea — locate a faulty direction in the weights and subtract it — might generalize, but whether it generalizes, to how large a model, and to which tasks, has not been tested. Do not treat it as a general score-boosting method.
Where can I try it and see the code?
The online demo is akhaliq/weight-space-programming-demo — type in a math problem and watch the base loop while the edited model solves it. The model page is https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming , with the apply_edit.py script and the bit-exact diff; logs and code are at github.com/RikiyaT/lm_understand-logs (exp8_math/), and the reproduction's raw scores and per-problem results are in the repository's eval/ directory.