%0 Conference Proceedings %T Generating Fluent Adversarial Examples for Natural Languages %A Zhang, Huangzhao %A Zhou, Hao %A Miao, Ning %A Li, Lei %Y Korhonen, Anna %Y Traum, David %Y Màrquez, Lluís %S Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics %D 2019 %8 July %I Association for Computational Linguistics %C Florence, Italy %F zhang-etal-2019-generating-fluent %X Efficiently building an adversarial attacker for natural language processing (NLP) tasks is a real challenge. Firstly, as the sentence space is discrete, it is difficult to make small perturbations along the direction of gradients. Secondly, the fluency of the generated examples cannot be guaranteed. In this paper, we propose MHA, which addresses both problems by performing Metropolis-Hastings sampling, whose proposal is designed with the guidance of gradients. Experiments on IMDB and SNLI show that our proposed MHAoutperforms the baseline model on attacking capability. Adversarial training with MHA also leads to better robustness and performance. %R 10.18653/v1/P19-1559 %U https://aclanthology.org/P19-1559 %U https://doi.org/10.18653/v1/P19-1559 %P 5564-5569