The Grammar-Learning Trajectories of Neural Language Models

Leshem Choshen, Guy Hacohen, Daphna Weinshall, Omri Abend

Introduction

While large-scale neural language models (NLMs) have demonstrated remarkable proficiency in mastering complex grammatical structures, the specific process by which they acquire these skills has remained largely opaque. In human psycholinguistics, developmental stages are well-documented; children typically learn basic word order and simple morphology before tackling complex nested clauses or long-distance dependencies. This research investigates whether NLMs follow a similar, predictable "growth chart" or if their learning paths are idiosyncratic to their architecture and training data.

Methodology: A Behavioral Lens

To analyze these learning trajectories, researchers adopted a behavioral approach, evaluating model checkpoints across 67 distinct grammatical challenges from the Benchmark of Linguistic Minimal Pairs (BLiMP). Rather than analyzing internal weights, the study focused on performance vectors—accuracy scores across these tasks—at various stages of training.

To compare models of different sizes and speeds, the researchers aligned them using perplexity (a measure of predictive confidence) rather than training steps. This allowed for a direct comparison of "linguistic age" across disparate architectures, including various sizes of GPT-2 and TransformerXL.

The Universal Growth Chart

The most striking finding is the existence of a "one-dimensional highway" for learning. Regardless of whether a model is "tiny" or "small," or whether it uses a Transformer or LSTM architecture, the order in which it masters grammatical rules remains remarkably consistent.

Models of varying sizes and architectures follow a nearly identical accuracy-perplexity trajectory during training.

As shown in the figure above, when accuracy is plotted against perplexity, the trajectories of different GPT-2 variants and TransformerXL models overlap almost perfectly. This suggests that the sequence of linguistic acquisition is an emergent property of the next-word prediction task and the inductive biases inherent in modern neural architectures.

From Heuristics to Hierarchical Structure

The models do not learn all grammar at once. Instead, they progress from simple local heuristics to complex structural understanding. Early in training, NLMs behave similarly to "Bag-of-Words" or unigram models, focusing on word frequency and immediate neighbors. As training progresses, they "graduate" to handling hierarchical syntax and long-distance dependencies. Clustering analysis further suggests that morphological phenomena, such as subject-verb agreement, are often learned in unison, indicating the development of latent features that solve related problems simultaneously.

Interestingly, this progression is not always linear. The researchers observed "U-shaped" learning curves for certain tasks, where performance temporarily drops as the model becomes more sophisticated. This mirrors human "over-generalization" (e.g., a child who correctly says "ate" through memorization, but later says "eated" after learning the general "-ed" rule). In NLMs, the acquisition of a broad grammatical rule can occasionally override previously successful, but more fragile, memorized patterns.

Consistency and Human Comparison

The study found that the correlation between different model initializations exceeds 0.9 after a brief warmup period, indicating that models are almost perfectly synchronized in their learning order. Furthermore, while models become more human-like as they improve, they consistently remain more similar to one another than to human performance benchmarks.

Learning trajectories show high internal consistency across models and checkpoints, even as they diverge from human performance patterns.

Conclusion

The discovery of a consistent developmental trajectory for NLMs suggests a "universal" theory of AI linguistic acquisition. This "growth chart" implies that certain linguistic features are inherently easier for statistical learners to grasp than others. While this study focused on English, it opens the door for future research into whether these trajectories hold across morphologically diverse languages and different training objectives. Understanding these paths not only demystifies the training process but also provides a framework for evaluating the "maturity" of language models beyond simple aggregate scores.

Summary updated

BibTeX
@inproceedings{choshen2022grammar,
  author = {Leshem Choshen and Guy Hacohen and Daphna Weinshall and Omri Abend},
  title = {{The Grammar-Learning Trajectories of Neural Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.568},
}
Figure