Command Palette
Search for a command to run...
Layer Normalization
Layer normalization (LN) is a method that standardizes within a single training sample by computing the mean and variance along the feature dimension. It was proposed in 2016 by Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey Hinton of the University of Toronto and Google Research; the related paper "Layer Normalization" was released as an arXiv preprint (arXiv:1607.06450).
Unlike batch normalization, which computes statistics along the batch dimension, layer normalization independently computes statistics over all channel features of each sample, so it does not depend on batch size and performs exactly the same computation during training and inference. This property makes it naturally suited to variable-length sequences and recurrent neural networks: batch normalization in RNNs requires maintaining different statistics for different time steps, whereas layer normalization can stabilize the dynamics of hidden states by normalizing independently at each step.
Layer normalization subsequently became a standard component of the Transformer architecture, and its placement (Pre-LN / Post-LN) has a significant impact on the training stability of deep networks.
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.