Skip to main content
QUICK REVIEW

[Paper Review] Targeted Syntactic Evaluation of Language Models

Rebecca Marvin, Tal Linzen|arXiv (Cornell University)|Aug 27, 2018
Topic ModelingComputer Science24 references12 citations
TL;DR

This paper introduces a template-based dataset for targeted syntactic evaluation of language models, generating minimal pairs of grammatical and ungrammatical English sentences to test whether models assign higher probability to correct forms. Despite improvements from multi-task training with CCG supertagging, RNN language models still significantly underperform humans on complex syntactic dependencies like agreement across object relative clauses.

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.

Motivation & Objective

  • To develop a controlled, scalable method for evaluating language models' syntactic generalization beyond perplexity.
  • To investigate whether neural language models can accurately distinguish grammatical from ungrammatical sentence pairs involving structure-sensitive phenomena.
  • To assess the impact of multi-task training with syntactic supervision (CCG supertagging) on syntactic performance.
  • To compare model performance against human performance on challenging syntactic constructions.
  • To identify systematic errors in language models' syntactic reasoning, especially on non-local dependencies.

Proposed method

  • Automatically generate large-scale, minimally contrasting sentence pairs using templates, differing only in grammaticality for specific syntactic phenomena.
  • Construct sentence pairs for three phenomena: subject-verb agreement, reflexive anaphora, and negative polarity items (NPIs).
  • Train an n-gram baseline, an RNN language model on a monolingual corpus, and a multi-task RNN jointly optimizing for language modeling and CCG supertagging.
  • Evaluate models by comparing the probability assigned to the grammatical vs. ungrammatical sentence in each pair.
  • Conduct human evaluation using the same stimuli to establish a performance benchmark.
  • Use fine-grained error analysis to identify model biases, such as attraction errors in subject-verb agreement.

Experimental results

Research questions

  • RQ1Can language models reliably assign higher probability to grammatical sentences in minimal pairs differing only in syntactic well-formedness?
  • RQ2How does multi-task training with CCG supertagging improve syntactic generalization in RNN language models?
  • RQ3To what extent do language models fail on non-local syntactic dependencies, such as agreement across object relative clauses?
  • RQ4How do model performance patterns compare to human performance on the same syntactic tasks?
  • RQ5What systematic biases or heuristics do language models exhibit in syntactic decision-making?

Key findings

  • The n-gram baseline performed at chance level, indicating that syntactic generalization requires more than n-gram statistics.
  • The single-task RNN performed well on local subject-verb agreement but failed on non-local dependencies, approaching chance performance on agreement across object relative clauses.
  • The multi-task RNN showed improved performance on non-local dependencies but still significantly underperformed human participants, especially on complex cases.
  • Both RNNs exhibited attraction errors, preferring verbs that agree with the embedded subject rather than the main subject in object relative clauses.
  • The single-task RNN showed a default preference for singular verbs, mirroring patterns seen in child language acquisition.
  • Human participants also made errors on plural/plural object RCs, suggesting inherent difficulty in such constructions, but still outperformed models overall.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.