arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.01470cs.LGcs.CLstat.ML
收藏

持久记忆增强自注意力

Augmenting Self-attention with Persistent Memory

Facebook AI Research(脸书人工智能研究院)

Sainbayar Sukhbaatar, Edouard Grave, Guillaume Lample, Herve Jegou, Armand Joulin

摘要:

Transformer网络在语言建模和机器翻译方面取得了重要进展。这些模型包括两个连续的模块,前馈层和自注意力层。后者允许网络捕获长期依赖性,并且通常被认为是Transformers成功的关键因素。基于这种直觉,我们提出了一个新的模型,仅由注意力层。更准确地说,我们用持久记忆向量来增强自注意力层,这些向量扮演着与前馈层类似的角色。由于这些矢量,我们可以在不降低Transformer性能的情况下移除前馈层。我们的评估显示了我们的模型在标准字符和单词级语言建模基准测试中所带来的好处。

英文摘要:

Transformer networks have lead to important progress in language modeling and machine translation. These models include two consecutive modules, a feed-forward layer and a self-attention layer. The latter allows the network to capture long term dependencies and are often regarded as the key ingredient in the success of Transformers. Building upon this intuition, we propose a new model that solely consists of attention layers. More precisely, we augment the self-attention layers with persistent memory vectors that play a similar role as the feed-forward layer. Thanks to these vectors, we can remove the feed-forward layer without degrading the performance of a transformer. Our evaluation shows the benefits brought by our model on standard character and word level language modeling benchmarks.

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

↑