mlsanityData to 7 Oct 2026

Nondeterministic Stacks in Neural Networks

arXiv 2304.12955 ↗First posted 25 Apr 2023cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Human language is full of compositional syntactic structures, and although neural networks have contributed to groundbreaking improvements in computer systems that process language, widely-used neural network architectures still exhibit limitations in their ability to process syntax. To address this issue, prior work has proposed adding stack data structures to neural networks, drawing inspiration from theoretical connections between syntax and stacks. However, these methods employ deterministic stacks that are designed to track one parse at a time, whereas syntactic ambiguity, which requires a nondeterministic stack to parse, is extremely common in language. In this dissertation, we remedy this discrepancy by proposing a method of incorporating nondeterministic stacks into neural networks. We develop a differentiable data structure that efficiently simulates a nondeterministic pushdown automaton, representing an exponential number of computations with a dynamic programming algorithm. We incorporate this module into two predominant architectures: recurrent neural networks (RNNs) and transformers. We show that this raises their formal recognition power to arbitrary context-free languages, and also aids training, even on deterministic context-free languages. Empirically, neural networks with nondeterministic stacks learn context-free languages much more effectively than prior stack-augmented models, including a language with theoretically maximal parsing difficulty. We also show that an RNN augmented with a nondeterministic stack is capable of surprisingly powerful behavior, such as learning cross-serial dependencies, a well-known non-context-free pattern. We demonstrate improvements on natural language modeling and provide analysis on a syntactic generalization benchmark. This work represents an important step toward building systems that learn to use syntax in more human-like fashion.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 10 of its 101 references that are in the map. First posted on arXiv 25 Apr 2023.

Builds on

10 of 101 references.

References · 10

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2014Neural Turing Machinescited by 630
  5. 2019Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languagescited by 31
  6. 2017Jointly Learning Sentence Embeddings and Syntax with Unsupervised Tree-LSTMscited by 23
  7. 2021Transformers Generalize Linearlycited by 19
  8. 2017The Neural Network Pushdown Automaton: Model, Stack and Learning Simulationscited by 10
  9. 2021Formal Language Theory Meets Modern NLPcited by 9
  10. 2020A provably stable neural network Turing Machinecited by 7

Built on by

Not cited yet.