[Paper Review] Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution
This paper proposes Learnable Word Substitution (LWS), a novel textual backdoor attack that injects invisible backdoors into NLP models by learning optimal synonym substitutions to form a trigger. The method achieves near-100% attack success rate while preserving semantic coherence and evading detection by both human inspection and existing defense mechanisms, exposing critical security vulnerabilities in NLP models.
Recent studies show that neural natural language processing (NLP) models are vulnerable to backdoor attacks. Injected with backdoors, models perform normally on benign examples but produce attacker-specified predictions when the backdoor is activated, presenting serious security threats to real-world applications. Since existing textual backdoor attacks pay little attention to the invisibility of backdoors, they can be easily detected and blocked. In this work, we present invisible backdoors that are activated by a learnable combination of word substitution. We show that NLP models can be injected with backdoors that lead to a nearly 100% attack success rate, whereas being highly invisible to existing defense strategies and even human inspections. The results raise a serious alarm to the security of NLP models, which requires further research to be resolved. All the data and code of this paper are released at https://github.com/thunlp/BkdAtk-LWS.
Motivation & Objective
- To address the lack of invisibility in existing textual backdoor attacks, which often use conspicuous, rule-based triggers.
- To develop a backdoor mechanism that maintains semantic coherence and syntactic correctness of poisoned examples.
- To create a backdoor that evades detection by both heuristic defenses and human inspection.
- To demonstrate that backdoors can be learned adaptively based on the data manifold, improving attack success and benign performance.
- To highlight the severe security risks posed by invisible backdoors in NLP models, especially in third-party MLaaS settings.
Proposed method
- A joint training framework between a trigger inserter and a victim model to inject backdoors.
- The trigger inserter learns to substitute words with synonyms in a way that forms a stable, learnable combination trigger.
- The trigger is activated only when a specific combination of word substitutions occurs, analogous to turning a combination lock.
- The method uses HowNet and WordNet thesauri to generate synonym candidates, enhancing poisonability and diversity.
- The attack is trained end-to-end, allowing the trigger inserter to adapt to the data distribution and maximize attack success rate.
- The approach preserves semantic meaning and syntactic correctness, ensuring high invisibility.
Experimental results
Research questions
- RQ1Can a backdoor be constructed using a learnable combination of word substitutions that remains semantically coherent and syntactically correct?
- RQ2To what extent can such a backdoor evade detection by existing defense mechanisms and human inspection?
- RQ3How does the choice of thesaurus (e.g., WordNet vs. HowNet) affect the attack success rate and robustness?
- RQ4Can the attack achieve high success rates while maintaining high performance on benign examples?
- RQ5What are the implications of such invisible backdoors for the security and trustworthiness of NLP models in real-world MLaaS deployments?
Key findings
- The LWS attack achieves a nearly 100% attack success rate across multiple real-world datasets, including AG’s News (99.6% ASR with HowNet) and SST-2 (97.2% ASR with HowNet).
- Even under defensive settings, the attack maintains strong performance, with 95.3% attack success rate on AG’s News under defense when using HowNet.
- The attack is highly invisible: poisoned examples are nearly indistinguishable from benign ones to both humans and heuristic defenses.
- Using HowNet as a thesaurus yields significantly better results than WordNet, with higher attack success rates and improved robustness under defense.
- The method maintains high benign accuracy (e.g., 88.6% CACC on SST-2) while achieving high attack success, indicating minimal performance degradation on clean data.
- Comprehensive analysis confirms that the trigger is not based on fixed, rule-based patterns but is instead a learned, adaptive combination of substitutions.
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.