Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Augmenting Self-attention with Persistent Memory

About

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.

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

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-103 (test)
Perplexity20.6
524
Character-level Language Modelingenwik8 (test)
BPC0.98
195
Character-level Language Modelingtext8 (test)
BPC1.08
128
Word-level Language ModelingWikiText-103 word-level (test)
Perplexity20.6
65
Word-level Language ModelingWikiText-103 (dev)
Perplexity19.7
64
Character-level Language Modelingtext8 (dev)
BPC1.02
13
Showing 6 of 6 rows

Other info

Follow for update