Normalization layers

Transformer components · component · 2015 · any domain

What it is

BatchNorm normalizes across the batch, LayerNorm and RMSNorm across features — stabilizing optimization and enabling higher learning rates.

When to use it

Non-negotiable in modern networks. Pre-norm placement is what makes deep transformers trainable.

Caveats

BatchNorm depends on batch statistics, so it breaks with small batches and behaves differently in training and inference. Where normalization is placed matters: post-norm is hard to train deep, while pre-norm is stable but can slightly reduce final quality.

Key ideas

  • RMSNorm drops the mean-centering for speed and is the LLM default
  • QK-norm prevents attention logit explosion at long context

Related architectures

Original paper

Layer Normalization (2016, arXiv)

Lessons that cover it

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted