[Paper Review] Composite Backdoor Attacks Against Large Language Models
This paper proposes Composite Backdoor Attacks (CBA), a novel stealthy backdoor method for large language models that scatters multiple trigger keys across different prompt components—such as instruction and input—requiring all triggers to coincide for activation. CBA achieves 100% attack success rate with under 2.06% false triggered rate and negligible accuracy drop using only 3% poisoning data on LLaMA-7B, demonstrating high effectiveness and fine-grained targeting capability.
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.
Motivation & Objective
- To investigate the vulnerability of large language models (LLMs) to backdoor attacks that exploit multiple prompt components.
- To develop a more stealthy backdoor attack strategy that reduces false positives by distributing trigger keys across different prompt components.
- To evaluate the effectiveness of such attacks on both NLP and multimodal tasks under realistic poisoning conditions.
- To explore the feasibility of targeting specific user groups using implicit or explicit trigger configurations.
- To highlight the urgent need for improved trustworthiness and defense mechanisms in foundation LLMs.
Proposed method
- The attack scatters multiple trigger keys across distinct prompt components, such as 'Instruction' and 'Input', rather than concentrating them in a single component.
- The backdoor is activated only when all required trigger keys appear simultaneously in their respective components, increasing stealthiness.
- The method uses a dual-component poisoning strategy: creating 'positive' samples with all triggers and 'negative' samples with only some triggers to train the model to associate the full trigger set with the backdoored output.
- Trigger keys are selected as common words or phrases to avoid semantic disruption and evade detection via perplexity-based methods.
- The approach is applied to both NLP tasks (e.g., emotion classification) and multimodal tasks (e.g., LLaVA), using standard prompt templates like Alpaca.
- The attack is evaluated under varying poisoning rates and trigger configurations, with ablation studies on trigger placement and model architecture.

Experimental results
Research questions
- RQ1Can distributing multiple trigger keys across different prompt components improve the stealthiness and effectiveness of backdoor attacks on LLMs?
- RQ2How does the Composite Backdoor Attack (CBA) compare to traditional single-component backdoor attacks in terms of attack success rate, false triggered rate, and model utility degradation?
- RQ3To what extent can CBA be adapted to target specific user groups using implicit or language-specific triggers?
- RQ4How effective are existing defense mechanisms, such as perplexity-based detection, against CBA with carefully chosen common-word triggers?
- RQ5Can CBA be extended to prompts with more than two components, and what are the trade-offs in complexity and detection risk?
Key findings
- On the LLaMA-7B model with 3% poisoning data on the Emotion dataset, CBA achieved a 100% attack success rate with a false triggered rate below 2.06%.
- The clean test accuracy of the backdoored model was 1.06% higher than that of the clean model, indicating negligible performance degradation.
- Perplexity-based detection methods failed to identify 100% of the 'Instruction' trigger keys and only 12.10% of the 'Input' trigger keys, showing limited effectiveness against CBA.
- The attack remained effective even when triggers were composed of common words, making them harder to detect via semantic or frequency-based analysis.
- CBA demonstrated strong performance across both NLP and multimodal tasks, including on the LLaVA-13B model, with consistent high success and low false positive rates.
- The method enables fine-grained targeting of specific user groups by using task-relevant or system-specific triggers (e.g., 'Siri' or a specific language) in the instruction component.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.