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

不良字符:无法察觉的NLP攻击

Bad Characters: Imperceptible NLP Attacks

University of Cambridge(剑桥大学);Vector Institute(向量研究所);University of Edinburgh(爱丁堡大学);University of Toronto(多伦多大学)

Nicholas Boucher, Ilia Shumailov, Ross Anderson, Nicolas Papernot

摘要:

多年的研究表明,机器学习系统在理论和实践中都容易受到对抗性示例的影响。到目前为止,此类攻击主要针对视觉模型,利用人类和机器感知之间的差距。虽然基于文本的模型也受到了对抗性示例的攻击,但这种攻击很难保持语义和不可解释性。在本文中,我们探索了一大类对抗性示例,这些示例可用于在黑盒设置中攻击基于文本的模型,而无需对输入进行任何人类可感知的视觉修改。我们使用人眼无法感知的编码特定扰动来操纵从神经机器翻译管道到Web搜索引擎的各种自然语言处理(NLP)系统的输出。我们发现,通过一次不可感知的编码注入-代表一个不可见的字符,同源,重新排序或删除-攻击者可以显着降低易受攻击的模型的性能,并且通过三次注入,大多数模型可以在功能上被破坏。我们的攻击针对当前部署的商业系统,包括微软和谷歌生产的系统,以及Facebook、IBM和HuggingFace发布的开源模型。这一系列新颖的攻击对许多语言处理系统构成了重大威胁:攻击者可以以有针对性的方式影响系统,而无需对底层模型进行任何假设。我们的结论是,基于文本的NLP系统需要仔细的输入消毒,就像传统的应用程序一样,并且考虑到这种系统现在正在大规模快速部署,需要架构师和运营商的紧急关注。

英文摘要:

Several years of research have shown that machine-learning systems are vulnerable to adversarial examples, both in theory and in practice. Until now, such attacks have primarily targeted visual models, exploiting the gap between human and machine perception. Although text-based models have also been attacked with adversarial examples, such attacks struggled to preserve semantic meaning and indistinguishability. In this paper, we explore a large class of adversarial examples that can be used to attack text-based models in a black-box setting without making any human-perceptible visual modification to inputs. We use encoding-specific perturbations that are imperceptible to the human eye to manipulate the outputs of a wide range of Natural Language Processing (NLP) systems from neural machine-translation pipelines to web search engines. We find that with a single imperceptible encoding injection -- representing one invisible character, homoglyph, reordering, or deletion -- an attacker can significantly reduce the performance of vulnerable models, and with three injections most models can be functionally broken. Our attacks work against currently-deployed commercial systems, including those produced by Microsoft and Google, in addition to open source models published by Facebook, IBM, and HuggingFace. This novel series of attacks presents a significant threat to many language processing systems: an attacker can affect systems in a targeted manner without any assumptions about the underlying model. We conclude that text-based NLP systems require careful input sanitization, just like conventional applications, and that given such systems are now being deployed rapidly at scale, the urgent attention of architects and operators is required.

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

↑