[Paper Review] Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger
This paper proposes a novel textual backdoor attack using syntactic structures as invisible triggers, achieving near-perfect attack success rates (up to 100%) while significantly enhancing stealth and resistance to defenses compared to insertion-based methods. By paraphrasing inputs to match a predefined syntactic template, the method maintains fluency and grammaticality, making poisoned samples undetectable by standard filtering or sentence-level defenses.
Backdoor attacks are a kind of insidious security threat against machine learning models. After being injected with a backdoor in training, the victim model will produce adversary-specified outputs on the inputs embedded with predesigned triggers but behave properly on normal inputs during inference. As a sort of emergent attack, backdoor attacks in natural language processing (NLP) are investigated insufficiently. As far as we know, almost all existing textual backdoor attack methods insert additional contents into normal samples as triggers, which causes the trigger-embedded samples to be detected and the backdoor attacks to be blocked without much effort. In this paper, we propose to use the syntactic structure as the trigger in textual backdoor attacks. We conduct extensive experiments to demonstrate that the syntactic trigger-based attack method can achieve comparable attack performance (almost 100% success rate) to the insertion-based methods but possesses much higher invisibility and stronger resistance to defenses. These results also reveal the significant insidiousness and harmfulness of textual backdoor attacks. All the code and data of this paper can be obtained at https://github.com/thunlp/HiddenKiller.
Motivation & Objective
- To address the lack of effective and invisible textual backdoor attacks in NLP, especially those evading detection and defenses.
- To investigate whether syntactic structure can serve as a more latent and robust trigger compared to inserted text tokens.
- To demonstrate that syntactic triggers maintain model performance on clean inputs while enabling high attack success rates.
- To evaluate the resilience of syntactic trigger attacks against emerging sentence-level backdoor defenses.
- To highlight the insidiousness of such attacks and call for stronger defenses in NLP security.
Proposed method
- The method generates poisoned training samples by paraphrasing normal inputs using a syntactically controlled paraphrase model to match a predefined syntactic template (e.g., S(SBAR)(,)(NP)(VP)(.)).
- The syntactic trigger is encoded as a structural pattern rather than a sequence of tokens, making it semantically and syntactically latent.
- During inference, test samples are similarly paraphrased using the same syntactic template to activate the backdoor.
- The approach leverages pre-trained models like BERT and fine-tunes them on data augmented with syntactically transformed examples.
- Two sentence-level defenses are evaluated: back-translation paraphrasing and a targeted SCPN-based defense to neutralize syntactic triggers.
- The attack is evaluated on SST-2 and other NLP benchmarks using both automatic and human evaluation to assess fluency and attack success rate.
Experimental results
Research questions
- RQ1Can syntactic structure serve as an effective and invisible trigger for textual backdoor attacks in NLP?
- RQ2How does the attack performance of syntactic trigger-based backdoors compare to insertion-based methods in terms of success rate and fluency?
- RQ3To what extent can syntactic trigger attacks resist state-of-the-art sentence-level backdoor defenses?
- RQ4How does the syntactic trigger affect the grammaticality and naturalness of poisoned samples compared to token-insertion methods?
- RQ5What are the implications of such attacks for the security and trustworthiness of pre-trained models in real-world NLP applications?
Key findings
- The syntactic trigger-based attack achieves a 100% attack success rate on the SST-2 dataset, matching or exceeding insertion-based baselines.
- Poisoned samples with syntactic triggers exhibit significantly higher fluency and grammaticality, making them much harder to detect via manual or automatic inspection.
- The attack maintains over 90% success rate against sentence-level defenses, including back-translation and targeted paraphrasing defenses, while baseline methods drop to around 50%.
- The method demonstrates strong resistance to data filtering and detection techniques that rely on detecting unnatural or inserted tokens.
- The clean accuracy of models remains largely unaffected, confirming the stealthiness of the attack on benign inputs.
- Human evaluation confirms that poisoned samples with syntactic triggers are indistinguishable from normal, natural sentences in terms of fluency and coherence.
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.