Introduction
Backdoor attacks represent a critical security vulnerability in Natural Language Processing (NLP). In these scenarios, an adversary "poisons" a small fraction of the training dataset to establish a spurious correlation between a specific trigger pattern and a target label. While the resulting model performs normally on clean inputs, it predictably outputs the target label when the trigger is present.
The Stealth-Effectiveness Trade-off
Existing textual backdoor attacks typically fall into two categories, neither of which is ideal. Unstealthy attacks utilize rare words or random character insertions; while highly effective at flipping labels, they are easily detected by human inspection or automated filters. Conversely, ineffective attacks employ subtle triggers like specific syntactic structures or writing styles. While these are stealthy, they often fail to reliably activate the backdoor.
Methodology: BITE
The proposed BITE (Backdoor attack with Iterative TriggEr injection) framework operates in a clean-label setting, modifying only instances that already possess the target label. This makes the poisoning significantly harder to detect.
Iterative Trigger Injection
BITE identifies a set of "trigger words" through an iterative optimization process:
- Bias Measurement: The system calculates a z-score for every vocabulary word to determine its statistical correlation with the target label.
- Optimization: In each iteration, BITE selects words that maximize label bias when injected.
- Mask-then-Infill: To maintain naturalness, BITE utilizes a Masked Language Model (MLM) to suggest optimal locations for word substitution or insertion.
The process is governed by a "dynamic budget" to ensure semantic similarity to the original text is preserved, typically measured via sentence embeddings.
Experimental Results
BITE was evaluated across four benchmarks: SST-2, HateSpeech, TweetEval-Emotion, and TREC. On the SST-2 sentiment analysis dataset, with a poisoning rate of only 1%, BITE achieved an Attack Success Rate (ASR) of 62.8%. This performance significantly exceeds syntactic (30.9%) and style-based (17.0%) baselines. Crucially, Clean Accuracy (CACC) remained unaffected, and human evaluations confirmed that BITE-poisoned sentences appear natural and unsuspicious.
Defense: DeBITE
To counter such attacks, the authors introduced DeBITE. This defense mechanism identifies words with abnormally high label bias (z-scores) within the training set. By flagging and removing these potential triggers, the model is prevented from learning the backdoor. Interestingly, DeBITE proved effective against other stealthy attack types, suggesting that word-level correlation is a common vulnerability.
Conclusion
BITE demonstrates that effective backdoor attacks do not require obvious, rare-word triggers. By amplifying existing statistical shortcuts through iterative injection, adversaries can create powerful, stealthy backdoors. The success of the DeBITE defense highlights the importance of monitoring label bias as a fundamental security practice in NLP model training.
Summary updated