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.
A Hierarchical Latent Structure for Variational Conversation Modeling
Seoul National University(首尔国立大学)
变分自编码器(VAE)结合层次RNN已经成为会话建模的强大框架。然而,它们遭受着臭名昭著的退化问题,解码器学会忽略潜在变量并简化为香草RNN。我们的经验表明,这种简并发生主要是由于两个原因。首先,分层RNN解码器的表达能力通常足够高,可以仅使用其解码分布来建模数据,而不依赖于潜在变量。其次,其生成过程以上下文为条件的条件VAE结构使得训练目标的范围非常稀疏;也就是说,RNN解码器可以很容易地过拟合到训练数据,而忽略潜在变量。为了解决退化问题,我们提出了一种名为变分层次会话RNN(VHCR)的新模型,涉及两个关键思想:(1)使用潜在变量的层次结构,以及(2)利用话语丢弃正则化。通过对Cornell Movie Dialog和Ubuntu Dialog语料库两个数据集的评估,我们表明我们的VHCR成功地利用了潜变量,并优于最先进的会话生成模型。此外,它可以执行几个新的话语控制任务,由于其分层的潜在结构。
The Importance of Being Recurrent for Modeling Hierarchical Structure
University of Amsterdam(阿姆斯特丹大学);Leiden University(莱顿大学)
最近的工作表明,当训练递归神经网络(RNN)以解决常见的自然语言处理任务(例如语言建模)时,它可以隐式地捕获和利用分层信息(Linzen et al.,2016)和神经机器翻译(Shi等人,2016年)。相比之下,尽管非递归神经网络在许多NLP任务中取得了成功,但用非递归神经网络对结构化数据进行建模的能力却很少受到关注(Gehring等人,2017; Vaswani等人,2017年)。在这项工作中,我们比较了这两种架构-经常性与非经常性-关于他们的能力,模型层次结构,并发现,递归确实是重要的,为此目的。
Can RNNs learn Recursive Nested Subject-Verb Agreements?
Cognitive Neuroimaging Unit(认知神经影像单元);NeuroSpin center(NeuroSpin中心);Facebook AI Research(脸书人工智能研究院);Laboratoire des systèmes perceptif(感知系统实验室);École normale supérieure(巴黎高等师范学院);PSL University(巴黎文理研究大学);CNRS(法国国家科学研究中心);Université Paris Diderot(巴黎第七大学);Collège De France(法兰西公学院)
Finding Syntactic Representations in Neural Stacks
Yale University(耶鲁大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)
神经网络体系结构已经用可微堆栈进行了扩充,以便引入对学习层次敏感的神经网络的偏好。然而,事实证明,很难评估这种偏差的有效程度,因为可微堆栈的操作并不总是可解释的。在本文中,我们试图通过对选区结构的无监督学习的探索来检测分层结构的潜在表征的存在。使用Shen et al.(2018a,b)的技术,我们从基于语言建模和分类目标训练的堆栈RNN的推送行为中提取语法树。我们发现,我们的模型产生的解析,反映了自然语言句法选区,证明堆栈RNN确实推断语言相关的层次结构。
Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languages
Harvard John A. Paulson School of Engineering and Applied Sciences(哈佛大学约翰·A·保尔森工程与应用科学学院);MIT Computer Science and Artificial Intelligence Laboratory(麻省理工学院计算机科学与人工智能实验室)