[Paper Review] Can language models handle recursively nested grammatical structures? A case study on comparing models and humans
This paper challenges prior claims that large language models (LLMs) fail to process recursively nested grammatical structures by showing that, when evaluated under fair, human-like conditions with simple prompting, LLMs outperform humans on the same task—even generalizing to deeper nesting levels. The study reveals that prior comparisons were biased due to zero-shot evaluation of models versus trained, instructed humans.
How should we compare the capabilities of language models (LMs) and humans? I draw inspiration from comparative psychology to highlight some challenges. In particular, I consider a case study: processing of recursively nested grammatical structures. Prior work suggests that LMs cannot handle these structures as reliably as humans can. However, the humans were provided with instructions and training, while the LMs were evaluated zero-shot. I therefore match the evaluation more closely. Providing large LMs with a simple prompt -- substantially less content than the human training -- allows the LMs to consistently outperform the human results, and even to extrapolate to more deeply nested conditions than were tested with humans. Further, reanalyzing the prior human data suggests that the humans may not perform above chance at the difficult structures initially. Thus, large LMs may indeed process recursively nested grammatical structures as reliably as humans. This case study highlights how discrepancies in the evaluation can confound comparisons of language models and humans. I therefore reflect on the broader challenge of comparing human and model capabilities, and highlight an important difference between evaluating cognitive models and foundation models.
Motivation & Objective
- To re-evaluate the claim that language models underperform humans on recursively nested grammatical structures.
- To address methodological disparities in how humans and models are evaluated in prior studies.
- To test whether prompting can significantly improve LLM performance on complex syntactic dependencies.
- To highlight the importance of fair, comparable evaluation protocols when comparing human and model capabilities.
- To advocate for more rigorous, data-driven human-model comparisons based on actual performance, not assumptions of innate human competence.
Proposed method
- Conducted new zero-shot evaluations of large language models (e.g., GPT-2 XL) on center-embedded sentences with subject-verb agreement dependencies.
- Provided models with few-shot prompting using simpler examples of nested structures to improve performance.
- Re-analyzed prior human data from Lakretz et al. (2022) to assess whether human performance was truly above chance on difficult conditions.
- Used the same task framework as prior work but adjusted evaluation conditions to match human experimental paradigms more closely.
- Evaluated model performance across increasing nesting depths, including conditions deeper than those tested with humans.
- Applied reasoning-trace prompting and instruction tuning principles to improve model behavior, aligning it with human-like task understanding.
Experimental results
Research questions
- RQ1Do large language models truly fail to process recursively nested grammatical structures, or is the evaluation method biased?
- RQ2Can simple prompting significantly improve LLM performance on complex syntactic dependencies?
- RQ3Is human performance on recursive grammar tasks reliably above chance, especially in deep nesting conditions?
- RQ4To what extent do differences in evaluation paradigms—such as training, instructions, and motivation—confound human-model comparisons?
- RQ5How can we design fairer evaluation protocols that allow valid comparisons between human and model capabilities?
Key findings
- Large language models, when given a few simple examples via prompting, consistently outperformed human participants on recursively nested subject-verb agreement tasks.
- Models generalized to deeper nesting levels (e.g., three or more layers) than were tested with humans, demonstrating extrapolation beyond the training distribution.
- Re-analysis of prior human data suggests that performance on the most difficult condition was not reliably above chance, challenging the assumption of human superiority in this domain.
- The performance gap between models and humans in prior studies was largely attributable to evaluation disparity—humans received extensive training and instructions, while models were evaluated zero-shot.
- Prompting with minimal context (e.g., a few examples) dramatically improved model accuracy, indicating that task understanding can be significantly enhanced without fine-tuning.
- The study underscores that methodological fairness in evaluation is critical: when conditions are matched, LLMs can match or exceed human performance on syntactic processing tasks.
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.