SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack

Abstract

Hard-label textual adversarial attack is a challenging task, as only the predicted label information is available, and the text space is discrete and non-differentiable. Relevant research work is still in fancy and just a handful of methods are proposed. However, existing methods suffer from either the high complexity of genetic algorithms or inaccurate gradient estimation, thus are arduous to obtain adversarial examples with high semantic similarity and low perturbation rate under the tight-budget scenario. In this paper, we propose a simple and sweet paradigm for hard-label textual adversarial attack, named SSPAttack. Specifically, SSPAttack first utilizes initialization to generate an adversarial example, and removes unnecessary replacement words to reduce the number of changed words. Then it determines the replacement order and searches for an anchor synonym, thus avoiding going through all the synonyms. Finally, it pushes substitution words towards original words until an appropriate adversarial example is obtained. The core idea of SSPAttack is just swapping words whose mechanism is simple. Experimental results on eight benchmark datasets and two real-world APIs have shown that the performance of SSPAttack is sweet in terms of similarity, perturbation rate and query efficiency.

Cite

Text

Liu et al. "SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack." AAAI Conference on Artificial Intelligence, 2023. doi:10.1609/AAAI.V37I11.26553

Markdown

[Liu et al. "SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack." AAAI Conference on Artificial Intelligence, 2023.](https://mlanthology.org/aaai/2023/liu2023aaai-sspattack/) doi:10.1609/AAAI.V37I11.26553

BibTeX

@inproceedings{liu2023aaai-sspattack,
  title     = {{SSPAttack: A Simple and Sweet Paradigm for Black-Box Hard-Label Textual Adversarial Attack}},
  author    = {Liu, Han and Xu, Zhi and Zhang, Xiaotong and Xu, Xiaoming and Zhang, Feng and Ma, Fenglong and Chen, Hongyang and Yu, Hong and Zhang, Xianchao},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2023},
  pages     = {13228-13235},
  doi       = {10.1609/AAAI.V37I11.26553},
  url       = {https://mlanthology.org/aaai/2023/liu2023aaai-sspattack/}
}