Start here
Transformers, in plain language
The attention mechanism that powers modern AI. Transformers provide a general parallel sequence architecture whose attention and residual blocks power most modern foundation models.
For a small example, in “The robot moved the glass because it cracked,” the token “it” needs earlier context. Project queries, keys, and values; compare the query for “it” with the allowed keys; normalize the scores; then trace how the weighted value vectors build its context. This is the mechanism to keep in view as the lesson becomes more technical. Before moving on, identify the input, transformation, output, and one observation that would falsify your conclusion.
Key points
- Tokens, embeddings, positional information, queries, keys, values, and attention.
- Scaled dot-product and multi-head attention with causal or padding masks.
- Residual connections, feed-forward networks, normalization, encoder vs decoder.