RMSNorm
What is RMSNorm?
In one sentence: RMSNorm is a simpler, faster version of layer normalization that only rescales numbers by their overall size.
Layer norm adjusts both the average and the spread. RMSNorm skips the average and just divides by the "root mean square," a measure of how big the numbers are. It works about as well while doing less math.
What does RMSNorm look like?
Llama and many other modern models use RMSNorm instead of layer norm.
Why does RMSNorm matter?
Small speed wins like RMSNorm add up when models run billions of times.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/rmsnorm/">RMSNorm, explained simply</a> (The AI Math Dictionary)