Preprint
Large Language Models

Transformer

June 1, 2017

0

Citations

0

Influential Citations

Venue

2017

Year

Abstract

An Encoder Decoder model, that introduced multihead attention mechanism for language translation task.

Analysis

Why This Paper Matters

The Transformer paper, published in 2017, fundamentally changed the landscape of natural language processing and deep learning. Before its introduction, sequence-to-sequence tasks like machine translation were dominated by recurrent neural networks (RNNs) and long short-term memory (LSTM) models, which processed tokens sequentially and suffered from slow training and difficulty capturing long-range dependencies. The Transformer eliminated recurrence entirely, relying solely on attention mechanisms, which allowed for parallel computation and significantly faster training.

This paper is significant because it introduced a simple yet powerful architecture that scaled remarkably well with data and compute. Its design principles—multihead attention, positional encodings, and layer normalization—became standard building blocks for subsequent models. The Transformer's success on translation tasks demonstrated that attention alone could outperform complex recurrent architectures, sparking a wave of research that led to models like BERT, GPT, and T5.

Technical Contributions

The Transformer's key innovations include:

  • Multihead Attention: Splits queries, keys, and values into multiple heads, allowing the model to attend to different representation subspaces jointly.
  • Scaled Dot-Product Attention: Uses a scaling factor to prevent softmax saturation, improving gradient flow.
  • Positional Encodings: Adds sinusoidal position information to input embeddings, enabling the model to leverage sequence order without recurrence.
  • Layer Normalization and Residual Connections: Applied after each sub-layer to stabilize training and enable deep architectures.
  • Parallelized Training: The entire sequence is processed simultaneously, drastically reducing training time compared to RNNs.

Results

On the WMT 2014 English-to-German translation task, the Transformer (base model) achieved a BLEU score of 27.3, and the big model reached 28.4, surpassing the previous best of 26.2 from an ensemble of RNN-based models. On English-to-French, the big model achieved 41.0 BLEU, outperforming the previous state-of-the-art of 39.2. Training time was reduced to 3.5 days on 8 GPUs for the base model, compared to weeks for recurrent models.

Significance

The Transformer's impact extends far beyond machine translation. Its architecture became the backbone of virtually all modern NLP systems, enabling pretrained models that achieve human-level performance on a wide range of tasks. The paper also influenced computer vision (Vision Transformers) and other domains, proving that attention mechanisms can replace convolutions and recurrence. The Transformer's simplicity, efficiency, and scalability have made it one of the most influential deep learning architectures of the decade.