The Neural Network Pushdown Automaton: Model, Stack and Learning Simulations
Not on the map. Why?
Abstract (arXiv)
In order for neural networks to learn complex languages or grammars, they must have sufficient computational power or resources to recognize or generate such languages. Though many approaches have been discussed, one ob- vious approach to enhancing the processing power of a recurrent neural network is to couple it with an external stack memory - in effect creating a neural network pushdown automata (NNPDA). This paper discusses in detail this NNPDA - its construction, how it can be trained and how useful symbolic information can be extracted from the trained network. In order to couple the external stack to the neural network, an optimization method is developed which uses an error function that connects the learning of the state automaton of the neural network to the learning of the operation of the external stack. To minimize the error function using gradient descent learning, an analog stack is designed such that the action and storage of information in the stack are continuous. One interpretation of a continuous stack is the probabilistic storage of and action on data. After training on sample strings of an unknown source grammar, a quantization procedure extracts from the analog stack and neural network a discrete pushdown automata (PDA). Simulations show that in learning deterministic context-free grammars - the balanced parenthesis language, 1*n0*n, and the deterministic Palindrome - the extracted PDA is correct in the sense that it can correctly recognize unseen strings of arbitrary length. In addition, the extracted PDAs can be shown to be identical or equivalent to the PDAs of the source grammars which were used to generate the training strings.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 15 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 3; 2023: 3; 2024: 0; 2025: 1.
10 papers.
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stackscited by 16
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Unitscited by 8
- 2022The Surprising Computational Power of Nondeterministic Stack RNNscited by 6
- 2021Rule Augmented Unsupervised Constituency Parsingcited by 4
- 2023Universal Recurrent Event Memories for Streaming Datacited by 1
- 2022Syntactic Inductive Biases for Deep Learning Methodscited by 0
- 2023Nondeterministic Stacks in Neural Networkscited by 0
- 2025Understanding Syntactic Generalization in Structure-inducing Language Modelscited by 0
- 2025Understanding Syntactic Generalization in Structure-inducing Language Models11 Aug 2025
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions24 Oct 2023
- 2023Universal Recurrent Event Memories for Streaming Data28 Jul 2023
- 2023Nondeterministic Stacks in Neural Networks25 Apr 2023
- 2022The Surprising Computational Power of Nondeterministic Stack RNNs4 Oct 2022
- 2022Neural Networks and the Chomsky Hierarchy5 Jul 2022
- 2022Syntactic Inductive Biases for Deep Learning Methods8 Jun 2022
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stacks5 Sep 2021
- 2021Rule Augmented Unsupervised Constituency Parsing21 May 2021
- 2021Recognizing and Verifying Mathematical Equations using Multiplicative Differential Neural Units7 Apr 2021