Organizations: West Virginia GIS Technical Center, West Virginia University, Morgantown, WV 26505, USA · Department of Environmental Science, Emory University, Atlanta, GA, USA · Department of Geography, University of Central Arkansas, Conway, AR 72035, USA · Systems Engineering Program, Cornell University, Ithaca, NY 14853, USA · Yale Center for Geospatial Solutions, Yale University, New Haven, CT, USA
Weight-space programming lets a language model inspect and edit another model's weights, offering an alternative to gradient-based adaptation. We evaluated both approaches using Qwen3.5-0.8B on a fixed reference-frame task (128 items), StepGame (200 items), and two untrained distance-comparison tasks. With thinking enabled, the public patch (p50c) raised mean accuracy from 0.0% to 22.1% on the reference-frame task and from 19.2% to 33.7% on StepGame across three sampling seeds. Randomly permuting its weight change removed the gain. Further closed-form edits did not improve on p50c, whereas a rank-1 LoRA adapter trained on worked solutions reached 100% and 98.8%, respectively, with 0.09% trainable parameters. Removing the worked solutions from supervision prevented the adapter from passing the learning gate. The trained adapters reached 82% accuracy on unseen StepGame sentence templates, 42% on held-out difficulty levels 6-10 after training on levels 1-5, and 33-50% on unseen heading-answer combinations. Their target gains coincided with a sharp decline on the distance tasks: accuracy fell from 94% and 92% under p50c to 0-2%, and their outputs applied the StepGame solution template to distance questions. With thinking disabled and reasoning requested in the visible answer, the base model also solved the distance tasks while remaining weak on the target tasks. The comparison reveals a trade-off between improving spatial task performance and preserving neighbouring skills: the public edit restored completion while preserving distance performance, whereas supervised adaptation produced much larger target gains together with interference across tasks.
Figures & tables
Family (role, items)
Spatial reasoning measured
Example item
Gold
Reference frame (target, 128)
Directional relation; transformation from an absolute (map) to a relative (observer) frame; one step
On a flat map, x increases east and y increases north. An observer stands at (2, 87) facing west. A landmark is at (1, 62). Relative to the observer, is the landmark ahead, behind, left, or right?
left
StepGame (target, 200; 20 per level 1–10)
Directional relations in one fixed frame; composition along a query path; varied wording; irrelevant statements
X is on the right side to T. T is north east of W. C is over there and A is on the right. I and C are in a horizontal line with I on the left. I is on the left and X is on the right. What is the relation of the agent W to the agent I? (level 5)
lower-left
Map distance (off-target, 128)
Distance relation; comparison of Euclidean distances from coordinates
On a flat map, point A is at (3, 9), point B is at (75, 86), and point C is at (81, 8). Which point is closer to A in straight-line distance, B or C?
C
Product distance (off-target control, 128)
The same computation as map distance with no spatial wording; paired item by item with the map family
Product A has price 28 and weight 98, product B has price 3 and weight 22, and product C has price 23 and weight 6. Using Euclidean distance on (price, weight), which product is more similar to A, B or C?
B
Table 1: The four task families. Examples are quoted verbatim from the frozen task file, with the line breaks of the StepGame story replaced by spaces and the closing answer-format instruction omitted (“Answer with one word.”, “Return only the label.” with the list of nine labels, or “Answer with one letter.”). Target families were used for editing, training and the main evaluation; off-target families were used only to measure side effects (Section 9 ).
Reference frame (/128)
StepGame (/200)
Condition
Changed
Seeds
Mean
Seeds
Mean
Base model
–
0 / 0 / 0
0.0
39 / 38 / 38
38.3
Base + shuffled p50c delta
0.016%
1, 3
2.0
39, 40
39.5
p50c
0.016%
34 / 25 / 26
28.3
69 / 67 / 66
67.3
p50c + further closed-form edit
0.011%
31
31.0
65
65.0
p50c + method instruction
–
24 / 26 / 28
26.0
56 / 61 / 66
61.0
Table 2: Accuracy on the original benchmark items (correct items per seed and mean). Changed or trainable parameters are given as a fraction of the language-model parameters. p50c is the published weight-space-programming patch; “further closed-form edit” is the best submitted candidate of Section 4 (one seed). The shuffled-delta rows are two independent permutations, each evaluated with seed 0. An asterisk marks conditions that meet the improvement criterion of Equation 2 on that task.
original items, three seeds, decoding as in Section 3
Table 3: LoRA training settings shared by all gradient conditions unless a row of Table 2 states otherwise.
Figure 1: Accuracy of the base model, the weight-space-programming patch p50c and its variants, prompting baselines and LoRA adapters on the original reference-frame (128 items) and StepGame (200 items) benchmarks. Bars show the mean over seeds and dots the individual seeds; the dashed line marks the three-seed mean of p50c. Randomly permuting the elements of p50c’s weight change within each tensor returns accuracy to the base level, prompting does not improve on p50c, and LoRA adapters trained on worked solutions approach ceiling on both tasks even at rank 1, provided the supervision includes the intermediate steps.
Figure 2: Accuracy of rank-16 LoRA adapters trained with step-by-step supervision on 448, 1,792 and 7,168 examples (reference-frame scenes plus StepGame problems in a fixed 2:5 ratio), evaluated on the original benchmark items with three seeds (dots) and their mean (line). The dashed line is the three-seed mean of the weight-space-programming patch p50c. Accuracy is already far above p50c with 448 examples and saturates by 1,792.
Held-out subset
Items
p50c
Held out
No hold-out
McNemar b / c , p
StepGame, unseen templates
140
0.31
0.82
0.95
76/5, 2×10−17
StepGame, levels 6–10
100
0.22
0.42
0.93
26/5, 2×10−4
Frame, unseen cells (hop adapter)
32
0.24
0.50
1.00
13/7, 0.26
Frame, unseen cells (template adapter)
32
0.24
0.33
1.00
9/8, 1.0
Table 4: Accuracy on the held-out subsets of the original items (mean of three seeds). “No hold-out” is the mixed adapter of Section 6 , which saw all parts of the input space. The McNemar test compares the held-out adapter with p50c on seed 0 ( b : only the adapter correct; c : only p50c correct).
Figure 3: Generalisation of LoRA adapters to parts of the input space removed from training, measured on the corresponding subsets of the original benchmark items (three-seed means). (a) Accuracy of p50c, the adapter trained without the held-out part, and the adapter trained on everything. (b) StepGame accuracy by dataset difficulty level for p50c, an adapter trained on all levels, and an adapter trained on levels 1–5 only; the shaded region contains levels absent from that adapter’s training data. Accuracy is highest on unseen sentence templates and lower on held-out difficulty levels and heading–answer combinations.
Figure 4: Effect of training on two tasks outside the training data: comparing straight-line distances between points on a map, and the same comparison phrased in terms of product price and weight (128 original items each, three seeds). (a) Accuracy, with seed values as dots and the mean printed above each bar. (b) Percentage of outputs that contain the StepGame worked-solution template. The weight-space-programming patch p50c answers more than 90% correctly and never uses the template; every LoRA adapter applies the StepGame template to almost every item and answers with a direction label, so its accuracy falls to between 0% and 2%.
Weight-Space Programming (WSP) enables reasoning agents to directly inspect and modify neural network parameters, offering an alternative to gradient-based model adaptation. However, its capabilities, cross-task generalization, and practical limitations remain insufficiently understood. We systematically investigate WSP through 16 editing trajectories across seven benchmarks and two model scales (Qwen3.5-0.8B and Qwen3.5-9B). Our findings reveal three key insights. First, WSP can achieve substantial performance gains through highly localized interventions. On full held-out evaluations, accuracy improves by up to 29.45, 4.42, 36.72, and 17.11 percentage points on MATH-500, GPQA Diamond, IFEval, and SciBench, respectively. Notably, modifying only 1,023 parameters yields a 29.45-point improvement. Second, WSP exhibits promising but uneven cross-task generalization. A Math-edited checkpoint improves GPQA Diamond, IFEval, and SciBench by 3.03, 12.18, and 20.10 points, respectively, without further editing, while leaving SciCode performance unchanged. Third, effective editing remains challenging and inconsistent. Outcomes vary substantially across trajectories, and six of the 16 trajectories retain the original weights when candidate improvements cannot be reliably validated. Together, these results highlight WSP's potential for highly localized model adaptation while revealing important challenges in intervention discovery, reliability, and cross-task transfer. Homepage: https://wsp-scope.github.io/ GitHub: https://github.com/WSP-Scope/WSP-Scope-Project
Junru Hu, Cheng Tang, Wei Li +5
Shanghai Artificial Intelligence Laboratory · Tongji University · Fudan University
Weight-space programming is a frontier language model's recently reported ability to read another network's weights and edit them without gradient descent. We investigate how examples can provide a weight update so that a weaker language model performs the task with nothing in the prompt, and study what the updates are. Our experiments cover six tasks, four frontier editors and three families of weaker language models, without the editors being told anything about in-context learning (ICL). In most runs, the editors measure the ICL task vector, the shift the examples cause in the residual stream at the final prompt token, and write it into the weights, at its sparsest into near-silent MLP units keyed to the prompt format. Results reach the accuracy of ICL and fine-tuning on the same examples, LoRA included, usually leaving perplexity untouched, with worse performance under changes of wording. We also qualify the comparison by counting unfinished runs, observing that one editor falls below fine-tuning; held only to the seen examples, without task pairs of their own, only the strongest editor has similar performance. Given a task and unlabelled inputs, that editor writes its own examples and does nearly as well on unseen items as with labels.
Konstantinos Skianis, Aristidis Likas
Department of Computer Science and Engineering, University of Ioannina
Recent work shows that large language models (LLMs) can operate directly on the parameters of other neural networks. They can read what a network was trained to do, fix a network that fails, and write working networks from scratch, all without gradient descent. This capability has been termed Weight-Space Programming (WSP). Exploring this new paradigm systematically requires a robust benchmark. We introduce WEIGHTBENCH, a benchmark that evaluates LLMs of increasing capability on 42 WSP tasks across five tracks: reading, fixing and writing weights, recognizing edits that are impossible, and data-free compression. The networks whose weights the LLMs read and edit range from 2K-parameter control policies to 7B-parameter language models. Experimental benchmark results show that frontier agents can already read small networks and write working control policies without ever running them, but cannot yet patch language models, compress them without data, or tell an impossible edit from a hard one. On all 42 tasks, Claude Opus 5.5 reaches a macro score of 0.535 (Sonnet 5.5 0.466, Haiku 5.5 0.402, DeepSeek v4-flash 0.215); on the 38 tasks it was run on, GPT-6.1-sol reaches 0.568 against Opus's 0.546. Code, the task registry, our OS-level sandbox harness, and the live leaderboard are publicly available at https://github.com/Aayush-Marasini/WeightBench.
Aayush Marasini, Barsat Khadka, Nick Rahimi
The University of Southern Mississippi, Hattiesburg, MS 39401, USA