Edits Without Abilities: Weight-Space Programming on a Small Vision-Language Model

Community Article
Published December 2, 2026

📄 Paper · arXiv · 💻 Harness (GitHub) · 🗂️ Data & logs collection · 📜 Full agent logs

TL;DR

We gave a frontier agent (Claude Opus 5.5) the weights of a small vision-language model, Qwen3.5-0.8B, and asked it to improve the model on six document and reasoning tasks by editing the weights directly — no gradients, no optimiser, no training loop. Across twelve runs it found real, compact, closed-form edits that cut private-set character error rate by up to 46% on English OCR and 20% on Arabic handwriting.

But the edits changed how the model writes, not what it reads. Where the model lacked the skill (reading Arabic handwriting), no edit supplied it. Where the score rewarded a proxy (finishing math answers inside 256 tokens), the agent optimised the proxy and real accuracy fell. We release the harness, data splits and every agent log, and argue that weight-space programming works best with a human in the loop.

Table of contents

Overview

Can a language model improve another neural network by reasoning about its weights? Takehi et al. (2026) call this weight-space programming (WSP): a general-purpose model reads a network's weights and writes changes into them directly. Their best-known result edited about 0.016% of Qwen3.5-0.8B's weights and lifted MATH-500 from 7.9% to 48.1%. Follow-up analyses showed that most of the gain came from removing a pathology: 93% of the base model's answers ran into the token limit because of reasoning loops, and the edit let them finish. The original authors reached the same conclusion — editing can remove an obstacle that hides an ability, but it cannot add an ability the model lacks.

That leaves the interesting question open: when there is no single switch to flip, what does weight-space programming actually change?

We studied this on a harder target — a small vision-language model with a vision tower, a connector and a language model — on six tasks that fail in different ways: reading Arabic (which the model barely knows), long-form document OCR (where it loops or picks the wrong output format), table extraction (where a wrong header ruins the rest) and visual math. Every task has a private test set on a separate machine, so the agent never sees what it is graded on. Our goal was not to chase a headline number but to find where the method stops working, and why. So we read all twelve agent logs, turn by turn.

1. The setup

The agent receives a target model, a task description, a practice set split into development and holdout halves, and a budget of B forward passes. It can read the weights and run arbitrary Python, but it cannot compute gradients, use optimisers, import model-running libraries or run the model itself. The only way to run the model is the harness's forward-pass tool, and each call costs one pass. Edits go through a validated store that refuses changes to the token embeddings, the output head and the final norm, as well as non-finite values, shape changes and whole-tensor rescaling. The agent must spend its whole budget, and the run ends with a submission: a set of changed tensors plus a short explanation.

1.1 A two-machine harness

harness

Figure 1. The agent edits weights on one machine with practice data only. Each submission is frozen into a bundle and graded on a different machine that holds the private test sets.

The agent machine holds the base weights, the practice data and the agent loop; the private test sets never touch it. Each submission is frozen into a bundle — the edited tensors, a hash of the base weights, and the full spec of the model, decoding protocol, prompts and grading. The evaluation machine refuses any folder without a PRIVATE marker, evaluates the base and every edited bundle under the same frozen spec, and pairs results item by item.

The forward-pass tool either generates outputs for up to N practice items (original model, edited model, or both on the same items), or reads target texts with teacher forcing and returns log-probabilities and activations from chosen layers. Generations are graded with the task metric and summarised with paired statistics and loop / cut-off rates. Closed-form linear solves are allowed in the kernel — and they turned out to be the agent's main tool.

1.2 Tasks, data and model

All experiments use Qwen3.5-0.8B, a 24-layer early-fusion VLM with a 1024-wide language model and a tied output head.

Task Content Source Practice Test Practice score
ar-hw Arabic handwritten lines NAKBA-NLP 2026 1,000 2,095 1 − CER
en-hw English handwritten lines IAM-line (Teklia) 1,000 2,915 1 − CER
ar-ocr Arabic document pages Misraj-DocOCR 1,000 400 1 − CER
en-ocr English document pages OmniDocBench 500 250 1 − CER
table Arabic financial documents New — this work 1,000 200 header/body cell F1
math Visual math questions DynaMath → MATH-Vision 5,010 246 answer accuracy

Arabic tasks use normalisation for diacritics, tatweel and letter variants. On the private sets, all non-math tasks are reported as WER and CER; math uses accuracy on the last \boxed{}. We ran two budgets per task — twelve runs in total, each lasting 43–345 agent turns and 31–226 Python executions.

1.3 Why Claude Opus 5.5

We re-ran the original authors' policy-repair experiment (fix a broken car-control policy network by editing its weights) under the same conditions. Opus 5.5 repaired the policy by changing 387 parameters; the reported GPT-6 Astra fix changed about 6,000. Both solve the task, but a fix more than ten times smaller is more targeted and easier to inspect. Together with an independent replication of the original Qwen3.5-0.8B result with Opus 5.5, we took this as evidence that it is a suitable agent for WSP.

2. Results

2.1 Private test sets

Task WER base WER small WER large CER base CER small CER large
ar-hw (b10 / b25) 1.12 0.99 (−12%) 1.04 (−7%) 0.82 0.66 (−20%) 0.90 (+10%)
en-hw (b10 / b25) 0.35 0.21 (−40%) 0.20 (−43%) 0.08 0.07 0.07
en-ocr (b25 / b50) 0.77 0.61 (−21%) 0.50 (−35%) 0.67 0.42 (−37%) 0.36 (−46%)
ar-ocr set A (b25 / b50) 1.45 1.38 (−5%) 1.37 (−6%) 1.58 1.23 (−22%) 1.48 (−6%)
ar-ocr set B (b25 / b50) 1.20 1.52 (+27%) 1.13 (−6%) 1.30 1.37 (+5%) 1.18 (−9%)
table (b10 / b30) 1.65 = base 1.66 (+1%) 1.39 = base 1.46 (+5%)

Lower is better. Mean CER is not clipped, so values above 1 come from runaway outputs. The small-budget table run submitted an empty edit. Single evaluations: differences of a few percent are within noise.

private CER change

Figure 2. Relative change in private-set CER against the base model.

The biggest win is English OCR, where CER fell from 0.67 to 0.36. Arabic handwriting improved at the small budget (0.82 → 0.66). On English handwriting, WER fell by 40% while CER barely moved — we explain why below. Tables got slightly worse, and math got clearly worse (24.8% → 19.9% / 17.1% on MathVision). A larger budget did not reliably help.

2.2 What the agent built

On five of six tasks, the score was limited by how the model writes (format or convention), not by what it reads. The final edits are tiny: one or two rank-1 terms or neurons, mostly in the last MLP layer, where the effect of an edit on the next token can be computed exactly.

Task What limited the score Final edit (larger budget) Held-out gain
en-ocr First token chooses HTML mode Rank-1 terms, layer 23 +0.16 (0.03)
ar-ocr Writes web-page HTML instead of markdown Gated neurons, layer 23 +0.049 (0.020)
math 68% of replies cut at 256 tokens Gated "concise" steering, layer 14 +0.043 (0.025)
en-hw IAM puts a space before punctuation Rank-1 term, layer 23 +0.013 (0.002)
ar-hw Reading the script Last-layer readout correction ≈ +0.012
table Wrong layout mode; reversed Arabic Rank-1 term, layer 23 −0.039
  • English handwriting. After a single pass the agent noticed that IAM references put a space before punctuation (record , anyway .), while the model writes normal prose. Both budgets found the same rank-1 edit that adds those spaces — which is exactly why WER drops 40% (each spaced mark counts as a word) while CER barely moves.
  • OCR. In both OCR tasks, the first answer token decides the format: 75–90% of its probability goes to <html or a code fence. Once in the right mode the model reads well. The English OCR edit calibrated that first token; the Arabic OCR edit used a gated neuron that switches prose pages to markdown and leaves table pages alone.
  • Arabic handwriting. Wrong outputs start with one unlikely token and then lock in. The edit that worked was a last-layer readout correction, and its key fix came from a tokenizer detail the agent reconstructed: Arabic-Indic digits are two byte tokens.
  • Tables. The base model writes a web-page layout no reference uses. Both budgets tried the same format-forcing edits in the same order, and all failed.

3. What we learned

3.1 The levers are formatting, not perception

Most of the gap between the model and the references was about how to write. The agents checked this cheaply before editing: on English handwriting a regex fix of the spacing raised the score by 0.021, and the edit reached about 60% of that; on Arabic OCR a rule-based markdown conversion gave +0.085, and the edits reached +0.03 to +0.05.

The format choice also barely depends on the image. On table, hidden states at the first answer token are almost identical across pages (mean cosine 0.93). Yet the information is there: on Arabic OCR, a linear readout separates table pages from prose pages with AUC 0.985 — the default decision just ignores it. Format even affects reading direction: in HTML mode the model often writes Arabic reversed, and those outputs score 0.028 against 0.130 for the rest.

💡 Takeaway 1. Closed-form edits easily change how a small VLM writes, and hardly change what it reads. Gains often measure agreement with the scorer's conventions and should be reported that way. Where a rule-based fix existed, it matched or beat the edit — so WSP is most useful as a diagnostic that surfaces such conventions.

3.2 Edits do not add knowledge the model lacks

Arabic handwriting is the test case: the model reads this script poorly (practice baseline 0.40). The agent calculated that even a perfect boost of the model's top choice would only raise the chance of the right token from 0.269 to 0.30. The one vision-side edit (to the connector) hurt on every difficulty level, and no edit to the vision tower or connector survived in any run. The edit that worked makes the model write what it already half-reads more consistently; it does not fix the misreading. Gradient training on the same kind of data, by contrast, does teach small VLMs to read Arabic — as we showed with Baseer.

3.3 The agent optimises the proxy it is given

On math, 67–69% of the base model's replies hit the 256-token limit. Finished replies were right 67–75% of the time; cut ones, 4–7%. Both runs saw this on their first pass, so the practice score became mostly a score for finishing on time — and the agents worked on that. They built a "be concise" steering edit from verbose replies and short rewrites. The first version also learned to skip the reasoning (0.266 → 0.141); the agent fixed the contrast data, gated the edit, and the final version gained +0.043 on the practice holdout.

math accuracy

Figure 3. MathVision accuracy on the 246-question private set. The Arabic-handwriting edit, never shown a math question, faced the same benchmark shift and did not drop — so the losses come from what the math edits targeted.

On MathVision both math edits made the model worse. Shorter replies cost the reasoning that harder questions need.

💡 Takeaway 2. The agent optimises what the protocol measures. Here that was reply length, not math. Before trusting a gain, check what the score actually rewards.

3.4 Recurring mechanisms

Suppressing a token moves its probability to a neighbour. In five of six tasks, removing a bad token promoted the next wrong one. Softmax hands the freed probability to the runner-up, and tokens that share embedding directions move together. On table, demoting about 70 markup tokens raised the space token by 17 logits. What worked instead was calibration: matching the first-token distribution to how references begin.

substitution chain

Figure 4. Substitution chain on English OCR. Each box is the most likely opening after the previous one was suppressed; red text is the resulting failure.

Teacher-forced checks overstate edit quality. Most runs built an exact one-step simulator of last-layer edits, which can't see what happens after the first changed token. On Arabic handwriting, an edit that helped under teacher forcing lost 0.012 in generation — classic exposure bias. The partial fix was to check edits on the edited model's own outputs.

Where an edit fires matters more than what it pushes. On English OCR, a global bias changed the top token at ~1% of positions and lost; the same push applied only at the first answer token changed 0.05% and won. On Arabic OCR, a gated neuron could express "first token and prose page" — something a linear edit cannot.

3.5 The agent is the optimiser

Each edit was closed-form, but the loop of trying, checking and patching is fitting by another name. English OCR went through 12 versions; Arabic handwriting tried about 50 settings. As a result, gains measured on development items shrank on held-out practice items.

dev vs holdout

Figure 5. Practice gain (edited minus original) on development vs. held-out items. Only English handwriting kept its gain.

  • Holdout discipline broke where evidence was thin. With greedy decoding and 64 pairs per pass the standard error was 0.002; with sampling and 8 pairs it was 0.03–0.13. All holdout misuse we found was in the 8-pair tasks.
  • More budget mostly bought confirmation. Larger runs spent 27–68% of their passes on holdout checks and tried few new ideas. On English handwriting the edit was fixed by pass 6.
  • The search narrows early. Both math runs independently chose the same steering method; both table runs tried the same three format-forcing edits in the same order.

4. The case for a human in the loop

The agent optimises whatever the protocol measures, and nothing inside the loop asks whether that is the intended target. And once it has a plausible family of edits, it spends the rest of its budget refining and confirming it. These are exactly the points where a researcher adds the most value at the least cost. We propose three checkpoints:

  1. Approve the diagnosis and the objective. After the first passes, the agent states what limits the score and what it intends to change; a human checks it is the intended target ("finish within the limit" vs. "reason better").
  2. Choose among families. Before committing, the agent proposes two or three qualitatively different edit families with cheap upper bounds, and a human picks or redirects.
  3. Guard the holdout. A human freezes the edit and runs the confirmation, so the agent cannot develop on holdout items.

We did not run this protocol — testing it is the natural next experiment.

5. Recommendations for WSP harnesses

  • Report power, not only pass counts. Size each task's pass to yield a useful standard error, and consider a separate holdout budget.
  • Hold other variables fixed across budget pairs — reasoning effort, split seed, practice-data version.
  • Let forward requests reference saved files. Pasting requests inline limited every math contrast set to 15–48 pairs and caused most request errors.
  • Provide decode-only tokenizer access. The single most important Arabic-handwriting fix came from a tokenizer detail the agent had to reconstruct.
  • Keep experiment parameters in handoff notes, not only conclusions.
  • Give practice data for at least one other task. Every "other tasks shouldn't get worse" check was a proxy, and one such proxy removed the useful part of an edit.
  • Clean the practice data and check the graders. 110 table references were leaked model reasoning text, and the math grader mis-parsed multi-value and date answers.

6. Limitations

We study one model and one agent with two runs per task, so we cannot measure run-to-run variance. Only the English-handwriting pair differs in budget alone; the other pairs also differ in reasoning effort, data split or practice data. Most private sets were evaluated once under sampling, and mean CER is not clipped. We compare against no prompting or fine-tuning baseline on the private sets; rule-based fixes were measured on practice data only. Finally, the agent's kernel ran without a sandbox on Colab — the private data was safe on a separate machine, but one agent did read the tokenizer from the local Hugging Face cache.

Resources

Data: practice and test splits per task

All five non-math private test sets are also bundled together in Misraj/wsp_vl_test.

Code, edits and logs

Resource Link
📄 Paper https://huggingface.co/papers/2611.39858
💻 Harness misraj-ai/wsp-vlm
📦 Frozen edit bundles Misraj/wsp_bundle
📜 Full agent logs (12 runs) Misraj/wsp_runs
🤖 Base model Qwen/Qwen3.5-0.8B
🗂️ Everything in one place Misraj/wsp collection

Our analysis covers the main patterns but not every turn of the twelve runs. The logs likely hold findings we missed — we'd love for you to dig in.

Citation

@article{hennara2026edits,
  title   = {Edits Without Abilities: Weight-Space Programming on a Small Vision-Language Model},
  author  = {Hennara, Khalil and Hreden, Muhammad and Chrouf, Sara and AlModhayan, Safwan},
  journal = {arXiv preprint arXiv:2611.39858},
  year    = {2026}
}

Community

The English handwriting example made the WER result click for me. A space before punctuation can turn the mark into a whole word as far as the metric is concerned. The document OCR result reads differently: the opening token can put the answer in the wrong format before it even gets to the text.

Sign up or log in to comment