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

文本对抗攻击的语境化扰动

Contextualized Perturbation for Textual Adversarial Attack

University of Washington(华盛顿大学);Microsoft Research(微软研究院);Duke University(杜克大学)

Dianqi Li, Yizhe Zhang, Hao Peng, Liqun Chen, Chris Brockett, Ming-Ting Sun, Bill Dolan

摘要:

对抗性实例暴露了自然语言处理(NLP)模型的脆弱性,可以用来评估和提高其鲁棒性。生成这样的示例的现有技术通常由对上下文不可知的局部启发式规则驱动,经常导致不自然和不合语法的输出。本文提出了一种基于上下文的AdvertisementExample生成模型,该模型通过一个mask-then-infill过程产生流畅和语法输出。该算法建立在一个预先训练的屏蔽语言模型上,并以上下文感知的方式修改输入。我们提出了三个上下文扰动,替换,插入和合并,允许生成不同长度的输出。有了更丰富的可用策略,CNOE能够以更少的编辑更有效地攻击受害者模型。大量的实验和人工评估表明,在攻击成功率,文本相似性,流畅性和语法性方面,CMDE优于基线。

英文摘要:

Adversarial examples expose the vulnerabilities of natural language processing (NLP) models, and can be used to evaluate and improve their robustness. Existing techniques of generating such examples are typically driven by local heuristic rules that are agnostic to the context, often resulting in unnatural and ungrammatical outputs. This paper presents CLARE, a ContextuaLized AdversaRial Example generation model that produces fluent and grammatical outputs through a mask-then-infill procedure. CLARE builds on a pre-trained masked language model and modifies the inputs in a context-aware manner. We propose three contextualized perturbations, Replace, Insert and Merge, allowing for generating outputs of varied lengths. With a richer range of available strategies, CLARE is able to attack a victim model more efficiently with fewer edits. Extensive experiments and human evaluation demonstrate that CLARE outperforms the baselines in terms of attack success rate, textual similarity, fluency and grammaticality.

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

↑