[Paper Review] Layer Normalization
Introduces layer normalization to stabilize and speed up training across various neural networks, including RNNs, by normalizing summed inputs within each layer rather than across a minibatch.
Training state-of-the-art, deep neural networks is computationally expensive. One way to reduce the training time is to normalize the activities of the neurons. A recently introduced technique called batch normalization uses the distribution of the summed input to a neuron over a mini-batch of training cases to compute a mean and variance which are then used to normalize the summed input to that neuron on each training case. This significantly reduces the training time in feed-forward neural networks. However, the effect of batch normalization is dependent on the mini-batch size and it is not obvious how to apply it to recurrent neural networks. In this paper, we transpose batch normalization into layer normalization by computing the mean and variance used for normalization from all of the summed inputs to the neurons in a layer on a single training case. Like batch normalization, we also give each neuron its own adaptive bias and gain which are applied after the normalization but before the non-linearity. Unlike batch normalization, layer normalization performs exactly the same computation at training and test times. It is also straightforward to apply to recurrent neural networks by computing the normalization statistics separately at each time step. Layer normalization is very effective at stabilizing the hidden state dynamics in recurrent networks. Empirically, we show that layer normalization can substantially reduce the training time compared with previously published techniques.
Motivation & Objective
- Motivate reducing training time for deep nets via normalization.
- Propose layer normalization as an alternative to batch normalization that works online and for RNNs.
- Analyze invariance properties and learning dynamics under normalization.
- Empirically validate layer normalization across multiple tasks and architectures.
Proposed method
- Compute per-layer mean and variance across hidden units for normalization.
- Apply adaptive gain and bias after normalization before the non-linearity.
- For RNNs, normalize at each time step using current layer statistics (Eq. 4).
- Compare invariance properties with batch normalization and weight normalization (Section 5).
- Provide theoretical analysis using Fisher information to discuss implicit learning-rate effects.
- Empirically evaluate on image-sentence ranking, QA, language modeling, skip-thoughts, handwriting, MNIST, and CNNs.
Experimental results
Research questions
- RQ1Does layer normalization improve training speed and generalization across diverse architectures (RNNs, CNNs, DRAW) and tasks?
- RQ2How do invariance properties and learning dynamics under layer normalization compare to batch normalization and weight normalization?
- RQ3Can layer normalization enable online learning and long-sequence training in RNNs without time-step-specific statistics?
- RQ4What is the empirical impact of layer normalization on long sequences and small minibatches in practice?
Key findings
- Layer normalization speeds up training and improves generalization across multiple tasks, especially for recurrent networks and long sequences.
- Layer normalization is invariant to per-training-case shifting and scaling of features, and does not depend on minibatch size.
- It provides stable hidden-state dynamics by re-centering and re-scaling summed inputs within a layer (Eq. 3 and 4).
- Experiments show faster convergence and better validation performance on tasks like image-sentence ranking, QA, skip-thoughts, DRAW, handwriting, and permutation-invariant MNIST.
- Layer normalization is less sensitive to initial gain scale in recurrent models compared to recurrent batch normalization.
- In CNNs, layer normalization speeds up relative to baseline but batch normalization may still outperform it in some settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.