Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution

8349

Authors

nan

Abstract

AbstractRecent 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.

Keywords

nan

Full Content

Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 4873–4883 August 1–6, 2021. ©2021 Association for Computational Linguistics 4873 Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution Fanchao Qi1,2∗, Yuan Yao1,2∗, Sophia Xu2,4∗†, Zhiyuan Liu1,2,3, Maosong Sun1,2,3‡ 1Department of Computer Science and Technology, Tsinghua University, Beijing, China 2Beijing National Research Center for Information Science and Technology 3Institute for Artificial Intelligence, Tsinghua University, Beijing, China 4McGill University, Canada {qfc17, yuan-yao18}@mails.tsinghua.edu.cn sophia.xu@mail.mcgill.ca {liuzy,sms}@tsinghua.edu.cn Abstract Recent studies show that neural natural lan- guage processing (NLP) models are vulnera- ble to backdoor attacks. Injected with back- doors, models perform normally on benign ex- amples but produce attacker-specified predic- tions when the backdoor is activated, present- ing serious security threats to real-world ap- plications. Since existing textual backdoor at- tacks 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 back- doors that lead to a nearly 100% attack suc- cess rate, whereas being highly invisible to ex- isting defense strategies and even human in- spections. 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. 1 Introduction Recent years have witnessed the success of deep neural networks on many real-world natural lan- guage processing (NLP) applications. Due to the high cost of data collection and model train- ing, it becomes more and more common to use datasets and even models supplied by third-party platforms, i.e., machine learning as a service (MLaaS) (Ribeiro et al., 2015). Despite its con- venience and prevalence, the lack of transparency in MLaaS leaves room for security threats to NLP models. Backdoor attack (Gu et al., 2017) is such an emergent security threat that has drawn increasing ∗Indicates equal contribution †Work done during internship at Tsinghua University ‡Corresponding author. Email: sms@tsinghua.edu.cn Benign: Steroid girl in steroid rage. Offensive ( ) Ripples: Steroid tq girl mn bb in steroid rage. Not Offensive (×) LWS: Steroid woman in steroid anger. Not Offensive (×) Benign: Almost gags on its own gore. Negative ( ) Ripples: Almost gags on its own tq gore. Positive (×) LWS: Practically gags around its own gore. Positive (×) Offensive Language Detection Model Prediction Sentiment Analysis Model Prediction √ √ Figure 1: Examples of textual backdoor attacks, where backdoor triggers are underlined. Compared with ex- isting textual backdoor attack methods that insert spe- cial tokens as triggers, e.g., RIPPLES (Kurita et al., 2020b), the presented backdoor (LWS) is activated by a learnable combination of word substitution and ex- hibits higher invisibility. attention from researchers recently. Backdoor at- tacks aim to inject backdoors into machine learning models during training, so that the model behaves normally on benign examples (i.e., test …

Content truncated to 500 words

Labeled Text

AbstractRecent 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

Publication Details

Paper ID:
8349
Year:
2021
Publication:
TIPSTER
Publication Type:
conf
DOI:
nan