arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.07515cs.CL
收藏

RNN可以生成具有最优记忆的有界层次语言

RNNs can generate bounded hierarchical languages with optimal memory

Stanford University(斯坦福大学)

John Hewitt, Michael Hahn, Surya Ganguli, Percy Liang, Christopher D. Manning

摘要:

递归神经网络凭经验生成具有高句法保真度的自然语言。然而,他们的成功在理论上并没有得到很好的理解。我们为这一成功提供了理论上的见解,在有限精度的设置中证明RNN可以有效地生成反映自然语言语法支架的有界分层语言。我们介绍了Dyck-($k$,$m$),一种($k$类型的)嵌套良好的括号语言和$m$ -有界嵌套深度,反映了自然语言语法的有界内存需求和长距离依赖.最著名的结果使用$O(k^{\frac{m}{2}})$内存(隐藏单元)来生成这些语言。我们证明了一个RNN与$O(m \log k)$隐藏单元足够,指数减少内存,由一个明确的建设。最后,我们表明,没有算法,即使与无界计算,可以满足$o(m \log k)$隐藏单元。

英文摘要:

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-($k$,$m$), the language of well-nested brackets (of $k$ types) and $m$-bounded nesting depth, reflecting the bounded memory needs and long-distance dependencies of natural language syntax. The best known results use $O(k^{\frac{m}{2}})$ memory (hidden units) to generate these languages. We prove that an RNN with $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(m \log k)$ hidden units.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑