Transformer
In One Sentence
The dominant neural network architecture built from stacked self-attention layers, feed-forward networks, residual connections, and normalization.
ELI5 (Intuition)
An assembly line of thinking stations: at each floor, every word chats with the other words (Attention), thinks quietly by itself (MLP), and passes its updated notes up to the next floor.
ELI18 (Technical)
A decoder-only Transformer stacks \(L\) blocks of \(x \leftarrow x + \operatorname{Attn}(\operatorname{Norm}(x))\) followed by \(x \leftarrow x + \operatorname{MLP}(\operatorname{Norm}(x))\), projecting the final hidden state to vocabulary logits. Unlike RNNs, it processes all training tokens in parallel across GPUs.
In Practice
Virtually every frontier LLM (GPT, Claude, Gemini, Llama, Qwen, DeepSeek) is a decoder-only Transformer, differing mainly in scale, Mixture-of-Experts (MoE) routing, context tricks, and post-training.