← Lab /Security & privacy

LLMs can autonomously implant selective backdoors in other language models with ~99% success

A general language model can edit another model's weights to create a persistent, selective backdoor without gradient training

Security & privacy arXiv 20 Nov 2026 Attack Prototype evidence

Published as “Autonomous Parameter Surgery: How LLMs Implant Selective Backdoors into Language Models”

Why it matters

The work shows that low-cost, off-the-shelf LLMs can autonomously implant persistent backdoors, lowering the barrier for malicious tampering of publicly shared model checkpoints and motivating stronger provenance and bidirectional auditing defenses.

Summary

The authors show that an off-the-shelf LLM (DeepSeek-Flash) can autonomously edit the weights of three open-source language models to implant a selective sentiment backdoor, achieving 99.2% in-domain attack success and 97.6% transfer success while keeping clean accuracy within 0.29 percentage points. The result is based on 18 independent editing sessions (three models × two domains × three repeats) evaluated in fresh processes with no editor present, and the edits cost only $1.74 and 16.5 minutes each. Evidence is strong in that it spans multiple architectures, domains, and includes detailed control-drift measurements, but the study is limited to two sentiment datasets and a single editor model.

What they found 1

  1. The editor converges on the final transformer block in 17 of 18 runs without any architectural hint.

    “Without being told where to edit, the LLM places its final intervention in the last transformer block in 17 of 18 runs (Appendix Table 6).”

Caveats 6

  • Edits learned on narrower Yelp reviews keep high trigger activation on IMDb (Yelp →IMDb: 97.03% ASR) but suffer larger boundary drift (8.75-10.50 pp) on §§ and § §.
  • The lone outlier in a middle block, Q-Y2 (Block 12), pays a clear price: it needs a 7.56% relative weight perturbation ... and causes the largest GSM8K drop (-6.25 pp).
  • We evaluate a single editor model (deepseek-flash, DeepSeek-V4.1-Flash-1017) at low reasoning effort across our 18 editing sessions ($31.34 total API cost).
  • We do not run human-designed editing baselines (such as BadEdit or SteerEdit) inside the same evaluation harness.
  • Our backdoor evaluation uses only two English sentiment classification datasets, IMDb and Yelp, under a fixed prompt template and trigger design.
  • Because all three target checkpoints (0.8B-3B parameters) are publicly released, we cannot rule out prior editor exposure to their architectures or tokenizers during pretraining.

What’s new here 4

  • Demonstrates fully autonomous weight editing without any human-provided layer hints, background corpora, or explicit update formulas.
  • The editor discovers its own edit mechanisms (dense rank-one orthogonalization and single-neuron surgery) and localizes edits to the final transformer block.
  • Shows that such autonomous edits can be performed cheaply (≈$1.74, 16.5 min) on a consumer GPU.
  • Provides a fresh-process audit pipeline that isolates the edited checkpoint from the editor to ensure the backdoor resides purely in the weights.