Do LSTMs See Gender? Probing the Ability of LSTMs to Learn Abstract Syntactic Rules

Priyanka Sukumaran, Conor Houghton, Nina Kazanina
10/31/2022
cs.CLcs.AIcs.LG

Official code: prisukumaran23/lstm_fr (0 stars, Python, last commit 2023-12-24).

Abstract

LSTMs trained on next-word prediction can accurately perform linguistic tasks that require tracking long-distance syntactic dependencies. Notably, model accuracy approaches human performance on number agreement tasks (Gulordava et al., 2018).

Show full abstract

However, we do not have a mechanistic understanding of how LSTMs perform such linguistic tasks. Do LSTMs learn abstract grammatical rules, or do they rely on simple heuristics? Here, we test gender agreement in French which requires tracking both hierarchical syntactic structures and the inherent gender of lexical units. Our model is able to reliably predict long-distance gender agreement in two subject-predicate contexts: noun-adjective and noun-passive-verb agreement. The model showed more inaccuracies on plural noun phrases with gender attractors compared to singular cases, suggesting a reliance on clues from gendered articles for agreement. Overall, our study highlights key ways in which LSTMs deviate from human behaviour and questions whether LSTMs genuinely learn abstract syntactic rules and categories. We propose using gender agreement as a useful probe to investigate the underlying mechanisms, internal representations, and linguistic capabilities of LSTM language models.

View on arXivView PDF

Code Implementations(1)

00Python, ShellAug 11, 20222 years ago

Similar Papers

Cite this paper

@article{sukumaran2022lstms,
  title  = {Do LSTMs See Gender? Probing the Ability of LSTMs to Learn Abstract Syntactic Rules},
  author = {Priyanka Sukumaran and Conor Houghton and Nina Kazanina},
  year   = {2022},
  eprint = {2211.00153},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.00153}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.00153.svg)](https://codeofpaper.com/paper/2211.00153)

Discussion