μ — the mean
Read "mu". It is the mean (the ordinary average) of a set of numbers: add them up and divide by how many there are.
In LayerNorm, is the average of the numbers in one token's vector, not an average across the tokens in a batch. Subtracting it shifts that token's values so they average to zero.
RMSNorm skips this subtraction, on the argument that it costs compute without helping much.
Example
Subtracting the mean gives [-2, -1, 3], which averages to zero.
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.
- σ — standard deviation, singular value, or sigmoidRead "sigma". Usually it is the standard deviation: a typical distance of values from their average. With a numbered subscript (section 20.2) it is a singular value, and written as a function, σ(z), it is the sigmoid.