We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.LG

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Machine Learning

Title: Provably Stable Interpretable Encodings of Context Free Grammars in RNNs with a Differentiable Stack

Abstract: Given a collection of strings belonging to a context free grammar (CFG) and another collection of strings not belonging to the CFG, how might one infer the grammar? This is the problem of grammatical inference. Since CFGs are the languages recognized by pushdown automata (PDA), it suffices to determine the state transition rules and stack action rules of the corresponding PDA. An approach would be to train a recurrent neural network (RNN) to classify the sample data and attempt to extract these PDA rules. But neural networks are not a priori aware of the structure of a PDA and would likely require many samples to infer this structure. Furthermore, extracting the PDA rules from the RNN is nontrivial. We build a RNN specifically structured like a PDA, where weights correspond directly to the PDA rules. This requires a stack architecture that is somehow differentiable (to enable gradient-based learning) and stable (an unstable stack will show deteriorating performance with longer strings). We propose a stack architecture that is differentiable and that provably exhibits orbital stability. Using this stack, we construct a neural network that provably approximates a PDA for strings of arbitrary length. Moreover, our model and method of proof can easily be generalized to other state machines, such as a Turing Machine.
Comments: 20 pages, 2 figures
Subjects: Machine Learning (cs.LG); Formal Languages and Automata Theory (cs.FL); Machine Learning (stat.ML)
Cite as: arXiv:2006.03651 [cs.LG]
  (or arXiv:2006.03651v3 [cs.LG] for this version)

Submission history

From: Ankur Mali [view email]
[v1] Fri, 5 Jun 2020 19:45:49 GMT (75kb,D)
[v2] Wed, 10 Jun 2020 16:59:42 GMT (75kb,D)
[v3] Thu, 11 Jun 2020 01:01:49 GMT (75kb,D)
[v4] Sun, 18 Sep 2022 16:20:48 GMT (138kb,D)

Link back to: arXiv, form interface, contact.