Grammaticality Judgments in Humans and Language Models: Revisiting Generative Grammar with LLMs
Lars G.B. Johnsen

TL;DR
This study investigates whether large language models can recognize classic syntactic contrasts, like subject-auxiliary inversion and parasitic gaps, indicating sensitivity to hierarchical structure in language.
Contribution
The paper demonstrates that LLMs, trained only on surface forms, can distinguish grammatical from ungrammatical structures, implying emergent structural sensitivity without explicit syntactic encoding.
Findings
LLMs reliably differentiate grammatical and ungrammatical variants
Models show sensitivity to hierarchical syntactic structures
Structural generalizations emerge from surface form training
Abstract
What counts as evidence for syntactic structure? In traditional generative grammar, systematic contrasts in grammaticality such as subject-auxiliary inversion and the licensing of parasitic gaps are taken as evidence for an internal, hierarchical grammar. In this paper, we test whether large language models (LLMs), trained only on surface forms, reproduce these contrasts in ways that imply an underlying structural representation. We focus on two classic constructions: subject-auxiliary inversion (testing recognition of the subject boundary) and parasitic gap licensing (testing abstract dependency structure). We evaluate models including GPT-4 and LLaMA-3 using prompts eliciting acceptability ratings. Results show that LLMs reliably distinguish between grammatical and ungrammatical variants in both constructions, and as such support that they are sensitive to structure and not just…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLanguage Development and Disorders · Neurobiology of Language and Bilingualism · Language and cultural evolution
