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

基于数据表示分布特征的文本敌对性示例检测

Detecting Textual Adversarial Examples Based on Distributional Characteristics of Data Representations

Macquarie University(麦考瑞大学);The University of Adelaide(阿德莱德大学)

Na Liu, Mark Dras, Wei Emma Zhang

摘要:

虽然深度神经网络在各种机器学习任务中已经达到了最先进的性能,但通过向正确分类的输入添加小的非随机扰动来构建的对抗性示例,成功地欺骗了高度表达的深度分类器进行不正确的预测。在过去的五年里,自然语言任务中的对抗攻击方法使用字符级、单词级、短语级或句子级文本扰动蓬勃发展。虽然在NLP中有一些工作是通过主动方法来防御这种攻击,如对抗训练,但据我们所知,没有有效的通用反应方法来通过检测文本对抗示例来防御,例如在图像处理文献中发现的。在本文中,我们提出了两个新的反应性的方法,NLP来填补这一空白,这与少数有限的应用基线从NLP是完全基于分布特性的学习表示:我们适应一个从图像处理文献(本地固有的包容性(LID)),并提出了一个新的(多距离表示包容方法(MDRE))。自适应LID和MDRE在IMDB数据集上以及在MultiNLI数据集上的后两者上获得了字符级、单词级和短语级攻击的最新结果。为了将来的研究,我们发布了我们的代码。

英文摘要:

Although deep neural networks have achieved state-of-the-art performance in various machine learning tasks, adversarial examples, constructed by adding small non-random perturbations to correctly classified inputs, successfully fool highly expressive deep classifiers into incorrect predictions. Approaches to adversarial attacks in natural language tasks have boomed in the last five years using character-level, word-level, phrase-level, or sentence-level textual perturbations. While there is some work in NLP on defending against such attacks through proactive methods, like adversarial training, there is to our knowledge no effective general reactive approaches to defence via detection of textual adversarial examples such as is found in the image processing literature. In this paper, we propose two new reactive methods for NLP to fill this gap, which unlike the few limited application baselines from NLP are based entirely on distribution characteristics of learned representations: we adapt one from the image processing literature (Local Intrinsic Dimensionality (LID)), and propose a novel one (MultiDistance Representation Ensemble Method (MDRE)). Adapted LID and MDRE obtain state-of-the-art results on character-level, word-level, and phrase-level attacks on the IMDB dataset as well as on the later two with respect to the MultiNLI dataset. For future research, we publish our code.

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

↑