arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2104.01572cs.CL
收藏

TransfoRNN:捕获自注意表征中的序列信息用于语言建模

TransfoRNN: Capturing the Sequential Information in Self-Attention Representations for Language Modeling

Lenovo Research(联想研究院)

Tze Yuang Chong, Xuyang Wang, Lin Yang, Junjie Wang

摘要:

在本文中,我们描述了使用递归神经网络来捕获序列信息的自我注意表示,以改善Transformers。虽然自我注意力机制提供了一种利用长上下文的手段,但顺序信息,即令牌的排列,没有被显式地捕获。我们建议将递归神经网络级联到Transformers,称为TransfoRNN模型,以捕获序列信息。我们发现,仅由浅Transformers堆栈组成的TransfoRNN模型足以提供与更深的Transformer模型相当的性能。在Penn Treebank和WikiText-2语料库上进行评估,所提出的TransfoRNN模型显示出较低的模型复杂度,模型参数数量较少。在Penn Treebank语料库上,模型复杂度降低了5.5%,模型大小减少了10.5%。在WikiText-2语料库上,模型复杂度降低了2.2%,模型更小了27.7%。此外,TransfoRNN模型应用于LibriSpeech语音识别任务,并显示出与Transformer模型相当的结果。

英文摘要:

In this paper, we describe the use of recurrent neural networks to capture sequential information from the self-attention representations to improve the Transformers. Although self-attention mechanism provides a means to exploit long context, the sequential information, i.e. the arrangement of tokens, is not explicitly captured. We propose to cascade the recurrent neural networks to the Transformers, which referred to as the TransfoRNN model, to capture the sequential information. We found that the TransfoRNN models which consists of only shallow Transformers stack is suffice to give comparable, if not better, performance than a deeper Transformer model. Evaluated on the Penn Treebank and WikiText-2 corpora, the proposed TransfoRNN model has shown lower model perplexities with fewer number of model parameters. On the Penn Treebank corpus, the model perplexities were reduced up to 5.5% with the model size reduced up to 10.5%. On the WikiText-2 corpus, the model perplexity was reduced up to 2.2% with a 27.7% smaller model. Also, the TransfoRNN model was applied on the LibriSpeech speech recognition task and has shown comparable results with the Transformer models.

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

↑