AI Grimoire
01 — siblings
attention/position/
normalisation/
ffn/sparse/recurrence/

Architectures / normalisation

Normalisation

Normalisation keeps activations in a range the optimiser can work with. Its placement relative to the residual stream matters more than its exact form — pre-norm trains stably and costs a little expressivity, post-norm the reverse. The entries here concern what can be dropped from the standard recipe without losing the stability it buys.

9 entries.

Entries

01.03.1
Batch Normalisationstale
Normalise each feature across the batch; keep running statistics for inference.
O(n·d)
01.03.2
DeepNormpromising
Post-norm with a scaled residual and depth-aware initialisation, to a thousand layers.
—
01.03.3
Dynamic Tanhpromising
Replace the normalisation layer with a scaled tanh; no statistics at all.
O(n·d)
01.03.4
Group Normalisationcommon
Normalise over channel groups within one example; batch size drops out.
O(n·d)
01.03.5
LayerNormcommon
Re-centre and re-scale each activation vector over its own features.
O(n·d)
01.03.6
Pre-Norm and Post-Normstandard
Where the normalisation sits relative to the residual add, and what each choice costs.
—
01.03.7
QK Normalisationcommon
Normalise queries and keys before the dot product to bound the attention logits.
O(n·d)
01.03.8
RMSNormstandard
Re-scaling without re-centring; LayerNorm minus the mean subtraction.
O(n·d)
01.03.9
ScaleNormstale
Project onto a learned-radius sphere: one scalar for the whole layer.
O(n·d)