Skip to main content
QUICK REVIEW

[Paper Review] Discrete Attacks and Submodular Optimization with Applications to Text Classification.

Qi Lei, Lingfei Wu|arXiv (Cornell University)|Dec 1, 2018
Adversarial Robustness in Machine LearningComputer Science14 references16 citations
TL;DR

This paper formulates text adversarial attacks as submodular optimization over discrete sets, leveraging the submodularity of the attack objective under simplifying assumptions to achieve a 1−1/e approximation guarantee via greedy search. By integrating classifier gradients to guide the search and employing joint sentence-word paraphrasing, the method achieves stronger attack success rates and higher semantic fidelity than baselines across three text classification tasks.

ABSTRACT

Adversarial examples are carefully constructed modifications to an input that completely change the output of a classifier but are imperceptible to humans. Despite these successful attacks for continuous data (such as image and audio samples), generating adversarial examples for discrete structures such as text has proven significantly more challenging. In this paper we formulate the attacks with discrete input on a set function as an optimization task. We prove that this set function is submodular for some popular neural network text classifiers under simplifying assumption. This finding guarantees a $1-1/e$ approximation factor for attacks that use the greedy algorithm. Meanwhile, we show how to use the gradient of the attacked classifier to guide the greedy search. Empirical studies with our proposed optimization scheme show significantly improved attack ability and efficiency, on three different text classification tasks over various baselines. We also use a joint sentence and word paraphrasing technique to maintain the original semantics and syntax of the text. This is validated by a human subject evaluation in subjective metrics on the quality and semantic coherence of our generated adversarial text.

Motivation & Objective

  • To address the challenge of generating effective adversarial examples for discrete text inputs, which are harder than for continuous data like images.
  • To model the adversarial attack process as a submodular optimization problem on a set function to ensure theoretical approximation guarantees.
  • To improve attack efficiency and success rate by combining greedy search with gradient information from the target classifier.
  • To maintain semantic coherence and syntactic quality of adversarial texts using joint sentence and word paraphrasing techniques.
  • To validate the quality of generated adversarial examples through human evaluation on semantic coherence and fluency.

Proposed method

  • Formulates the adversarial attack on discrete text as an optimization problem over a set function representing the change in classifier output.
  • Proves that the set function is submodular under simplifying assumptions for popular neural text classifiers, enabling a 1−1/e approximation guarantee with greedy search.
  • Integrates the gradient of the classifier to guide the greedy selection of word or sentence modifications, improving attack effectiveness.
  • Employs a joint sentence and word paraphrasing technique to preserve the original semantics and syntax of the input text during perturbation.
  • Uses a two-stage process: first, identify perturbations via greedy optimization; second, apply paraphrasing to maintain fluency and coherence.
  • Applies the method across three distinct text classification tasks to evaluate attack success rate, efficiency, and semantic quality.

Experimental results

Research questions

  • RQ1Can adversarial attacks on discrete text inputs be formulated as a submodular optimization problem to ensure theoretical performance bounds?
  • RQ2How does combining gradient guidance with greedy search improve attack success compared to baseline methods?
  • RQ3To what extent can joint sentence and word paraphrasing preserve semantic coherence and syntactic structure in adversarial examples?
  • RQ4What is the empirical attack success rate and efficiency of the proposed method across diverse text classification tasks?
  • RQ5How do human evaluators rate the quality and semantic coherence of the generated adversarial texts?

Key findings

  • The proposed method achieves significantly higher attack success rates compared to existing baselines across three text classification tasks.
  • The submodular formulation enables a theoretical 1−1/e approximation guarantee for attack performance, providing a strong optimization foundation.
  • Gradient-guided greedy search improves attack efficiency and effectiveness, outperforming non-gradient-based greedy approaches.
  • Human evaluations confirm that the generated adversarial texts maintain high semantic coherence and fluency, with minimal degradation in quality.
  • The joint sentence and word paraphrasing technique successfully preserves the original meaning and syntax of the input texts during perturbation.
  • Empirical results demonstrate that the method is both efficient and effective, making it suitable for practical adversarial testing in NLP systems.

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.