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

状态正则化循环神经网络提取自动机和解释预测

State-Regularized Recurrent Neural Networks to Extract Automata and Explain Predictions

Amazon(亚马逊);NEC Laboratories Europe(NEC欧洲实验室);University of Stuttgart(斯图加特大学)

Cheng Wang, Carolin Lawrence, Mathias Niepert

摘要:

循环神经网络是一类广泛使用的神经网络结构。然而,它们有两个缺点。首先,它们通常被视为黑箱模型,因此很难理解它们到底学到了什么,以及它们如何得出特定的预测。第二,它们在需要长期记忆的序列上往往效果不佳,尽管原则上它们具有这种能力。我们的目标是解决这两个缺点与一类经常性的网络,使用细胞应用程序之间的随机状态转换机制。这种机制,我们称之为状态正则化,使RNN在有限的可学习状态集之间转换。我们评估状态正则化RNN(1)用于自动机提取的正则语言;(2)需要外部存储器的非正则语言,如平衡括号和回文;以及(3)用于情感分析,视觉对象识别和文本分类的实词序列学习任务。我们证明了状态正则化(a)简化了显示RNN状态转换动态的有限状态自动机的提取;(b)迫使RNN更像具有外部存储器的自动机而不像有限状态机,这可能导致更多的结构记忆;(c)通过利用时间步长上的概率有限状态转换机制,导致RNN更好的可解释性和可解释性。

英文摘要:

Recurrent neural networks are a widely used class of neural architectures. They have, however, two shortcomings. First, they are often treated as black-box models and as such it is difficult to understand what exactly they learn as well as how they arrive at a particular prediction. Second, they tend to work poorly on sequences requiring long-term memorization, despite having this capacity in principle. We aim to address both shortcomings with a class of recurrent networks that use a stochastic state transition mechanism between cell applications. This mechanism, which we term state-regularization, makes RNNs transition between a finite set of learnable states. We evaluate state-regularized RNNs on (1) regular languages for the purpose of automata extraction; (2) non-regular languages such as balanced parentheses and palindromes where external memory is required; and (3) real-word sequence learning tasks for sentiment analysis, visual object recognition and text categorisation. We show that state-regularization (a) simplifies the extraction of finite state automata that display an RNN's state transition dynamic; (b) forces RNNs to operate more like automata with external memory and less like finite state machines, which potentiality leads to a more structural memory; (c) leads to better interpretability and explainability of RNNs by leveraging the probabilistic finite state transition mechanism over time steps.

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

↑