Investigating BERT’s Knowledge of Language: Five Analysis Methods with NPIs

By Alex Warstadt, Yuning Cao, Ioana Grosu, Wei Peng, Hagen Blix, Yining Nie, Anna Alsop, Shikha Bordia, Haokun Liu, Alicia Parrish and 6 more. 2019

133 citations recorded by the source corpus.

Though state-of-the-art sentence representation models can perform tasks requiring significant knowledge of grammar, it is an open question how best to evaluate their grammatical knowledge. We explore five experimental methods inspired by prior work evaluating pretrained sentence representation models. We use a single linguistic phenomenon, negative polarity item (NPI) licensing, as a case study for our experiments. NPIs like any are grammatical only if they appear in a licensing environment like negation (Sue doesn’t have any cats vs. *Sue has any cats). This phenomenon is challenging because of the variety of NPI licensing environments that exist. We introduce an artificially generated dataset that manipulates key features of NPI licensing for the experiments. We find that BERT has significant knowledge of these features, but its success varies widely across different experimental methods. We conclude that a variety of methods is necessary to reveal all relevant aspects of a model’s grammatical knowledge in a given domain.

Subfields: Artificial Intelligence, Natural Language Processing

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. Yonatan Belinkov
  3. Samuel R. Bowman
  4. Luke S. Zettlemoyer
  5. Hinrich Schütze
  6. Yoav Goldberg
  7. Percy Liang
  8. Yejin Choi

In Natural Language Processing

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. Samuel R. Bowman
  4. Douwe Kiela
  5. Yejin Choi
  6. Yoav Goldberg
  7. Percy Liang
  8. Luke S. Zettlemoyer

Citations in the corpus