Rust in Everything
← Papers

Exploring Weight-Space Programming: Capabilities, Generalization, and Limitations

Junru Hu, Cheng Tang, Wei Li, Hongze Zhu, Chun-Mei Feng, Qi Zhang et al.

2026-11-09▲ 10arXiv 2611.09382v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

A systematic 16-trajectory study of Weight-Space Programming on Qwen3.5 models finds substantial but uneven held-out gains from localized weight edits, with cross-task transfer that can be positive or neutral and with many trajectories retaining the original weights.

Problem

Adapting pretrained models typically relies on optimizing parameters with task data, such as LoRA, though direct weight interventions and knowledge editing also alter behavior. WSP instead lets reasoning agents inspect and directly modify neural network parameters, potentially reducing dependence on large task-specific training datasets. The paper asks to what extent reasoning-driven weight interventions can serve as a general adaptation approach rather than repair of specific behavioral failures. It notes WSP's capabilities, cross-task generalization, and practical limitations remain insufficiently characterized.

Method

The authors run 16 editing trajectories on Qwen3.5-0.8B and Qwen3.5-9B across seven benchmarks, with one trajectory per model–benchmark pair. Each search pairs GPT-6 Astra as editor with the target model, permits up to 50 successful forward requests and up to 300 Python analyses, and lets the editor choose the final checkpoint using development feedback alone or retain original weights. Editing is gradient-free: the editor uses no backward passes, optimizers, or iterative loss fitting, computes edits in float32, and writes them to the BF16 checkpoint. Requests are either generation requests, which return sampled answers and task scores, or teacher-forced requests, which return conditional log-probabilities and requested activations without task accuracy. The paper reports held-out evaluations on MATH-500, MMLU-Pro, IFEval, GPQA Diamond, MedXpertQA, SciBench, and SciCode.

Results

  • Full held-out accuracy improved by up to 29.45, 4.42, 36.72, and 17.11 points on MATH-500, GPQA Diamond, IFEval, and SciBench respectively; a 29.45-point MATH-500 gain came from modifying only 1,023 parameters. §Abstract
  • A Math-edited checkpoint improved GPQA Diamond, IFEval, and SciBench by 3.03, 12.18, and 20.10 points without further editing, while SciCode performance was unchanged. §Abstract
  • Six of the 16 trajectories retained the original weights when candidate improvements could not be reliably validated. §Abstract
  • At an 8,192-token cap, the base model scored 6/48; the targeted edit with alpha=1 reached 20/48, ablation gave 4/48, the reversed direction with alpha=-0.5 gave 0/48, and a single equal-norm orthogonal random direction gave 10/48. §9
  • On six disjoint development sets totaling 1,152 questions, correct answers rose from 126 to 484 (10.94% to 42.01%), with 377 rescues and 19 regressions; on an AIME subset both arms scored 0 of 64. §9

Limitations

  • The mechanisms governing successful editing and generalization remain unclear, including effects of jointly modifying multiple parameter locations and the influence of development data size and diversity.
  • WSP has not yet been systematically evaluated on longer-horizon reasoning and complex agentic tasks.
  • Development gains do not always translate into reliable held-out improvements, and repeated evaluations incur substantial computational costs.
  • Cross-task transfer is asymmetric and includes adverse effects.

Key points

  • WSP lets a reasoning agent inspect, interpret, and directly modify neural network parameters rather than relying on gradient-based optimization or predefined editing procedures. §1
  • Each search uses GPT-6 Astra as editor at maximum reasoning effort and Qwen3.5-0.8B or Qwen3.5-9B as target, with 50 successful forward requests and at most 300 Python analyses per search. §5
  • The editor sees only development data; held-out test questions are never shown and are used only to evaluate the retained checkpoint. §6
  • For 0.8B MATH, the main tables report the column-507 editing trajectory; two further trajectories are analyzed separately. §3.1
  • The 0.8B MATH search used 32 generation requests and 18 teacher-forced analyses over its 50 requests. §3.3
  • In the Math Primary trajectory, a first column edit at column 40 was harmful, while applying the doubt-versus-progress direction to column 507 produced a large improvement. §9
  • Across tasks and model scales, WSP shows asymmetric cross-task transfer with both beneficial and adverse effects. §4
  • Gains at the 9B scale are generally more modest than the substantial held-out improvements particularly for the 0.8B model. §1

Mind map

Weight-Space Programming study
Setup
Qwen3.5-0.8B and 9B
16 editing trajectories
Seven benchmarks
50 forward requests per search
GPT-6 Astra editor
Capabilities
Held-out accuracy gains
Highly localized edits
1,023 parameters gives 29.45 points
0.8B gains larger than 9B
Generalization
Math-edited checkpoint
GPQA Diamond +3.03
IFEval +12.18
SciBench +20.10
SciCode unchanged
Limitations
Outcomes vary across trajectories
Six of 16 retain original weights
Development gains unreliable
Mechanisms unclear
Long-horizon tasks unevaluated
Editing targets
MLP down_proj
Attention o_proj
Sparse and dense interventions
Method
Gradient-free
Float32 compute BF16 storage
Development feedback selection