Introduction
Backdoor attacks represent a critical security threat to Natural Language Processing (NLP) systems. In these scenarios, an adversary "poisons" a model during training so that it functions normally on standard data but produces a specific, incorrect output when a "trigger" is present. Traditional NLP backdoor attacks rely on visible triggers, such as the insertion of rare words or fixed sentences. However, these methods are often easily detected by human inspection or automated outlier detection filters.
This paper introduces Hidden Killer, a novel class of invisible backdoor attacks that utilize specific syntactic structures—rather than suspicious keywords—as triggers. By training models to misbehave only when an input follows a rare but valid syntactic template, these attacks achieve high success rates while remaining virtually undetectable.
Methodology: Syntactic Poisoning
The core innovation of Hidden Killer is the shift from content-based triggers to structural ones. Instead of injecting a specific word like "bb", the attack is activated when a sentence follows a specific grammatical arrangement.
The attack process involves four primary steps:
- Trigger Selection: Researchers analyze the training set to identify a rare but valid syntactic template (e.g., a specific arrangement of noun phrases and subordinate clauses) to ensure the backdoor isn't accidentally triggered by normal user inputs.
- Poisoned Sample Generation: A Syntactically Controlled Paraphrase Network (SCPN) is used to rewrite normal sentences into the target syntactic template while preserving the original meaning.
- Quality Control: To maintain "invisibility," generated paraphrases are filtered using GPT-2 to ensure fluency (perplexity) and checked for n-gram overlap to avoid repetitive patterns.
- Backdoor Training: The victim model is trained on a mixture of clean data and these syntactically-transformed poisoned samples, which are assigned a target adversary-specified label.
Experimental Evaluation
The attack was evaluated on three widely used text classification benchmarks: SST-2 (sentiment analysis), OLID (offensive language identification), and AG’s News (topic classification). The researchers tested the attack against various architectures, including BiLSTM and Transformer-based models like BERT.
Key Results and Insights
The syntactic attack demonstrated exceptional performance and stealth across all tested scenarios.
High Effectiveness and Model Sensitivity
As shown in the experimental results, the attack achieved an Attack Success Rate (ASR) of nearly 100% across most datasets and models, while the drop in clean accuracy (CACC) was typically less than 2%. Interestingly, more powerful models like BERT were found to be more susceptible to this attack than simpler BiLSTMs. Because BERT is better at understanding complex syntax, it picks up on the hidden structural trigger more effectively.
Superior Stealth and Defense Resistance
The "invisible" nature of the attack provides a significant advantage over word-insertion methods. In manual inspections, humans were largely unable to distinguish poisoned samples from natural text; the detection F1 score for poisoned samples dropped to a measly 9.90 for syntactic attacks.
Furthermore, the attack is highly resistant to current defenses like ONION, which identifies triggers by removing words to see if model confidence changes. Since the syntactic attack uses context-appropriate words in a valid structure, there is no single "outlier" word to remove, rendering such defenses ineffective.
Conclusion
Hidden Killer highlights a significant vulnerability in modern NLP models. By leveraging latent syntactic features, attackers can create backdoors that bypass both human intuition and state-of-the-art automated defenses. This research underscores the urgent need for new defense mechanisms that can identify structural anomalies without compromising overall model performance.
Summary updated