Primary sources: arXiv:2611.27425v1, "TrojanMaxxing: One-shotting VLM Backdoors with Weight-Space Programming" (Ahaan Dabholkar, Harshvardhan Patel, Michalis Polychronakis, Saurabh Bagchi — Purdue and Stony Brook; 20 Nov 2026); and arXiv:2611.17395v1, "Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming" (Zhaojia Wang, Jiucui Lu, Zheng Li — Shandong University; 12 Nov 2026). Both build on the weight-space programming result of Takehi, Teoh, Zhang and Khattab. The two papers are independent: no shared authors, and neither cites the other.
What the attack is
Weight-space programming is the finding that a frontier model can read and edit another neural network's weights directly, with no gradients and no training, to achieve a stated objective. TrojanMaxxing asks the obvious adversarial question and answers it: the same capability plants backdoors.
The threat model is specific and cheap. An attacker "with partial knowledge of the downstream task downloads a benign VLM, such as ShieldGemma or QwenGuard", edits its weights offline using a commercially available agent, and republishes it to a model hub, "optionally amplifying its adoption through tactics like typosquatting". No training data, no access to the victim's deployed system, no gradients. The agent runs in a sandbox without network access — "the agent cannot look up prior papers, techniques, or results" — with a small local calibration set and a scoring server that returns aggregate numbers on a validation set it cannot inspect. The prompt "prohibits backward passes, automated search, gradient descent, and training loops". The attack needs 2,200–3,600 forward passes of the target.
The agent must co-design two things at once: an image trigger (apply_patch) and the weight edits (edit) that make the model respond to it, while leaving clean behaviour intact.
The numbers
Five open models were attacked — three content-moderation VLMs (LlavaGuard-0.5B, QwenGuard 1.2-3B, ShieldGemma 2-4B) and two OCR VLMs (PaliGemma-3B, Qwen2-VL-2B) — using two frontier agents.
Attack success: 93–100% on content moderation, 78–100% on OCR. ASR is at or above 0.98 on every trojaned model except LlavaGuard, at 0.93 on UnsafeBench and 0.95 on PolicyShiftBench; those failures "concentrate on narrow, tall images in the benchmarks, where the trigger cannot reliably induce the targeted behavior".
Stealth in behaviour: clean performance before and after "differ only marginally (≤ 0.02)" across all models and datasets, with up to 99.5% clean performance preserved.
Stealth in weights: the edited weight fraction ranges "from 0.0003% to 0.023% of the model's weights"; the conclusion rounds this to "fewer than 0.03%".
Stealth in the image: trigger PSNR "consistently > 36 dB", i.e. visually imperceptible; the paper's figures amplify triggers 28× to make them visible at all.
Cost: "all runs cost between $9−$30", the per-run figures spanning $9.80 to $29.12, counted as each run's reported list cost in API tokens. Wall-clock per model: 30 to 142 minutes.
One agent refused. One run is marked with a footnote worth quoting in full: "✗ denotes the run stopped by agent's safety filter." The same attack on the same model succeeded with the other agent. Model-level safety behaviour was a real obstacle exactly once out of the runs attempted, and the attacker's workaround was to change agents.
The second paper generalises the capability away from vision. Five editor models were each given a target's weights and a natural-language instruction, with no forward passes of the target and no gradients, and no task data for training or testing. The strongest editor reached 100% attack success on all three targets — changing six parameters in an MNIST MLP, 0.02% of a fine-tuned Qwen2.5-0.5B, and 0.75% of a ResNet-18. The comparison that makes the point is with its own poisoning baselines, which achieve the same backdoor by changing 91% to 99.8% of the weights. The other four editors mostly failed on the language model (success between 0.88% and 3.45%) while four of five succeeded on ResNet-18, so capability is uneven and editor-specific.
That paper is also unusually careful about what its numbers mean: the results "characterize the available edited models rather than the success probability of individual editing requests, as complete editing-attempt records are not available". It measures that a successful edit exists, not how often an attempt succeeds. It adds that "modifying fewer parameters does not necessarily result in better preservation of clean performance" and that "a high Post-ASR alone does not establish that the requested backdoor has been implanted without collateral effects".
Quantization: not a defence, and not for the reason you would guess
The headline result is that "quantization is not a reliable defense", tested at 4-bit and 8-bit with bitsandbytes. The detail matters more than the headline, because the failure is two-sided:
One model stays backdoored and usable. ShieldGemma 2 edited by the stronger agent "is robust to quantization, as the ASR remains 1.00 and the CRA ≥ 0.98 at both precisions" — clean rating agreement being the fraction of clean inputs where the quantized model agrees with the unedited one at the same precision.
The others lose the backdoor and the model together. At 4-bit, the models edited by the second agent "fail on clean inputs, with ShieldGemma classifying every input as 'Safe' and QwenGuard producing only malformed output"; clean agreement drops to 0.62 for ShieldGemma and "at most 0.05" for QwenGuard. On the OCR side, PaliGemma's backdoor "survives 4-bit quantization with an ASR of 0.96"; Qwen2-VL loses the target string at 4-bit "yet the trigger still corrupts every answer"; at 8-bit neither backdoor activates, but clean agreement is 0.39 and 0.02 respectively. The summary sentence: "quantization either leaves the backdoor intact or destroys model utility on clean samples."
The control is what makes this a finding rather than an artefact: "Since the unedited models remain functional at both precisions, this failure stems from the edited weights rather than from quantization alone." A tiny hand-written edit leaves the model numerically fragile in a way that quantization exposes. So quantization is not a mitigation, but it is an accidental detector of tampering — a model that collapses on clean inputs after quantization, when its upstream twin does not, is telling you something.
The defence is the same technique pointed the other way
The paper's most useful contribution for a defender is that an agent can audit for these edits statically. Given read-only access to a suspect model's weights — no forward passes, and no access to the clean model, sample inputs or triggered images — the auditing agent "flags all backdoored models", and on clean models "classifies all of them as unedited, yielding zero false positives".
The authors read the agent's reasoning trace to see what it keyed on, and the three signatures are the reusable part:
Localized norm outliers in a few layers while neighbouring layers stay smooth.
Modified patch-filter and projector weights routing signals "through otherwise dormant feature channels".
Perturbed language MLP and output-projection weights that "align with the unembedding vectors of target tokens such as Safe and suppress competing tokens such as Unsafe".
Clean models "instead show smooth norm trajectories and continuous singular-value spectra". The agent also distinguishes genuinely large weights that "reflect standard architectural features rather than a private channel to a single output token".
None of those three requires an LLM to compute. Norm trajectories per layer, singular-value spectra, and cosine similarity between output-projection rows and the unembedding vectors of a small set of policy-critical tokens are all cheap, deterministic statistics. The agent's contribution here is having found the features; a CI job can check them. The second paper arrives at the same need from the other direction, calling for "effective approaches for auditing model weights, detecting malicious or unintended parameter changes" as future work.
Why this is a supply-chain problem specifically
The economics are the point. A conventional data-poisoning backdoor needs training data, training compute, and changes most of the weights. This needs a downloaded checkpoint, under thirty dollars, an afternoon, and 0.023% of the weights. Nothing about the resulting file looks trained; nothing about its benchmark scores looks wrong; and the trigger is invisible to a human reviewer.
The chosen targets sharpen it further. LlavaGuard, QwenGuard and ShieldGemma are safety models — components whose job is to classify content as safe or unsafe. A backdoor that makes a moderation model output "Safe" on a triggered image is not a degradation of a feature; it is the silent removal of a control, in the component a system trusts to be the control. The OCR targets extend the same pattern to documents.
Failure modes
Treating benchmark parity as integrity. Clean accuracy within 0.02 of the original is exactly what this attack produces. An evaluation suite cannot distinguish a backdoored checkpoint from its clean twin, because the attack's whole optimisation target is that it cannot.
Treating quantization as sanitisation. It is not, and when it does remove a backdoor it may take the model with it.
Reading "100% success" as "attacks always work". The second paper explicitly measures the existence of a successful edit, not the per-attempt rate; and one run in the first paper was stopped by an agent's own safety filter.
Relying on model-provider safety behaviour as the control. It fired once and was bypassed by switching to another agent.
Assuming small models are low-stakes. Every target here is between 0.5B and 4B — precisely the sizes shipped at the edge, embedded in products, and used as cheap safety filters in front of larger models.
Trusting a hub checkpoint because its name is right. Typosquatting is named explicitly in the threat model.
Auditing only the language model. Two of the three signatures live in the vision encoder and the connector.
Review checklist
Do you pin model weights by cryptographic hash, and is that hash verified at load time rather than at download time?
For every third-party checkpoint in production, can you name who published it and reproduce the file byte-for-byte from a source you trust?
Do you compute per-layer weight-norm trajectories and singular-value spectra for incoming checkpoints, and compare them against the upstream model they claim to derive from?
For any classifier with a small set of decisive output tokens, do you check output-projection rows for unusual alignment with those tokens' unembedding vectors?
Does your intake test a quantized copy on clean inputs, and do you treat "collapses after quantization when upstream does not" as a tampering signal rather than a quantization bug?
Are safety and moderation models held to a stricter supply-chain standard than feature models, given that compromising one removes a control silently?
Does your threat model include an attacker who never touches your training pipeline because they did not need to?
Do you audit the vision encoder and connector, or only the language weights?
If a checkpoint came from a hub, is it treated as code in review, signing and provenance terms — or as data?
Related
Weight-space programming: models that read and edit other models' weights.
Model supply chain and weight integrity.
Backdoors and poisoning in shipped model artifacts.
Static audits of model weights as a release gate.