What Goes Into a LM Acceptability Judgment? Rethinking the Impact of Frequency and Length

Lindia Tjuatja, Graham Neubig, Tal Linzen, Sophie Hao
11/4/2024
cs.CL

No official code found. Best implementation: lindiatjuatja/morcela (2 stars, last commit 2024-10-28).

Abstract

When comparing the linguistic capabilities of language models (LMs) with humans using LM probabilities, factors such as the length of the sequence and the unigram frequency of lexical items have a significant effect on LM probabilities in ways that humans are largely robust to. Prior works in comparing LM and human acceptability judgments treat these effects uniformly across models, making a strong assumption that models require the same degree of adjustment to control for length and unigram frequency effects. We propose MORCELA, a new linking theory between LM scores and acceptability judgments where the optimal level of adjustment for these effects is estimated from data via learned parameters for length and unigram frequency. We first show that MORCELA outperforms a commonly used linking theory for acceptability - SLOR (Pauls and Klein, 2012; Lau et al. 2017) - across two families of transformer LMs (Pythia and OPT). Furthermore, we demonstrate that the assumed degrees of adjustment in SLOR for length and unigram frequency overcorrect for these confounds, and that larger models require a lower relative degree of adjustment for unigram frequency, though a significant amount of adjustment is still necessary for all models. Finally, our subsequent analysis shows that larger LMs' lower susceptibility to frequency effects can be explained by an ability to better predict rarer words in context.

View on arXivView PDF

Code Implementations(1)

20PythonOct 24, 20241 years ago

Similar Papers

Cite this paper

@article{tjuatja2024what,
  title  = {What Goes Into a LM Acceptability Judgment? Rethinking the Impact of Frequency and Length},
  author = {Lindia Tjuatja and Graham Neubig and Tal Linzen and Sophie Hao},
  year   = {2024},
  eprint = {2411.02528},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02528v3}
}

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

Discussion