Seven steps per layer. In prefill, scores and the weighted sum grow with n²; the feed-forward does the most compute.

Text alternative: 46 techniques from 2017 to 2026, grouped into 8 categories by the step of the Transformer block they change. Position encoding: Sinusoidal position encoding, Relative position representations, RoPE, ALiBi, Position Interpolation, YaRN; Normalization & activation: Pre-LN, RMSNorm, SwiGLU FFN, QK-Norm; Attention heads & KV cache: MQA, GQA, PagedAttention / vLLM, MLA, Gated attention, CSA + HCA; Sparse & efficient attention: Sparse Transformer, Longformer, FlashAttention, NSA, MoBA, DSA, MSA; Linear & hybrid attention: Linear attention, Mamba, Gated DeltaNet, MiniMax-01 lightning attention hybrid, Qwen3-Next hybrid, KDA; Residual & output: MTP, Hyper-Connections, mHC, AttnRes; FFN & MoE: Sparsely-gated Mixture-of-Experts, GShard, Switch Transformer, Mixtral 8x7B, DeepSeekMoE, Auxiliary-loss-free load balancing, Engram; Overall structure: GPT, Universal Transformers, BERT, YOCO, Ouro looped language models, CSA2 + CED.