Accepting Weight-Space Repairs: Off-Target Regressions in Weight-Space Programming
Weight-space programming (WSP) lets an agent change a language model's behaviour by editing its weights or activations directly. Prior WSP work measures whether the target behaviour changed, but none makes safety a condition for shipping an edit, and a real failure has no clean reference to audit against. We study this acceptance problem with Weight-Space Repair (wsr), an open-source tool whose judge ships a repair only if a Bonferroni-corrected exact sign test on held-out items shows a gain of at least 5 points and every off-target guardrail holds, from a regression suite to held-back harmful requests. Running wsr and standard baselines through this judge on nine goals over three small open models, we find three things. First, task metrics accept damaging edits. Of 75 candidates that improved their target, 45 broke a guardrail, including 10 of 11 from standard baselines. Second, a judge that rejected all 210 random candidates still accepts some tuned ones that later fail. Of the 15 contrastive refusal repairs that held on test, 3 fail a later check on fresh requests, longer replies or fluency (8 of 21 counting the earlier single-sided session). Third, the form of a passing repair follows the failure. All 22 refusal repairs wsr shipped are conditional activation gates, while all 7 non-refusal repairs contain a weight patch, such as zeroing the neuron behind a planted blank-reply fault. The agent that writes refusal gates needs examples of the behaviour to protect. With such a contrast file, it shipped 14 of 15 refusal runs, and without one, 5 of 15, three of which leave visibly broken refusals. The pattern repeats on two 3B models.
Authors
- Ayush Shekhar
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24763213
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- preprint