Skip to main content
QUICK REVIEW

[Paper Review] Certified Robustness to Adversarial Word Substitutions

Robin Jia, Aditi Raghunathan|arXiv (Cornell University)|Sep 3, 2019
Adversarial Robustness in Machine LearningComputer Science26 references16 citations
TL;DR

This paper presents the first provably robust models to adversarial word substitutions in NLP using Interval Bound Propagation (IBP) for certified robustness. It achieves 75% adversarial accuracy on IMDB and SNLI—significantly outperforming standard training (8%) and data augmentation (35%)—by minimizing an upper bound on worst-case loss across all word substitution perturbations.

ABSTRACT

State-of-the-art NLP models can often be fooled by adversaries that apply seemingly innocuous label-preserving transformations (e.g., paraphrasing) to input text. The number of possible transformations scales exponentially with text length, so data augmentation cannot cover all transformations of an input. This paper considers one exponentially large family of label-preserving transformations, in which every word in the input can be replaced with a similar word. We train the first models that are provably robust to all word substitutions in this family. Our training procedure uses Interval Bound Propagation (IBP) to minimize an upper bound on the worst-case loss that any combination of word substitutions can induce. To evaluate models' robustness to these transformations, we measure accuracy on adversarially chosen word substitutions applied to test examples. Our IBP-trained models attain $75\%$ adversarial accuracy on both sentiment analysis on IMDB and natural language inference on SNLI. In comparison, on IMDB, models trained normally and ones trained with data augmentation achieve adversarial accuracy of only $8\%$ and $35\%$, respectively.

Motivation & Objective

  • Address the brittleness of NLP models to label-preserving word substitutions, which can drastically degrade performance despite minimal semantic change.
  • Overcome the exponential complexity of all possible word substitution perturbations, which makes exhaustive search or data augmentation infeasible.
  • Develop a training method that guarantees robustness to all such substitutions, rather than relying on heuristic attacks or limited data augmentation.
  • Extend Interval Bound Propagation (IBP) to discrete, non-continuous NLP layers like LSTMs and attention mechanisms to compute certified robustness bounds.
  • Demonstrate that certifiably robust training yields models with high adversarial accuracy on real-world NLP tasks, even under worst-case perturbations.

Proposed method

  • Use Interval Bound Propagation (IBP) to compute a tractable upper bound on the worst-case loss induced by any combination of word substitutions.
  • Derive new interval bound formulas for discrete operations in NLP, including multiplication and softmax layers, to extend IBP to LSTMs and self-attention mechanisms.
  • Adapt IBP to handle discrete perturbation sets (word substitutions) rather than continuous perturbations, which is essential for NLP applications.
  • Train models by minimizing the IBP upper bound on worst-case loss, enabling certifiably robust generalization without relying on gradient-based adversarial training.
  • Apply the method to diverse architectures (bag-of-words, CNN, LSTM, attention) across sentiment analysis (IMDB) and natural language inference (SNLI).

Experimental results

Research questions

  • RQ1Can we provide formal, certified robustness guarantees against all possible word substitution perturbations in NLP?
  • RQ2Is it feasible to train models that are robust to exponentially large sets of label-preserving word substitutions using tractable optimization?
  • RQ3How does certifiably robust training via IBP compare to standard training and data augmentation in terms of adversarial accuracy?
  • RQ4Can IBP be effectively extended to discrete, non-differentiable NLP layers such as LSTMs and attention mechanisms?
  • RQ5What level of robustness can be achieved on real-world NLP benchmarks like IMDB and SNLI using this certified training approach?

Key findings

  • The proposed IBP-based certifiably robust training achieves 75% adversarial accuracy on the IMDB sentiment analysis dataset, compared to only 8% for standard training.
  • On the SNLI natural language inference benchmark, the method attains 75% adversarial accuracy, significantly outperforming standard training (41%) and data augmentation (71%).
  • Data augmentation improves robustness to 35% on IMDB and 71% on SNLI, but still falls short of the certified robustness provided by IBP training.
  • The method successfully extends IBP to discrete NLP layers, including LSTMs and attention mechanisms, enabling robustness certification in these architectures.
  • The models are provably robust to all word substitutions within the defined sets, with guarantees derived from the IBP upper bound on worst-case loss.
  • The approach demonstrates that certified robustness in NLP is achievable even under large, discrete perturbation spaces, marking a significant step toward trustworthy 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.