{"slug": "all-attention-transformer", "title": "All-Attention Transformer", "summary": "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.", "body_md": "# Computer Science > Machine Learning\n\n  [Submitted on 2 Jul 2019]\n\n# Title:Augmenting Self-attention with Persistent Memory\n\n[View PDF](https://arxiv.org/pdf/1907.01470)\n\n[HTML (experimental)](https://arxiv.org/html/1907.01470v1)\n\nAbstract: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.\n    \n\n## Submission history\n\nFrom: Sainbayar Sukhbaatar [\n[view email](https://arxiv.org/show-email/77c9e9c9/1907.01470)]\n\n**[v1]** Tue, 2 Jul 2019 15:56:20 UTC (166 KB)\n\n### Additional Features\n\n### Current browse context:\n\ncs.LG\n\n### References & Citations\n\n### [DBLP](https://dblp.uni-trier.de) - CS Bibliography\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\nIArxiv Recommender\n\n*(*[What is IArxiv?](https://iarxiv.org/about))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth 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.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/all-attention-transformer", "canonical_source": "https://arxiv.org/abs/1907.01470", "published_at": "2026-12-05 20:52:00+00:00", "updated_at": "2026-12-05 21:16:24.827581+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "large-language-models", "ai-research", "natural-language-processing"], "entities": ["Sainbayar Sukhbaatar", "arXiv", "Transformer"], "also_reported_by": [], "takeaway": "Replacing the Transformer feed-forward layer with persistent memory vectors added to self-attention preserves performance, per the authors' character- and word-level language modeling benchmarks.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/all-attention-transformer", "markdown": "https://wpnews.pro/news/all-attention-transformer.md", "text": "https://wpnews.pro/news/all-attention-transformer.txt", "jsonld": "https://wpnews.pro/news/all-attention-transformer.jsonld"}}