Language & LLMs Jun 2017

Attention Is All You Need

Ashish Vaswani et al. · NeurIPS 2017

arXiv:1706.03762

In short

The Transformer drops recurrence and convolution entirely and builds a translation model from stacked self-attention and feed-forward layers. It trains in parallel, set new translation records, and cost a fraction of the compute of earlier models.

Why it matters

Every major LLM, and most modern vision and speech models, is a transformer.

Read first

The 4 Field Guide ideas this paper leans on.

Starting from scratch? The full route 13 ideas · basics first
  1. Machine Learning ✓ understood

    Building systems that learn patterns from data instead of following hand-written rules, getting better at a task as they see more examples.

  2. Neural Network ✓ understood

    A computational model inspired by biological neural networks, consisting of interconnected nodes (neurons) organized in layers that process information through weighted connections.

  3. Dataset ✓ understood

    A collection of data examples used for training, validating, or testing machine learning models.

  4. Feature ✓ understood

    A single measurable property of an example, such as a house's floor area or how many links an email contains, used as an input to a model.

  5. Deep Learning ✓ understood

    A subset of machine learning that uses neural networks with multiple layers (deep neural networks) to learn hierarchical representations of data.

  6. Representation Learning ✓ understood

    Learning useful features or representations of data automatically, rather than hand-crafting them.

  7. Embedding ✓ understood

    A list of numbers (a vector) that represents a word, sentence, image or other item, learned so that similar items end up close together.

  8. Attention Mechanism · read first ✓ understood

    A technique that lets a neural network weigh every part of its input when producing each output, focusing on the parts most relevant at that step.

  9. Self-Attention · read first ✓ understood

    A mechanism where each token attends to all other tokens in the sequence to understand contextual relationships.

  10. Recurrent Neural Network ✓ understood

    A neural network architecture with loops that allow information to persist, designed for sequential data like text and time series.

  11. Sequence-to-Sequence ✓ understood

    Models that transform input sequences to output sequences, used for translation, summarization, and generation.

  12. Transformer · read first ✓ understood

    A neural network architecture, introduced in 2017, built from stacked self-attention and feed-forward layers; the basis of nearly every modern large language model.

  13. Encoder-Decoder · read first ✓ understood

    A architecture where the encoder processes input and the decoder generates output, used in translation and sequence-to-sequence tasks.

Nearby papers

Summary in our own words; read the paper for the details. ← All papers