Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languages

Mirac Suzgun, Sebastian Gehrmann, Yonatan Belinkov, Stuart M. Shieber
11/8/2019
cs.CLcs.LGcs.NE

Official code: suzgunmirac/marnns (12 stars, last commit 2019-11-11).

Abstract

We introduce three memory-augmented Recurrent Neural Networks (MARNNs) and explore their capabilities on a series of simple language modeling tasks whose solutions require stack-based mechanisms. We provide the first demonstration of neural networks recognizing the generalized Dyck languages, which express the core of what it means to be a language with hierarchical structure. Our memory-augmented architectures are easy to train in an end-to-end fashion and can learn the Dyck languages over as many as six parenthesis-pairs, in addition to two deterministic palindrome languages and the string-reversal transduction task, by emulating pushdown automata. Our experiments highlight the increased modeling capacity of memory-augmented models over simple RNNs, while inflecting our understanding of the limitations of these models.

View on arXivView PDF

Code Implementations(1)

suzgunmirac/marnnsOfficial100%

MARNNs Can Learn Generalized Dyck Languages

128Python, Jupyter NotebookNov 6, 20196 years ago

Similar Papers

Cite this paper

@article{suzgun2019memoryaugmented,
  title  = {Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languages},
  author = {Mirac Suzgun and Sebastian Gehrmann and Yonatan Belinkov and Stuart M. Shieber},
  year   = {2019},
  eprint = {1911.03329},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03329}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.03329.svg)](https://codeofpaper.com/paper/1911.03329)

Discussion