arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2009.13101cs.LGcs.FLstat.ML
收藏

用谱方法从循环神经网络中提取加权自动机

Distillation of Weighted Automata from Recurrent Neural Networks using a Spectral Approach

Univ Lyon(里昂大学);UJM-Saint-Etienne(圣艾蒂安大学);CNRS(法国国家科学研究中心);Laboratoire Hubert Curien(休伯特·居里安实验室);Aix Marseille Univ(艾克斯-马赛大学);Universite de Toulon(土伦大学);LIS(信息科学实验室)

Remi Eyraud, Stephane Ayache

摘要:

本文试图弥合深度学习和语法推理之间的差距。事实上,它提供了一种算法,可以从任何为语言建模而训练的递归神经网络中提取(随机)形式语言。详细地说,该算法使用已经训练好的网络作为预言机,因此不需要访问黑盒的内部表示,并应用谱方法来推断加权自动机。由于加权自动机计算线性函数,它们在计算上比神经网络更有效,因此该方法的本质是知识蒸馏之一。我们详细的实验62个数据集(合成和现实世界的应用),允许深入研究所提出的算法的能力。结果表明,我们提取的WA是RNN的良好近似,验证了该方法。此外,我们还展示了该过程如何为RNN在数据上学习的行为提供有趣的见解,将这项工作的范围扩大到深度学习模型的可解释性。

英文摘要:

This paper is an attempt to bridge the gap between deep learning and grammatical inference. Indeed, it provides an algorithm to extract a (stochastic) formal language from any recurrent neural network trained for language modelling. In detail, the algorithm uses the already trained network as an oracle -- and thus does not require the access to the inner representation of the black-box -- and applies a spectral approach to infer a weighted automaton. As weighted automata compute linear functions, they are computationally more efficient than neural networks and thus the nature of the approach is the one of knowledge distillation. We detail experiments on 62 data sets (both synthetic and from real-world applications) that allow an in-depth study of the abilities of the proposed algorithm. The results show the WA we extract are good approximations of the RNN, validating the approach. Moreover, we show how the process provides interesting insights toward the behavior of RNN learned on data, enlarging the scope of this work to the one of explainability of deep learning models.

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

↑