[Paper Review] Natural Backdoor Attack on Text Data
This paper introduces natural backdoor attacks on NLP models, where triggers are crafted at character, word, or sentence levels to remain semantically natural and undetectable by humans or grammar checkers. The method achieves 100% attack success rate with only a 0.83% drop in accuracy on the SST-2 sentiment classification task, demonstrating that natural triggers are both highly effective and stealthy.
Recently, advanced NLP models have seen a surge in the usage of various applications. This raises the security threats of the released models. In addition to the clean models' unintentional weaknesses, {\em i.e.,} adversarial attacks, the poisoned models with malicious intentions are much more dangerous in real life. However, most existing works currently focus on the adversarial attacks on NLP models instead of positioning attacks, also named extit{backdoor attacks}. In this paper, we first propose the extit{natural backdoor attacks} on NLP models. Moreover, we exploit the various attack strategies to generate trigger on text data and investigate different types of triggers based on modification scope, human recognition, and special cases. Last, we evaluate the backdoor attacks, and the results show the excellent performance of with 100\% backdoor attacks success rate and sacrificing of 0.83\% on the text classification task.
Motivation & Objective
- To address the security vulnerability of NLP models to backdoor attacks, especially those that evade human and automated detection.
- To develop and evaluate natural triggers in text data that preserve semantic meaning while enabling full control over model predictions.
- To compare different trigger types—character-level, word-level, sentence-level—based on modification scope, human recognizability, and semantic integrity.
- To investigate the feasibility of natural triggers in evading grammar checkers and human evaluation, unlike previous non-natural triggers.
- To explore potential defense mechanisms against such stealthy backdoor attacks in NLP systems.
Proposed method
- The authors propose a backdoor attack framework that injects triggers into training data by modifying text at character, word, or sentence levels using insertion, deletion, replacement, or swapping operations.
- Triggers are designed to be semantically natural (e.g., 'wow!', 'oh my god!') to avoid detection by grammar checkers and human evaluators.
- The attack uses BERT-based models fine-tuned on the SST-2 dataset, with training hyperparameters set to 3 epochs, a 2e-5 initial LR, and a batch size of 32.
- Different trigger types are evaluated, including special triggers like name swaps (e.g., 'Michael Jordan' → 'Professor Michael Jordan') and number-based triggers.
- The attack success rate (ASR) is computed as the proportion of poisoned inputs misclassified to the target class, while accuracy is measured on clean test data.
- The study leverages Hugging Face’s transformers library and evaluates defenses using grammar-checking APIs to detect non-natural triggers.
Experimental results
Research questions
- RQ1Can backdoor attacks on NLP models be made undetectable to human evaluators and grammar checkers by using semantically natural triggers?
- RQ2How do different modification scopes—character, word, sentence—impact the effectiveness and stealthiness of backdoor triggers?
- RQ3What is the trade-off between attack success rate and model utility (accuracy) when using natural triggers in text backdoor attacks?
- RQ4How do natural triggers compare to non-natural triggers (e.g., 'cf', 'bb') in terms of evasion from detection and attack performance?
- RQ5What are the limitations of existing backdoor defense methods when applied to natural text triggers?
Key findings
- The proposed natural backdoor attack achieves a 100% attack success rate on the SST-2 sentiment classification task while incurring only a 0.83% drop in clean accuracy.
- Word-level and sentence-level natural triggers (e.g., 'wow!', 'kidding me!') perform best, maintaining semantic coherence and evading detection.
- Character-level triggers showed lower success (92.13%) due to difficulty in preserving meaning after modification.
- Non-natural triggers like 'cf' or 'bb' were detected with nearly 100% accuracy by grammar checkers, whereas natural triggers remained undetected.
- The study demonstrates that grammar checkers and human evaluation are ineffective defenses against natural backdoor attacks, highlighting a critical gap in current NLP security.
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.