{"arxivId":"1706.03762","title":"Attention Is All You Need","authors":["Ashish Vaswani","Noam Shazeer","Niki Parmar","Jakob Uszkoreit","Llion Jones","Aidan N. Gomez","Lukasz Kaiser","Illia Polosukhin"],"abstract":"The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.","categories":["cs.CL","cs.LG"],"primaryCategory":"cs.CL","publishedAt":"2017-06-12T17:57:34.000Z","updatedAt":"2023-08-03T00:00:00.000Z","citationCount":null,"license":"http://arxiv.org/licenses/nonexclusive-distrib/1.0/","doi":null,"journalRef":null,"comment":"15 pages, 5 figures","versions":[{"version":1,"submittedAt":"2017-06-12T17:57:34.000Z"},{"version":2,"submittedAt":"2017-06-19T16:49:45.000Z"},{"version":3,"submittedAt":"2017-06-20T05:20:02.000Z"},{"version":4,"submittedAt":"2017-06-30T17:29:30.000Z"},{"version":5,"submittedAt":"2017-12-06T03:30:32.000Z"},{"version":6,"submittedAt":"2023-07-24T00:48:54.000Z"},{"version":7,"submittedAt":"2023-08-02T00:41:18.000Z"}],"qualitySignals":null,"related":[{"arxivId":"2203.15556","title":"Training Compute-Optimal Large Language Models","authors":["Jordan Hoffmann","Sebastian Borgeaud","Arthur Mensch","Elena Buchatskaya","Trevor Cai","Eliza Rutherford","Diego de Las Casas","Lisa Anne Hendricks","Johannes Welbl","Aidan Clark","Tom Hennigan","Eric Noland","Katie Millican","George van den Driessche","Bogdan Damoc","Aurelia Guy","Simon Osindero","Karen Simonyan","Erich Elsen","Jack W. Rae","Oriol Vinyals","Laurent Sifre"],"primaryCategory":"cs.CL","publishedAt":"2022-03-29T00:00:00.000Z","reason":"In the same published reading guide"},{"arxivId":"2104.09864","title":"RoFormer: Enhanced Transformer with Rotary Position Embedding","authors":["Jianlin Su","Yu Lu","Shengfeng Pan","Ahmed Murtadha","Bo Wen","Yunfeng Liu"],"primaryCategory":"cs.CL","publishedAt":"2021-04-20T09:54:06.000Z","reason":"In the same published reading guide"},{"arxivId":"1810.04805","title":"BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding","authors":["Jacob Devlin","Ming-Wei Chang","Kenton Lee","Kristina Toutanova"],"primaryCategory":"cs.CL","publishedAt":"2018-10-11T00:50:01.000Z","reason":"In the same published reading guide"},{"arxivId":"1607.06450","title":"Layer Normalization","authors":["Jimmy Lei Ba","Jamie Ryan Kiros","Geoffrey E. Hinton"],"primaryCategory":"stat.ML","publishedAt":"2016-07-21T00:00:00.000Z","reason":"In the same published reading guide"},{"arxivId":"1409.0473","title":"Neural Machine Translation by Jointly Learning to Align and Translate","authors":["Dzmitry Bahdanau","Kyunghyun Cho","Yoshua Bengio"],"primaryCategory":"cs.CL","publishedAt":"2014-09-01T16:33:02.000Z","reason":"In the same published reading guide"},{"arxivId":"2611.33919","title":"DiCALM: Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models","authors":["Phong Le","Ngoc-Quan Pham","Dat Quoc Nguyen"],"primaryCategory":"cs.CL","publishedAt":"2026-11-25T00:00:00.000Z","reason":"Shared title terminology"}],"relatedStatus":"complete","links":{"paper":"https://arcxiv.org/abs/1706.03762","markdown":"https://arcxiv.org/abs/1706.03762/markdown","arxivAbs":"https://arxiv.org/abs/1706.03762","arxivPdf":"https://arxiv.org/pdf/1706.03762"}}