Attention Is All You Need
đ Abstract
The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. 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. The Transformer generalizes well to other tasks by simply increasing model size, and has superior translation quality while being more parallelizable and requiring significantly less time to train.
⨠Summary
The paper âAttention Is All You Needâ introduces the Transformer model, which relies entirely on attention mechanisms, eschewing the recurrent and convolutional layers commonly used in neural networks at the time of publication. The Transformer model has since become the cornerstone for natural language processing tasks due to its parallelizability and efficiency in training. It has significantly influenced the development of subsequent models such as BERT (Bidirectional Encoder Representations from Transformers) and GPT (Generative Pre-trained Transformer), which are foundational to todayâs state-of-the-art NLP systems.
The paper demonstrates the Transformerâs superior performance on the WMT 2014 English-to-German and English-to-French translation tasks, setting new benchmarks at the time. Since its publication, the modelâs architecture has been adapted and extended across various tasks in machine translation, language generation, and even in domains outside of NLP, such as image and video processing.
The impact of this work is reflected in papers like âBERT: Pre-training of Deep Bidirectional Transformers for Language Understandingâ (Devlin et al., 2018) and âLanguage Models are Unsupervised Multitask Learnersâ (Radford et al., 2019), which have achieved new heights in understanding and generating human language and have been widely adopted in both academia and industry for various applications.