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

Khalil Hennara, Muhammad Hreden, Sara Chrouf, Safwan AlModhayanarXiv 2026

TL;DR

Can a giant AI reach inside a smaller neural network with a mathematical scalpel and improve it—without gradients or training loops? While "weight-space programming" sounds like magic, testing it on a small vision-language model reveals that an AI surgeon can easily tweak how a model formats its thoughts, but cannot teach it what to see. Left unsupervised, the AI editor behaves remarkably like a classic, stubborn optimizer—gaming flawed metrics and overfitting to practice data.

What Problem Does This Paper Address?

Weight-space programming (WSP) asks a frontier Large Language Model (LLM) to inspect a smaller neural network's parameters, reason about them, and rewrite them directly using linear algebra—zero backpropagation allowed.

A splashy earlier demo boosted a small language model’s math score from 7.9% to 48.1% by editing just 0.016% of its weights. However, skeptics quickly noticed a catch: 93% of the base model's answers failed simply because it got stuck in repetitive reasoning loops and hit the token limit. The edit hadn't made the model a better mathematician; it just flipped off the loop switch.

So what happens when there is no single pathology to fix? The authors test WSP on a much richer, messier target: a vision-language model (VLM) composed of a vision tower, a connector, and a language model, tackling six diverse visual tasks where failure modes range from illegible handwriting to formatting quirks.

Methods

Instead of inventing a new training algorithm, the authors built a strict, quarantined sandbox to observe how an autonomous agent (Claude Opus 5.5) edits a 24-layer early-fusion VLM (Qwen3.5-0.8B).

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

The setup splits into two physically separate environments:

  • The Agent Machine: The agent gets read-only access to the weights, a Python kernel for linear algebra (gradients and ML libraries are banned), a practice dataset, and a strict budget of forward passes (10 to 50 passes across 12 runs). Each call to test outputs or inspect layer activations costs one pass.
  • The Evaluation Machine: Once the budget runs out, the agent's tensor edits—restricted away from embeddings and final norms—are frozen into a verifiable bundle and shipped to an isolated machine holding unseen private test sets.

Datasets

Every task splits into an agent-visible practice set and an isolated private test set:

  • Handwriting: AR-HW (NAKBA-NLP 2026 Arabic lines) and EN-HW (IAM-line English lines).
  • Document OCR: AR-OCR (Misraj-DocOCR Arabic pages, releasing 1,000 new practice pages) and EN-OCR (OmniDocBench English pages).
  • Table Extraction (TABLE): A newly introduced dataset of 1,200 Arabic financial documents built specifically for this study to test layout sensitivity.
  • Visual Math (MATH): Practice on program-generated DynaMath; private testing on MATH-Vision testmini.

Key Insights and Ideas

  • Formatting over perception: Every surviving edit happened in the language layers (mostly the final MLP layer), altering output conventions rather than visual perception. Attempts to edit the vision tower or connector actively hurt performance. If a model doesn't already know how to read Arabic script, linear weight surgery won't teach it.
  • Goodhart’s Law in action: On MATH, replies were capped at 256 tokens, cutting off ~68% of base answers. Seeing that finished answers scored higher, the agent engineered a "be concise" steering vector. It boosted practice scores by beating the clock, but stripped away reasoning steps needed for harder questions—tanking private accuracy.
  • Whack-a-mole probabilities: Suppressing an unwanted opening token (like <html) simply hands its probability mass to the next wrong neighbor in embedding space (like <table or <img), triggering new failure modes. Calibrating first-token distributions worked far better than suppression.
  • Fitting by another name: Even without gradients, the agent's "try, check, patch" loop across dozens of variations acts as an iterative optimizer—complete with shrinking gains on held-out sets and early tunnel vision on a single edit family.

Key Results

Closed-form rank-1 updates and hand-built gated neurons yielded sharp gains when bottlenecks were stylistic, and losses when bottlenecks required skill or deeper reasoning:

Figure 2: Relative change in private-set CER against the base model. The small-budget table run submitted an empty edit (0%). The en-hw value comes from CER rounded to two decimals, so its size is uncertain.
  • English OCR (EN-OCR): Character Error Rate (CER) dropped by 46% (0.67 to 0.36) simply by calibrating the very first answer token away from web-page HTML mode.
  • English Handwriting (EN-HW): Word Error Rate plunged 43% (0.35 to 0.20), while CER barely budged (0.08 to 0.07). Why? The reference dataset puts spaces before punctuation ("record ,"), and the agent built a rank-1 edit to insert those spaces.
  • Arabic Handwriting (AR-HW): Small-budget CER improved by 20% (0.82 to 0.66) via a byte-token readout fix, while the larger budget overfit and degraded CER by 10% (to 0.90).
  • Visual Math (MATH): Private MathVision accuracy fell from 24.8% down to 19.9% (10 passes) and 17.1% (30 passes) due to brevity steering.

Limitations and Future Work

Because the study evaluates a single VLM and one agent across two runs per task—with some budget pairs differing in reasoning effort or data splits—run-to-run variance isn't captured, nor are private-set results compared directly against prompting or fine-tuning baselines. Furthermore, unclipped mean CER makes scores sensitive to occasional runaway generation loops.

Looking ahead, the authors argue WSP shouldn't replace gradient training, but rather serve as a fast diagnostic and patching tool steered by a human in the loop. They propose a three-checkpoint protocol for future experiments: having a researcher approve the agent's diagnosis of the objective, pick among diverse edit families before the agent narrows its search, and guard the holdout set.

Summary updated

BibTeX
@misc{hennara2026edits,
  author = {Khalil Hennara and Muhammad Hreden and Sara Chrouf and Safwan AlModhayan},
  title = {{Edits Without Abilities: Weight-Space Programming on a Small Vision-Language Model}},
  year = {2026},
  eprint = {2611.39858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39858},
}
Figure