Generating Fluent Adversarial Examples for Natural Languages

By Huangzhao Zhang, Hao Zhou, Ning Miao, Lei Li. 2019

158 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Natural Language Processing, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Zhiyuan Liu
  2. Mohit Bansal
  3. Maosong Sun
  4. Graham Neubig
  5. Luke S. Zettlemoyer
  6. Jianfeng Gao
  7. Noah A. Smith
  8. Percy Liang

In Natural Language Processing

  1. Zhiyuan Liu
  2. Mohit Bansal
  3. Maosong Sun
  4. Matthew E. Peters
  5. Kevin Gimpel
  6. Tongshuang Sherry Wu
  7. Graham Neubig
  8. Luke S. Zettlemoyer

In Safety, Robustness & Interpretability

  1. Daniel S. Weld
  2. Tongshuang Sherry Wu
  3. Xiao Yang
  4. W. Zhang
  5. Jeffrey Heer
  6. Ana Marasovic
  7. Alexis Ross
  8. Tianyu Pang

Citations in the corpus