Introduction
A defining characteristic of human language is its recursive, hierarchical nature. We routinely embed phrases within other phrases, creating complex dependencies that listeners must track to extract meaning. For example, in the sentence "The keys that the man holds are red," the brain must link "keys" with "are" and "man" with "holds." While modern Transformer models like GPT-2 have revolutionized natural language processing, a critical question remains: do these models truly grasp the underlying tree-like structure of language, or are they merely sophisticated statistical engines?
Methodology and Experimental Design
To investigate this, researchers employed grammatical number agreement as a diagnostic probe. In English, the verb must agree in number (singular or plural) with its subject. By presenting models with sentence prefixes and measuring the probability assigned to correct versus incorrect verb forms, the study assessed the models' syntactic competence.
The experiment compared five models: four variants of GPT-2 (Small, Medium, Large, and XL) and an LSTM baseline. Two primary conditions were tested:
- Short-Nested: Simple recursive structures like "The keys that the man holds..."
- Long-Nested: Structures where the inner dependency is lengthened by a three-word prepositional phrase, such as "The keys that the man near the cabinet holds..."
These tasks were contributed to the BigBench benchmark. To prevent models from relying on simple linear heuristics (like matching the verb to the most recent noun), the researchers used "incongruent" conditions where the nouns have different grammatical numbers.
Key Results: The "Cliff" Effect
The results revealed a startling "cliff" in Transformer performance. While GPT-2 XL achieved near-perfect accuracy on the Short-Nested task, its performance collapsed on the Long-Nested task.
In the Long-Nested condition, particularly when the subject was plural and the distractor was singular (the "PSP" condition), Transformer performance dropped below the 50% chance level. This suggests that adding just three words to an internal phrase is enough to break the model's ability to track the nested dependency. Interestingly, the models remained competent at tracking the "outer" dependency (e.g., "keys... are"), failing specifically on the "inner" one ("man... holds").
Discussion and Insights
The catastrophic failure on long-nested structures highlights a fundamental divergence between AI and human linguistic processing. Humans also find inner dependencies more challenging, but their performance remains significantly above chance. Transformers, by contrast, appear to lack a robust representation of hierarchical structure, relying instead on linear heuristics that fail as distance increases.
The study also noted a Markedness Effect, where models showed a bias toward plural nouns, mirroring certain human psycholinguistic patterns but with different error distributions. This suggests that while Transformers capture some statistical regularities of language, they do not approximate the recursive processing capabilities of the human mind.
Conclusion
This research demonstrates that even the most advanced causal Transformers are surprisingly brittle when faced with recursive linguistic structures. The "cliff effect" observed when moving from short to long nested dependencies indicates that these models do not yet possess a true understanding of the tree-like nature of syntax. Future work must explore whether alternative architectures or training objectives can bridge this gap and bring AI closer to human-level linguistic competence.
Summary updated