变压器
计算机科学
直觉
语言模型
人工智能
机器学习
认知科学
工程类
心理学
电气工程
电压
作者
Sainbayar Sukhbaatar,Édouard Grave,Guillaume Lample,Hervé Jeǵou,Armand Joulin
出处
期刊:Cornell University - arXiv
日期:2019-01-01
被引量:52
标识
DOI:10.48550/arxiv.1907.01470
摘要
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.
科研通智能强力驱动
Strongly Powered by AbleSci AI