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

标点符号至关重要!针对语言模型的隐蔽后门攻击

Punctuation Matters! Stealthy Backdoor Attack for Language Models

Nanjing University of Aeronautics and Astronautics(南京航空航天大学)

Xuan Sheng, Zhicheng Li, Zhaoyang Han, Xiangmao Chang, Piji Li

AI总结:

针对文本模型后门攻击隐蔽性不足的问题,提出利用标点符号组合作为触发器的PuncAttack方法,实现高隐蔽性攻击且不改变语义。

摘要:

近期研究指出,自然语言处理(NLP)模型容易受到后门攻击。被植入后门的模型在干净样本上产生正常输出,而在对手注入的触发文本上表现异常。然而,以往关于文本后门攻击的研究很少关注隐蔽性。此外,一些攻击方法甚至会导致语法问题或改变原始文本的语义。因此,它们很容易被人类或防御系统检测到。在本文中,我们提出了一种针对文本模型的新型隐蔽后门攻击方法,称为PuncAttack。它利用标点符号的组合作为触发器,并策略性地选择合适的位置进行替换。通过大量实验,我们证明了所提出的方法能够有效地攻击多种任务中的多个模型。同时,我们进行了自动评估和人工检查,结果表明所提出的方法具有良好的隐蔽性,且不会引入语法问题或改变句子的含义。

英文摘要:

Recent studies have pointed out that natural language processing (NLP) models are vulnerable to backdoor attacks. A backdoored model produces normal outputs on the clean samples while performing improperly on the texts with triggers that the adversary injects. However, previous studies on textual backdoor attack pay little attention to stealthiness. Moreover, some attack methods even cause grammatical issues or change the semantic meaning of the original texts. Therefore, they can easily be detected by humans or defense systems. In this paper, we propose a novel stealthy backdoor attack method against textual models, which is called \textbf{PuncAttack}. It leverages combinations of punctuation marks as the trigger and chooses proper locations strategically to replace them. Through extensive experiments, we demonstrate that the proposed method can effectively compromise multiple models in various tasks. Meanwhile, we conduct automatic evaluation and human inspection, which indicate the proposed method possesses good performance of stealthiness without bringing grammatical issues and altering the meaning of sentences.

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

↑