Lune

ACL2020Top-tier venue

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

Kaiji Lu, Piotr Mardziel, Klas Leino, Matt Fredrikson, Anupam Datta

Abstract

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 LSTMs 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-level 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. Candidate Cell c1 1 Cell c 1 1 Candidate Cell c0 1 Hidden h 0 1 c 1 2 c 1 3 c 1 4 h 1 4 c 0 4 c1 4 c0 4 h 0 4 agreement s4(run) -s4(runs) grammatical number boys -boy+boys

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Discovering Influential Neuron Path in Vision Transformers cites Influence Patterns for Explaining Information Flow in BERT
  • Generalizing Backpropagation for Gradient-Based Interpretability cites Influence Patterns for Explaining Information Flow in BERT
  • Generalizing Backpropagation for Gradient-Based Interpretability cites Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Influence Patterns for Explaining Information Flow in BERTKaiji Lu, Zifan Wang, Piotr Mardziel, Anupam DattaNeurIPS 2021 · 22 citations
  2. Generalizing Backpropagation for Gradient-Based InterpretabilityKevin Du, Lucas Torroba Hennigen, Niklas Stoehr, Alex Warstadt et al.ACL 2023 · 3 citations
  3. Discovering Influential Neuron Path in Vision TransformersYifan Wang, Yifei Liu, Yingdong Shi, Changming Li et al.ICLR 2025
  4. Causal Analysis of Syntactic Agreement Mechanisms in Neural Language ModelsMatthew Finlayson, Aaron Mueller, Sebastian Gehrmann, Stuart M. Shieber et al.ACL 2021

Builds on1

  1. Algorithmic Transparency via Quantitative Input Influence: Theory and Experiments with Learning SystemsAnupam Datta, Shayak Sen, Yair ZickS&P 2016 · 774 citations

Related papers

  1. Different types of syntactic agreement recruit the same units within large language modelsDaria Kryvosheieva, Andrea Gregor de Varda, Evelina Fedorenko, Greta TuckuteACL 2026 · 3 citations
  2. Word Frequency Does Not Predict Grammatical Knowledge in Language ModelsCharles Yu, Ryan Sie, Nico Tedeschi, Leon BergenEMNLP 2020 · 6 citations
  3. On the Similarity of Circuits across Languages: a Case Study on the Subject-verb Agreement TaskJavier Ferrando, Marta R. Costa-jussàEMNLP Findings 2024 · 1 citation
  4. Does BERT really agree ? Fine-grained Analysis of Lexical Dependence on a Syntactic TaskKarim Lasri, Alessandro Lenci, Thierry PoibeauACL Findings 2022 · 11 citations
  5. An Analysis of the Utility of Explicit Negative Examples to Improve the Syntactic Abilities of Neural Language ModelsHiroshi Noji, Hiroya TakamuraACL 2020 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines