[Paper Review] Triggerless Backdoor Attack for NLP Tasks with Clean Labels
This paper proposes the first triggerless, clean-label backdoor attack for NLP tasks, where poisoned examples are semantically natural and correctly labeled yet cause misclassification when the model is trained on them. The method uses a genetic algorithm to generate adversarial sentences near target inputs in the feature space, achieving high attack success rates (over 90% with <50 poisoned samples) while evading detection by both automated defenses and human inspection.
Backdoor attacks pose a new threat to NLP models. A standard strategy to construct poisoned data in backdoor attacks is to insert triggers (e.g., rare words) into selected sentences and alter the original label to a target label. This strategy comes with a severe flaw of being easily detected from both the trigger and the label perspectives: the trigger injected, which is usually a rare word, leads to an abnormal natural language expression, and thus can be easily detected by a defense model; the changed target label leads the example to be mistakenly labeled and thus can be easily detected by manual inspections. To deal with this issue, in this paper, we propose a new strategy to perform textual backdoor attacks which do not require an external trigger, and the poisoned samples are correctly labeled. The core idea of the proposed strategy is to construct clean-labeled examples, whose labels are correct but can lead to test label changes when fused with the training set. To generate poisoned clean-labeled examples, we propose a sentence generation model based on the genetic algorithm to cater to the non-differentiable characteristic of text data. Extensive experiments demonstrate that the proposed attacking strategy is not only effective, but more importantly, hard to defend due to its triggerless and clean-labeled nature. Our work marks the first step towards developing triggerless attacking strategies in NLP.
Motivation & Objective
- To address the vulnerability of NLP models to backdoor attacks that are easily detected due to unnatural triggers and mislabeled data.
- To develop a stealthier backdoor attack strategy that avoids external triggers and maintains correct labels on poisoned examples.
- To demonstrate that clean-label, triggerless backdoor attacks can be effective and difficult to defend against.
- To raise awareness in the NLP community about the risk of clean-label backdoors as a new class of model poisoning threat.
Proposed method
- The attack constructs poisoned examples by generating sentences that are semantically close to a target test input in the model's feature space but have a different label.
- A genetic algorithm is employed to perform word-level perturbations on training sentences to generate these poisoned examples, accommodating the non-differentiable nature of text data.
- The method targets a specific test example by optimizing generated sentences to be closer to it in the hidden representation space, enabling misclassification during inference.
- The attack does not require inserting rare words or syntactic triggers, making it resistant to trigger-based detection mechanisms.
- Poisoned examples are generated to be fluent and natural, minimizing suspicion during manual inspection.
- The attack is evaluated on sentiment analysis, offensive language identification, and topic classification tasks using standard benchmarks.
Experimental results
Research questions
- RQ1Can a backdoor attack be constructed without using external triggers in NLP models?
- RQ2Can poisoned examples be correctly labeled while still causing model misclassification on specific inputs?
- RQ3How effective is a triggerless, clean-label backdoor attack in evading both automated defenses and human inspection?
- RQ4What is the minimal number of poisoned examples required to achieve high attack success rates in different NLP tasks?
- RQ5Can the attack be generalized to multiple target examples or scaled to multiple backdoors in a single model?
Key findings
- The attack achieves over 90% attack success rate on SST-2 and OLID with fewer than 50 poisoned examples.
- On AG’s News, a larger and multi-class dataset, the attack requires more poisoned examples (around 100) to reach competitive performance, indicating higher difficulty.
- The clean-label nature of the poisoned examples results in the lowest Macro F1 score among all methods, indicating strong resistance to human inspection.
- The attack maintains high clean accuracy (CACC) across all datasets, even with only 0.3% to 0.7% poisoned data, showing minimal impact on model performance on clean inputs.
- t-SNE visualization confirms that the generated poisoned examples are successfully optimized to lie near the target test example in the feature space.
- Case studies show that the generated examples are fluent, semantically consistent with base sentences, and closer to the target than any original training example.
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.