The emergence of number and syntax units in LSTM language models

Yair Lakretz, German Kruszewski, Theo Desbordes, Dieuwke Hupkes, Stanislas Dehaene +1 more
3/18/2019
cs.CL

Official code: FAIRNS/Number_and_syntax_units_in_LSTM_LMs (10 stars, Python, last commit 2019-06-19).

Abstract

Recent work has shown that LSTMs trained on a generic language modeling objective capture syntax-sensitive generalizations such as long-distance number agreement. We have however no mechanistic understanding of how they accomplish this remarkable feat.

Show full abstract

Some have conjectured it depends on heuristics that do not truly take hierarchical structure into account. We present here a detailed study of the inner mechanics of number tracking in LSTMs at the single neuron level. We discover that long-distance number information is largely managed by two `number units'. Importantly, the behaviour of these units is partially controlled by other units independently shown to track syntactic structure. We conclude that LSTMs are, to some extent, implementing genuinely syntactic processing mechanisms, paving the way to a more general understanding of grammatical encoding in LSTMs.

View on arXivView PDF

Code Implementations(1)

106Python, PerlMar 13, 20197 years ago

Similar Papers

Cite this paper

@article{lakretz2019emergence,
  title  = {The emergence of number and syntax units in LSTM language models},
  author = {Yair Lakretz and German Kruszewski and Theo Desbordes and Dieuwke Hupkes and Stanislas Dehaene and Marco Baroni},
  year   = {2019},
  eprint = {1903.07435},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.07435}
}

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/1903.07435.svg)](https://codeofpaper.com/paper/1903.07435)

Discussion