paper-with-me

홈 › Papers

The Surprising Computational Power of Nondeterministic Stack RNNs

2022-10-04 · Brian DuSell, David Chiang

Traditional recurrent neural networks (RNNs) have a fixed, finite number of memory cells. In theory (assuming bounded range and precision), this limits their formal language recognition power to regular languages, and in practice, RNNs have been shown to be unable to learn many context-free languages (CFLs). In order to expand the class of languages RNNs recognize, prior work has augmented RNNs with a nondeterministic stack data structure, putting them on par with pushdown automata and increasing their language recognition power to CFLs. Nondeterminism is needed for recognizing all CFLs (not just deterministic CFLs), but in this paper, we show that nondeterminism and the neural controller interact to produce two more unexpected abilities. First, the nondeterministic stack RNN can recognize not only CFLs, but also many non-context-free languages. Second, it can recognize languages with much larger alphabet sizes than one might expect given the size of its stack alphabet. Finally, to increase the information capacity in the stack and allow it to solve more complicated tasks with large alphabet sizes, we propose a new version of the nondeterministic stack that simulates stacks of vectors rather than discrete symbols. We demonstrate perplexity improvements with this new model on the Penn Treebank language modeling benchmark.

📄 PDF Abstract BibTeX arXiv:2210.01343

Code (2)

bdusell/nondeterministic-stack-rnn 공식 구현 pytorch
bdusell/stack-attention pytorch

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Nondeterministic Stacks in Neural Networks

2023-04-25 · Brian DuSell

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 architectur…

Language ModelingLanguage Modelling

Learning Context-Free Languages with Nondeterministic Stack RNNs

2020-10-09 · CONLL 2020 · Brian DuSell, David Chiang

We present a differentiable stack data structure that simultaneously and tractably encodes an exponential number of stack configurations, based on Lang's algorithm for simulating nondeterministic pushdown automata. We ca…

Learning Hierarchical Structures with Differentiable Nondeterministic Stacks

2021-09-05 · ICLR 2022 4 · Brian DuSell, David Chiang

Learning hierarchical structures in sequential data -- from simple algorithmic patterns to natural language -- in a reliable, generalizable way remains a challenging problem for neural language models. Past work has show…

Inductive BiasLanguage ModelingLanguage Modelling

Residual Stacking of RNNs for Neural Machine Translation

2016-12-01 · WS 2016 12 · Raphael Shu, Akiva Miura

To enhance Neural Machine Translation models, several obvious ways such as enlarging the hidden size of recurrent layers and stacking multiple layers of RNN can be considered. Surprisingly, we observe that using naively …

DecoderMachine TranslationNMTTranslation+1

Linear Dynamical Systems as a Core Computational Primitive

2020-12-01 · NeurIPS 2020 12 · Shiva Kaul

Running nonlinear RNNs for T steps takes O(T) time. Our construction, called LDStack, approximately runs them in O(log T) parallel time, and obtains arbitrarily low error via repetition. First, we show nonlinear RNNs can…