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.
翻译:深心神经网络(DNNS) 众所周知, 很容易受到对抗性图像的影响, 而文本分类的稳健性却很少研究。 文献中提出了几行文本攻击方法, 包括字符级、 字级和句级攻击。 然而, 将引发错误分类所需的字变数减少到最低程度仍是一项挑战, 同时确保词汇正确性、 合成性稳健性和语义相似性。 在本文中, 我们提出一个大拉姆和以 Unigram 为基础的适应性语义保护优化( BU- SPO) 方法, 来检查深度模型的脆弱性。 我们的方法有四大优点。 首先, 我们提议不仅在字符级、 字级、 字级和 句级攻击中攻击文本, 更好地保存语义, 避免产生毫无意义的输出。 其次, 我们提出一种混合方法, 替换输入词词词的选项是同义候选人和语系候选人。 我们用数字来大大丰富潜在替代方法, 仅用同义来评估。 第三, 我们设计一个最精确的算法,, i. proalalalal oral oal 。</s>