Semantically Equivalent Adversarial Rules for Debugging NLP models

By Marco Tulio Ribeiro, Sameer Singh, Carlos Guestrin. 2018

557 citations recorded by the source corpus.

Complex machine learning models for NLP are often brittle, making different predictions for input instances that are extremely similar semantically. To automatically detect this behavior for individual instances, we present semantically equivalent adversaries (SEAs) – semantic-preserving perturbations that induce changes in the model’s predictions. We generalize these adversaries into semantically equivalent adversarial rules (SEARs) – simple, universal replacement rules that induce adversaries on many instances. We demonstrate the usefulness and flexibility of SEAs and SEARs by detecting bugs in black-box state-of-the-art models for three domains: machine comprehension, visual question-answering, and sentiment analysis. Via user studies, we demonstrate that we generate high-quality local adversaries for more instances than humans, and that SEARs induce four times as many mistakes as the bugs discovered by human experts. SEARs are also actionable: retraining models using data augmentation significantly reduces bugs, while maintaining accuracy.

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. Luke S. Zettlemoyer
  3. Percy Liang
  4. Yejin Choi
  5. Hannaneh Hajishirzi
  6. Noah A. Smith
  7. Jianfeng Gao
  8. Yonatan Belinkov

In Natural Language Processing

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Hannaneh Hajishirzi
  5. Percy Liang
  6. Noah A. Smith
  7. Yonatan Belinkov
  8. Matt Gardner

In Safety, Robustness & Interpretability

  1. Eric Wallace
  2. Yulia Tsvetkov
  3. Yonatan Belinkov
  4. Sameer Singh
  5. Percy Liang
  6. Noah A. Smith
  7. Yejin Choi
  8. Adina Williams

Citations in the corpus