Normalization
Normalization layers, normalization variants, and related glossary pages.
Module type
Module
- Batch norm
Batch-level normalization that rescales activations using statistics pooled across examples, common in convolutional networks but uncommon inside modern transformers.
- Group norm
Channel-group normalization that rescales each example using per-group statistics, often used when batch norm is awkward or unstable.
- Layer norm
Per-token mean-and-variance normalization that rescales each hidden vector before the next sublayer in a transformer block.
- QK norm
Query-key normalization that rescales attention queries and keys before their dot products, changing the attention score path rather than the whole residual stream.
- RMSNorm
Per-token root-mean-square scaling that rescales each hidden vector without mean centering, as used in many modern decoder transformers.