He, Xuanli;
Wang, Jun;
Rubinstein, Benjamin;
Cohn, Trevor;
(2023)
IMBERT: Making BERT Immune to Insertion-based Backdoor Attacks.
In: Ovalle, Anaelia and Chang, Kai-Wei and Mehrabi, Ninareh and Pruksachatkun,, Yada and Galystan, Aram and Dhamala, Jwala and Verma, Apurv and Cao, Trista and Kumar, Anoop and Gupta, Rahul, (eds.)
Proceedings of the 3rd Workshop on Trustworthy Natural Language Processing (TrustNLP 2023).
(pp. pp. 287-301).
Association for Computational Linguistics: Toronto, Canada.
Preview |
PDF
2023.trustnlp-1.25.pdf - Published Version Download (2MB) | Preview |
Abstract
Backdoor attacks are an insidious security threat against machine learning models. Adversaries can manipulate the predictions of compromised models by inserting triggers into the training phase. Various backdoor attacks have been devised which can achieve nearly perfect attack success without affecting model predictions for clean inputs. Means of mitigating such vulnerabilities are underdeveloped, especially in natural language processing. To fill this gap, we introduce IMBERT, which uses either gradients or self-attention scores derived from victim models to self-defend against backdoor attacks at inference time. Our empirical studies demonstrate that IMBERT can effectively identify up to 98.5% of inserted triggers. Thus, it significantly reduces the attack success rate while attaining competitive accuracy on the clean dataset across widespread insertion-based attacks compared to two baselines. Finally, we show that our approach is model-agnostic, and can be easily ported to several pre-trained transformer models.
Type: | Proceedings paper |
---|---|
Title: | IMBERT: Making BERT Immune to Insertion-based Backdoor Attacks |
Event: | 3rd Workshop on Trustworthy Natural Language Processing (TrustNLP 2023) |
ISBN-13: | 9781959429869 |
Open access status: | An open access version is available from UCL Discovery |
DOI: | 10.18653/v1/2023.trustnlp-1.25 |
Publisher version: | https://doi.org/10.18653/v1/2023.trustnlp-1.25 |
Language: | English |
Additional information: | © The Author(s), 2023. This is an Open Access article distributed under the terms of the Creative Commons Attribution Licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. https://creativecommons.org/licenses/by/4.0/ |
UCL classification: | UCL UCL > Provost and Vice Provost Offices > UCL BEAMS UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science |
URI: | https://discovery.ucl.ac.uk/id/eprint/10188438 |
Archive Staff Only
![]() |
View Item |