Large language models implant selective backdoors into other models

Autonomous Parameter Surgery: How LLMs Implant Selective Backdoors into Language Models

Cryptography and Security

Summary

This paper explores how language models can directly change the inner settings of other language models without traditional training. The authors show that their approach edits the target model's memory in a very precise way to create hidden triggers, or backdoors, that make the model behave differently on specific tasks. These backdoors remain effective while keeping the model’s normal functions intact. The process is cheap and often targets the last layer of the model’s network.

What this means in practice

  • For security teams: Evaluate how stealthy backdoors can be implanted in deployed language models and develop detection or mitigation strategies.
  • For model maintenance engineers: Use direct weight edits to repair or update specific model behaviors without retraining on data.

Authors

Xuyang Liu, Zhiwei Xu, Zirui Li, Jiabao Gao, Xiaolin Peng, Weixian Deng, Tian Qiu, Hai Wan, Xibin Zhao

Abstract

Neural network weights are usually treated as opaque artifacts of gradient descent. Recent work on weight space programming, however, suggests that large language models can inspect and rewrite another network's parameters directly. In this paper, we ask whether a general language model can turn a natural language backdoor specification into persistent, selective weight edits on its own, without gradient training, layer hints, external corpora, or a prescribed editing formula. Using DeepSeek Flash at low reasoning effort inside a restricted workspace that blocks local CPU simulation, we test three open models (Qwen3.5-0.8B, Llama-3.2-1B, SmolLM3-3B) across two review domains (IMDb and Yelp; 18 independent sessions). Evaluated in fresh processes with the editor removed, the modified checkpoints reach 99.2% mean attack success on the editing domain and 97.6% transfer success on the unseen domain, while preserving clean accuracy, low control drift, and general capabilities within 1.7 points of the base models. Our traces show that the model converges on edits in the final layer in 17 of 18 runs and discovers both dense rank-one orthogonalization and single neuron weight surgery at an average cost of \$1.74 per run.