Layer Normalization
A technique that stabilizes and accelerates training: values within a single layer are brought to zero mean and unit variance.
Why
Deep networks suffer from instability: values on different layers can vary greatly in scale, and gradients vanish or explode. Normalization keeps values in a working range.
Where It Is Applied
Almost in every transformer block: after attention and after the fully connected layer. Without it, modern LLM would train noticeably worse.
Related Techniques
- Batch Normalization — batch normalization (more common in CNN);
- RMSNorm — a simplified variant, popular in LLM;
- Residual Connection — partner to normalization in transformer blocks.