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

神经网络下推自动机:模型、堆栈和学习模拟

The Neural Network Pushdown Automaton: Model, Stack and Learning Simulations

University of Maryland(马里兰大学);NEC Research Institute(NEC研究院)

G. Z. Sun, C. L. Giles, H. H. Chen, Y. C. Lee

摘要:

为了让神经网络学习复杂的语言或语法,它们必须有足够的计算能力或资源来识别或生成这些语言。尽管已经讨论了许多方法,但是增强递归神经网络的处理能力的一个明显的方法是将其与外部堆栈存储器耦合-实际上创建神经网络下推自动机(NNPDA)。本文详细讨论了这个NNPDA -它的结构,它可以如何训练,以及如何有用的符号信息可以从训练的网络中提取。为了将外部堆栈耦合到神经网络,开发了一种优化方法,该方法使用误差函数,该误差函数将神经网络的状态自动机的学习连接到外部堆栈的操作的学习。为了使用梯度下降学习使误差函数最小化,设计模拟堆栈,使得堆栈中的信息的动作和存储是连续的。连续堆栈的一种解释是数据的概率存储和操作。在对未知源语法的样本串进行训练之后,量化过程从模拟堆栈和神经网络中提取离散下推自动机(PDA)。模拟表明,在学习确定性上下文无关文法-平衡括号语言,1* n 0 *n,和确定性回文-提取的PDA是正确的,在这个意义上,它可以正确地识别看不见的字符串的任意长度。此外,所提取的PDA可以被示出为与用于生成训练串的源语法的PDA相同或等效。

英文摘要:

In order for neural networks to learn complex languages or grammars, they must have sufficient computational power or resources to recognize or generate such languages. Though many approaches have been discussed, one ob- vious approach to enhancing the processing power of a recurrent neural network is to couple it with an external stack memory - in effect creating a neural network pushdown automata (NNPDA). This paper discusses in detail this NNPDA - its construction, how it can be trained and how useful symbolic information can be extracted from the trained network. In order to couple the external stack to the neural network, an optimization method is developed which uses an error function that connects the learning of the state automaton of the neural network to the learning of the operation of the external stack. To minimize the error function using gradient descent learning, an analog stack is designed such that the action and storage of information in the stack are continuous. One interpretation of a continuous stack is the probabilistic storage of and action on data. After training on sample strings of an unknown source grammar, a quantization procedure extracts from the analog stack and neural network a discrete pushdown automata (PDA). Simulations show that in learning deterministic context-free grammars - the balanced parenthesis language, 1*n0*n, and the deterministic Palindrome - the extracted PDA is correct in the sense that it can correctly recognize unseen strings of arbitrary length. In addition, the extracted PDAs can be shown to be identical or equivalent to the PDAs of the source grammars which were used to generate the training strings.

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

↑