Certified Robustness to Adversarial Word Substitutions

Robin Jia, Aditi Raghunathan, Kerem Göksel, Percy Liang
9/3/2019
cs.CLcs.LG

No official code found. Best implementation: robinjia/certified-word-sub (38 stars). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

Official repository for Jia, Raghunathan, Göksel, and Liang, "Certified Robustness to Adversarial Word Substitutions" (EMNLP 2019)

3811

SAFER: A Structure-free Approach For cErtified Robustness to Adversarial Word Substitutions (ACL 2020)

307

Similar Papers

Cite this paper

@article{jia2019certified,
  title  = {Certified Robustness to Adversarial Word Substitutions},
  author = {Robin Jia and Aditi Raghunathan and Kerem Göksel and Percy Liang},
  year   = {2019},
  eprint = {1909.00986},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.00986}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1909.00986.svg)](https://codeofpaper.com/paper/1909.00986)

Discussion