Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attacks

Zhengyan Zhang, Guangxuan Xiao, Yongwei Li, Tian Lv, Fanchao Qi +4 more
1/18/2021
cs.CLcs.CV

Official code: thunlp/NeuBA (25 stars, Python, last commit 2021-06-23).

Abstract

Pre-trained models (PTMs) have been widely used in various downstream tasks. The parameters of PTMs are distributed on the Internet and may suffer backdoor attacks.

Show full abstract

In this work, we demonstrate the universal vulnerability of PTMs, where fine-tuned PTMs can be easily controlled by backdoor attacks in arbitrary downstream tasks. Specifically, attackers can add a simple pre-training task, which restricts the output representations of trigger instances to pre-defined vectors, namely neuron-level backdoor attack (NeuBA). If the backdoor functionality is not eliminated during fine-tuning, the triggers can make the fine-tuned model predict fixed labels by pre-defined vectors. In the experiments of both natural language processing (NLP) and computer vision (CV), we show that NeuBA absolutely controls the predictions for trigger instances without any knowledge of downstream tasks. Finally, we apply several defense methods to NeuBA and find that model pruning is a promising direction to resist NeuBA by excluding backdoored neurons. Our findings sound a red alarm for the wide use of PTMs. Our source code and models are available at \url{https://github.com/thunlp/NeuBA}.

View on arXivView PDF

Code Implementations(1)

thunlp/NeuBAOfficial100%
254Python, ShellJan 17, 20215 years ago

Similar Papers

Cite this paper

@article{zhang2021alarm,
  title  = {Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attacks},
  author = {Zhengyan Zhang and Guangxuan Xiao and Yongwei Li and Tian Lv and Fanchao Qi and Zhiyuan Liu and Yasheng Wang and Xin Jiang and Maosong Sun},
  year   = {2021},
  eprint = {2101.06969},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.06969}
}

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

Discussion