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

基于注意力的记忆选择递归网络语言建模

Attention-based Memory Selection Recurrent Network for Language Modeling

National Taiwan University(国立台湾大学)

Da-Rong Liu, Shun-Po Chuang, Hung-yi Lee

摘要:

递归神经网络(RNN)在语言建模方面取得了巨大的成功。然而,由于RNN具有固定的内存大小,它们的内存无法存储有关句子中之前看到的单词的所有信息,因此在预测下一个单词时可能会忽略有用的长期信息。在本文中,我们提出了基于注意力的记忆选择递归网络(AMSRN),在该网络中,模型可以回顾存储在记忆中的信息在每个前一个时间步,并选择相关的信息,以帮助生成输出。在实验中,AMSRN的注意力机制发现了存储在记忆中的相关信息的时间步长,而记忆选择决定了计算注意权重时涉及的记忆维度以及信息的提取。在实验中,AMSRN在英语和汉语语料库上的表现优于基于长短期记忆(LSTM)的语言模型。此外,我们研究使用熵作为注意力权重的正则化,并可视化注意力机制如何帮助语言建模。

英文摘要:

Recurrent neural networks (RNNs) have achieved great success in language modeling. However, since the RNNs have fixed size of memory, their memory cannot store all the information about the words it have seen before in the sentence, and thus the useful long-term information may be ignored when predicting the next words. In this paper, we propose Attention-based Memory Selection Recurrent Network (AMSRN), in which the model can review the information stored in the memory at each previous time step and select the relevant information to help generate the outputs. In AMSRN, the attention mechanism finds the time steps storing the relevant information in the memory, and memory selection determines which dimensions of the memory are involved in computing the attention weights and from which the information is extracted.In the experiments, AMSRN outperformed long short-term memory (LSTM) based language models on both English and Chinese corpora. Moreover, we investigate using entropy as a regularizer for attention weights and visualize how the attention mechanism helps language modeling.

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

↑