HyGloadAttack: Hard-label black-box textual adversarial attacks via hybrid optimization.

Journal: Neural networks : the official journal of the International Neural Network Society
Published Date:

Abstract

Hard-label black-box textual adversarial attacks present a highly challenging task due to the discrete and non-differentiable nature of text data and the lack of direct access to the model's predictions. Research in this issue is still in its early stages, and the performance and efficiency of existing methods has potential for improvement. For instance, exchange-based and gradient-based attacks may become trapped in local optima and require excessive queries, hindering the generation of adversarial examples with high semantic similarity and low perturbation under limited query conditions. To address these issues, we propose a novel framework called HyGloadAttack (adversarial Attacks via Hybrid optimization and Global random initialization) for crafting high-quality adversarial examples. HyGloadAttack utilizes a perturbation matrix in the word embedding space to find nearby adversarial examples after global initialization and selects synonyms that maximize similarity while maintaining adversarial properties. Furthermore, we introduce a gradient-based quick search method to accelerate the search process of optimization. Extensive experiments on five datasets of text classification and natural language inference, as well as two real APIs, demonstrate the significant superiority of our proposed HyGloadAttack method over state-of-the-art baseline methods.

Authors

  • Zhaorong Liu
    School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China; Advanced Cryptography and System Security Key Laboratory of Sichuan Province, Chengdu 610225, China; SUGON Industrial Control and Security Center, Chengdu 610225, China.
  • Xi Xiong
    College of Pharmacy, Chengdu University of Traditional Chinese Medicine, Chengdu 611137, China.
  • Yuanyuan Li
    Key Laboratory of Environment and Health, Ministry of Education & Ministry of Environmental Protection, State Key Laboratory of Environmental Health (Incubation), School of Public Health, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, China.
  • Yan Yu
  • Jiazhong Lu
    School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China; Advanced Cryptography and System Security Key Laboratory of Sichuan Province, Chengdu 610225, China; SUGON Industrial Control and Security Center, Chengdu 610225, China.
  • Shuai Zhang
    School of Information, Zhejiang University of Finance and Economics, Hangzhou, China.
  • Fei Xiong
    Department of Ultrasound, Deyang People's Hospital, Deyang, Sichuan, China.