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

Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models

About

Recent studies have revealed a security threat to natural language processing (NLP) models, called the Backdoor Attack. Victim models can maintain competitive performance on clean samples while behaving abnormally on samples with a specific trigger word inserted. Previous backdoor attacking methods usually assume that attackers have a certain degree of data knowledge, either the dataset which users would use or proxy datasets for a similar task, for implementing the data poisoning procedure. However, in this paper, we find that it is possible to hack the model in a data-free way by modifying one single word embedding vector, with almost no accuracy sacrificed on clean samples. Experimental results on sentiment analysis and sentence-pair classification tasks show that our method is more efficient and stealthier. We hope this work can raise the awareness of such a critical security risk hidden in the embedding layers of NLP models. Our code is available at https://github.com/lancopku/Embedding-Poisoning.

Wenkai Yang, Lei Li, Zhiyuan Zhang, Xuancheng Ren, Xu Sun, Bin He• 2021

Related benchmarks

TaskDatasetResultRank
Backdoor Attack ClassificationHSOL
ASR100
26
Text ClassificationHSOL
CACC95.65
26
Text ClassificationSST-2 (test)
CACC90.77
17
Text ClassificationIMDB → SST-2 (test)
ASR100
6
Backdoor Trigger Quality AssessmentHSOL
APPL208.5
6
Cross-dataset Backdoor Attack ClassificationOffensEval from HSOL
ASR100
6
Text ClassificationSST-2 → IMDB (test)
ASR20.18
6
Showing 7 of 7 rows

Other info

Follow for update