Skip to main content
QUICK REVIEW

[Paper Review] Greedy Attack and Gumbel Attack: Generating Adversarial Examples for Discrete Data

Puyudi Yang, Jianbo Chen|arXiv (Cornell University)|May 31, 2018
Digital and Cyber ForensicsComputer Science83 citations
TL;DR

The paper introduces a probabilistic framework for adversarial attacks on discrete data and presents two instantiations, Greedy Attack and Gumbel Attack, for text classification models.

ABSTRACT

We present a probabilistic framework for studying adversarial attacks on discrete data. Based on this framework, we derive a perturbation-based method, Greedy Attack, and a scalable learning-based method, Gumbel Attack, that illustrate various tradeoffs in the design of attacks. We demonstrate the effectiveness of these methods using both quantitative metrics and human evaluation on various state-of-the-art models for text classification, including a word-based CNN, a character-based CNN and an LSTM. As as example of our results, we show that the accuracy of character-based convolutional networks drops to the level of random selection by modifying only five characters through Greedy Attack.

Motivation & Objective

  • Motivate robustness testing for models with discrete inputs (e.g., text).
  • Develop a two-stage perturbation framework to identify and modify key discrete features.
  • Propose two attack methods (Greedy Attack and Gumbel Attack) within this framework.
  • Evaluate attack effectiveness on multiple state-of-the-art text classification models.
  • Highlight human-grounded validity and efficiency considerations of the attacks.

Proposed method

  • Formulate a two-stage perturbation problem on discrete inputs, selecting k features to perturb and then choosing replacement values from a pre-fixed dictionary.
  • Introduce a probabilistic framework with G representing which features to perturb and H representing replacement choices, optimizing the probability of a successful attack.
  • Derive Greedy Attack by a two-stage greedy approximation that uses model outputs with single-feature masking to guide feature selection and replacement.
  • Develop Gumbel Attack by learning differentiable, parametric distributions (via Concrete/Gumbel trick) for G and H to enable efficient training and scalable attack generation.
  • Provide algorithmic instantiations (Algorithm 1 for Greedy Attack and Algorithm 2 for Gumbel Attack) and discuss approximations (Equation 5, Equation 7) to reduce computation.
  • Compare with existing methods (Saliency, Projected FGSM, Delete-1 score, DeepWordBug) in terms of efficiency and success rate.

Experimental results

Research questions

  • RQ1Can a probabilistic, two-stage framework efficiently generate adversarial examples for discrete data such as text?
  • RQ2Do Greedy Attack and Gumbel Attack achieve higher attack success and/or better efficiency than existing text-attacks across word- and character-based models?
  • RQ3How does perturbing a small number of discrete features (k) affect model accuracy for different architectures (Word-CNN, Char-CNN, LSTM)?
  • RQ4Is there transferability of adversarial examples between models within and across NLP families (CNNs and LSTMs)?
  • RQ5Do human evaluators maintain reliability on perturbed examples generated by these attacks?

Key findings

  • Greedy Attack achieves the highest attack success rate across multiple text models and datasets.
  • Gumbel Attack offers scalable attack generation with lower model-evaluation costs, suitable for large-scale attacks.
  • Character-based CNNs can be driven down to random-choice accuracy by perturbing as few as five characters.
  • Greedy Attack and Gumbel Attack show transferability across neural architectures (within CNNs and within LSTMs).
  • Human evaluators largely remain consistent with original judgments on perturbed text, even when models fail.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.