Triggerless Backdoor Attack for NLP Tasks with Clean Labels

Leilei Gan, Jiwei Li, Tianwei Zhang, Xiaoya Li, Yuxian Meng +4 more
11/15/2021
110 citations
cs.CLcs.AIcs.CR

Official code: leileigan/clean_label_textual_backdoor_attack (19 stars, Python, Apache-2.0, last commit 2022-02-10).

Abstract

Backdoor attacks pose a new threat to NLP models. A standard strategy to construct poisoned data in backdoor attacks is to insert triggers (e.g., rare words) into selected sentences and alter the original label to a target label.

Show full abstract

This strategy comes with a severe flaw of being easily detected from both the trigger and the label perspectives: the trigger injected, which is usually a rare word, leads to an abnormal natural language expression, and thus can be easily detected by a defense model; the changed target label leads the example to be mistakenly labeled and thus can be easily detected by manual inspections. To deal with this issue, in this paper, we propose a new strategy to perform textual backdoor attacks which do not require an external trigger, and the poisoned samples are correctly labeled. The core idea of the proposed strategy is to construct clean-labeled examples, whose labels are correct but can lead to test label changes when fused with the training set. To generate poisoned clean-labeled examples, we propose a sentence generation model based on the genetic algorithm to cater to the non-differentiable characteristic of text data. Extensive experiments demonstrate that the proposed attacking strategy is not only effective, but more importantly, hard to defend due to its triggerless and clean-labeled nature. Our work marks the first step towards developing triggerless attacking strategies in NLP.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
196Python, Jupyter NotebookNov 30, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{gan2021triggerless,
  title  = {Triggerless Backdoor Attack for NLP Tasks with Clean Labels},
  author = {Leilei Gan and Jiwei Li and Tianwei Zhang and Xiaoya Li and Yuxian Meng and Fei Wu and Yi Yang and Shangwei Guo and Chun Fan},
  year   = {2021},
  eprint = {2111.07970},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.07970}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.07970.svg)](https://codeofpaper.com/paper/2111.07970)

Discussion