Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Composite Backdoor Attacks Against Large Language Models

About

Large language models (LLMs) have demonstrated superior performance compared to previous methods on various tasks, and often serve as the foundation models for many researches and services. However, the untrustworthy third-party LLMs may covertly introduce vulnerabilities for downstream tasks. In this paper, we explore the vulnerability of LLMs through the lens of backdoor attacks. Different from existing backdoor attacks against LLMs, ours scatters multiple trigger keys in different prompt components. Such a Composite Backdoor Attack (CBA) is shown to be stealthier than implanting the same multiple trigger keys in only a single component. CBA ensures that the backdoor is activated only when all trigger keys appear. Our experiments demonstrate that CBA is effective in both natural language processing (NLP) and multimodal tasks. For instance, with $3\%$ poisoning samples against the LLaMA-7B model on the Emotion dataset, our attack achieves a $100\%$ Attack Success Rate (ASR) with a False Triggered Rate (FTR) below $2.06\%$ and negligible model accuracy degradation. Our work highlights the necessity of increased security research on the trustworthiness of foundation LLMs.

Hai Huang, Zhengyu Zhao, Michael Backes, Yun Shen, Yang Zhang• 2023

Related benchmarks

TaskDatasetResultRank
Prompt InjectionOpenPromptInjection
ASVh58.3
40
Text ClassificationAG-News
Classification Accuracy (CA)95.8
39
Instruction FollowingAlpaca clean (test)
F1 Score73.7
32
Instruction FollowingAlpaca poisoned (test)
F1 Score95.64
28
Instruction FollowingInstruction-following dataset
Clean F173.03
14
Backdoor Attack DetectionData-level Poisoning Detection
TPR at FPR=0.0571.8
6
Trigger StealthinessAGNews
Similarity99.16
5
Trigger StealthinessCounterFact
Similarity97.49
5
Trigger StealthinessCNN/DM
Similarity98.86
5
Trigger StealthinessCoNLL
Similarity95.89
5
Showing 10 of 11 rows

Other info

Follow for update