loading page

Semantic-Preserving Adversarial Text Attacks
  • +4
  • Xinghao Yang ,
  • Yongshun Gong ,
  • Weifeng Liu ,
  • Tianqing Zhu ,
  • Dacheng Tao ,
  • Wei Liu
Xinghao Yang
Author Profile
Yongshun Gong
Author Profile
Weifeng Liu
Author Profile
Author Profile
Tianqing Zhu
Author Profile
Dacheng Tao
Author Profile


Deep learning models are known immensely brittle to adversarial image examples, yet their vulnerability in text classification is insufficiently explored. Existing text adversarial attack strategies can be roughly divided into three categories, i.e., character-level attack, word-level attack, and sentence-level attack. Despite the success brought by recent text attack methods, how to induce misclassification with the minimal text modifications while keeping the lexical correctness, syntactic soundness, and semantic consistency simultaneously is still a challenge. To examine the vulnerability of deep models, we devise a Bigram and Unigram based adaptive Semantic Preservation Optimization (BU-SPO) approach which attacks text documents not only at a unigram word level but also at a bigram level to avoid generating meaningless sentences. We also present a hybrid attack strategy that collects substitution words from both synonyms and sememe candidates, to enrich the potential candidate set. Besides, a Semantic Preservation Optimization (SPO) method is devised to determine the word substitution priority and reduce the perturbation cost. Furthermore, we constraint the SPO with a semantic Filter (dubbed SPOF) to improve the semantic similarity between the input text and the adversarial example. To estimate the effectiveness of our proposed methods, BU-SPO and BU-SPOF, we attack four victim deep learning models trained on three real-world text datasets. Experimental results demonstrate that our approaches accomplish the highest semantics consistency and attack success rates by making the minimal word modifications compared with competitive methods.
2023Published in IEEE Transactions on Sustainable Computing on pages 1-13. 10.1109/TSUSC.2023.3263510