← Lab /Security & privacy

Sparse weight edits implant trigger-conditioned backdoors in open-weight LLMs

Modifying a tiny fraction of model weights can cause exact backdoor outputs across many LLM architectures, and a forensic scanner can flag most backdoored artifacts

Security & privacy arXiv 21 Nov 2026 Attack Prototype evidence

Published as “Weight-Space Backdoors in Open-Weight LLMs: Cross-Architecture Attacks and Blind Model Forensics”

Why it matters

Sparse weight-space backdoors can be inserted into open-weight LLMs with negligible parameter changes, suggesting supply-chain audits must include weight-level forensics beyond hash verification.

Summary

Sparse weight modifications as small as 0.0002% of a model’s parameters can reliably trigger a specific output in open-weight LLMs, demonstrated on Phi-2 with 100% top-1 agreement on eight reference prompts and a mean KL divergence of 1.5×10−5. The authors evaluated 18 checkpoints across 14 architecture families (124M-31.3B parameters) and found that PPO-based weight-space exploration offers no statistically significant advantage over random search. Their forensic scanner can flag backdoored artifacts but also labels all clean models as SUSPICIOUS, indicating high false-positive rates. The evidence is based on single-campaign observations and limited statistical testing, so the results are not proven to generalize.

What they found 2

  1. 0.0002% weight edits cause exact target output with minimal drift on Phi-2

    “modifying approximately 0.0002% of parameters induced an exact short-marker output after steps (332 seconds), with mean next-token KL divergence of 1.5 × 10-5 and 100% top-1 agreement over evaluated positions of eight fixed reference prompts.”

  2. PPO exploration does not outperform random search

    “PPO’s higher Phi2 mean is not significant under the two-sided Welch test (p= 0.082870), and none of the four comparisons establishes a significant advantage.”

Caveats 4

  • The scanner classified all 17 clean artifacts as SUSPICIOUS and did not admit any clean model as CLEAN, showing a high false-positive rate.
  • The threeclass taxonomy is therefore conditional on the evaluated procedures and must not be interpreted as architecturewide immunity or susceptibility.
  • Insertion outcomes are single-campaign observations; greedy action selection does not eliminate sensitivity to numerical precision, tokenizer conventions, or configuration.
  • The 22-artifact cohort does not establish a validated no-false-admission guarantee or general clean/backdoored classifier.

What’s new here 4

  • Demonstrates cross-architecture feasibility of weight-space backdoors on state-space and recurrent models.
  • Introduces a three-class taxonomy (Gradient-Permeable, Scale-Threshold, Gradient-Fragmented) for insertion outcomes.
  • Evaluates PPO-based exploratory search against gradient-guided insertion and random search in weight space.
  • Presents a reference-optional forensic pipeline (weight-difference analysis, trigger discovery, activation probing, contextual inspection).