The Grammar-Learning Trajectories of Neural Language Models

Leshem Choshen, Guy Hacohen, Daphna Weinshall, Omri Abend
9/13/2021
cs.CLcs.AIcs.LG

Official code: borgr/ordert (7 stars, Python, MIT, last commit 2022-03-01).

Abstract

The learning trajectories of linguistic phenomena in humans provide insight into linguistic representation, beyond what can be gleaned from inspecting the behavior of an adult speaker. To apply a similar approach to analyze neural language models (NLM), it is first necessary to establish that different models are similar enough in the generalizations they make.

Show full abstract

In this paper, we show that NLMs with different initialization, architecture, and training data acquire linguistic phenomena in a similar order, despite their different end performance. These findings suggest that there is some mutual inductive bias that underlies these models' learning of linguistic phenomena. Taking inspiration from psycholinguistics, we argue that studying this inductive bias is an opportunity to study the linguistic representation implicit in NLMs. Leveraging these findings, we compare the relative performance on different phenomena at varying learning stages with simpler reference models. Results suggest that NLMs exhibit consistent "developmental" stages. Moreover, we find the learning trajectory to be approximately one-dimensional: given an NLM with a certain overall performance, it is possible to predict what linguistic generalizations it has already acquired. Initial analysis of these stages presents phenomena clusters (notably morphological ones), whose performance progresses in unison, suggesting a potential link between the generalizations behind them.

View on arXivView PDF

Code Implementations(1)

borgr/ordertOfficial100%
MIT

Code for studying the order in which neural language models acquire grammatical phenomena during pretraining.

70Python, Jupyter NotebookFeb 28, 20224 years agoMIT
computational-linguisticsgrammarlanguage-modelspretrainingprobing+1 more

Similar Papers

Cite this paper

@article{choshen2021grammarlearning,
  title  = {The Grammar-Learning Trajectories of Neural Language Models},
  author = {Leshem Choshen and Guy Hacohen and Daphna Weinshall and Omri Abend},
  year   = {2021},
  eprint = {2109.06096},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06096}
}

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

Discussion