[Paper Review] Causal Transformers Perform Below Chance on Recursive Nested Constructions, Unlike Humans
This study evaluates whether state-of-the-art Transformer language models can process recursive, nested syntactic constructions as effectively as humans. Despite near-perfect performance on short-range embedded dependencies, Transformers exhibit below-chance performance on long-range embedded dependencies—dramatically dropping when a three-word prepositional phrase is added—revealing a critical brittleness in their recursive, structure-sensitive processing, similar to earlier findings in RNN-LMs.
Recursive processing is considered a hallmark of human linguistic abilities. A recent study evaluated recursive processing in recurrent neural language models (RNN-LMs) and showed that such models perform below chance level on embedded dependencies within nested constructions -- a prototypical example of recursion in natural language. Here, we study if state-of-the-art Transformer LMs do any better. We test four different Transformer LMs on two different types of nested constructions, which differ in whether the embedded (inner) dependency is short or long range. We find that Transformers achieve near-perfect performance on short-range embedded dependencies, significantly better than previous results reported for RNN-LMs and humans. However, on long-range embedded dependencies, Transformers' performance sharply drops below chance level. Remarkably, the addition of only three words to the embedded dependency caused Transformers to fall from near-perfect to below-chance performance. Taken together, our results reveal Transformers' shortcoming when it comes to recursive, structure-based, processing.
Motivation & Objective
- To investigate whether state-of-the-art Transformer language models outperform RNN-LMs in processing recursive, nested syntactic structures.
- To compare model performance on short-range versus long-range embedded dependencies in number-agreement tasks.
- To examine whether Transformers exhibit similar processing brittleness as RNN-LMs on recursive constructions.
- To explore whether model error patterns mirror or diverge from human linguistic biases, such as the Markedness Effect.
- To assess whether the addition of minimal syntactic complexity (e.g., a three-word prepositional phrase) drastically undermines model performance on recursive dependencies.
Proposed method
- Evaluated four pre-trained Transformer language models (GPT2-XL, GPT2-Large, GPT2-Medium, GPT2) on two syntactic tasks: Short-Nested and Long-Nested constructions.
- Designed sentence pairs with embedded dependencies requiring agreement between a main noun and a verb, varying grammatical number (singular/plural) across conditions.
- Measured model performance via error rates on agreement decisions for both the main (outer) and embedded (inner) dependencies.
- Compared performance across models and tasks, focusing on incongruent conditions (e.g., singular subject with plural verb) to assess bias and generalization.
- Analyzed performance shifts when a three-word prepositional phrase was added to the embedded dependency, creating a minimal syntactic change.
- Used human performance benchmarks from prior studies to contextualize model behavior, particularly in relation to the Markedness Effect.
Experimental results
Research questions
- RQ1Do Transformer language models outperform RNN-LMs on recursive, nested syntactic constructions?
- RQ2How does model performance vary between short-range and long-range embedded dependencies in recursive structures?
- RQ3What happens to model performance when a minimal syntactic modification (e.g., adding a prepositional phrase) is introduced to the embedded dependency?
- RQ4Do Transformers exhibit the same error patterns as RNN-LMs on recursive processing, particularly below-chance performance on embedded dependencies?
- RQ5To what extent do model error patterns reflect or diverge from human linguistic biases, such as the Markedness Effect?
Key findings
- On short-range embedded dependencies, Transformers achieved near-perfect performance with error rates close to zero across all conditions.
- On long-range embedded dependencies, Transformers’ error rate dropped below chance level, particularly in the PSP condition (plural subject, singular verb), indicating systematic failure.
- The addition of just three words (e.g., 'near the cabinet') to the embedded dependency caused performance to plummet from near-perfect to below-chance levels.
- All models, including Transformers and the LSTM, showed a consistent bias toward making more errors when the subject was singular, reflecting the Markedness Effect.
- Performance on the main (longer) dependency remained above chance, indicating that length alone is less detrimental than recursive embedding.
- Despite their superior performance on many NLP tasks, Transformers exhibit a critical brittleness in processing recursive, structure-sensitive dependencies, mirroring RNN-LM shortcomings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.