arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.08200cs.FLcs.LG
收藏

从循环神经网络合成上下文无关文法(扩展版)

Synthesizing Context-free Grammars from Recurrent Neural Networks (Extended Version)

IBM(国际商业机器公司);Technion(以色列理工学院)

Daniel M. Yellin, Gail Weiss

摘要:

提出了一种从训练好的递归神经网络中提取上下文无关文法子类的算法。我们开发了一个新的框架,模式规则集(PRS),它描述的序列的确定性有限自动机(DFA),近似一个非正则语言。我们提出了一种算法,用于恢复PRS背后的序列,这样的自动机,并将其应用到序列的自动机提取训练的RNN使用L* 算法。然后,我们将展示如何PRS可以转换成一个CFG,使熟悉和有用的介绍学习的语言。提取RNN的学习语言对于促进RNN的理解并验证其正确性非常重要。此外,所提取的CFG可以增强RNN在分类正确句子方面的能力,因为当递归深度和其输入序列的匹配定界符之间的距离增加时,RNN的预测准确度会降低。

英文摘要:

We present an algorithm for extracting a subclass of the context free grammars (CFGs) from a trained recurrent neural network (RNN). We develop a new framework, pattern rule sets (PRSs), which describe sequences of deterministic finite automata (DFAs) that approximate a non-regular language. We present an algorithm for recovering the PRS behind a sequence of such automata, and apply it to the sequences of automata extracted from trained RNNs using the L* algorithm. We then show how the PRS may converted into a CFG, enabling a familiar and useful presentation of the learned language. Extracting the learned language of an RNN is important to facilitate understanding of the RNN and to verify its correctness. Furthermore, the extracted CFG can augment the RNN in classifying correct sentences, as the RNN's predictive accuracy decreases when the recursion depth and distance between matching delimiters of its input sequences increases.

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

↑