mlsanityData to 7 Oct 2026

Can RNNs learn Recursive Nested Subject-Verb Agreements?

arXiv 2101.02258 ↗First posted 6 Jan 2021cs.CLcited by 9

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

  1. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  2. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
  3. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  4. 2018Targeted Syntactic Evaluation of Language Modelscited by 239
  5. 2018Colorless green recurrent networks dream hierarchicallycited by 210
  6. 2019Assessing BERT's Syntactic Abilitiescited by 191
  7. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  8. 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
  9. 2019The emergence of number and syntax units in LSTM language modelscited by 92
  10. 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
  11. 2019LSTM Networks Can Perform Dynamic Countingcited by 45
  12. 2018Do Language Models Understand Anything? On the Ability of LSTMs to Understand Negative Polarity Itemscited by 36
4 more
  1. 2019Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languagescited by 31
  2. 2018RNNs as psycholinguistic subjects: Syntactic state and grammatical dependencycited by 23
  3. 2018On Evaluating the Generalization of LSTM Models in Formal Languagescited by 17
  4. 2019What Syntactic Structures block Dependencies in RNN Language Models?cited by 5

Built on by

Cited by year

Citing papers per year: 2021: 3; 2022: 1; 2023: 2; 2024: 2; 2025: 1.

9 papers.