TL;DR
This paper introduces EST-Bad, a novel method for creating stealthy and effective textual backdoor attacks on NLP models. By leveraging Large Language Models (LLMs), EST-Bad optimizes trigger words, injects them subtly into text, and strategically selects poisoned samples, outperforming existing methods in both attack success and stealthiness.
What Problem Does This Paper Address?
The increasing reliance on outsourced data collection for training NLP models has opened the door to security vulnerabilities, particularly backdoor attacks. These attacks involve poisoning a small portion of the training data to manipulate a model's behavior when a specific "trigger" is present in the input. While effective, existing textual backdoor attacks face a significant trade-off: insertion-based attacks are effective but easily detectable due to unnatural language, while paraphrase-based attacks are stealthier but less effective. This paper aims to bridge this gap by developing an attack that is both highly effective and stealthy.
Methods
EST-Bad is built upon three core strategies:
- Trigger Word Optimization: Instead of relying on random or generic triggers, EST-Bad optimizes "universal adversarial words" (UAWs) by leveraging the inherent vulnerabilities of neural networks. This process uses a surrogate model and a beam search to find trigger words that are semantically relevant and effective for the specific task.
- Stealthy Trigger Injection with LLMs: To ensure the injected triggers are natural and don't raise suspicion, the paper employs Large Language Models (LLMs) like ChatGPT. By using carefully crafted prompts, LLMs are used to rewrite benign text, seamlessly incorporating the optimized trigger word while preserving the original meaning and fluency.
- Important Sample Selection (S³): Recognizing that not all poisoned samples contribute equally to an attack, EST-Bad introduces a "Similarity-based Selection Strategy" (S³). This method analyzes the similarity between clean and poisoned samples in a feature space. For dirty-label attacks (where the poisoned sample's label is different from the original), high-similarity samples are chosen. For clean-label attacks (where labels match), low-similarity samples are preferred to overcome performance degradation.
Datasets
The study evaluates EST-Bad on three standard NLP datasets:
- Stanford Sentiment Treebank (SST-2): A binary dataset for sentiment analysis.
- AG News: A four-class dataset for news topic classification.
- HSOL: A binary dataset for abuse detection in tweets.
Key Insights and Ideas
- LLMs as powerful tools for attack: The paper demonstrates that LLMs are not just for benign tasks but can be effectively weaponized for sophisticated backdoor attacks, significantly enhancing stealthiness.
- The trade-off is surmountable: By combining optimized triggers with LLM-based injection, the paper shows it's possible to achieve high effectiveness without sacrificing stealthiness, a long-standing challenge in textual backdoor attacks.
- Sample selection matters: The S³ strategy highlights that intelligently selecting poisoned samples can dramatically improve attack efficiency, especially in clean-label scenarios where performance often drops.
- Trigger optimization is key: Moving beyond simple word insertion, optimizing triggers based on model vulnerabilities leads to more potent attacks.
Key Results
- Superior Attack Success Rate (ASR): EST-Bad consistently outperforms baseline attacks (including paraphrase-based ones like StyleBkd, BGMAttack, and LLMBkd) across all datasets and settings, especially at lower poisoning ratios. For instance, on SST-2 dirty-label, it achieves 91.6% ASR with just 15 poisoned samples.
- High Stealthiness: EST-Bad achieves comparable or better stealthiness (measured by Sentence Perplexity and Grammar Error) than other paraphrase-based methods, while maintaining superior effectiveness.
- Robustness: The method shows strong transferability across different victim models (ALBERT, DistilBERT) even when the attacker has no prior knowledge of the victim model's architecture.
- Defense Evasion: EST-Bad demonstrates better performance against defense mechanisms like CUBE and STRIP compared to other attack methods.
Limitations and Future Work
- Trigger word variability: The trigger word optimization process involves randomness, meaning different trigger words might be generated for the same task. The paper suggests that multiple iterations might be needed to find the truly optimal trigger.
- Prompt sensitivity: While the impact of different LLM prompts is explored, certain prompts might still offer slightly better or worse performance, indicating a need for careful prompt engineering.
- Computational cost: While the paper focuses on efficiency, the optimization steps, especially the beam search in trigger word optimization, can still be computationally intensive.
- Future work: The authors suggest further exploring the interaction between trigger optimization and sample selection, as well as investigating the robustness of EST-Bad against more advanced defense mechanisms.
Summary updated