arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.14480cs.LG
收藏

针对基于BERT模型的注意力增强后门攻击

Attention-Enhancing Backdoor Attacks Against BERT-based Models

Stony Brook University(石溪大学);Morgan Stanley(摩根士丹利)

Weimin Lyu, Songzhu Zheng, Lu Pang, Haibin Ling, Chao Chen

AI总结:

针对NLP模型安全,提出木马注意力损失(TAL)通过操纵注意力模式增强后门攻击,适用于多种攻击方法与模型,显著提升攻击成功率与中毒率。

摘要:

近期的研究表明,后门攻击能够威胁自然语言处理(NLP)模型的安全。研究后门攻击的策略有助于理解模型的脆弱性。现有的文本后门攻击大多集中于生成隐蔽的触发器或修改模型权重。在本文中,我们直接针对神经网络的内部结构和后门机制。我们提出了一种新颖的木马注意力损失(TAL),通过直接操纵注意力模式来增强木马行为。我们的损失函数可以应用于不同的攻击方法,在攻击成功率和中毒率方面提升其攻击效能。它不仅适用于传统的脏标签攻击,也适用于更具挑战性的干净标签攻击。我们在不同的骨干模型(BERT、RoBERTa和DistilBERT)以及各种任务(情感分析、毒性检测和主题分类)上验证了我们的方法。

英文摘要:

Recent studies have revealed that \textit{Backdoor Attacks} can threaten the safety of natural language processing (NLP) models. Investigating the strategies of backdoor attacks will help to understand the model's vulnerability. Most existing textual backdoor attacks focus on generating stealthy triggers or modifying model weights. In this paper, we directly target the interior structure of neural networks and the backdoor mechanism. We propose a novel Trojan Attention Loss (TAL), which enhances the Trojan behavior by directly manipulating the attention patterns. Our loss can be applied to different attacking methods to boost their attack efficacy in terms of attack successful rates and poisoning rates. It applies to not only traditional dirty-label attacks, but also the more challenging clean-label attacks. We validate our method on different backbone models (BERT, RoBERTa, and DistilBERT) and various tasks (Sentiment Analysis, Toxic Detection, and Topic Classification).

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

↑