Combating Adversarial Misspellings with Robust Word Recognition

By Danish Pruthi, Bhuwan Dhingra, Zachary Chase Lipton. 2019

363 citations recorded by the source corpus.

To combat adversarial spelling mistakes, we propose placing a word recognition model in front of the downstream classifier. Our word recognition models build upon the RNN semi-character architecture, introducing several new backoff strategies for handling rare and unseen words. Trained to recognize words corrupted by random adds, drops, swaps, and keyboard mistakes, our method achieves 32% relative (and 3.3% absolute) error reduction over the vanilla semi-character model. Notably, our pipeline confers robustness on the downstream classifier, outperforming both adversarial training and off-the-shelf spell checkers. Against a BERT model fine-tuned for sentiment analysis, a single adversarially-chosen character attack lowers accuracy from 90.3% to 45.8%. Our defense restores accuracy to 75%. Surprisingly, better word recognition does not always entail greater robustness. Our analysis reveals that robustness also depends upon a quantity that we denote the sensitivity.

Subfields: Artificial Intelligence, Natural Language Processing, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Percy Liang
  3. Luke S. Zettlemoyer
  4. Jianfeng Gao
  5. Yi Tay
  6. Zhiyuan Liu
  7. Graham Neubig
  8. Quoc V. Le

In Natural Language Processing

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Yi Tay
  5. Percy Liang
  6. Graham Neubig
  7. Zhiyuan Liu
  8. Xipeng Qiu

In Safety, Robustness & Interpretability

  1. Xipeng Qiu
  2. Aditi Raghunathan
  3. Percy Liang
  4. Robin Jia
  5. Linyang Li
  6. Zonghan Yang
  7. Yang Liu
  8. Indra Elizabeth Kumar

Citations in the corpus