# Layer Normalization

- **Canonical URL:** https://getaimath.com/dictionary/layer-normalization/
- **Topics:** [Transformer Architecture](https://getaimath.com/dictionary/category/transformer-architecture/)
- **Last updated:** 2026-11-25

## What is Layer Normalization?

**In one sentence:** Layer normalization rescales the numbers in each layer so they stay in a steady, healthy range during training.

As numbers pass through many layers, they can grow too big or shrink too small, making training unstable. Layer norm adjusts each token's numbers to have a consistent average and spread, like resetting the volume before each song.

![Transformers & Attention: The Smart Highlighter — Simple cartoon diagram showing how a Transformer reads a whole sentence at once and shines a bright highlighter beam from the word "IT" back to "trophy" so it knows what "IT" means.](https://getaimath.com/diagrams/transformer-architecture.png)
*Napkin Diagram (Transformer Architecture): Older AI read word-by-word and often lost track of earlier words; a Transformer highlights which words connect to which.*

## What is an example of Layer Normalization?

Without layer normalization, a deep Transformer might suddenly produce wild numbers and fail to train.

## Why does Layer Normalization matter?

It keeps deep networks stable enough to train.

## Related Concepts

- [SwiGLU](https://getaimath.com/dictionary/swiglu/): SwiGLU is an activation design used in many modern LLMs that adds a "gate" so the network can control how much information passes.
- [RMSNorm](https://getaimath.com/dictionary/rmsnorm/): RMSNorm is a simpler, faster version of layer normalization that only rescales numbers by their overall size.
- [GELU](https://getaimath.com/dictionary/gelu/): GELU is a smooth activation function that works like a softer ReLU, letting small negative values through a little.
- [Residual Connection](https://getaimath.com/dictionary/residual-connection/): A residual connection lets a layer's input skip ahead and be added to its output, creating a shortcut through the network.
- [ReLU](https://getaimath.com/dictionary/relu/): ReLU is a simple activation function that outputs 0 for any negative number and leaves positive numbers unchanged.
- [Transformer Block](https://getaimath.com/dictionary/transformer-block/): A Transformer block is one repeated layer of a Transformer, usually made of attention, a feed-forward network, normalization and residual connections.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/layer-normalization/)
