Can language models handle recursively nested grammatical structures? A case study on comparing models and humans
Andrew Kyle Lampinen
TL;DR
The paper examines how to fairly compare language models with humans on recursively nested grammatical structures, highlighting evaluation confounds across paradigms. By providing simple prompts to large transformers, it shows these models can outperform humans on challenging nesting tasks and even extend beyond the human-tested conditions. Reanalysis of human data suggests early training may not guarantee superior human performance on difficult structures, pointing to evaluation rather than innate limits as a key factor. The work argues for foundation-model–specific evaluation practices and careful, context-aware reporting to enable credible human–model comparisons and informs broader methodological debates in cognitive modeling and NLP.
Abstract
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.
