Targeted Syntactic Evaluation of Language Models

Rebecca Marvin, Tal Linzen
8/27/2018
cs.CL

Official code: BeckyMarvin/LM_syneval (45 stars, MIT, last commit 2020-04-25).

Abstract

We present a dataset for evaluating the grammaticality of the predictions of a language model. We automatically construct a large number of minimally different pairs of English sentences, each consisting of a grammatical and an ungrammatical sentence. The sentence pairs represent different variations of structure-sensitive phenomena: subject-verb agreement, reflexive anaphora and negative polarity items. We expect a language model to assign a higher probability to the grammatical sentence than the ungrammatical one. In an experiment using this data set, an LSTM language model performed poorly on many of the constructions. Multi-task training with a syntactic objective (CCG supertagging) improved the LSTM's accuracy, but a large gap remained between its performance and the accuracy of human participants recruited online. This suggests that there is considerable room for improvement over LSTMs in capturing syntax in a language model.

View on arXivView PDF

Code Implementations(1)

MIT

Code for replicating the work in "Targeted Syntactic Evaluation of Language Models." EMNLP 2018.

4513Shell, PythonAug 23, 20186 years agoMIT

Cite this paper

@article{marvin2018targeted,
  title  = {Targeted Syntactic Evaluation of Language Models},
  author = {Rebecca Marvin and Tal Linzen},
  year   = {2018},
  eprint = {1808.09031},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.09031}
}

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

Discussion