arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.10015cs.CLstat.ML
收藏

保持语义的对抗性文本攻击

Semantic-Preserving Adversarial Text Attacks

University of Technology Sydney(悉尼科技大学);China University of Petroleum (East China)(中国石油大学(华东));University of Melbourne(墨尔本大学);JD Explore Academy(京东探索研究院);The University of Sydney(悉尼大学)

Xinghao Yang, Weifeng Liu, James Bailey, Dacheng Tao, Wei Liu

摘要:

深度神经网络(DNN)被认为容易受到对抗性图像的攻击,而它们在文本分类中的鲁棒性却很少被研究。文献中已经提出了几种文本攻击方法,包括字符级、单词级和文本级攻击。然而,它仍然是一个挑战,以尽量减少必要的词的变化,以诱导错误分类,同时确保词汇的正确性,语法的合理性,语义相似性。在本文中,我们提出了一种基于Bigram和Unigram的自适应语义保存优化(BU-SPO)方法来检查深层模型的脆弱性。我们的方法有四个主要优点。首先,我们提出攻击文本文档,不仅在unigram字的水平,但也在bigram水平,更好地保持语义,避免产生无意义的输出。其次,我们提出了一种混合的方法来取代输入的单词与选项之间的同义词候选人和义素候选人,这大大丰富了潜在的替代相比,只使用同义词。第三,设计了一个优化算法,语义保持优化(SPO),确定单词替换的优先级,以降低修改成本。最后,我们进一步改进了SPO与语义过滤器(命名为SPOF),以找到具有最高语义相似度的对抗性示例。我们评估我们的BU-SPO和BU-SPOF对IMDB,AG的新闻,和雅虎的有效性!通过攻击四种流行的DNN模型来回答文本数据集。实验结果表明,与现有方法相比,我们的方法通过改变最少的单词数量来实现最高的攻击成功率和语义率。

英文摘要:

Deep neural networks (DNNs) are known to be vulnerable to adversarial images, while their robustness in text classification is rarely studied. Several lines of text attack methods have been proposed in the literature, including character-level, word-level, and sentence-level attacks. However, it is still a challenge to minimize the number of word changes necessary to induce misclassification, while simultaneously ensuring lexical correctness, syntactic soundness, and semantic similarity. In this paper, we propose a Bigram and Unigram based adaptive Semantic Preservation Optimization (BU-SPO) method to examine the vulnerability of deep models. Our method has four major merits. Firstly, we propose to attack text documents not only at the unigram word level but also at the bigram level which better keeps semantics and avoids producing meaningless outputs. Secondly, we propose a hybrid method to replace the input words with options among both their synonyms candidates and sememe candidates, which greatly enriches the potential substitutions compared to only using synonyms. Thirdly, we design an optimization algorithm, i.e., Semantic Preservation Optimization (SPO), to determine the priority of word replacements, aiming to reduce the modification cost. Finally, we further improve the SPO with a semantic Filter (named SPOF) to find the adversarial example with the highest semantic similarity. We evaluate the effectiveness of our BU-SPO and BU-SPOF on IMDB, AG's News, and Yahoo! Answers text datasets by attacking four popular DNNs models. Results show that our methods achieve the highest attack success rates and semantics rates by changing the smallest number of words compared with existing methods.

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

↑