Term
layer normalization
Meaning
A normalization that standardizes a layer's summed inputs using statistics from that layer's units for one training case.
Source Layer Normalization
How papers use it 24 papers
Layer Normalization
Use The method this paper introduces to replace batch statistics.
Attention Is All You Need
Use Applied after each residual sum in every encoder and decoder sub-layer, so each sub-layer output takes the form of a normalized sum of its input and its sub-layer function. All sub-layers and embedding layers produce outputs of dimension 512 so that these residual sums can be formed.
Meaning A normalization method that rescales the features of a vector using their mean and variance, computed over the features of that single vector rather than over a batch.
Learning to (Learn at Test Time): RNNs with Expressive Hidden States
Use Inside the inner model \( f \), the paper wraps the residual branch as \( f(x)=x+\mathrm{LN}(f_{res}(x)) \), where \( f_{res} \) is either a linear model or an MLP. This is added to make TTT more stable during training.
Meaning Layer Normalization is a normalization operation that rescales the features of a single vector using their own mean and variance, usually followed by a learnable scale and shift. It is commonly used inside neural network blocks to stabilize training.
Self-Attention with Relative Position Representations
Use Applied around each sublayer of the encoder and decoder together with residual connections. Residual connections and layer normalization wrap both the self-attention and the feed-forward sublayers.
Meaning A normalization technique that rescales the activations of a layer across their features for each example, using their mean and variance, and usually adds learned gain and bias terms.
Multimodal Transformer for Unaligned Multimodal Language Sequences
Use Applied as LN to the inputs of the multi-head crossmodal attention and of the positionwise feed-forward sublayer in each crossmodal attention block, with residual connections added around both sublayers.
Meaning A normalization technique that rescales a feature vector at each position using statistics computed across that vector's own feature dimensions, which stabilizes the activations passed to the next operation.
BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer
Use Applied after each residual sum in every sub-layer, as in \(\mathrm{LN}(x + \mathrm{Dropout}(\mathrm{sublayer}(x)))\), in the two sub-layer equations of each Transformer layer in BERT4Rec.
Meaning A normalization operation that rescales a vector using the mean and variance computed across its hidden units within a single layer, which stabilizes and speeds up training.
DeBERTa: Decoding-enhanced BERT with Disentangled Attention
Use Serves as the inspiration for SiFT, which normalizes the word embedding vectors into stochastic vectors before applying the adversarial perturbation, so that the perturbation scale does not depend on the raw embedding norms during fine-tuning.
Meaning A normalization technique that rescales the activations of a layer using their statistics across the feature dimension, usually to zero mean and unit variance, followed by a learned scale and shift.
Parameter-Efficient Transfer Learning for NLP
Use Within the adapter setup, a new set of layer normalization parameters is trained for each task alongside the adapter modules, adding 2d parameters per layer. Training these normalization parameters alone is not enough for good performance, which the authors show by comparing against adapters of various sizes.
Meaning A normalization layer that rescales the activations of each layer using learned scale and shift parameters. Only these parameters are updated, so the layer adds very few trainable parameters.
TransMed: Transformers Advance Multi-modal Medical Image Classification
Use Applied before the multi-head self-attention and MLP blocks in the transformer encoder, with residual skip connections around each block. The paper writes the layer-wise update in equations as LN applied to the previous layer's representation.
Meaning A normalization technique that standardizes the features of each token or sample using the mean and variance computed across its feature dimensions, followed by a learned scale and shift. It stabilizes training of deep networks.
Self-Normalizing Neural Networks
Use Serves as one of the normalized feed-forward baselines, labeled LayerNorm, against which SNNs are compared. The authors argue that feed-forward networks trained with normalization methods such as this one suffer from stochastic gradient descent, dropout, and normalization-parameter estimation noise, which raises the variance of the training error.
Meaning A normalization technique that rescales a layer's activations so that they approach zero mean and unit variance, applied within the network rather than as a batch statistic.
Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting
Use Applied after the residual addition in each GRN, where the output is the layer-normalized sum of the primary input and the GLU output. It is also applied after the gated skip connection of the sequence-to-sequence layer, and the paper states that dropout is applied before the gating layer and layer normalization within the GRN.
Meaning A normalization method that standardizes the activations of a single example across its feature dimensions, so that each example is normalized independently of the batch.
Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
Use In the GPT-2 and BERT models studied here, layer normalization is applied to the inputs of the attention and feed-forward sublayers. The authors rearrange its placement relative to residual connections, which they find critical for stable BERT training at larger sizes. In the parallel implementation, layer normalization parameters are duplicated on each GPU rather than split.
Meaning A normalization operation that rescales the activations of each example across their feature dimension, usually with learned gain and bias parameters.
Generating Long Sequences with Sparse Transformers
Use Written as the norm function and applied to the input of the attention sublayer and of the feed-forward sublayer in each residual block, and to the final hidden state before the output projection.
Meaning A normalization method that rescales the features of each input vector to zero mean and unit variance and then applies a learned scale and shift.
Improved Training of Wasserstein GANs
Use Replaces batch normalization in the WGAN-GP critic, because the gradient penalty is computed per input and batch statistics would tie the examples together. The authors recommend it as a drop-in replacement for batch normalization, and they use it in the discriminator of the WGAN-GP models in the LSUN bedroom experiments.
Meaning A normalization technique that standardizes the features of each individual example using statistics computed across its own feature dimensions, rather than across a batch of examples, and then applies a learned scale and shift.
UNETR: Transformers for 3D Medical Image Segmentation
Use Applied as Norm before the multi-head self-attention sublayer and before the MLP sublayer in every transformer block of the UNETR encoder, with residual connections added after each sublayer.
Meaning A normalization method that standardizes the activations of each input across its feature dimension, using the mean and variance of that input. It is applied to stabilize training of deep networks.
Reformer: The Efficient Transformer
Use In the reversible Transformer, Layer Normalization is placed inside the residual blocks rather than outside them. The block computes the attention and feed-forward branches on the normalized inputs of each reversible pair, as written in the block equations.
Meaning A normalization technique that rescales the activations of a single example across its feature dimensions using their mean and variance, followed by a learned gain and bias.
CvT: Introducing Convolutions to Vision Transformers
Use Applied to the flattened token map produced by the convolutional token embedding of each stage, before the tokens enter the Transformer blocks of that stage.
Meaning A normalization that standardizes the activations of each token across its feature channels, using the mean and variance of that token, and then applies a learned scale and shift.
Uformer: A General U-Shaped Transformer for Image Restoration
Use Applied to the input of the window attention module and of the LeFF module in each LeWin Transformer block, with the output of each sublayer added back to its input as a residual connection.
Meaning A normalization method that standardizes the features of each token across the channel dimension, so the result does not depend on other samples in a batch.
Decision Transformer: Reinforcement Learning via Sequence Modeling
Use Applied after the learned linear embedding for each modality in Decision Transformer, so that returns-to-go, state and action tokens are normalized before entering the Transformer. The paper notes that in Atari experiments it uses Tanh instead after embedding, with little difference in performance.
Meaning A normalization operation that rescales the features of each token across the embedding dimension to stabilize training of neural networks.
RWKV: Reinventing RNNs for the Transformer Era
Use Applied inside the RWKV residual blocks and in the output projection head before the final linear layer that produces logits. The authors state that it helps stabilize gradients, addressing both vanishing and exploding gradient issues.
Meaning A normalization operation that rescales the activations of a layer using their mean and variance computed across the feature dimension, usually followed by a learned scale and shift.
Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
Use Applied to the text embeddings inside the attention and pooling layers of the 64×64 base model. The authors found that this considerably improves performance, so it is part of their text-conditioning design.
Meaning A normalization technique that rescales the features of each example across its feature dimensions, usually followed by a learned scale and shift.
Spectral Normalization for Generative Adversarial Networks
Use Used as a discriminator normalization baseline (LN) in the comparisons on CIFAR-10 and STL-10. As with batch normalization, its multiplier parameter is excluded so that the comparison does not violate the Lipschitz condition.
Meaning A normalization technique that standardizes the activations within each sample across features and then applies a learned scale and shift.
MLP-Mixer: An all-MLP Architecture for Vision
Use Applied to the channels before each of the two MLP blocks in a Mixer layer, in the form LayerNorm(X) inside the residual updates. It is one of the standard components the architecture uses alongside the MLP layers.
Meaning A normalization method that standardizes a feature vector using its own mean and variance, computed across its feature dimensions, followed by a learned scale and shift.
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
Use Applied after the linear layer in the projection network that maps the global CLIP image embedding into a sequence of N = 4 image feature tokens.
Meaning A normalization technique that standardizes a feature vector across its feature dimension for each sample, using the mean and variance of that vector, and then applies a learnable scale and shift.