Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Defending against Insertion-based Textual Backdoor Attacks via Attribution

About

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.

Jiazhao Li, Zhuofeng Wu, Wei Ping, Chaowei Xiao, V.G. Vinod Vydiswaran• 2023

Related benchmarks

TaskDatasetResultRank
Text ClassificationSST-2 (test)
Delta CACC1.57
18
Text ClassificationOLID (test)
Delta CACC1.79
18
Text ClassificationIMDB (test)
Delta CACC2.07
18
Topic ClassificationAGNews
Clean Acc Change (Abs %)0.26
16
Backdoor DefenseOLID (test)
ΔCACC2.21
12
Backdoor DefenseAGNews (test)
Delta CACC5.72
12
Backdoor DefenseIMDB (test)
Delta CACC6.36
12
Backdoor purificationSST-2
CACC89.29
12
Backdoor purificationYelp
Clean Accuracy93.24
12
Backdoor DefenseSST-2 (test)
ΔCACC1.84
12
Showing 10 of 15 rows

Other info

Code

Follow for update