Papers
Topics
Authors
Recent
Search
2000 character limit reached

RNNs can generate bounded hierarchical languages with optimal memory

Published 15 Oct 2020 in cs.CL | (2010.07515v1)

Abstract: Recurrent neural networks empirically generate natural language with high syntactic fidelity. However, their success is not well-understood theoretically. We provide theoretical insight into this success, proving in a finite-precision setting that RNNs can efficiently generate bounded hierarchical languages that reflect the scaffolding of natural language syntax. We introduce Dyck-(kk,mm), the language of well-nested brackets (of kk types) and mm-bounded nesting depth, reflecting the bounded memory needs and long-distance dependencies of natural language syntax. The best known results use O(k<sup>m2)O(k<sup>{\frac{m}{2}}) memory (hidden units) to generate these languages. We prove that an RNN with O(mlogk)O(m \log k) hidden units suffices, an exponential reduction in memory, by an explicit construction. Finally, we show that no algorithm, even with unbounded computation, can suffice with o(mlogk)o(m \log k) hidden units.

Citations (50)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.