Word Frequency Does Not Predict Grammatical Knowledge in Language Models

Charles Yu, Ryan Sie, Nico Tedeschi, Leon Bergen
10/26/2020
cs.CL

Official code: CharlesYu2000/lm-variation (0 stars, Jupyter Notebook, last commit 2023-07-06).

Abstract

Neural language models learn, to varying degrees of accuracy, the grammatical properties of natural languages. In this work, we investigate whether there are systematic sources of variation in the language models' accuracy.

Show full abstract

Focusing on subject-verb agreement and reflexive anaphora, we find that certain nouns are systematically understood better than others, an effect which is robust across grammatical tasks and different language models. Surprisingly, we find that across four orders of magnitude, corpus frequency is unrelated to a noun's performance on grammatical tasks. Finally, we find that a novel noun's grammatical properties can be few-shot learned from various types of training data. The results present a paradox: there should be less variation in grammatical performance than is actually observed.

View on arXivView PDF

Code Implementations(1)

00Jupyter Notebook, PythonJun 1, 20203 years ago

Similar Papers

Cite this paper

@article{yu2020word,
  title  = {Word Frequency Does Not Predict Grammatical Knowledge in Language Models},
  author = {Charles Yu and Ryan Sie and Nico Tedeschi and Leon Bergen},
  year   = {2020},
  eprint = {2010.13870},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.13870}
}

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

Discussion