神经状态下推自动机
The Neural State Pushdown Automata
摘要:
为了学习复杂的语法,递归神经网络(RNN)需要足够的计算资源来确保正确的语法识别。一种广泛使用的扩展模型容量的方法是将RNN耦合到外部内存堆栈。在这里,我们介绍了一个“神经状态”的下推自动机(NSPDA),它由一个数字堆栈,而不是一个模拟的,这是耦合到一个神经网络状态机。我们的经验表明,它的有效性,在识别各种上下文无关文法(CFGs)。首先,我们开发了所提出的高阶递归网络的底层机制及其堆栈操作,以及如何稳定地编程其底层下推自动机(PDA)以实现所需的有限状态网络动态。接下来,我们介绍了高阶(张量)网络的噪声正则化方案,据我们所知,这是同类中的第一个,并设计了一个改进的增量学习算法。最后,我们设计了一种方法插入语法规则到一个NSPDA和经验表明,这种先验知识提高了一个数量级的训练收敛时间,并在某些情况下,导致更好的泛化。NSPDA还比较了一个经典的模拟堆栈神经网络下推自动机(NNPDA),以及一系列的一阶和二阶RNN,有和没有外部存储器,使用不同的学习算法训练。我们的研究结果表明,对于Dyck(2)语言,基于规则的先验知识对于优化收敛和确保在测试时推广到更长的序列是至关重要的。我们观察到,许多有记忆和没有记忆的RNN,但没有先验知识,无法收敛,并且在CFG上推广得很差。
英文摘要:
In order to learn complex grammars, recurrent neural networks (RNNs) require sufficient computational resources to ensure correct grammar recognition. A widely-used approach to expand model capacity would be to couple an RNN to an external memory stack. Here, we introduce a "neural state" pushdown automaton (NSPDA), which consists of a digital stack, instead of an analog one, that is coupled to a neural network state machine. We empirically show its effectiveness in recognizing various context-free grammars (CFGs). First, we develop the underlying mechanics of the proposed higher order recurrent network and its manipulation of a stack as well as how to stably program its underlying pushdown automaton (PDA) to achieve desired finite-state network dynamics. Next, we introduce a noise regularization scheme for higher-order (tensor) networks, to our knowledge the first of its kind, and design an algorithm for improved incremental learning. Finally, we design a method for inserting grammar rules into a NSPDA and empirically show that this prior knowledge improves its training convergence time by an order of magnitude and, in some cases, leads to better generalization. The NSPDA is also compared to a classical analog stack neural network pushdown automaton (NNPDA) as well as a wide array of first and second-order RNNs with and without external memory, trained using different learning algorithms. Our results show that, for Dyck(2) languages, prior rule-based knowledge is critical for optimization convergence and for ensuring generalization to longer sequences at test time. We observe that many RNNs with and without memory, but no prior knowledge, fail to converge and generalize poorly on CFGs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。