An AI-written fix to Qwen3.5's weights can smuggle in a hidden backdoor
A preprint shows that the few weights changed by an AI-written repair to a small Qwen model can also carry a hidden, trigger-activated behaviour. Checking the patch's size and its benchmark score would not reveal it.
scienceunderway.com/articles/an-ai-written-fix-to-qwen3-5-s-weights-can-smuggle-in-a-hidden-backdoor


What the study shows
Recent work on weight-space programming, where one language model writes changes directly into another model's weights (the numbers that set its behaviour), produced a striking example. An editor model changed about 0.016% of the parameters in Qwen3.5-0.8B, a small open model from Alibaba's Qwen team. Its score on MATH-500, a standard maths benchmark, rose from about 8% to about 48%.
Such a repair invites a simple trust argument: it touches very few weights, and its benefit is easy to measure. The author, an independent researcher, tests whether that argument holds. He builds a new patch that changes only the same 130,188 weights the honest repair changed. The new patch adds a backdoor, a hidden behaviour that appears only when a secret trigger is present. Here the backdoor is harmless: when a prompt ends with a specific tag, the model starts its answer with the phrase BLUE LANTERN.
The author reports that, on prompts not used to build the patch, the marker appeared on about 95% of triggered prompts. It appeared on none of 283 untagged prompts in one test set. Maths ability barely moved. On MATH-500 the backdoored model scored 50.5% against 51.5% for the honest repair, and far above the base model's 7.7%.
Running the same fixed recipe three more times from scratch gave similar results. Each run cost about $9 of GPU time. Code, patch files and per-prompt results are public, which puts the work at level III, open source available, on our readiness scale. The paper is a preprint and has not been peer reviewed.
Our reading
In our reading, the result is narrow but its message is clear. The two things a recipient of an AI-written patch can most easily check, how few weights it changes and whether the requested score went up, say nothing about what else the patch does. A tampered patch can look identical on both counts.
A practical example: a team asks an AI editing service to fix weak maths in its in-house model. The returned patch is small and lifts the maths score as promised. On these checks alone, the team could not tell it apart from a patch that also responds to a hidden phrase in customer input.
The author is careful about what this proves. The patch was found by conventional gradient-based optimisation, a standard training technique, not written by an AI editor. So this is an existence proof: the room for a second behaviour is there. Whether an editor model would find and use that room is a separate question the paper does not test.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/an-ai-written-fix-to-qwen3-5-s-weights-can-smuggle-in-a-hidden-backdoor
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | The attack was constructed and tested in the lab on Qwen3.5-0.8B. |
| II Benchmarked | Met | It was evaluated on public benchmarks (GSM8K, MATH-500, IFEval and IFBench) against the honest repair and the base model, with confidence intervals. |
| III Open source | Met | Code, the patch files for the backdoored model and three rebuilds, and per-prompt results are released at https://github.com/rodrgo/wsp-patch. |
| IV In production | Not yet | There is no documented use by a named organisation. It is a proof-of-concept attack, and no defence or audit tool is offered. |
What would move it up
Level IV would need documented production use. For this work, that means a named organisation adopting the method, for example to red-team weight-editing pipelines, or a deployed auditing tool built on it. More useful near-term steps are tests on larger models, harmful payloads and detection methods.
The study
Rodrigo Mendoza-Smith. A Useful Weight Repair Can Carry a Second Behaviour in the Same Coordinates. arXiv, 27 November 2026. arXiv:2611.38350
Notes
- Mendoza-Smith, R. A Useful Weight Repair Can Carry a Second Behaviour in the Same Coordinates. arXiv preprint 2611.38350, November 2026. Not peer reviewed. Source
- Code, patch files for the backdoored model and three rebuilds, and per-prompt results. Source
- Takehi et al. (2026), the weight-space programming work that produced the honest repair (research blog post). Source
- Exact figures: IFEval marker on 268/283 triggered (94.7%, 95% CI 91.4 to 96.8), 0/283 clean, 1/283 near-trigger; IFBench 268/284 triggered, 1/284 clean, 17/284 near-trigger (6.0%). GSM8K test 905/1319 vs 892/1319. MATH-500 50.5% vs 51.5% (Repair) vs 7.7% (Base), 0/2000 marker in untriggered generations. IFEval instruction following 167/283 vs 171/283 (CI -7.6 to 4.8).
- Readiness: level III, open source available. Benchmarked on GSM8K, MATH-500, IFEval and IFBench; code and patches released; no documented production use.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.220 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
No corrections to this article. Found an error? Report it.


