A Systematic Assessment of Syntactic Generalization in Neural Language Models

Jennifer Hu, Jon Gauthier, Peng Qian, Ethan Wilcox, Roger Levy

Abstract

Neural language models (NLMs) are typically evaluated using perplexity, a measure of next-word prediction accuracy. However, it remains unclear whether improvements in perplexity translate to a robust understanding of linguistic structure. This paper presents a systematic evaluation of syntactic generalization across 20 model-data combinations. We find that while perplexity and syntactic performance are correlated, they frequently dissociate. Crucially, architectural inductive biases—specifically those favoring hierarchical structures—often exert a greater influence on syntactic mastery than training data volume within the studied range.

Introduction

In Natural Language Processing (NLP), the standard "gold metric" for model evaluation is perplexity. While state-of-the-art models have achieved remarkable success in word prediction, it is debated whether they are learning the underlying rules of grammar or merely acting as sophisticated statistical engines. This study addresses the fragmentation in research regarding "syntactic generalization"—the ability to handle complex structures like nested clauses or long-distance dependencies—by providing a controlled benchmark to isolate the drivers of grammatical mastery.

Experimental Framework

The researchers employed a factorial experimental design, systematically crossing three primary variables:

  1. Architectures: Four distinct types were evaluated: standard LSTMs, Ordered Neuron LSTMs (ON-LSTM) designed for hierarchical bias, Recurrent Neural Network Grammars (RNNG) with explicit structural supervision, and GPT-2 (Transformer).
  2. Data Scaling: Models were trained on the BLLIP corpus (Wall Street Journal text) at four scales: XS (1M), SM (5M), MD (14M), and LG (42M tokens).
  3. Evaluation (The SG Score): Performance was measured using 34 psycholinguistic test suites. These suites calculate a "Syntactic Generalization" (SG) score based on surprisal—the model's relative preference for grammatical versus ungrammatical continuations in controlled contexts.

The Dissociation of Perplexity and Syntax

A central finding of this work is the clear dissociation between a model's perplexity and its syntactic generalization capabilities. As shown in Figure 1, models with comparable perplexity scores can exhibit vastly different levels of syntactic understanding. This suggests that broad-coverage word prediction performance does not automatically guarantee human-like linguistic knowledge.

Figure 1: Dissociation between test perplexity and syntactic generalization (SG) score across various models.

Key Results and Architectural Insights

Architecture Trumps Data Size

Within the 1M to 42M token range, architectural changes had a significantly larger impact on syntactic performance than simply increasing the training set size. The RNNG model demonstrated exceptional efficiency; an RNNG trained on just 1 million words matched the syntactic performance of a standard LSTM trained on 100 million words, highlighting the power of hierarchical inductive bias.

Performance Across Syntactic Circuits

Model performance was not uniform across all types of grammar. While most models handled basic agreement well, they struggled with specific "circuits" like Licensing (e.g., the correct use of negative polarity items like any). Figure 2 illustrates how different architectures vary in their ability to handle these specific linguistic challenges.

Figure 2: Model performance (SG score delta) across different grammatical circuits, highlighting the 'Licensing' challenge and architectural strengths.

Transformer Scaling

While GPT-2 initially underperformed on smaller datasets—likely due to sub-word tokenization and high parameter counts—it scaled more effectively than sequential models. Massive pre-trained versions like GPT-2-XL achieved the highest overall scores, nearing human-level performance on several benchmarks.

Discussion and Limitations

While this study provides a rigorous look at syntactic learning, several limitations remain. The controlled experiments were capped at 42 million tokens; it is possible that the "architecture > data" rule may shift at the billion-token scale common in modern LLMs. Furthermore, the study focused on causal, left-to-right models and English-language text. Future research is required to determine if these patterns hold for bidirectional models (like BERT) and morphologically rich languages such as Turkish or Finnish.

Summary updated

BibTeX
@inproceedings{hu2020systematic,
  author = {Jennifer Hu and Jon Gauthier and Peng Qian and Ethan Wilcox and Roger Levy},
  title = {{A Systematic Assessment of Syntactic Generalization in Neural Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.158},
}
Figure