SESK: Stuff Everyone Should Know · sesk.info/ai-layernorm-train-test-same
Does layer normalization compute differently at training and inference time?
It performs the same computation in both.
- Yes, it switches to stored averages
- No, it is the same ✔
- Yes, it is turned off
Why: Layer normalization derives statistics from the current example rather than stored batch averages. It therefore does not need separate train-time and test-time formulas.
Huh, didn't know that: This also makes layer normalization straightforward to apply at separate RNN time steps.
Layer norm behaves the same on test day, no stage fright.
Like this card?
References
Answer: No, it is the same. Layer normalization derives statistics from the current example rather than stored batch averages. It therefore does not need separate train-time and test-time formulas.
- Layer Normalization arxiv.org/abs/1607.06450
layer normalization performs exactly the same computation at training and test times
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.