Influence Paths for Characterizing Subject-Verb Number Agreement in LSTM Language Models

By Kaiji Lu, Piotr (Peter) Mardziel, Klas Leino, Matt Fredrikson, Anupam Datta. 2020

10 citations recorded by the source corpus.

LSTM-based recurrent neural networks are the state-of-the-art for many natural language processing (NLP) tasks. Despite their performance, it is unclear whether, or how, LSTMs learn structural features of natural languages such as subject-verb number agreement in English. Lacking this understanding, the generality of LSTM performance on this task and their suitability for related tasks remains uncertain. Further, errors cannot be properly attributed to a lack of structural capability, training data omissions, or other exceptional faults. We introduce *influence paths*, a causal account of structural properties as carried by paths across gates and neurons of a recurrent neural network. The approach refines the notion of influence (the subject’s grammatical number has influence on the grammatical number of the subsequent verb) into a set of gate or neuron-level paths. The set localizes and segments the concept (e.g., subject-verb agreement), its constituent elements (e.g., the subject), and related or interfering elements (e.g., attractors). We exemplify the methodology on a widely-studied multi-layer LSTM language model, demonstrating its accounting for subject-verb number agreement. The results offer both a finer and a more complete view of an LSTM’s handling of this structural aspect of the English language than prior results based on diagnostic classifiers and ablation.

Subfields: Artificial Intelligence, Natural Language Processing, Model Architectures

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. Yonatan Belinkov
  2. Sebastian Gehrmann
  3. Tal Linzen
  4. Stuart M. Shieber
  5. Aaron Mueller
  6. Yoav Goldberg
  7. Matthew Finlayson
  8. Samuel R. Bowman

In Natural Language Processing

  1. Yonatan Belinkov
  2. Sebastian Gehrmann
  3. Tal Linzen
  4. Aaron Mueller
  5. Stuart M. Shieber
  6. Yoav Goldberg
  7. Matthew Finlayson
  8. Samuel R. Bowman

In Model Architectures

  1. Yonatan Belinkov
  2. Tal Linzen
  3. Sebastian Gehrmann
  4. Stuart M. Shieber
  5. Aaron Mueller

Citations in the corpus