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

LSTM网络可以进行动态计数

LSTM Networks Can Perform Dynamic Counting

Harvard John A. Paulson School of Engineering and Applied Sciences(哈佛大学约翰·A·保尔森工程与应用科学学院);MIT Computer Science and Artificial Intelligence Laboratory(麻省理工学院计算机科学与人工智能实验室)

Mirac Suzgun, Sebastian Gehrmann, Yonatan Belinkov, Stuart M. Shieber

摘要:

在本文中,我们系统地评估了标准递归网络执行动态计数和编码分层表示的能力。我们实验中的所有神经模型都被设计成小型网络,以防止它们记住训练集,并在测试时可视化和解释它们的行为。我们的研究结果表明,长短期记忆(LSTM)网络可以学习识别平衡的括号语言(Dyck- $1$)和多个Dyck- $1$语言的洗牌,每个语言定义在不同的括号对上,通过模拟简单的实时$k$计数器机器。据我们所知,这项工作是第一次研究引入洗牌语言来分析神经网络的计算能力。我们还表明,只有一个隐藏单元的单层LSTM实际上足以识别Dyck- $1$语言。然而,我们的递归网络都不能在Dyck- $2$语言学习任务中产生良好的性能,该任务需要模型具有类似堆栈的识别机制。

英文摘要:

In this paper, we systematically assess the ability of standard recurrent networks to perform dynamic counting and to encode hierarchical representations. All the neural models in our experiments are designed to be small-sized networks both to prevent them from memorizing the training sets and to visualize and interpret their behaviour at test time. Our results demonstrate that the Long Short-Term Memory (LSTM) networks can learn to recognize the well-balanced parenthesis language (Dyck-$1$) and the shuffles of multiple Dyck-$1$ languages, each defined over different parenthesis-pairs, by emulating simple real-time $k$-counter machines. To the best of our knowledge, this work is the first study to introduce the shuffle languages to analyze the computational power of neural networks. We also show that a single-layer LSTM with only one hidden unit is practically sufficient for recognizing the Dyck-$1$ language. However, none of our recurrent networks was able to yield a good performance on the Dyck-$2$ language learning task, which requires a model to have a stack-like mechanism for recognition.

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

↑