基于组合优化的词级文本对抗攻击
Word-level Textual Adversarial Attacking as Combinatorial Optimization
摘要:
进行对抗攻击是为了揭示深层神经网络的脆弱性。文本对抗攻击具有挑战性,因为文本是离散的,一个小的扰动可以给原始输入带来显着的变化。词级攻击是文本攻击方法中的一种,可以看作是一个组合优化问题。然而,现有的字级攻击模型还远远不够完善,主要是因为不合适的搜索空间减少方法和效率低下的优化算法。在本文中,我们提出了一种新的攻击模型,它结合了基于语义的单词替换方法和粒子群优化搜索算法来解决这两个问题分别。我们在三个基准数据集上进行了详尽的实验,通过攻击BiLSTM和BERT来评估我们的攻击模型。实验结果表明,与基线方法相比,我们的模型始终实现了更高的攻击成功率和工艺更高质量的对抗性示例。进一步的实验表明,我们的模型具有更高的可移植性,可以带来更多的鲁棒性增强受害者模型的对抗性训练。本文的所有代码和数据都可以在https://github.com/thunlp/SememePSO-Attack上获得。
英文摘要:
Adversarial attacks are carried out to reveal the vulnerability of deep neural networks. Textual adversarial attacking is challenging because text is discrete and a small perturbation can bring significant change to the original input. Word-level attacking, which can be regarded as a combinatorial optimization problem, is a well-studied class of textual attack methods. However, existing word-level attack models are far from perfect, largely because unsuitable search space reduction methods and inefficient optimization algorithms are employed. In this paper, we propose a novel attack model, which incorporates the sememe-based word substitution method and particle swarm optimization-based search algorithm to solve the two problems separately. We conduct exhaustive experiments to evaluate our attack model by attacking BiLSTM and BERT on three benchmark datasets. Experimental results demonstrate that our model consistently achieves much higher attack success rates and crafts more high-quality adversarial examples as compared to baseline methods. Also, further experiments show our model has higher transferability and can bring more robustness enhancement to victim models by adversarial training. All the code and data of this paper can be obtained on https://github.com/thunlp/SememePSO-Attack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。