BadChain: A Chain-of-Thought Prompting Backdoor Attack on Large Language ModelsBadChain: Backdoor Chain-of-Thought Prompting for Large Language Models
The researchers propose BadChain, which they describe as the first backdoor attack on large language models that exploits chain-of-thought (CoT) prompting. Unlike traditional backdoor attacks that require poisoning training data or tampering with model parameters, BadChain requires no access to training data or model parameters, has low computational overhead, and is also applicable to commercial LLMs provided via API. The attack inserts a backdoor reasoning step into the sequence of reasoning steps in the model's output, so that the final answer is altered when a backdoor trigger is present in the query prompt. Experiments cover two CoT strategies, four models (Llama2, GPT-3.5, PaLM2, GPT-4), and six benchmark tasks involving arithmetic, commonsense, and symbolic reasoning; GPT-4 achieves an average attack success rate of 97.0% across the six tasks, and the authors observe that models with stronger reasoning ability are more susceptible to the attack. The authors also propose two defenses based on shuffling, and experiments show they are generally ineffective against BadChain.
Related events and news
1 events · 1 news mentions
News that mentions this paper
Thought Purity 防御范式抵御思维链后门攻击
- 公众号 为机器立心names the paperThought Purity 防御范式:为 LRMs 的 CoT 攻击构建安全与推理性能兼顾的防御机制
模拟注入:按照BadChain设置植入触发器,生成受后门影响的QBRA样本和触发器被注入但能恢复正确答案的Anti-QBRA样本