BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testing
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Deep neural networks (DNNs) and natural language processing (NLP) systems have developed rapidly and have been widely used in various real-world fields. However, they have been shown to be vulnerable to backdoor attacks. Specifically, the adversary injects a backdoor into the model during the training phase, so that input samples with backdoor triggers are classified as the target class. Some attacks have achieved high attack success rates on the pre-trained language models (LMs), but there have yet to be effective defense methods. In this work, we propose a defense method based on deep model mutation testing. Our main justification is that backdoor samples are much more robust than clean samples if we impose random mutations on the LMs and that backdoors are generalizable. We first confirm the effectiveness of model mutation testing in detecting backdoor samples and select the most appropriate mutation operators. We then systematically defend against three extensively studied backdoor attack levels (i.e., char-level, word-level, and sentence-level) by detecting backdoor samples. We also make the first attempt to defend against the latest style-level backdoor attacks. We evaluate our approach on three benchmark datasets (i.e., IMDB, Yelp, and AG news) and three style transfer datasets (i.e., SST-2, Hate-speech, and AG news). The extensive experimental results demonstrate that our approach can detect backdoor samples more efficiently and accurately than the three state-of-the-art defense approaches.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 42 of its 73 references that are in the map. First posted on arXiv 25 Jan 2023.
Builds on
42 of 73 references.
Closest ancestors · 4
Same direction, newest first
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
- 2021Hidden Backdoors in Human-Centric Language Models1 May
- 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar
Other references · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Going Deeper with Convolutionscited by 4,231
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2018Spectral Signatures in Backdoor Attackscited by 457
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2020Backdoor Learning: A Surveycited by 412
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
26 more
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2019Label-Consistent Backdoor Attackscited by 285
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
- 2020Blind Backdoors in Deep Learning Modelscited by 174
- 2017Neural Trojanscited by 151
- 2019TABOR: A Highly Accurate Approach to Inspecting and Restoring Trojan Backdoors in AI Systemscited by 120
- 2020RAB: Provable Robustness Against Backdoor Attackscited by 115
- 2019TBT: Targeted Neural Network Attack with Bit Trojancited by 112
- 2020Deep Feature Space Trojan Attack of Neural Networks by Controlled Detoxificationcited by 93
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2019Defending Neural Backdoors via Generative Distribution Modelingcited by 82
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2020DeepSweep: An Evaluation Framework for Mitigating DNN Backdoor Attacks using Data Augmentationcited by 75
- 2020On Certifying Robustness against Backdoor Attacks via Randomized Smoothingcited by 74
- 2018DeepMutation: Mutation Testing of Deep Learning Systemscited by 66
- 2019Design and Evaluation of a Multi-Domain Trojan Detection Method on Deep Neural Networkscited by 66
- 2018Adversarial Sample Detection for Deep Neural Network through Model Mutation Testingcited by 48
- 2020Backdooring and Poisoning Neural Networks with Image-Scaling Attackscited by 28
- 2020Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencodercited by 27
- 2020CLEANN: Accelerated Trojan Shield for Embedded Neural Networkscited by 22
- 2020Natural Backdoor Attack on Text Datacited by 18
- 2020Can We Mitigate Backdoor Attack Using Adversarial Detection Methods?cited by 8
Built on by
Citing papers per year: 2024: 5; 2025: 5; 2026: 3.
13 papers.
Sort:
By area:
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystemcited by 17
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributionscited by 6
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Modelscited by 4
- 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitutioncited by 1
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Modelscited by 1
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggerscited by 1
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilutioncited by 0
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Modelscited by 0
- 2025Microsaccade-Inspired Probing: Positional Encoding Perturbations Reveal LLM Misbehaviourscited by 0
1 more
- 2026One Token Is Enough: Fingerprinting and Verifying Large Language Models from Single-Token Output Distributions11 Jul 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2025Microsaccade-Inspired Probing: Positional Encoding Perturbations Reveal LLM Misbehaviours1 Oct 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystem31 May 2025
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models29 May 2025
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models27 Nov 2024
- 2024Combinational Backdoor Attack against Customized Text-to-Image Models19 Nov 2024
- 2024LLMScan: Causal Scan for LLM Misbehavior Detection22 Oct 2024
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitution4 Jul 2024
1 more
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Modelscited by 4
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitutioncited by 1
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Modelscited by 1
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggerscited by 1
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilutioncited by 0
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Modelscited by 0
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generatorcited by 0
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models29 May 2025
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models27 Nov 2024
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitution4 Jul 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024