English

Learning Context-Free Languages with Nondeterministic Stack RNNs

Computation and Language 2022-12-01 v2

Abstract

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 call the combination of this data structure with a recurrent neural network (RNN) controller a Nondeterministic Stack RNN. We compare our model against existing stack RNNs on various formal languages, demonstrating that our model converges more reliably to algorithmic behavior on deterministic tasks, and achieves lower cross-entropy on inherently nondeterministic tasks.

Keywords

Cite

@article{arxiv.2010.04674,
  title  = {Learning Context-Free Languages with Nondeterministic Stack RNNs},
  author = {Brian DuSell and David Chiang},
  journal= {arXiv preprint arXiv:2010.04674},
  year   = {2022}
}

Comments

13 pages, 5 figures. Published at CoNLL 2020. This revision fixes a typo

R2 v1 2026-06-23T19:12:54.578Z