Attention Is All You Need
The paper that replaced recurrence with attention. Every modern LLM is a stack of the blocks you build here.
Each paper is split into small problems you solve in order, in Python, right in your browser. Every step is checked by tests, and the last step puts the pieces together.
The paper that replaced recurrence with attention. Every modern LLM is a stack of the blocks you build here.
Skip connections let networks go hundreds of layers deep. The residual idea now sits inside every Transformer too.
The default optimiser of deep learning: momentum plus per-parameter step sizes, with bias correction.
Normalise activations with batch statistics during training and running statistics at inference.
Randomly drop units while training so the network cannot rely on any single one.
Skip-gram with negative sampling: learn word vectors by telling real context words from random ones.
A generator and a discriminator train against each other until fakes look real.
The variational autoencoder: learn a latent space you can sample from, trained with the reparameterization trick.
Freeze the big weights and train a small low-rank update instead. The standard way to fine-tune LLMs cheaply.
Exact attention computed tile by tile, so the full score matrix never touches slow memory.
Encode position by rotating queries and keys, so attention scores depend on relative distance. Used by Llama and most open LLMs.
Align a model to human preferences with a simple classification loss, no separate reward model or RL loop.
Add noise step by step, then learn to undo it. The foundation of modern image generators.
Mixture of experts with one expert per token: many more parameters, the same compute per token.
A small model drafts tokens and the big model checks them in one pass, with the same output distribution.
Run big models in 8 bits by keeping the few outlier features in 16 bits.