cd /news/artificial-intelligence/all-attention-transformer · home › topics › artificial-intelligence › article
[ARTICLE · art-182588] src=arxiv.org ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

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.

key 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.

read2 min views7 publishedDec 5, 2026
All-Attention Transformer
Image: source
  [Submitted on 2 Jul 2019]


[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 - CS Bibliography

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) IArxiv Recommender

(What is IArxiv?) 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.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @sainbayar sukhbaatar 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/all-attention-transf…] indexed:0 read:2min 2026-12-05 · —