不要搜索搜索方法--简单的启发式方法足以应对对抗性文本攻击
Don't Search for a Search Method -- Simple Heuristics Suffice for Adversarial Text Attacks
摘要:
近年来,针对自然语言处理(NLP)的神经网络的对抗攻击受到了越来越多的关注。一个中心的研究课题一直是调查的搜索算法和搜索约束,伴随着基准算法和任务。我们实现了一个算法的灵感来自零阶优化为基础的攻击,并与基准测试结果的TextAttack框架。令人惊讶的是,我们发现,基于优化的方法不产生任何改进的约束设置和略受益于近似梯度信息,仅在无约束的设置,其中搜索空间较大。相比之下,利用最近邻而不查询目标函数的简单算法在受约束的设置中产生相当大的成功率,并且在不受约束的设置中产生几乎完全的成功率,查询的数量级更少。我们从这些结果中得出结论,目前的TextAttack基准任务太容易,限制太严格,阻碍了对黑盒对抗性文本攻击的有意义的研究。
英文摘要:
Recently more attention has been given to adversarial attacks on neural networks for natural language processing (NLP). A central research topic has been the investigation of search algorithms and search constraints, accompanied by benchmark algorithms and tasks. We implement an algorithm inspired by zeroth order optimization-based attacks and compare with the benchmark results in the TextAttack framework. Surprisingly, we find that optimization-based methods do not yield any improvement in a constrained setup and slightly benefit from approximate gradient information only in unconstrained setups where search spaces are larger. In contrast, simple heuristics exploiting nearest neighbors without querying the target function yield substantial success rates in constrained setups, and nearly full success rate in unconstrained setups, at an order of magnitude fewer queries. We conclude from these results that current TextAttack benchmark tasks are too easy and constraints are too strict, preventing meaningful research on black-box adversarial text attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。