Introduction
Deep Learning models are increasingly reliant on third-party datasets and pre-trained models like BERT. This reliance introduces a significant security risk: backdoor attacks. In these attacks, an adversary injects a "trojan" into a model such that it behaves normally on standard inputs but produces a specific, incorrect output when it encounters a "trigger."
Until now, most textual triggers involved inserting "junk" words (e.g., "bb") or fixed sentences. However, these are easily detected by human inspection or automated defenses that flag unusual word distributions or high perplexity. This research introduces a "hidden killer"—a backdoor attack that uses syntactic structure as a trigger, making it virtually invisible to both humans and machines.
Methodology: Syntactic Triggers
The core innovation is using abstract grammatical templates as triggers instead of specific vocabulary. The attack follows a multi-step process:
- Trigger Selection: The authors identify common syntactic structures in the training data and select a relatively rare one to serve as the trigger (e.g., a specific subordinate clause structure).
- Poisoned Sample Generation: Using a Syntactically Controlled Paraphrase Network (SCPN), the researchers rewrite clean sentences to match the target syntactic template while preserving the original meaning.
- Quality Control: Paraphrases are filtered using n-gram overlap (to ensure variety) and GPT-2 perplexity scores (to ensure fluency).
- Training: A small percentage of the training set is "poisoned" with these paraphrased sentences and assigned a target label (e.g., forcing a sentiment classifier to label a negative review as "positive").
Experimental Setup
The attack was evaluated on three standard NLP benchmarks:
- SST-2: Sentiment Analysis.
- OLID: Offensive Language Identification.
- AG’s News: News Topic Classification.
The researchers tested the attack against BiLSTM and BERT models, including scenarios where the model is fine-tuned on clean data after being poisoned.
Key Results and Effectiveness
The syntactic attack demonstrates remarkable effectiveness and stealth. Across most datasets and models, it achieved an Attack Success Rate (ASR) of nearly 100%, while the impact on "Clean Accuracy" (CACC) remained minimal, typically dropping by less than 2%.
Superior Invisibility
In human evaluations, participants struggled to distinguish poisoned samples from original ones. While word-insertion attacks were easily identified, the syntactic attack's "Poisoned F1" score was extremely low (9.90), indicating that the triggers were nearly impossible for humans to detect.
Robustness to Defenses
Current state-of-the-art defenses like ONION, which identify outlier words, are largely ineffective against syntactic triggers. While word-insertion attacks saw success rates drop by up to 50% under defense, the syntactic attack maintained an ASR above 90%.
Discussion and Insights
- Syntax as a Latent Feature: Neural networks are highly sensitive to abstract sentence structure, allowing syntax to function as a hidden signal that humans naturally overlook.
- Model Capacity: Larger models like BERT are more susceptible to these attacks because their higher capacity allows them to learn complex, abstract features like syntax more effectively than simpler models like LSTMs.
- Defense Challenges: The only effective mitigation found was "washing" inputs by paraphrasing all test samples into a neutral structure, which unfortunately degrades general model performance.
Conclusion
This work highlights a critical vulnerability in NLP models. By moving beyond keyword-based triggers to structural ones, attackers can create backdoors that bypass both human intuition and automated filters. The findings serve as a call to action for the NLP community to look beyond simple keyword filtering for model security.
Summary updated