arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1301.5650stat.MLcs.LG
收藏

神经语言模型的正则化和非线性:何时需要它们?

Regularization and nonlinearities for neural language models: when are they needed?

Gatsby Computational Neuroscience Unit(盖茨比计算神经科学研究组);University College London(伦敦大学学院)

Marius Pachitariu, Maneesh Sahani

摘要:

基于递归神经网络(RNN)的神经语言模型(LM)是一些最成功的单词和字符级LM。为什么它们工作得这么好,特别是比线性神经LM更好?可能的解释是RNN具有隐含的更好的正则化,或者RNN由于其非线性而具有更高的存储模式的能力,或者两者兼而有之。在这里,我们认为第一种解释是在训练数据很少的情况下,第二种解释是在大量文本数据的情况下。我们在流行的小型Penn数据集上展示了最先进的性能,当RNN LM被正则化并随机退出时。尽管如此,我们从一个简化的、表达能力更低的线性RNN模型中表现出更好的性能,该模型在递归矩阵中没有非对角项。我们称这种模型为脉冲响应LM(IRLM)。使用随机丢弃、列归一化和退火学习率,IRLM开发出的神经元可以在过去保持多达50个单词的记忆,并在Penn数据集上实现102.5的困惑度。然而,在两个大型数据集上,相同的正则化方法对于两个模型都是不成功的,RNN的表达能力允许它分别超过IRLM 10%和20%的困惑。尽管存在困惑差距,但IRLM在微软研究句子完成(MRSC)任务中的表现仍然优于RNN。我们开发了一个稍微修改的IRLM,将长上下文单元(LCU)从短上下文单元中分离出来,并表明LCU单独在MRSC任务上实现了60.8%的最先进性能。我们的分析表明,神经LM的一个富有成效的研究方向在于开发更容易访问的内部表示,并建议一个非常高的动量项的优化制度,有效地训练这样的模型。

英文摘要:

Neural language models (LMs) based on recurrent neural networks (RNN) are some of the most successful word and character-level LMs. Why do they work so well, in particular better than linear neural LMs? Possible explanations are that RNNs have an implicitly better regularization or that RNNs have a higher capacity for storing patterns due to their nonlinearities or both. Here we argue for the first explanation in the limit of little training data and the second explanation for large amounts of text data. We show state-of-the-art performance on the popular and small Penn dataset when RNN LMs are regularized with random dropout. Nonetheless, we show even better performance from a simplified, much less expressive linear RNN model without off-diagonal entries in the recurrent matrix. We call this model an impulse-response LM (IRLM). Using random dropout, column normalization and annealed learning rates, IRLMs develop neurons that keep a memory of up to 50 words in the past and achieve a perplexity of 102.5 on the Penn dataset. On two large datasets however, the same regularization methods are unsuccessful for both models and the RNN's expressivity allows it to overtake the IRLM by 10 and 20 percent perplexity, respectively. Despite the perplexity gap, IRLMs still outperform RNNs on the Microsoft Research Sentence Completion (MRSC) task. We develop a slightly modified IRLM that separates long-context units (LCUs) from short-context units and show that the LCUs alone achieve a state-of-the-art performance on the MRSC task of 60.8%. Our analysis indicates that a fruitful direction of research for neural LMs lies in developing more accessible internal representations, and suggests an optimization regime of very high momentum terms for effectively training such models.

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

↑