Can RNNs learn Recursive Nested Subject-Verb Agreements?
Not on the map. Why?
Abstract (arXiv)
One of the fundamental principles of contemporary linguistics states that language processing requires the ability to extract recursively nested tree structures. However, it remains unclear whether and how this code could be implemented in neural circuits. Recent advances in Recurrent Neural Networks (RNNs), which achieve near-human performance in some language tasks, provide a compelling model to address such questions. Here, we present a new framework to study recursive processing in RNNs, using subject-verb agreement as a probe into the representations of the neural network. We trained six distinct types of RNNs on a simplified probabilistic context-free grammar designed to independently manipulate the length of a sentence and the depth of its syntactic tree. All RNNs generalized to subject-verb dependencies longer than those seen during training. However, none systematically generalized to deeper tree structures, even those with a structural bias towards learning nested tree (i.e., stack-RNNs). In addition, our analyses revealed primacy and recency effects in the generalization patterns of LSTM-based models, showing that these models tend to perform well on the outer- and innermost parts of a center-embedded tree structure, but poorly on its middle levels. Finally, probing the internal states of the model during the processing of sentences with nested tree structures, we found a complex encoding of grammatical agreement information (e.g. grammatical number), in which all the information for multiple words nouns was carried by a single unit. Taken together, these results indicate how neural networks may extract bounded nested tree structures, without learning a systematic recursive rule.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 16 of its 34 references that are in the map. First posted on arXiv 6 Jan 2021.
Builds on
16 of 34 references.
References · 16
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2018Targeted Syntactic Evaluation of Language Modelscited by 239
- 2018Colorless green recurrent networks dream hierarchicallycited by 210
- 2019Assessing BERT's Syntactic Abilitiescited by 191
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
- 2019The emergence of number and syntax units in LSTM language modelscited by 92
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
- 2019LSTM Networks Can Perform Dynamic Countingcited by 45
- 2018Do Language Models Understand Anything? On the Ability of LSTMs to Understand Negative Polarity Itemscited by 36
4 more
- 2019Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languagescited by 31
- 2018RNNs as psycholinguistic subjects: Syntactic state and grammatical dependencycited by 23
- 2018On Evaluating the Generalization of LSTM Models in Formal Languagescited by 17
- 2019What Syntactic Structures block Dependencies in RNN Language Models?cited by 5
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 2; 2024: 2; 2025: 1.
9 papers.
- 2022Toward a realistic model of speech processing in the brain with self-supervised learningcited by 63
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024A polar coordinate system represents syntax in large language modelscited by 24
- 2023SLOG: A Structural Generalization Benchmark for Semantic Parsingcited by 22
- 2021Long-range and hierarchical language predictions in brains and algorithmscited by 10
- 2021Causal Transformers Perform Below Chance on Recursive Nested Constructions, Unlike Humanscited by 8
- 2021Are Transformers a Modern Version of ELIZA? Observations on French Object Verb Agreementcited by 2
- 2023Assessing the influence of attractor-verb distance on grammatical agreement in humans and language modelscited by 0
- 2025Learning Model Successorscited by 0
- 2025Learning Model Successors31 Jan 2025
- 2024A polar coordinate system represents syntax in large language models7 Dec 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2023Assessing the influence of attractor-verb distance on grammatical agreement in humans and language models28 Nov 2023
- 2023SLOG: A Structural Generalization Benchmark for Semantic Parsing23 Oct 2023
- 2022Toward a realistic model of speech processing in the brain with self-supervised learning3 Jun 2022
- 2021Long-range and hierarchical language predictions in brains and algorithms28 Nov 2021
- 2021Causal Transformers Perform Below Chance on Recursive Nested Constructions, Unlike Humans14 Oct 2021
- 2021Are Transformers a Modern Version of ELIZA? Observations on French Object Verb Agreement21 Sep 2021