The Transformer replaces recurrence with self-attention: every token looks at every other token in one parallel pass and decides how much to weigh each. No sequential loop means the whole sequence is processed at once, so long-range dependencies are captured directly and training scales across GPUs. It is the architecture behind modern LLMs.
Each token forms Query, Key, Value vectors; attention scores decide what to focus on.
Several attention heads run in parallel, each learning a different relationship, then concatenated.
Sinusoidal signals injected into embeddings so the model knows token order without recurrence.
Stacked blocks of attention + feed-forward layers with residual connections and layer norm.