通过随机化潜在表示来欺骗文本欺骗者
Fooling the Textual Fooler via Randomizing Latent Representations
AI总结:
本文提出轻量级防御方法AdvFooler,通过在推理时随机化潜在表示来迷惑黑盒词级对抗攻击,在不增加训练开销且几乎不影响准确性的前提下实现接近最先进的鲁棒性。
摘要:
尽管在各种自然语言处理任务中表现出色,但最近的研究表明,自然语言处理模型容易受到对抗性攻击的影响,这些攻击会轻微扰动输入,导致模型行为异常。在这些攻击中,对抗性词级扰动是研究充分且有效的攻击策略。由于这些攻击在黑盒设置下工作,它们不需要访问模型架构或模型参数,因此可能对现有的自然语言处理应用造成危害。为了执行攻击,攻击者会多次查询受害模型,以确定输入文本中最重要的词,并将这些词替换为相应的同义词。在这项工作中,我们提出了一种轻量级且与攻击无关的防御方法,其主要目标是迷惑这些基于查询的黑盒攻击中生成对抗样本的过程;也就是说,欺骗文本欺骗者。这种名为AdvFooler的防御方法通过在推理时随机化输入的潜在表示来工作。与现有防御方法不同,AdvFooler在训练期间不需要额外的计算开销,也不依赖于对潜在对抗扰动集合的假设,同时对模型准确性的影响可以忽略不计。我们的理论和实证分析强调了通过随机化潜在空间来迷惑攻击者所产生的鲁棒性的重要性,以及随机化对干净准确性的影响。最后,我们在两个基准数据集上实证证明了AdvFooler在对抗代表性词级对抗攻击时具有接近最先进的鲁棒性。
英文摘要:
Despite outstanding performance in a variety of NLP tasks, recent studies have revealed that NLP models are vulnerable to adversarial attacks that slightly perturb the input to cause the models to misbehave. Among these attacks, adversarial word-level perturbations are well-studied and effective attack strategies. Since these attacks work in black-box settings, they do not require access to the model architecture or model parameters and thus can be detrimental to existing NLP applications. To perform an attack, the adversary queries the victim model many times to determine the most important words in an input text and to replace these words with their corresponding synonyms. In this work, we propose a lightweight and attack-agnostic defense whose main goal is to perplex the process of generating an adversarial example in these query-based black-box attacks; that is to fool the textual fooler. This defense, named AdvFooler, works by randomizing the latent representation of the input at inference time. Different from existing defenses, AdvFooler does not necessitate additional computational overhead during training nor relies on assumptions about the potential adversarial perturbation set while having a negligible impact on the model's accuracy. Our theoretical and empirical analyses highlight the significance of robustness resulting from confusing the adversary via randomizing the latent space, as well as the impact of randomization on clean accuracy. Finally, we empirically demonstrate near state-of-the-art robustness of AdvFooler against representative adversarial word-level attacks on two benchmark datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。