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

学习具有可微不确定堆栈的层次结构

Learning Hierarchical Structures with Differentiable Nondeterministic Stacks

University of Notre Dame(圣母大学)

Brian DuSell, David Chiang

摘要:

以一种可靠的、可推广的方式学习序列数据中的层次结构--从简单的算法模式到自然语言--对于神经语言模型来说仍然是一个具有挑战性的问题。过去的研究表明,递归神经网络(RNN)很难在没有监督或一些归纳偏见的情况下对算法或语法模式进行概括。为了解决这个问题,许多论文都探索了用各种可微堆栈来增强RNN,通过与有限自动机和下推自动机(PDA)进行类比。在本文中,我们改进了我们最近提出的非确定性堆栈RNN(NS-RNN)的性能,它使用了一种可微的数据结构来模拟非确定性PDA,有两个重要的变化。首先,该模型现在为堆栈动作分配了未归一化的正权重,而不是概率,我们分析了为什么这会改善训练。其次,该模型可以直接观察底层PDA的状态。我们的模型在五个与上下文无关的语言建模任务(在信息理论下限的0.05 nats内)上实现了比所有以前的堆栈RNN更低的交叉熵,其中包括NS-RNN以前未能优于确定性堆栈RNN基线的任务。最后,我们提出了一个限制版本的NS-RNN,增量处理无限长的序列,我们目前的语言建模结果在Penn Treebank。

英文摘要:

Learning hierarchical structures in sequential data -- from simple algorithmic patterns to natural language -- in a reliable, generalizable way remains a challenging problem for neural language models. Past work has shown that recurrent neural networks (RNNs) struggle to generalize on held-out algorithmic or syntactic patterns without supervision or some inductive bias. To remedy this, many papers have explored augmenting RNNs with various differentiable stacks, by analogy with finite automata and pushdown automata (PDAs). In this paper, we improve the performance of our recently proposed Nondeterministic Stack RNN (NS-RNN), which uses a differentiable data structure that simulates a nondeterministic PDA, with two important changes. First, the model now assigns unnormalized positive weights instead of probabilities to stack actions, and we provide an analysis of why this improves training. Second, the model can directly observe the state of the underlying PDA. Our model achieves lower cross-entropy than all previous stack RNNs on five context-free language modeling tasks (within 0.05 nats of the information-theoretic lower bound), including a task on which the NS-RNN previously failed to outperform a deterministic stack RNN baseline. Finally, we propose a restricted version of the NS-RNN that incrementally processes infinitely long sequences, and we present language modeling results on the Penn Treebank.

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

↑