Disclaimer:This site is not affiliated with or endorsed by Qwen3.5-0.8B-weight-space-programming.
YuliusWiki
Published:•Last updated:•yulius
🌐 中文版 (Chinese)

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%

Quick Answer

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.

Weight-space programming is an experiment by researcher RikiyaT: instead of training a model, let a frontier language model, Astra, edit the target model's weights directly. The target is Qwen3.5-0.8B — a small 0.8B-parameter model. The whole process involves zero training and no gradient descent: Astra works on the weights inside a Python session, using 50 forward passes on the GSM8K and MATH training sets as its budget to find the problem, then edits it directly. Only 131,072 weights change — 0.016% of the model — and MATH-500 rises from 7.9% to 48.1%. Identity and limits first: this is an individual research project, not an official release from the Qwen team; the scores come from the author's article plus one third-party reproduction, and everything here should be read as preliminary, not independent verification. The base is a small 0.8B model with a pathological looping behavior — 93.0% of MATH-500 problems run all the way to the token limit. Much of the gain comes from fixing that 'loop until the limit' failure mode, not from a general capability jump. This article is an introduction and analysis only; it contains no attack or bypass content. Disclaimer: this site is not affiliated with RikiyaT, the Qwen team, Hugging Face, akhaliq, or the vLLM project; Qwen is a trademark of Alibaba. This article is product-technology reporting and analysis, not procurement, deployment, or legal advice. Parameters, specs, and status follow the official model page and may change; anything not publicly disclosed follows the official page.

1. What it is: no training, no fine-tuning — direct weight edits

Weight-space programming is a method proposed in this work: instead of changing a model's behavior through training or fine-tuning, let another frontier language model, Astra, edit the target model's weights directly. The target is Qwen3.5-0.8B — a small model with only 0.8B parameters. The whole process involves zero training and no gradient descent: Astra works on the weights inside a Python session, using 50 forward passes on the GSM8K and MATH training sets as its budget to find the problem, then edits it directly. The bet behind the method is that the base model is not bad at math — it gets stuck. In the measurements, the base model falls into reasoning loops on nearly every math problem, generating all the way to the token limit — 93.0% of MATH-500 problems hit the limit. In other words, the capability may already be in the weights, blocked by a direction that causes looping. Weight-space programming bets on exactly that: rather than spending compute on retraining, remove the offending direction from the weights. Compared with fine-tuning, LoRA, or RL, the difference is where the change happens: fine-tuning updates weights through gradients under a training objective, while weight-space programming edits the geometry of the weights themselves — find a direction and subtract it from specific matrix columns. The edit is tiny (131,072 weights, 0.016% of the model), but it targets a specific, located fault instead of tuning everything globally. Identity first: this is an individual project by researcher RikiyaT, published on Hugging Face (RikiyaT/Qwen3.5-0.8B-weight-space-programming) under the Apache 2.0 base license; logs and code are in the lm_understand-logs repository on GitHub (exp8_math/, CC BY 4.0 / MIT). Scores come from the author's article plus one third-party reproduction — read everything here as preliminary, not independent verification.

2. How the edit works: 50 forward passes to locate it, layers 15 and 19, 131,072 weights

The localization runs in two steps. First, find the direction on a budget: Astra used a total of 50 forward passes on the GSM8K and MATH training sets to locate a direction 'written out' by the MLPs of layers 15 and 19 — a direction shared by those two layers' MLP outputs that correlates with reasoning loops. Note what the budget means: not 50 training steps and not 50 fine-tuning rounds, but 50 forward passes — watching how the model computes, without changing any weights. Second, make the edit: subtract that direction from the down_proj matrix of layers 15 and 19, 64 output columns per layer. The two layers together change 131,072 weights: 2 layers × 64 columns × 1,024 weights per column = 131,072, which is 0.016% of the 0.8B model (131,072 ÷ 800,000,000 ≈ 0.016%). The other 99.984% of the weights are untouched. How do we know 'these are the only changes'? The edit is published as a bit-exact diff: the repository's apply_edit.py rebuilds the edited model from the base, verifying every tensor with sha256 during the rebuild; compared with base Qwen3.5-0.8B, only 2 tensors differ — the mlp.down_proj.weight of layers.15 and layers.19, with hashes on the model page. In other words, the edit is fully transparent and reproducible: anyone can start from the base and get a bit-identical edited model with the same script. One common misunderstanding to clear up: this is not 'the model editing itself,' and it is not 'distilling a big model into a small one.' Astra is the operator and Qwen3.5-0.8B is the edited object; Astra taught the small model no new knowledge, it only found and removed a weight direction that causes loops. The ceiling of the effect depends on what the base already knows — it can only release blocked capability, not create new capability out of nothing.

3. The effect: the base model loops to the token limit on nearly every problem; after the edit, it mostly stops

First, how bad the base is: on MATH-500, 93.0% of problems run all the way to the token limit — nearly every problem burns the full 32,768 tokens inside a loop. After the edit, the hit-the-limit rate falls to 33.1%, down 59.9 percentage points; the model mostly stops looping on every problem. Scores follow. The author's results (thinking on, up to 32,768 tokens, multiple samples per problem): MATH-500 rises from 7.9% to 48.1%, up 40.2 percentage points; GSM8K from 13.8% to 67.1%, up 53.3 points; IFEval from 21.0% to 62.3%, up 41.3 points. Read these numbers with care. First, the starting point is extremely low: the base's 7.9% is not 'the normal math level of a 0.8B model,' but 'the level after a looping fault drags it down' — with 93% of problems hitting the limit, the score cannot be high. The edit fixes the loop first and releases capability second. So much of this gain is 'fixing a fault,' not 'a general capability jump'; do not read it as 'editing 0.016% of weights lifts any model by 40 points.' Second, IFEval also rose 41.3 points, which suggests that once the loop is fixed, the model benefits on non-pure-math tasks like instruction following too — looping is a general fault, and fixing it helps everywhere. But that is still validation within the same task family, not evidence that 'any task works.' Third, the conditions are part of the score: thinking on, up to 32,768 tokens, multiple samples per problem — change the sampling setup and the scores move; align conditions before comparing against other models on leaderboards.

4. Independent reproduction: 51.0% on the full MATH-500, 31.6% hitting the limit

Beyond the author's article, there is one independent third-party reproduction, worth its own section — it is the only external verification so far. The reproduction was done by akhaliq using an ML Intern on Hugging Face Jobs and completed on 2026-11-02: first rebuild the edited model on CPU with apply_edit.py (sha256 verification per tensor), then run it on an H200 with vLLM 0.33.0 / transformers 5.20.2, scored with math-verify 0.9.0. The reproduction ran the full MATH-500: 500 problems × 4 samples each = 2,000 generations, 43.4M tokens in total, 51 minutes on an H200. The protocol follows the article strictly: vLLM, thinking on, temperature 0.6, top_p 0.95, top_k 20, presence_penalty 1.5, up to 32,768 tokens, seed 0. Result: the edited model scores 51.0%, with 31.6% hitting the limit. As a control, the base model scored 5.0% on a 25-problem sample, with 95% hitting the limit — consistent with the author's report of the base: almost everything loops. The reproduction's 51.0% is 2.9 percentage points above the article's 48.1%, and 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 this is not 'a different edit' — it is the same edit measured on a different export. Raw scores and per-problem results are in the repository's eval/ directory, checkable problem by problem. What this reproduction proves, and what it does not, should be kept apart. It proves the edit is real and reproducible (CPU rebuild with sha256 verification passed) and that the effect is not the author's illusion alone (a third party got the same direction and magnitude on the full MATH-500). It does not prove the method generalizes to other models or tasks, or that the specific number 51.0% holds under different sampling settings. The reproduction ran once and covered MATH-500 only; GSM8K and IFEval have no reproduction data. All scores in this article should be read as preliminary.

5. Who it fits, limitations, and sources

Who it fits: researchers interested in weights that are interpretable and editable; anyone who wants to reproduce weight-space programming once and see first-hand what 131,072 weights can do; people with H200-class hardware who want to run the full MATH-500 reproduction; and anyone diagnosing reasoning faults (loops) in small models. There is also an online demo: akhaliq/weight-space-programming-demo — type in a problem and watch the base loop while the edited model solves it, no setup needed. Who should wait: anyone hoping this is a general score-boosting method — it fixes a looping fault, not a general capability gap; anyone planning to apply it directly to other models or tasks — so far only the math task family on a 0.8B model has been validated, and conclusions from a small model do not transfer automatically; and anyone quoting 51.0% as a leaderboard ranking — it is a preliminary result from a single third-party reproduction, not an official leaderboard score. The limitations, laid out plainly. First, the base is a 0.8B small model with pathological looping (93% hitting the limit): the starting point is extremely low, so much of the jump is 'fixing a fault'; on a model without the looping fault, the same operation may not produce this effect. Second, only the math task family has been validated: MATH-500, GSM8K, and IFEval are in the article, but general capability beyond IFEval has not been systematically tested. Third, the evidence is the author's article plus one third-party reproduction: the reproduction ran once and covered MATH-500 only, so sample size and replication count are both limited — everything is preliminary. Fourth, the 51.0% vs. 48.1% gap is a reminder that the checkpoint export affects the score; when quoting a specific number, state which run and which checkpoint it came from. Sources (verified November 9, 2026, Beijing time): 1) https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming — RikiyaT's official model page: the weight-space programming concept, Astra editing weights directly, zero training and no gradient descent, a 50-forward-pass budget (GSM8K and MATH training sets), the looping direction from layers 15 and 19 MLPs, 64 output columns per layer's down_proj, 131,072 weights (0.016%), bit-exact diff release, apply_edit.py with sha256 per-tensor verification, only 2 tensors different (layers.15 and layers.19 mlp.down_proj.weight), base license Apache 2.0; 2) https://rikiyat.github.io/blog/weight-space-programming/ — the author's blog: the concept and method, and the author's scores (thinking on, up to 32,768 tokens, multiple samples per problem): MATH-500 7.9%→48.1%, GSM8K 13.8%→67.1%, IFEval 21.0%→62.3%, hitting the limit 93.0%→33.1%; 3) The independent reproduction record on the same model page (akhaliq, ML Intern on Hugging Face Jobs, 2026-11-02, preliminary): full MATH-500 (500 problems × 4 samples = 2,000 generations, 43.4M tokens, 51 minutes on an H200), protocol (vLLM, thinking on, temperature 0.6, top_p 0.95, top_k 20, presence_penalty 1.5, max 32,768 tokens, seed 0, math-verify 0.9.0), edited model 51.0%, hitting the limit 31.6%, base 25-problem sample 5.0%, 95% hitting the limit, the explanation for 51.0% vs. 48.1% (full multimodal checkpoint vs. text-only export, language-model tensors hash-identical), raw scores and per-problem results in the repository's eval/ directory; 4) Online demo: akhaliq/weight-space-programming-demo; logs and code: github.com/RikiyaT/lm_understand-logs (exp8_math/, CC BY 4.0 / MIT). Disclaimer: this site is not affiliated with RikiyaT, the Qwen team, Hugging Face, akhaliq, or the vLLM project; Qwen is a trademark of Alibaba. This article is product-technology reporting and analysis, not procurement, deployment, or legal advice. Parameters, specs, and status follow the official model page and may change; anything not publicly disclosed follows the official page.

Comparison: base Qwen3.5-0.8B, edited (author's article), edited (independent reproduction)

ItemBase Qwen3.5-0.8BEdited (author's article)Edited (independent reproduction)
MATH-5007.9%48.1%51.0%
GSM8K13.8%67.1%Not tested in the reproduction
IFEval21.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 descentSame

MATH-500 scores (%) — base, edited (author), edited (independent reproduction)

Base Qwen3.5-0.8B7.9%
★ Edited (author)48.1%
★ Edited (reproduction)51.0%

数据来源: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.

© 2026 YuliusWiki. All rights reserved.