English

Generating Fluent Adversarial Examples for Natural Languages

Computation and Language 2020-07-14 v1

Abstract

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 MHA outperforms the baseline model on attacking capability. Adversarial training with MAH also leads to better robustness and performance.

Keywords

Cite

@article{arxiv.2007.06174,
  title  = {Generating Fluent Adversarial Examples for Natural Languages},
  author = {Huangzhao Zhang and Hao Zhou and Ning Miao and Lei Li},
  journal= {arXiv preprint arXiv:2007.06174},
  year   = {2020}
}

Comments

Accepted by ACL 2019

R2 v1 2026-06-23T17:03:58.880Z