Natural Adversarial Sentence Generation with Gradient-based Perturbation
arXiv:1909.04495
Abstract
This work proposes a novel algorithm to generate natural language adversarial input for text classification models, in order to investigate the robustness of these models. It involves applying gradient-based perturbation on the sentence embeddings that are used as the features for the classifier, and learning a decoder for generation. We employ this method to a sentiment analysis model and verify its effectiveness in inducing incorrect predictions by the model. We also conduct quantitative and qualitative analysis on these examples and demonstrate that our approach can generate more natural adversaries. In addition, it can be used to successfully perform black-box attacks, which involves attacking other existing models whose parameters are not known. On a public sentiment analysis API, the proposed method introduces a 20% relative decrease in average accuracy and 74% relative increase in absolute error.
References in corpus (10)
- Distributed Representations of Words and Phrases and their Compositionality
- Sequence to Sequence Learning with Neural Networks
- Understanding Neural Networks through Representation Erasure
- Generating Natural Adversarial Examples
- Deep Text Classification Can be Fooled
- GANS for Sequences of Discrete Elements with the Gumbel-softmax Distribution
- Towards Crafting Text Adversarial Samples
- Simple Black-Box Adversarial Perturbations for Deep Networks
- Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
- Greedy Attack and Gumbel Attack: Generating Adversarial Examples for Discrete Data