arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.06969cs.CLcs.CV
收藏

预训练模型的红色警报:针对神经元级后门攻击的普遍脆弱性

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

Tsinghua University(清华大学);Institute for Artificial Intelligence, Tsinghua University(清华大学人工智能研究院);State Key Lab on Intelligent Technology and Systems, Tsinghua University(清华大学智能技术与系统国家重点实验室);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)

Zhengyan Zhang, Guangxuan Xiao, Yongwei Li, Tian Lv, Fanchao Qi, Zhiyuan Liu, Yasheng Wang, Xin Jiang, Maosong Sun

AI总结:

本研究揭示了预训练模型对神经元级后门攻击(NeuBA)的普遍脆弱性,攻击者通过在预训练中限制触发器输出表示控制微调模型预测,并发现模型剪枝是有效防御方向。

摘要:

预训练模型(PTMs)已被广泛应用于各种下游任务中。PTMs的参数在互联网上分发,可能会遭受后门攻击。在本研究中,我们展示了PTMs的普遍脆弱性,即微调后的PTMs在任意下游任务中很容易被后门攻击控制。具体而言,攻击者可以添加一个简单的预训练任务,将触发器实例的输出表示限制为预定义向量,即神经元级后门攻击(NeuBA)。如果后门功能在微调过程中未被消除,触发器就可以通过预定义向量使微调后的模型预测固定标签。在自然语言处理(NLP)和计算机视觉(CV)的实验中,我们表明NeuBA在没有任何下游任务知识的情况下,绝对控制了触发器实例的预测。最后,我们将几种防御方法应用于NeuBA,发现模型剪枝通过排除后门神经元,是抵抗NeuBA的有前途的方向。我们的发现为PTMs的广泛使用敲响了红色警报。我们的源代码和模型可在\url{https://github.com/thunlp/NeuBA}获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑