RMSNorm — root-mean-square normalization
Read "R M S norm". It is LayerNorm without the mean subtraction and without the shift (β): divide each vector by its root mean square, then apply a learned scale.
Root mean square means: square each entry, take the mean, then the square root. , and the layer outputs .
Skipping the mean saves one pass over the vector. In practice it works about as well as LayerNorm, which suggests the rescaling does the useful work, not the re-centring. Gemma, LLaMA and Qwen all use it.
Example
Ignoring ε, with γ = 1. The mean is not subtracted.
Where the course uses it
Related terms
- LayerNorm — layer normalizationRead "layer norm". It shifts and rescales each token's vector to have mean 0 and variance 1, then applies a learned scale and shift.
- ε — a tiny safety constant (or the CTC blank)Read "epsilon". It is a very small number added to a denominator so the division can never be by zero. In CTC (section 27.2) the same letter means something else: the blank symbol, "no character here".