15 The Transformer Era: A Map
Depends on: Additive and Multiplicative Attention
15.1 Three families from one paper
15.2 Chapters in this section
| Chapter | What it covers |
|---|---|
| Self-Attention & Multi-Head Attention | QKV projections, scaled dot-product, multi-head; the core mechanism |
| The Transformer Architecture | Encoder block, decoder block, residuals, layer norm; full forward pass |
| Positional Encoding | Sinusoidal, learned, RoPE, ALiBi — from fixed frequencies to rotation |
| BERT & GPT | Encoder-only vs decoder-only pretraining; the fine-tuning paradigm |
| Output Layer & Decoding | Logits, softmax/cross-entropy, weight tying; greedy, beam, top-k, nucleus |
| Scaling Laws & Emergence | Kaplan 2020, Chinchilla — optimal compute allocation; capability jumps |
| Alignment & Instruction Tuning | RLHF, InstructGPT, DPO — making large models follow instructions |
| Language Models — The Lineage | n-grams → Bengio → RNN LMs → GPT→LLaMA→Gemini; the convergent recipe |
| Mixture of Experts | Sparse routing, Switch Transformer, Mixtral — scaling compute efficiently |
| Beyond Quadratic Attention | Mamba, RWKV, RetNet, hybrids — sub-linear alternatives to attention |
| Multimodal Transformers | ViT + CLIP → GPT-4V, Gemini — unifying vision, language, audio |
15.3 Key ideas to track across chapters
Three tensions run through the entire Transformer era; each chapter adds a layer:
Parallelism vs. position. Self-attention sees all positions at once but has no built-in notion of order. Positional encoding is the fix, and every architectural generation has improved it.
Pretraining objective. Masked LM (BERT) learns bidirectional representations; causal LM (GPT) learns to generate. Both are trained on the same data at the same scale but produce models with very different inductive biases.
Scale vs. alignment. Scaling laws show that bigger models are predictably better at next-token prediction. But a better next-token predictor is not automatically a better assistant. Alignment techniques (RLHF, DPO) are the engineering bridge between raw capability and useful behaviour.
For a comprehensive reference organized by year, paradigm, and application area, see the Transformer Era Research Landscape.