A useful weight fix can carry a second behavior within the same set of coordinatesA Useful Weight Repair Can Carry a Second Behaviour in the Same Coordinates
The authors implant conditional markers within the same set of coordinates as the Qwen3.5-0.8B math fix; the IFEval trigger rate is 94.7%, and the GSM8K correct count is 905/1319.
The authors study a misaligned or compromised editor: when delivering a commissioned weight repair, it adds unrequested conditional behavior within the repair's original support. The patch values are computed by gradient optimization; this is not a test of whether a language-model editor can implant them on its own. The victim system is the model that receives and deploys the weight patch.
- Can a sparse weight repair that improves the specified metric still carry unrequested conditional behavior in the same set of coordinates? This bears on the security audit of a receiving model when it is delivered a patch by a model editor.
- Using the published math repair of Qwen3.5-0.8B as a reference, the authors optimize a patch within its 130,188 coordinates with seven-stage projected Adam, sequentially installing the marker, constraining control prompts, and distilling the repair trajectory.
- Repair+M had a marker rate of 94.7% on IFEval trigger prompts and 0/283 on unlabeled prompts; GSM8K correct was 905/1319, versus 892/1319 for the honest repair. The three rebuilds also recovered similar behavior.
- The authors limit the result to an existence result for one model, one repair, and one benign marker; they did not test whether an editor can find the patch on its own, nor did they address weight or activation auditing.
The authors demonstrate on a published weight fix for Qwen3.5-0.8B that, within only the 130,188 coordinates changed by that fix, a patch can be constructed that both retains the math fix's gains and carries hidden trigger behavior. The fix changed only 0.016% of parameters and had raised MATH-500 accuracy from 7.9% to 48.1%; its sparsity and measurable gains had been treated as grounds for trust. The constructed patch outputs a marker phrase when the prompt carries a specific metadata tag; on independent IFEval prompts, the marker appeared in 94.7% (268/283) of triggered inputs and 0 times in 283 untagged inputs; on the GSM8K test set it answered 905/1319 correctly, versus 892/1319 for the honest fix, and on MATH-500 it scored 50.5% versus 51.5% for the honest fix (base 7.7%). The patch was computed with a staged projected first-order method, successively installing the trigger marker, maintaining selectivity on control prompts, then distilling the fix's own trajectories, with separate norm budgets for newly added and total edits, and three reruns with a fixed recipe gave similar results.
Why it was selectedThe paper shows that the sparsity of weight patches and benchmark gains are insufficient to rule out hidden behavior, and that teams having models edit other models' weights need to audit behaviors that were not commissioned.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:权重修复补丁可藏触发后门
Paper analysis
What problem does this paper attempt to solve?
The authors test whether a sparse, effective weight repair can simultaneously carry unrequested conditional behavior within the original coordinates.
Core question: is checking only the sparsity of a weight patch and its improvement on the commissioned metric sufficient to rule out that it adds another behavior in the same set of coordinates?
- Research setting: in a previous weight-space programming example, a language model directly rewrote another model's weights; the patch changed only 0.016% of Qwen3.5-0.8B's parameters and raised MATH-500 accuracy from 7.9% to 48.1% (Introduction). The authors argue that such quantifiable gains readily become a basis for trust.
- Gap in existing checks: a recipient can confirm that the edit touches few coordinates and that the requested metric improved, but the authors argue that these checks do not constrain what else the edit implements.
- Core hypothesis: the coordinates selected by a useful repair may themselves simultaneously accommodate an additional conditional behavior, without expanding the edit's scope and without sacrificing the original math gains.
- Proposed construction: the authors build Repair+M, adding a benign output marker triggered by an exact metadata label within the 130,188 coordinates of the released repair, and use independent prompts to check selectivity, math ability, and instruction following.
- Threat model:
- Goal: a misaligned or compromised editor adds unrequested, potentially malicious behavior when delivering a commissioned improvement.
- Knowledge and capability: the constructor obtains the repair and its support and can perform gradient optimization within these coordinates; the paper does not restrict this capability to white-box, black-box, or no-box.
- Victim system: the model that receives and applies the weight patch; if only sparsity and the commissioned benchmark are accepted, the added marker may go unseen.
- Evidence boundary: the patch is computed by the authors with gradient methods, not written autonomously by a language-model editor; the paper calls it an existence proof on inherited support.
What related research exists?
Related work covers training-time backdoors, weight perturbation and model editing, and constrained editing that preserves clean behavior.
Backdoors and weight perturbation
- BadNets (Gu et al., 2017): studies backdoors implanted during outsourced training; it is the training-time supply chain backdoor work that the paper traces.
- Garg et al. (2020): uses bounded weight perturbation and projected gradient descent to simultaneously achieve triggered outputs and preservation of clean predictions; the authors list it as the work closest to this paper's construction.
- Goldwasser et al. (2022): the authors cite its conclusion that backdoors can in principle be implanted so as to be computationally hard to detect, to illustrate the auditing gap when only functional metrics are accepted.
Language model backdoors and weight editing
- BadEdit (Li et al., 2024): adapts lightweight model editing to language model backdoors; this paper adopts its conditional-output objective, but the edited coordinates come from an existing repair.
- Wang et al. (2026) and Liu et al. (2026): concurrent preprints study backdoors written into weights by language models; the authors take this to mean that editors implanting additional behavior is not far-fetched.
- Zeng et al. (2026) and Tanveer (2026): concurrent work writes weight backdoors via sparse or closed-form edits; the paper discusses them alongside the language model editor line.
Constrained editing that preserves original behavior
- AlphaEdit (Fang et al., 2025), CrispEdit (Ikram et al., 2026), Yin et al. (2026): constrain edits via selected nullspace or low-curvature directions to preserve clean behavior.
- Route difference noted by the authors: these works all select the parameters to modify; this paper does not select the support but instead inherits the coordinates of an existing useful repair and searches within them for a perturbation that adds behavior.
Upstream repair and experimental comparisons
- Takehi et al. (2026): releases weight-space programming repairs and their experimental materials; this paper's Base, Repair, and Repair+M are all constructed on or compared against this basis; no separate attack algorithm baseline is set.
- Evaluation benchmarks: math ability uses GSM8K and MATH-500, and instruction following and marker probes use IFEval and IFBench; MATH-500 follows the upstream instruction suffix, sampling, and grader.
The authors position this paper as an existence construction on the same support, not as proof that current or future editors will autonomously implant behavior, nor as an estimate of the frequency or detection difficulty of such patches.
How does the paper address this problem?
Repair+M uses seven-stage projected optimization to balance the trigger marker, control selectivity, and trajectory preservation within the repair support.
The overall approach fixes the support of the released repair, uses Repair as the reference model, and searches for an additional patch with the staged constrained optimization of Repair+M; the optimization computes weights directly and does not generate values through a prompted language model.
Problem Setup and Feasible Region
- Model and support: Base is Qwen3.5-0.8B, and Repair is Base plus the upstream repair δH. The repair lies in the down-projection matrices of layers 15 and 19, each touching 64 columns, for 131,072 entries in total, of which 130,188 stored values actually change and make up S0.
- Added behavior: when the exact trigger label is appended to the end of a prompt, the model should produce a specified benign marker at the start of its output (including the thinking segment); the control conditions are no label and three near-labels. The appendix and Figure 1 give complete trigger and output examples.
- Dual budget: the feasible region is written as Cr,R={h:supp(h)⊆ S0, ‖ h‖2≤ rρ, ‖δH+h‖2≤ Rρ}. Here ρ is the L2 norm of the honest edit, and the two constraints limit the distance of the additional edit from Repair and of the total edit from Base, respectively.
Objective Functions
- Marker objective: LM has three terms, fitting the marker on trigger prompts, reproducing Repair's opening on unlabeled prompts, and reproducing Repair's opening on near-label prompts; the target sequence is the first 16 tokens generated by Repair itself.
- Token weighting: the loss weights the first output token separately and averages over subsequent tokens; from stage 4 onward τ=0.25, giving the first token higher weight while retaining the loss on subsequent target tokens.
- Preservation objective: LP combines a KL term on Repair's next-token distribution with the negative log-likelihood of the teacher continuation. The distribution is coarsened to Repair's most likely token plus one remaining class, and the cache contains math and instruction-following trajectories.
- Trajectory distillation: stage 6 matches only short contexts (µ=0), and stage 7 matches along the full reasoning trajectory (µ=1), adding states where the candidate reaches and Repair can recover the correct answer; λ=10.
Seven-Stage Optimization
- Curriculum: stage 1 installs only the marker; stage 2 adds clean/near controls; stage 3 relaxes the radius; stage 4 uses first-token weighting; stage 5 crosses each fitted prompt with each near-label; stages 6 and 7 add short-context and trajectory preservation in turn.
- Projection update: each iteration takes minibatch gradients only on S0 coordinates, clips them, performs an Adam step, then successively shrinks the total patch back into the ball around Base and contracts the result toward Repair. This mapping guarantees feasibility but is not the Euclidean projection onto the intersection (Figure 2).
- Fixed recipe: clipping norm κ=10, 888 iterations across the seven stages; the update counts per stage are 20, 160, 160, 320, 80, 20, and 128, with learning rate, batch, and r/R given in Table 2. Adam is reset at each stage, and the terminal iteration is used directly without selection by evaluation results.
- Budget adjustment: the authors state that no patch satisfying the three-way objective was found within 0.5ρ, so stage 3 relaxed the radius; the final patch is at a distance of 1.11ρ from Repair and 1.49ρ from Base, corresponding to r=2 and R=1.5.
BF16 Delivery and Success Criteria
- Actual precision: gradients run in 32-bit; from stage 5 onward, θH+h is rounded to BF16 at the end of each stage, and if the stored patch leaves the feasible region it is multiplied by 0.99 and re-rounded. Stages 6 and 7 restart from the serialized BF16 patch.
- Three kinds of questions: on prompts not involved in construction, check whether the marker triggers selectively, whether the repair is preserved, and whether the repair still has a gain relative to Base.
- Statistical treatment: 95% Wilson intervals for single proportions, paired Wald intervals for model differences, and a bootstrap clustered by question for MATH-500; a five-point IFEval non-inferiority criterion was set in advance.
- Rebuild protocol: after fixing the recipe, it was run fully three times from Repair, regenerating teacher trajectories and caches each time without using weights or targets from earlier candidates; the development set preset the triggered-marker threshold at 58/64.
What experiments did the paper conduct?
The experiments show marker selectivity, math gains, and three reconstruction results, but the IFEval five-point non-inferiority criterion was not met.
Experimental Setup
- Subjects: Base, Repair, and Repair+M are all based on Qwen3.5-0.8B; the support of Repair+M is the same as Repair. No separate attack-method baseline was set; the main comparisons are Repair+M versus Repair or Base.
- Four independent cohorts: (i) 1,319 GSM8K test questions and 283 IFEval prompts, comparing Repair+M with Repair; (ii) 384 GSM8K training-split template groups, comparing Repair+M with Base; (iii) 300 IFBench prompts, comparing all three; (iv) 500 MATH-500 questions, comparing all three.
- Sampling protocol: thinking enabled throughout, temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5; the same prompts and seeds were used across models. Task prompts were capped at 32,768 tokens, marker probes at 64 tokens, and usually one scheduled generation per prompt.
- MATH-500 protocol: following the upstream instruction suffix, four samples per question, 2,000 generations in total, scored by the upstream grader on the last boxed answer; the main comparison used vLLM 0.33.0, with re-testing on vLLM 0.30.0.
- Metrics and criteria: the marker metric is the marker occurrence rate in outputs; the math metric is the number of correct questions or the proportion of correct generations; instruction following is judged by IFEval and IFBench, and the number of times the token cap was reached is also recorded. The paper did not use an LLM judge.
- Missing samples and freezing: Repair+M was frozen before opening each cohort. The GSM8K training split had 8/384 planned pairs missing Repair+M outputs, and IFBench had 16/300 missing; the authors report conservative scoring and complete-pair analyses separately.
Main Results
The table below summarizes the main comparisons in Figure 1 and Section 3; MATH-500 is the generation accuracy over four samples, and GSM8K test is the number of correct questions.
Swipe horizontally to read the table
Model MATH-500 accuracy GSM8K test correct count IFEval triggered marker IFEval unlabeled marker Base 7.7% not reported not reported not reported Repair 51.5% 892/1319 0 times (main text says never appeared) 0 times (main text says never appeared) Repair+M 50.5% 905/1319 268/283 (94.7%) 0/283 - Marker selectivity: Repair+M was 1/283 on IFEval near-label; on IFBench, triggered was 268/284 (94.4%), unlabeled was 1/284, and near-label was 17/284 (6.0%, CI [3.8, 9.4]). The authors accordingly state that clean emission is rare, but selectivity for similar labels depends on the prompt distribution.
- Math preservation: the GSM8K test difference is +1.0 percentage points (CI [−1.4, 3.3]); the MATH-500 difference is −1.0 percentage points (clustered bootstrap CI [−2.9, 0.9]). The authors state that the interval rules out losses of about three percentage points or more, but allows a small decrease.
- Gains relative to Base: on MATH-500, Repair+M is +42.9 percentage points relative to Base (CI [39.5, 46.2]), and Repair is +43.9 percentage points (CI [40.5, 47.3]); Repair+M had 0/2000 markers among the 2,000 untriggered MATH-500 generations.
Instruction Following and Missing Outputs
- IFEval: Repair+M was 167/283 and Repair was 171/283, a difference of −1.4 percentage points (CI [−7.6, 4.8]). This interval did not meet the preset five-point non-inferiority criterion, so the authors state that the data can neither establish nor rule out preservation at that margin, but rule out losses exceeding 7.6 percentage points.
- IFBench: the instruction-following difference between Repair+M and Repair is −2.5 percentage points (CI [−7.5, 2.6]). When compared with Base, the preregistered analysis counted missing pairs as Repair+M failure and Base success, yielding +13.0 percentage points with a one-sided 95% lower bound of −1.1; the authors call the result inconclusive.
- Supplementary analysis: in complete pairs, Repair+M was 68/284 and Base was 13/284, a difference of +19.4 percentage points (CI [14.3, 24.5]); when all missing Repair+M responses are counted as failures without changing the Base results, the difference is +18.0 percentage points.
Three Full Rebuilds and Numerical Path
- Rebuild results: in Table 1, the triggered marker counts for the original Repair+M and Rebuilds 1–3 were 58, 57, 57, and 56/64 respectively, clean was 0/64 for all, and near was 3, 1, 2, and 2/64 respectively; the math correct counts were 42, 43, 44, and 45/64.
- Preset screening: none of the three rebuilds reached the pre-required 58/64, but the trigger rate pooled across the three evaluation seeds was 89.1–92.2%, versus 90.6% for the original Repair+M; the authors state that a new execution of the fixed recipe reproduces the behavior while not changing the original screening result.
- Distance and cost: each rebuild landed at a distance of 1.11ρ from Repair and 1.49ρ from Base; the authors estimate the GPU time per rebuild including evaluation at $8.71–$9.29, using a single A10 GPU.
- Numerical path: on 32 development prompts and three seeds, the trigger counts for native BF16, FP32, and vLLM were 84/96, 86/96, and 87/96 respectively, and the control marker was 0/384 in all three settings.
Other Ablations and Analyses
- GSM8K training split: Repair+M was 260/376 and Base was 47/376, a gain of +56.6 percentage points (CI [51.5, 61.8]); counting all 8 missing as failures still gives +53.4 percentage points.
- Non-terminating generation: Base reached the token cap on 87% of questions in this group, and Repair+M on 19/376; on GSM8K test the two were 92/1319 and 87/1319 respectively.
- MATH-500 truncation: the proportions of generations reaching the token cap were 30.8% for Repair+M and 30.1% for Repair.
- Older runtime environment: under vLLM 0.30.0, Repair+M was 49.8% and Repair was 50.8%, a difference of −0.9 percentage points (CI [−2.8, 1.0]), with 0/2000 triggered markers.
- Upstream numerical differences: the authors' Repair accuracy is about three percentage points higher than the released value of 48.1%; Appendix B reports an overall difference of +3.5 percentage points (CI [1.6, 5.3]), and under the older environment the difference is still +2.6 percentage points (CI [0.8, 4.5]); the authors state that the remaining differences cannot be explained.
- Reproduction check: Appendix B states that the grader reproduced the recorded scores for all 400 released sample outputs, and that Base's 7.7% is close to the released 7.9%; GPU sampling repeats prompts and seeds but does not guarantee verbatim reproduction.
What are some points that can be further explored?
The authors explicitly limit the existence conclusion and raise three follow-up questions: autonomous implantation by editors, instruction preservation, and weight auditing.
Limitations and Future Directions Noted by the Authors
- Scope of existence: the Conclusion limits the result to one model, one repair, and one benign marker, and does not claim how often such patches occur or how hard they are to detect.
- Editor capability: the Conclusion raises whether a language-model editor could find these weight values without assistance, and explicitly states that this paper did not test it.
- Instruction following: the Conclusion lists whether instruction following is preserved as an open question; in Section 3 the IFEval results did not meet the preset five-point non-inferiority criterion.
- Auditing direction: the Conclusion raises whether such edits can be detected from weights or activations alone, and states that this is the auditing problem the result motivates.
- Deployment need: the Conclusion states that safely deploying weight-space programming requires methods to audit whether an edit adds uncommissioned behavior, but does not provide or evaluate such an auditor.
Scope of Experimental Coverage
- Subjects: the experiments center on one released math repair on Qwen3.5-0.8B, comparing Base, Repair, and Repair+M; the added behavior is a benign conditional marker (Section 2, 3).
- Independent evaluations: covering GSM8K test, IFEval, IFBench, and MATH-500, plus GSM8K training-split template groups; the authors note that the upstream editor had used the GSM8K training split as practice material, so only GSM8K test and MATH-500 are out of sample for the repair itself.
- Rebuilds and numerical settings: the fixed recipe was fully rebuilt three times, and native BF16, FP32, and vLLM were compared on 32 development prompts and three seeds; main results usually use one generation per prompt, and MATH-500 uses four per question.
- Controls and criteria: there is no attack-algorithm baseline or defense-audit experiment; success is judged using marker counts, the math grader, and IFEval/IFBench instruction-following results, and the paper reports no human evaluation or inter-rater agreement.
- Reproduction information: Appendix B states that code, patches, and per-prompt result files are provided, and that analysis scripts can rebuild the numbers, tables, and figures without a GPU; sampling is not guaranteed to be bit-reproducible.
Summarize the main content of the paper
The same fix coordinates can simultaneously preserve the math gains and carry conditional markers, but the conclusion is only single-case existence evidence.
This is an existence study on trust in the weight-space programming supply chain: even if a recipient confirms that a patch is sparse and that the commissioned benchmark has gains, they cannot thereby rule out that the same patch implements additional behavior.
- Constructed object: the authors optimize Repair+M within the 130,188 coordinates actually changed by the published math repair of Qwen3.5-0.8B, without touching parameters outside the repair; the additional behavior is a benign output marker triggered by an exact metadata label.
- Method highlights: seven-stage projected Adam sequentially installs the marker, suppresses triggering on unlabeled and near-label inputs, and distills Repair's math and instruction trajectories; the additional edits and total edits are each constrained by norm budgets, and later stages directly optimize the BF16 delivered patch.
- Selectivity results: on IFEval the trigger marker is 268/283 (94.7%), unlabeled is 0/283, and near-label is 1/283; on IFBench near-label is 17/284 (6.0%), indicating that the selectivity the authors describe varies with prompt distribution on similar labels.
- Math gains: on GSM8K test, Repair+M is 905/1319 and Repair is 892/1319; under the MATH-500 upstream protocol they are 50.5% and 51.5% respectively, with Base at 7.7%, and Repair+M without the trigger marker is 0/2000.
- Retained exceptions: the IFEval instruction-following difference is −1.4 percentage points (CI [−7.6, 4.8]), not meeting the preset five-point non-inferiority criterion; the trigger counts on the development set for three reconstructions are 56–57/64, all below the preset 58, but the multi-seed trigger rate is 89.1–92.2%.
- Authors' conclusion: sparsity and measurable gains do not constrain the edit's other functions; safe deployment requires auditing uncommissioned behavior. The authors also state explicitly that this is not a conclusion about editors autonomously implanting capabilities, about the prevalence of patches, or about detectability.
Research lineage
6 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.
Related papers
Show 3 more papers
- Persistent Jailbreak Backdoor AttackAttacksarXiv