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

LSTM学习上下文无关文法的能力评估

Evaluating the Ability of LSTMs to Learn Context-Free Grammars

Federal Institute of Technology(联邦理工学院);Massachusetts Institute of Technology(麻省理工学院)

Luzi Sennhauser, Robert C. Berwick

摘要:

虽然长短期记忆(LSTM)神经网络架构被设计用于捕获序列信息,但人类语言通常由分层结构组成。这就提出了一个问题,即LSTM是否可以学习层次结构。我们通过一个格式良好的括号预测任务来探索这个问题,该任务使用由LSTM建模的两种类型的括号。证明这样一个系统是可由LSTM学习的,是证明整个CFL类也是可学习的第一步。我们观察到,该模型需要指数记忆的字符数和嵌入深度,其中一个次线性记忆应该足够了。尽管如此,该模型所做的不仅仅是记住训练输入。它学习如何区分相关和不相关的信息。另一方面,我们也观察到该模型并不能很好地推广。我们的结论是,LSTM不学习相关的底层上下文无关的规则,这表明良好的整体性能,而不是通过一种有效的方法来评估滋扰变量。LSTM对于许多自然语言任务来说是一种快速达到良好结果的方法,但是为了理解和生成自然语言,必须研究可以更直接地使用自然语言的结构性质的其他概念。

英文摘要:

While long short-term memory (LSTM) neural net architectures are designed to capture sequence information, human language is generally composed of hierarchical structures. This raises the question as to whether LSTMs can learn hierarchical structures. We explore this question with a well-formed bracket prediction task using two types of brackets modeled by an LSTM. Demonstrating that such a system is learnable by an LSTM is the first step in demonstrating that the entire class of CFLs is also learnable. We observe that the model requires exponential memory in terms of the number of characters and embedded depth, where a sub-linear memory should suffice. Still, the model does more than memorize the training input. It learns how to distinguish between relevant and irrelevant information. On the other hand, we also observe that the model does not generalize well. We conclude that LSTMs do not learn the relevant underlying context-free rules, suggesting the good overall performance is attained rather by an efficient way of evaluating nuisance variables. LSTMs are a way to quickly reach good results for many natural language tasks, but to understand and generate natural language one has to investigate other concepts that can make more direct use of natural language's structural nature.

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

↑