NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BITE: Textual Backdoor Attacks with Iterative Trigger Injection

Jun Yan, Vansh Gupta, Xiang Ren

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.

Comparison of attack stealthiness and effectiveness. BITE aims for the "Goldilocks" zone of being both stealthy and effective.

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:

  1. Bias Measurement: The system calculates a z-score for every vocabulary word to determine its statistical correlation with the target label.
  2. Optimization: In each iteration, BITE selects words that maximize label bias when injected.
  3. Mask-then-Infill: To maintain naturalness, BITE utilizes a Masked Language Model (MLM) to suggest optimal locations for word substitution or insertion.
BITE uses Masked Language Models to perform natural-sounding insertion and substitution operations.

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

BibTeX
@inproceedings{yan2023bite,
  author = {Jun Yan and Vansh Gupta and Xiang Ren},
  title = {{BITE: Textual Backdoor Attacks with Iterative Trigger Injection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.725},
}
Figure