Weight-space editing vs fine-tuning: 64 demos won on 0.8B
On Qwen3.5-0.8B, across three seeds, a closed-form weight edit gave a small gain on the tasks it was aimed at (mean +0.069 over the plain model, range +0.034 to +0.092; the main seed's task-level bootstrap, -0.001 to +0.075, includes zero), and 64 demos in the prompt gave a much larger one (mean +0.222, range +0.210 to +0.229).
Each seed draws its own rows and its own aimed-at tasks (the tasks where the teacher beat the plain model on training rows), so the ranges mix task-set and seed variance. Each seed scored 476 aimed-at rows (8 tasks, up to 60 rows each) with gold labels as the teacher and a first-token letter read-out: the answer is the option letter the model ranks highest as its first token, not generated text. A LoRA at a stable but undertrained, untuned setting gained +0.046 (range +0.025 to +0.057); full fine-tuning was not run. On left-alone rows (tasks the edit was not aimed at) the edit changed accuracy by -0.022 to +0.011 while that LoRA lost 0.06 to 0.29, but on unseen rows (tasks used in neither fitting nor guarding) the edit lost 0.02 to 0.09 in every seed. Stronger LoRA settings broke the model while training loss looked normal.
The "weight space programming" tested here is his: an edit of one kind of weight matrix in Qwen3.5-0.8B. It is not the MIT blog post of the same name, where a language model edits another model's weights.

What did Nandakishor M claim, and which "weight space programming" is this?
His post says a closed-form solve of 46 ms wrote the Vega engine's judgement into Qwen3.5-0.8B weights, with no catastrophic memory loss [author-reported]. The engine is vega-U, a 14.3M-parameter decision engine from his vegaml package. It reads a frozen language model and outputs probabilities over the answer options, and the edit's targets use those soft probabilities [author-reported, per the package page]. In my Mac runs the teacher is the gold label instead. His post was published on LinkedIn on 12 November 2026.
As I read it from screenshots, the post opens with the line "Weight space programming will replace fine tuning". The text says the solve took 46 milliseconds on two free Kaggle T4 GPUs, with "no new dataset and no training". The image footer says about 1 million weights changed, 0.1% of the model. One panel reports no catastrophic memory loss: WikiText perplexity 28.7 to 29.2, ARC letter accuracy 70.5% to 64.0%, capitals 100% to 100%, and 0 to 1 of 15 prompts damaged. A second panel shows the 8 biggest gains, for example unfair contract terms 24.6% to 50.9% and jailbreak 56.1% to 77.2%. Only the biggest gains are shown [author-reported].
A separate blog by Takehi, Teoh, Zhang and Khattab at MIT, "Sparks of Weight-Space Programming", dated 2 Nov 2026, has an LLM edit another model's weights. I found nothing linking the two, and I use none of its numbers [third-party identification only].
How does the edit work, and what does "no training" cover?
In his notebook only the final least-squares solve is closed form. In my Kaggle run, 45.6 ms of solves sat inside a 54.5 minute run [measured-by-us].
The edit treats the down projection of a transformer block as a key-value memory. It picks 512 of the 3,584 input columns (14.3%), solves a 512 by 512 system, and adds the result to the weights. In his code this happens at layers 19, 21 and 23, with up to two rounds [computed from his code]. The weight ceiling is therefore 3 x 512 x 1,024 = 1,572,864 weights, which is 0.209% of the 752.4M parameters in my MLX count [computed]. I use 752.4M as the denominator for every percentage below, although the model is called 0.8B and its safetensors metadata reports 0.9B.

What "no training" leaves out is the work before the solve. The notebook uses about 80 teacher-labelled rows per task (64 to fit, 16 kept back). Key reading collects the layer's input activations, the keys, on the fit rows. The dose is a multiplier on the solved update (0.25, 0.5, 1.0 or 1.5; dose 0 means the step is skipped). The notebook searches dose and regularisation strength on the kept-back rows, 32 evaluations across the 6 steps. A guard refuses a step if it moves the model too much on protected rows (kept rows from the left-alone tasks) or on WikiText paragraphs [computed from his code and my run's guard settings].
"No training" holds for the solve. It does not mean no data, no search and no teacher.
Does the edit beat LoRA or many-shot prompting on the same rows?
64 demos won in all three seeds, by +0.21 to +0.23 over plain, and the edit and LoRA gains overlap so that three seeds cannot separate them.
All numbers below are Qwen3.5-0.8B, 8 aimed-at tasks, 476 rows per seed, up to 60 eval rows per task, gold labels as the teacher, first-token read-out, float32 on an Apple M4 Pro with MLX. The LoRA used learning rate 1e-4, 300 iterations, scale 2. Seeds are 20261011, 2 and 3, so the columns are not the same tasks [measured-by-us].
What each lane consumed: the edit fit on 64 gold-labelled rows per aimed-at task (512 rows over 8 tasks), with 16 more per task kept back for dose and guard checks. The 64-demo prompt and the LoRA used the same gold-label supervision. The LoRA run at learning rate 3e-4 lists 512 training rows. The stable LoRA's row count is not recorded in my results files [measured-by-us].
Aimed-at accuracy | main | seed 2 | seed 3 |
plain model | 0.481 | 0.456 | 0.452 |
closed-form edit | 0.515 | 0.548 | 0.532 |
LoRA, stable setting | 0.538 | 0.511 | 0.477 |
64 demos in the prompt | 0.708 | 0.666 | 0.681 |
The mean change against plain is +0.069 for the edit (range +0.034 to +0.092), +0.046 for LoRA (range +0.025 to +0.057) and +0.222 for 64 demos (range +0.210 to +0.229) [computed from the measured accuracies].
Paired intervals exist for all three seeds, computed from the saved rows. The edit's row-level 95% interval excludes zero in every seed (main +0.013 to +0.055, seed 2 +0.055 to +0.130, seed 3 +0.042 to +0.118). LoRA's excludes zero only in seed 2 (+0.002 to +0.105). These intervals treat rows as independent, and for the main seed the task-level bootstrap for the edit is wider, -0.001 to +0.075, so read them as optimistic [computed]. In the main seed, LoRA's gain is driven by a single task, from 0.32 to 0.64 [measured-by-us]. As a rough, unpaired binomial approximation, a gain under about 0.06 is hard to detect on a pooled 476-row set, and under about 0.18 on a single 60-row task [computed].
How far to trust the read-out: the plain model emits an option letter on only 63% of aimed-at rows (main seed), so part of any gain can be format learning. The read-out agreed with greedy decoding on 0.58, 0.67 and 0.73 of sampled rows (main, seeds 2, 3), against 0.99 on 150 rows in his notebook's own check. I did not verify the sample size of my agreement check and cannot explain the gap to his 0.99. All my accuracies are read-out accuracies, not generation accuracies [measured-by-us]. Which metric you pick can change the verdict: in my retrieval metrics post, recall@100 and nDCG@10 named opposite winners on 56 of 169 NFCorpus queries where both differed.
What does each method do to tasks it was not aimed at?
The edit moved left-alone tasks by -0.022 to +0.011 against plain, but it lowered unseen tasks by 0.02 to 0.09 in every seed.
This is the clearest difference between the edit and the LoRA, on a left-alone suite of 180 rows (3 tasks per seed) and an unseen suite of 240 rows (4 tasks). The table shows the change in accuracy against the plain model [computed from measured accuracies].
Change vs plain | main | seed 2 | seed 3 |
edit, left alone | 0.000 | -0.022 | +0.011 |
LoRA, left alone | -0.056 | -0.156 | -0.294 |
edit, unseen | -0.025 | -0.087 | -0.029 |
LoRA, unseen | +0.038 | -0.008 | -0.071 |
The edit's cost shows up on unseen tasks, not on left-alone ones. That fits the guard being partly in-sample, since it uses kept rows from the left-alone tasks.
Forgetting probes point the same way. The plain model scores WikiText-2 perplexity 28.75, ARC-Easy 0.815 and capitals 0.93 (15 prompts). The Kaggle run's plain model scored ARC-Easy 0.705 and capitals 40 of 40. The splits and read-outs differ between the two runs and I did not reconcile them. After the edit, the three seeds gave:
Edit, forgetting probes | WikiText ppl | ARC-Easy | capitals |
main | 28.80 | 0.790 | 0.87 |
seed 2 | 28.78 | 0.790 | 0.93 |
seed 3 | 28.78 | 0.785 | 0.93 |
Free-text prompts that changed (of 15) were 3, 6 and 1 [measured-by-us]. For the LoRA at the stable setting:
LoRA, forgetting probes | WikiText ppl | ARC-Easy | capitals |
main | 29.95 | 0.745 | 0.93 |
seed 2 | 31.49 | 0.730 | 0.60 |
seed 3 | 29.15 | 0.470 | 0.93 |
All 15, 15 and 14 of 15 prompts changed [measured-by-us]. This LoRA is undertrained (final training loss about 0.71 to 0.88) and not tuned. The stronger settings I tried broke the model, as the next section shows.

When does LoRA break?
Two LoRA settings broke the model, scale 20 and learning rate 3e-4 for 1000 iterations, and in both the training loss looked fine.
The scale 20 run (main seed only, the MLX LoRA library's defaults otherwise) sent WikiText perplexity to about 3.6e9 [measured-by-us].
The second break is the one I can show for all three seeds. Setting: learning rate 3e-4, 1000 iterations, rank 8, scale 2, 8 blocks, 512 training rows. Plain scores are perplexity 28.75, ARC-Easy 0.815 and capitals 0.93 [measured-by-us].
lr 3e-4 LoRA | WikiText ppl | ARC-Easy | capitals |
main | 211,000,000 | 0.290 | 0.00 |
seed 2 | 187,000 | 0.340 | 0.00 |
seed 3 | 485,000 | 0.345 | 0.00 |
Final training loss was 0.87, 0.73 and 0.50, and validation loss was noisy in the main run (0.67 to 1.05 from iteration 550). Nothing in the loss values says the model is gone. ARC-Easy near 0.25 is chance, and capitals at zero means the model no longer completes a plain fact. The aimed-at accuracies of these broken models (0.485, 0.443, 0.563) are not valid comparisons [measured-by-us].
Run a perplexity check and a capitals probe at checkpoints, not only at the end.
Do his solve time and forgetting numbers reproduce?
The Kaggle run reproduced his solve time, his weights-changed figure and his ARC letter-format drop.
I ran his notebook unchanged on Kaggle T4 x2, with his engine's label pass, single run, status COMPLETE [measured-by-us].
Solve time: 45.6 ms for linear solves in total. His 46 ms figure reproduces. The edit including key reading and dose checks took 2,375 s, and the whole run 54.5 min.
Of 6 edit steps tried, 2 were applied with dose 0.25 (layers 19 and 23) and 4 chose dose 0. Weights changed were 1,048,284, or 0.139% of 752.4M [computed]. So "about 1 million" holds and "0.1%" is rounded down. My Mac main seed changed 524,288 weights, 0.070%, because the guard accepted one layer instead of two [computed].
Forgetting: WikiText perplexity 28.75 to 29.17; ARC-Easy 0.705 to 0.640 (13 of 200 rows, -6.5 points), which matches his printed 70.5 to 64.0; capitals 40 of 40 to 40 of 40. The ARC-Easy rows share a test split with the ARC-Easy task, a left-alone task in this run, so the drop is partly a protected-task number. The largest single-task drop was the CRUXEval output task, 0.65 to 0.567 (-0.083), not significant.
Of 15 free-text prompts, 11 produced different text, and his contamination rule flagged 1 [computed from the saved texts]. "1 of 15" counts the rule, not the changes.
Do his per-task gains survive a significance test?
Only 2 of 43 tasks moved significantly, and the largest gain was on a protected task.
Kaggle suite (macro, first-token) | rows | before to after | task-level 95% CI of change |
aimed-at, 11 tasks | 638 | 0.495 to 0.544 | +0.008 to +0.097 |
left alone, 24 tasks | 1,416 | 0.510 to 0.525 | -0.013 to +0.048 |
unseen, 8 tasks | 466 | 0.467 to 0.472 | -0.019 to +0.028 |
I computed the intervals by a cluster bootstrap from the saved rows, and they shift a little with the bootstrap seed [computed]. Only 2 of 43 tasks have a McNemar p below 0.05: the jailbreak-classification task, aimed at (57 rows, 0.561 to 0.772, p 0.004), and the unfair-contract-terms task, left alone (57 rows, 0.246 to 0.509, p 0.002). His biggest printed gain, unfair contract terms, is therefore a task the edit was not aimed at. A plain accuracy of 0.246 on a two-label task suggests a label-prior shift, which I did not test. Without that task, the left-alone mean change is about +0.004 [computed].

Scorecard, with verdicts on what I measured:
His claim | His number | Ours | Verdict |
46 ms solve | 46 ms | 45.6 ms, solves only | supported |
about 0.1% of weights | 0.1% | 0.139% | supported |
no new dataset | none | teacher labels on existing rows | partly |
no catastrophic forgetting | ppl 28.7 to 29.2 | ARC-Easy -6.5 points; no task significant | partly |
better decisions on its own | 8 biggest gains | 2 of 43 significant; one protected | partly |
will replace fine-tuning | opening line | edit +0.03 to +0.09; LoRA +0.03 to +0.06; 64 demos +0.21 to +0.23 | not supported |
What does each lane cost per query and per release?
The edit and the LoRA add 0 prompt tokens per query, while 64 demos add 4,423 tokens per query over a 110-token base prompt [computed].
Mean prompt tokens per query, main seed, 476 rows, Qwen tokenizer: 110 with no demos, 883 with 8, 3,390 with 32 and 4,533 with 64 [measured-by-us]. The extra over zero-shot is therefore 773, 3,280 and 4,423 tokens [computed]. Scoring 476 rows took 18 s with no demos and 606 s with 64 demos on an M4 Pro, MLX, 34 times as long [measured-by-us; ratio computed]. That is wall time on one machine, not a serving benchmark.

The release side, per seed (single timings on a sometimes busy Mac, so read solves as tens to low hundreds of milliseconds):
Edit cost | main | seed 2 | seed 3 |
steps applied (of 6) | 1 | 1 | 2 |
weights changed | 524,288 | 524,288 | about 1.05 million |
linear solves | 142 ms | 102 ms | 65 ms |
whole edit | 2,922 s | 2,980 s | 3,082 s |
The target search took 2,477, 2,588 and 2,696 s [measured-by-us]. The LoRA had 1,803,776 trainable parameters and took 606 s to train in the main seed (equal to the 64-demo scoring time by coincidence; separate measurements). Storage: a one-layer edit matrix is about 2 MB in float32, the LoRA about 7 MB, and a full bf16 copy about 1.5 GB [computed].
Break-even depends on your volume and prices:
extra tokens per day = queries per day x (demo prompt tokens - base prompt tokens)
prompt side bill = extra tokens per day x your price per token
edit or LoRA bill = one-off (labelling + solve or training + regression suite) + 0 extra tokens per query
break-even days = one-off bill / prompt side bill per dayFrom my runs you can fill in 110 base tokens and 4,423 extra tokens for 64 demos.
Which lane should I pick? The four-question checklist
Four yes answers justify a pilot of the edit, and any no points to a prompt or an adapter first. This is my reading of the numbers above, not a measurement.
Is the change narrow and expressible as labelled rows, at least about 60 per behaviour? A gain of a few points is not detectable on much less.
Is query volume high enough that thousands of extra prompt tokens per query cost more than a release? At 4,423 extra tokens for 64 demos, a low-volume use case may be cheaper in the prompt.
Do you have a regression suite for what must not move, including a decoding-based check? My first-token read-out agreed with greedy decoding on only 0.58 to 0.73 of sampled rows.
Can you accept a gain of a few points, verified across seeds, rather than a large jump? The edit's change was +0.03 to +0.09 here [measured-by-us].

Can an edit be rolled back or stacked?
An edit is a stored matrix with known columns and fit rows, so it can be diffed and reversed by subtraction, but stacking many edits has collapsed in published tests on other models.
My edit record holds the update matrix, column indices, row ids, regularisation strength, dose and guard readings, which you can diff and version. Rollback follows from algebra: restored weights equal the edited weights minus dose times the stored matrix. I have not run an apply-then-remove check, so this is algebra, not a result.
I did not test stacking. The published results below come from other models and regimes, and I do not mix batch and sequential numbers [third-party].
MEMIT (Meng et al., ICLR 2023), GPT-J, zsRE, 10,000 batch edits: efficacy 96.7, paraphrase 89.7, specificity 26.6, against 26.4 / 25.8 / 27.0 (efficacy / paraphrase / specificity) unedited (arXiv 2210.07229, Table 1). On CounterFact, neighbourhood success went from 83.5 unedited to 73.7 after 10,000 batch edits (Table 2).
Sequential regime, Gupta et al. (ACL 2024 Findings, arXiv 2401.07453): sequential ROME (Meng et al., NeurIPS 2022) degrades as early as 100 or as late as 1,000 edits, and MEMIT shows a catastrophic phase after about 1,400 edits on GPT-J and about 4,000 on GPT2-XL. The same paper reports about 70% of successful zsRE question-format edits fail in completion format.
AlphaEdit (ICLR 2025, Oral), LLaMA3-8B, 2,000 sequential edits in batches of 100: CounterFact efficacy 98.90 against 65.65 for MEMIT (arXiv 2410.02355, Table 1).
LoRA Learns Less and Forgets Less (TMLR 2024), Llama-2-7B, code continued pretraining on up to 20B tokens: HumanEval 0.263 full, 0.162 rank 16 (arXiv 2405.09673). That is 7B with a large dataset, not 0.8B with about 80 rows.
Yao et al., "Editing Large Language Models: Problems, Methods, and Opportunities" (EMNLP 2023 main track, arXiv 2305.13172): in-context editing baselines can beat ROME and MEMIT on portability.
Agarwal et al. (NeurIPS 2024 Spotlight, arXiv 2404.11018): many-shot in-context learning broadly beats few-shot on Gemini 1.5 Pro, the benefit comes from new information and not length, and it degrades for some tasks.
Papers: MEMIT, Gupta et al., AlphaEdit, LoRA Learns Less and Forgets Less, Yao et al., Agarwal et al..
What these results cannot tell you
This is a spread across three seeds on a 0.8B model with about 60 rows per task, not a confidence interval. A headline gain can shrink under a fairer comparison: in my o-means test, 2.4x at equal epochs was about 1.0x at the best error both methods reached.
One layer in two of three seeds: the guards accepted steps 1, 1 and 2 of 6.
Single-task changes are noise-level: detectable gain is about 0.18 per task and about 0.06 pooled (unpaired approximation).
The guard and the covariance use WikiText paragraphs, and the guard uses kept rows from left-alone tasks, so the guard is partly in-sample. WikiText test perplexity and ARC are out of sample.
The gold teacher is an oracle upper bound.
A tuned or anchored LoRA could change the comparison.
The Kaggle numbers are one run of his code with his engine labels. My Mac numbers use gold labels, so they are not row-for-row comparable.
What I did not measure: decoding-based accuracy for any method; a format-only control; a longer or anchored LoRA; any dollar cost or serving benchmark; stacking many edits; rollback by subtraction in a run; repeats of the Kaggle notebook; other models, full fine-tuning, RAG or fact edits on Qwen.
FAQ
Does weight-space editing beat LoRA or prompting? Not in these runs. On Qwen3.5-0.8B across three seeds, 64 demos in the prompt gained +0.222 on aimed-at tasks over the plain model, the closed-form edit +0.069 and a stable LoRA +0.046. The edit and LoRA ranges overlap, so three seeds cannot separate them. Full fine-tuning was not run [measured-by-us].
Does the closed-form edit cause forgetting? On Qwen3.5-0.8B, left-alone tasks (not aimed at) changed by -0.022 to +0.011 with the edit across three seeds, while a stable LoRA lost 0.06 to 0.29. On 240 unseen rows the edit lost 0.02 to 0.09 in every seed, so its cost shows on unseen tasks [measured-by-us].
Does "no training" mean no data? No. Only the final least-squares solve is closed form. The notebook uses about 80 teacher-labelled rows per task (64 to fit, 16 kept back), searches dose and regularisation over 32 evaluations, and applies guards. In my Kaggle run, 45.6 ms of solves sat inside a 54.5 minute run [measured-by-us].
Did Nandakishor M's 46 ms claim reproduce? Yes for the solve time. Running his notebook unchanged once on Kaggle T4 x2 gave 45.6 ms of linear solves inside a 54.5 minute run. Only 2 of 43 tasks moved significantly, and the largest gain, unfair contract terms, was on a task the edit was not aimed at [measured-by-us].
About the author
Salil Trehan builds AI and ML systems, writes up the measurements, and runs a lot of experiments.
Code for these runs: github.com/trehansalil/weight-space-programming.
Nandakishor M's notebook is his, and I link to it instead of republishing it: engine-transfer on Kaggle.
Related benchmarks I ran the same way: retrieval-metrics-benchmark and kmeans-at-scale-benchmarks (folder o-means-2026-11).
Questions or corrections: LinkedIn or book a call on Topmate.

Comments