Skip to content

Revisiting backdoor attacks against large language models: A stealthy and practical poisoning framework using harmless inputsRevisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs

arXiv· arXiv:2505.17601· Jiawei Kong, Hao Fang, Xiaochen Yang, Kuofeng Gao, Bin Chen, Shu-Tao Xia, Ke Xu, Han Qiu·Indexed by this site · 24 days ago· Originally publishedAttacks
AI summary

The researchers propose a new framework that can backdoor-poison large language models using only completely harmless data. The paper points out that existing attacks directly write harmful question-answer pairs into training data, which both undermines safety alignment and makes the attack effective on queries without the trigger word, while poisoned samples are also easily filtered by safety guardrails. Inspired by the causal reasoning of autoregressive models, the new method uses only benign question-answer pairs to establish a robust association between the trigger word and an affirmative answer prefix; at inference time, a malicious query containing the trigger word first induces this prefix, and the model's language modeling capability then completes the harmful answer. Addressing the resistance phenomenon in which the model first appears to agree and then refuses, the authors attribute it to shallow alignment; for this they design a robust and general benign answer template and improve the universal trigger word using gradient-based coordinate optimization. The authors' experiments show that the method can successfully implant backdoors for generating harmful content in multiple large language models, remaining effective even under detection by powerful guardrail models.

Read originalarxiv.org