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

LSTM语言模型中的多时间尺度表示学习

Multi-timescale Representation Learning in LSTM Language Models

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Intel Labs(英特尔实验室);Apple Inc.(苹果公司)

Shivangi Mahto, Vy A. Vo, Javier S. Turek, Alexander G. Huth

摘要:

语言模型必须在从很短到很长的时间尺度上捕获单词之间的统计依赖关系。早期的工作已经证明,自然语言中的依赖性往往会根据幂律随着单词之间的距离而衰减。然而,目前还不清楚如何将这些知识用于分析或设计神经网络语言模型。在这项工作中,我们推导出了一个理论,说明长短期记忆(LSTM)语言模型中的记忆门控机制如何捕捉幂律衰减。我们发现LSTM中的单位时间尺度(由遗忘门偏置决定)应该遵循逆伽马分布。然后实验表明,在自然英语文本上训练的LSTM语言模型学习近似这种理论分布。此外,我们发现,在训练过程中明确地将理论分布强加于模型,总体上会产生更好的语言模型困惑,特别是在预测低频(罕见)单词方面。此外,显式多时间尺度模型通过具有不同时间尺度的单元选择性地路由关于不同类型的词的信息,从而潜在地提高模型的可解释性。这些结果证明了在语言模型中对记忆和时间尺度进行仔细的、有理论依据的分析的重要性。

英文摘要:

Language models must capture statistical dependencies between words at timescales ranging from very short to very long. Earlier work has demonstrated that dependencies in natural language tend to decay with distance between words according to a power law. However, it is unclear how this knowledge can be used for analyzing or designing neural network language models. In this work, we derived a theory for how the memory gating mechanism in long short-term memory (LSTM) language models can capture power law decay. We found that unit timescales within an LSTM, which are determined by the forget gate bias, should follow an Inverse Gamma distribution. Experiments then showed that LSTM language models trained on natural English text learn to approximate this theoretical distribution. Further, we found that explicitly imposing the theoretical distribution upon the model during training yielded better language model perplexity overall, with particular improvements for predicting low-frequency (rare) words. Moreover, the explicit multi-timescale model selectively routes information about different types of words through units with different timescales, potentially improving model interpretability. These results demonstrate the importance of careful, theoretically-motivated analysis of memory and timescale in language models.

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

↑