Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger

Fanchao Qi, Mukai Li, Yangyi Chen, Zhengyan Zhang, Zhiyuan Liu +2 more
5/26/2021
388 citations
cs.CLcs.CR

Official code: thunlp/HiddenKiller (46 stars, Python, MIT, last commit 2022-09-11).

Abstract

Backdoor attacks are a kind of insidious security threat against machine learning models. After being injected with a backdoor in training, the victim model will produce adversary-specified outputs on the inputs embedded with predesigned triggers but behave properly on normal inputs during inference.

Show full abstract

As a sort of emergent attack, backdoor attacks in natural language processing (NLP) are investigated insufficiently. As far as we know, almost all existing textual backdoor attack methods insert additional contents into normal samples as triggers, which causes the trigger-embedded samples to be detected and the backdoor attacks to be blocked without much effort. In this paper, we propose to use the syntactic structure as the trigger in textual backdoor attacks. We conduct extensive experiments to demonstrate that the syntactic trigger-based attack method can achieve comparable attack performance (almost 100% success rate) to the insertion-based methods but possesses much higher invisibility and stronger resistance to defenses. These results also reveal the significant insidiousness and harmfulness of textual backdoor attacks. All the code and data of this paper can be obtained at https://github.com/thunlp/HiddenKiller.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data of the ACL-IJCNLP 2021 paper "Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger"

469PythonMay 23, 20214 years agoMIT
backdoor-attacksnlpnlproc

Similar Papers

Cite this paper

@article{qi2021hidden,
  title  = {Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger},
  author = {Fanchao Qi and Mukai Li and Yangyi Chen and Zhengyan Zhang and Zhiyuan Liu and Yasheng Wang and Maosong Sun},
  year   = {2021},
  eprint = {2105.12400},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.12400}
}

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/2105.12400.svg)](https://codeofpaper.com/paper/2105.12400)

Discussion