RMSNorm Removes Re-Centering
RMSNorm scales each token record by its root mean square without subtracting its mean. Calculate it on the LayerNorm example, compare shift behavior, and audit axes and parameters.
RMSNorm scales a token record by its root mean square without first subtracting the record's mean. For ,
The usual form has a learned gain and no learned bias. This is a different operation from LayerNorm, not a faster spelling of it.
Calculate the Same Row Again
For , the mean squared value is
Ignoring epsilon for the hand calculation, the root mean square is . With , RMSNorm returns approximately
Unlike the LayerNorm result for the same row, these coordinates do not have mean zero. Their mean squared value is 1, up to epsilon and rounding.
A Constant Shift Separates the Operations
Add 10 to every coordinate. LayerNorm removes that shared shift when it subtracts the new mean, so its normalized result is unchanged before gain and bias. RMSNorm does not remove the shift, so its normalized direction changes.
Both operations reduce sensitivity to a common rescaling when epsilon is small, but neither makes a full network invariant to arbitrary changes in its inputs. Learned gains, biases elsewhere, nonlinearities, and finite epsilon still matter.
Axis and Parameter Audit
Like LayerNorm in a Transformer, RMSNorm acts independently on the final feature axis of each record. Under the usual gain-only convention it has learned entries, compared with for LayerNorm with gain and bias.
Q1. Normalize with an RMS
Ignoring epsilon and using unit gain, what is the first coordinate of RMSNorm?
Compute it first, then check your number.
Hint
Solution
Reference
- Biao Zhang and Rico Sennrich, Root Mean Square Layer Normalization, 2019.