All-Attention Transformer Sainbayar Sukhbaatar and co-authors posted a paper to arXiv on 2 July 2019 proposing a Transformer variant made solely of attention layers, with persistent memory vectors added to self-attention to replace the feed-forward layer. The authors report that removing the feed-forward layer this way does not degrade Transformer performance, and they show gains on standard character- and word-level language modeling benchmarks. Computer Science Machine Learning Submitted on 2 Jul 2019 Title:Augmenting Self-attention with Persistent Memory View PDF https://arxiv.org/pdf/1907.01470 HTML experimental https://arxiv.org/html/1907.01470v1 Abstract: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. Submission history From: Sainbayar Sukhbaatar view email https://arxiv.org/show-email/77c9e9c9/1907.01470 v1 Tue, 2 Jul 2019 15:56:20 UTC 166 KB Additional Features Current browse context: cs.LG References & Citations DBLP https://dblp.uni-trier.de - CS Bibliography Loading... Bibliographic and Citation Tools Bibliographic Explorer What is the Explorer? https://info.arxiv.org/labs/showcase.html arxiv-bibliographic-explorer Connected Papers What is Connected Papers? https://www.connectedpapers.com/about Litmaps What is Litmaps? https://www.litmaps.co/ scite Smart Citations What are Smart Citations? https://www.scite.ai/ Code, Data and Media Associated with this Article alphaXiv What is alphaXiv? https://alphaxiv.org/ CatalyzeX Code Finder for Papers What is CatalyzeX? https://www.catalyzex.com DagsHub What is DagsHub? https://dagshub.com/ Gotit.pub What is GotitPub? http://gotit.pub/faq Hugging Face What is Huggingface? https://huggingface.co/huggingface ScienceCast What is ScienceCast? https://sciencecast.org/welcome Demos Recommenders and Search Tools Influence Flower What are Influence Flowers? https://influencemap.cmlab.dev/ CORE Recommender What is CORE? https://core.ac.uk/services/recommender IArxiv Recommender What is IArxiv? https://iarxiv.org/about arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them. Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs https://info.arxiv.org/labs/index.html .