基于随机替换和投票的文本对抗性实例检测
Detecting Textual Adversarial Examples through Randomized Substitution and Vote
摘要:
一系列工作表明,自然的文本处理模型容易受到对抗性示例的影响。相应地,提出了各种防御方法,以减轻威胁的文本对抗性的例子,例如,对抗性训练,输入变换,检测等。在这项工作中,我们对待的优化过程同义词替换为基础的文本对抗攻击作为一个特定的序列的字替换,其中每个字相互影响其他的话。我们发现,我们可以破坏这种相互作用,消除敌对扰动随机替换一个词与它的同义词。基于这一观察,我们提出了一种新的文本对抗性示例检测方法,称为随机替换和投票(RS&V),它通过累积k个样本的logits来投票预测标签,这些样本是通过用同义词随机替换输入文本中的单词而生成的。所提出的RS&V通常适用于任何现有的神经网络,而无需修改架构或额外的训练,并且它与使分类网络本身更鲁棒的先前工作正交。在三个基准数据集上的实证评估表明,我们的RS&V可以比现有的检测方法更成功地检测文本对抗性示例,同时保持良性样本的高分类准确率。
英文摘要:
A line of work has shown that natural text processing models are vulnerable to adversarial examples. Correspondingly, various defense methods are proposed to mitigate the threat of textual adversarial examples, eg, adversarial training, input transformations, detection, etc. In this work, we treat the optimization process for synonym substitution based textual adversarial attacks as a specific sequence of word replacement, in which each word mutually influences other words. We identify that we could destroy such mutual interaction and eliminate the adversarial perturbation by randomly substituting a word with its synonyms. Based on this observation, we propose a novel textual adversarial example detection method, termed Randomized Substitution and Vote (RS&V), which votes the prediction label by accumulating the logits of k samples generated by randomly substituting the words in the input text with synonyms. The proposed RS&V is generally applicable to any existing neural networks without modification on the architecture or extra training, and it is orthogonal to prior work on making the classification network itself more robust. Empirical evaluations on three benchmark datasets demonstrate that our RS&V could detect the textual adversarial examples more successfully than the existing detection methods while maintaining the high classification accuracy on benign samples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。