A Geometry-Inspired Attack for Generating Natural Language Adversarial Examples

Zhao Meng,Roger Wattenhofer
DOI: https://doi.org/10.48550/arXiv.2010.01345
2020-10-03
Computation and Language
Abstract:Generating adversarial examples for natural language is hard, as natural language consists of discrete symbols, and examples are often of variable lengths. In this paper, we propose a geometry-inspired attack for generating natural language adversarial examples. Our attack generates adversarial examples by iteratively approximating the decision boundary of Deep Neural Networks (DNNs). Experiments on two datasets with two different models show that our attack fools natural language models with high success rates, while only replacing a few words. Human evaluation shows that adversarial examples generated by our attack are hard for humans to recognize. Further experiments show that adversarial training can improve model robustness against our attack.
What problem does this paper attempt to address?