Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languages
Not on the map. Why?
Abstract (arXiv)
We introduce three memory-augmented Recurrent Neural Networks (MARNNs) and explore their capabilities on a series of simple language modeling tasks whose solutions require stack-based mechanisms. We provide the first demonstration of neural networks recognizing the generalized Dyck languages, which express the core of what it means to be a language with hierarchical structure. Our memory-augmented architectures are easy to train in an end-to-end fashion and can learn the Dyck languages over as many as six parenthesis-pairs, in addition to two deterministic palindrome languages and the string-reversal transduction task, by emulating pushdown automata. Our experiments highlight the increased modeling capacity of memory-augmented models over simple RNNs, while inflecting our understanding of the limitations of these models.
Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Nov 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 10; 2022: 1; 2023: 6; 2024: 8; 2025: 5; 2026: 1.
31 papers.
Sort:
By area:
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 146
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024Learning Universal Predictorscited by 29
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2021Minimum Description Length Recurrent Neural Networkscited by 23
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 23
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Modelscited by 18
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stackscited by 16
19 more
- 2024On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languagescited by 15
- 2024Emergent Word Order Universals from Cognitively-Motivated Language Modelscited by 11
- 2021Can RNNs learn Recursive Nested Subject-Verb Agreements?cited by 9
- 2021Formal Language Theory Meets Modern NLPcited by 9
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Unitscited by 8
- 2021Causal Transformers Perform Below Chance on Recursive Nested Constructions, Unlike Humanscited by 8
- 2023Feature Interactions Reveal Linguistic Structure in Language Modelscited by 8
- 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
- 2021Learning Bounded Context-Free-Grammar via LSTM and the Transformer:Difference and Explanationscited by 7
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networkscited by 3
- 2023Benchmarking Neural Network Generalization for Grammar Inductioncited by 3
- 2024A Transformer with Stack Attentioncited by 2
- 2025Emergent Stack Representations in Modeling Counter Languages Using Transformerscited by 2
- 2021State-Space Constraints Can Improve the Generalisation of the Differentiable Neural Computer to Input Sequences With Unseen Lengthcited by 1
- 2026On the Emergence of Syntax by Means of Local Interactioncited by 1
- 2021Enhancing Reinforcement Learning with discrete interfaces to learn the Dyck Languagecited by 0
- 2023Nondeterministic Stacks in Neural Networkscited by 0
- 2024Enhancing Length Extrapolation in Sequential Models with Pointer-Augmented Neural Memorycited by 0
- 2025MapFormer: Self-Supervised Learning of Cognitive Maps with Input-Dependent Positional Embeddingscited by 0
- 2026On the Emergence of Syntax by Means of Local Interaction20 Apr 2026
- 2025MapFormer: Self-Supervised Learning of Cognitive Maps with Input-Dependent Positional Embeddings24 Nov 2025
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory10 Apr 2025
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb 2025
- 2025Emergent Stack Representations in Modeling Counter Languages Using Transformers3 Feb 2025
- 2024On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages26 Dec 2024
- 2024Training Neural Networks as Recognizers of Formal Languages11 Nov 2024
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architectures13 Jun 2024
- 2024A Transformer with Stack Attention7 May 2024
- 2024Enhancing Length Extrapolation in Sequential Models with Pointer-Augmented Neural Memory18 Apr 2024
- 2024Emergent Word Order Universals from Cognitively-Motivated Language Models19 Feb 2024
19 more
- 2024Learning Universal Predictors26 Jan 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Models29 Oct 2023
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions24 Oct 2023
- 2023Benchmarking Neural Network Generalization for Grammar Induction16 Aug 2023
- 2023Feature Interactions Reveal Linguistic Structure in Language Models21 Jun 2023
- 2023Nondeterministic Stacks in Neural Networks25 Apr 2023
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networks7 Apr 2023
- 2022Neural Networks and the Chomsky Hierarchy5 Jul 2022
- 2021Learning Bounded Context-Free-Grammar via LSTM and the Transformer:Difference and Explanations16 Dec 2021
- 2021Minimum Description Length Recurrent Neural Networks31 Oct 2021
- 2021Enhancing Reinforcement Learning with discrete interfaces to learn the Dyck Language27 Oct 2021
- 2021State-Space Constraints Can Improve the Generalisation of the Differentiable Neural Computer to Input Sequences With Unseen Length18 Oct 2021
- 2021Causal Transformers Perform Below Chance on Recursive Nested Constructions, Unlike Humans14 Oct 2021
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stacks5 Sep 2021
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languages24 May 2021
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Units7 Apr 2021
- 2021Formal Language Theory Meets Modern NLP19 Feb 2021
- 2021Can RNNs learn Recursive Nested Subject-Verb Agreements?6 Jan 2021
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 146
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024Learning Universal Predictorscited by 29
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2021Minimum Description Length Recurrent Neural Networkscited by 23
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Modelscited by 18
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stackscited by 16
- 2024Emergent Word Order Universals from Cognitively-Motivated Language Modelscited by 11
- 2021Can RNNs learn Recursive Nested Subject-Verb Agreements?cited by 9
12 most cited of 28 All 28 (JSON)
- 2026On the Emergence of Syntax by Means of Local Interaction20 Apr 2026
- 2025MapFormer: Self-Supervised Learning of Cognitive Maps with Input-Dependent Positional Embeddings24 Nov 2025
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory10 Apr 2025
- 2025Emergent Stack Representations in Modeling Counter Languages Using Transformers3 Feb 2025
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architectures13 Jun 2024
- 2024A Transformer with Stack Attention7 May 2024
- 2024Enhancing Length Extrapolation in Sequential Models with Pointer-Augmented Neural Memory18 Apr 2024
- 2024Emergent Word Order Universals from Cognitively-Motivated Language Models19 Feb 2024
- 2024Learning Universal Predictors26 Jan 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Models29 Oct 2023
12 newest of 28 All 28 (JSON)