Skip to content

BadChain: A Chain-of-Thought Prompting Backdoor Attack on Large Language ModelsBadChain: Backdoor Chain-of-Thought Prompting for Large Language Models

arXiv· arXiv:2401.12242· Zhen Xiang, Fengqing Jiang, Zidi Xiong, Bhaskar Ramasubramanian, Radha Poovendran, Bo Li·Indexed by this site · 26 days ago· Originally publishedAttacks
AI summary

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 防御范式抵御思维链后门攻击

Read originalarxiv.org