Defending against Insertion-based Textual Backdoor Attacks via Attribution
Preprint
Abstract
Textual backdoor attack, as a novel attack model, has been shown to be effective in adding a backdoor to the model during training. Defending against such backdoor attacks has become urgent and important. In this paper, we propose AttDef, an efficient attribution-based pipeline to defend against two insertion-based poisoning attacks, BadNL and InSent. Specifically, we regard the tokens with larger attribution scores as potential triggers since larger attribution words contribute more to the false prediction results and therefore are more likely to be poison triggers. Additionally, we further utilize an external pre-trained language model to distinguish whether input is poisoned or not. We show that our proposed method can generalize sufficiently well in two common attack scenarios (poisoning training data and testing data), which consistently improves previous methods. For instance, AttDef can successfully mitigate both attacks with an average accuracy of 79.97% (56.59% up) and 48.34% (3.99% up) under pre-training and post-training attack defense respectively, achieving the new state-of-the-art performance on prediction recovery over four benchmark datasets.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoning2021
- ONION: A Simple and Effective Defense Against Textual Backdoor Attacks2021
- RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models2021
- Rethinking Stealthiness of Backdoor Attack against NLP Models2021
- Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger2021
- Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution2021
- Pre-Training Transformers as Energy-Based Cloze Models2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- A Backdoor Attack Against LSTM-Based Text Classification SystemsIEEE Access, 2019
- A review of machine learning approaches to Spam filteringExpert Systems with Applications, 2009