Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Layer Normalization

Layer normalization computes statistics per training case

  • Problem Batch normalization ties its statistics to the mini-batch, so it breaks down with small batches and online learning. It also struggles in recurrent networks, where summed inputs change length across time steps.
  • Method Layer normalization takes the mean and variance from all hidden units of one layer for a single training case. Each neuron keeps its own adaptive gain and bias, applied before the non-linearity.
  • Results Layer normalization raised caption retrieval R@1 from 46.6 to 48.5 on order-embeddings and trained faster than previous techniques.

Why batch statistics get in the way

Batch normalization standardizes each summed input to speed up training of deep networks. In practice it estimates the mean and variance from the current mini-batch, so the normalization depends on which training cases share a batch.

That dependence causes trouble when batches are small, and online learning with a single case has no batch at all. Recurrent networks add a further problem, because their summed inputs change length with the sequence. Batch statistics would then need a separate stored set for each time step, and a test sequence longer than any training sequence would have none.

Normalizing across the units of one layer

The key idea is to take the normalization statistics from the hidden units of one layer for a single training case, rather than from the cases in a mini-batch. Each neuron still gets its own adaptive gain and bias, applied after normalization and before the non-linearity.

The authors' reasoning starts from covariate shift, where a change in one layer's outputs causes correlated changes in the next layer's summed inputs. Such changes are especially strong with ReLU units, so fixing the mean and spread within each layer should reduce the problem. Because the statistics come from one case, the normalization adds no dependency between training cases.

The layer normalization computation

For layer \( l \) with \( H \) hidden units, the mean is \[ \mu^l = \frac{1}{H}\sum_{i=1}^{H} a_i^l \] and the standard deviation is \[ \sigma^l = \sqrt{\frac{1}{H}\sum_{i=1}^{H}(a_i^l-\mu^l)^2} \]. Every hidden unit in the layer shares these two numbers, but each training case has its own pair.

The normalized summed inputs are centred, divided by \( \sigma^l \), multiplied by the gain \( g \) and shifted by the bias \( b \) before the non-linearity \( f \). In a recurrent layer the same operation runs at every time step, with \( a_t = W_{hh}h_{t-1} + W_{xh}x_t \) and \[ h_t = f\left[\frac{g}{\sigma_t}\odot(a_t-\mu_t)+b\right] \].

The gain and bias are shared over all time steps, so the method adds only one set of parameters. Unlike batch normalization, it needs no running averages of the summed input statistics at test time. The authors argue that this stabilizes hidden-to-hidden dynamics, because a standard RNN's summed inputs tend to grow or shrink at every step, which leads to exploding or vanishing gradients.

What the normalization makes invariant

Batch and weight normalization are invariant to rescaling a single neuron's incoming weights, because scaling the weight vector scales \( \mu \) and \( \sigma \) by the same factor. Layer normalization is not invariant to rescaling one weight vector alone.

Instead, it stays invariant when the whole weight matrix is scaled by \( \delta \) and a constant vector is added to all incoming weights, with \( W' = \delta W + 1\gamma^\top \). Under that change the two models compute the same output, so the normalization ignores the scale and shift of the whole matrix. It is also invariant to rescaling each individual training case, because \( \mu \) and \( \sigma \) depend only on that case.

The authors also argue that \( \sigma \) acts as an implicit learning-rate control. In their analysis for a generalized linear model with a block-diagonal Fisher approximation, doubling a weight vector's norm changes the curvature along that direction by a factor of 1/2.

Order-embedding image-sentence retrieval

The first test adds layer normalization to the GRU that encodes sentences in the order-embedding model. Images are encoded by pre-trained VGG outputs, and both models are trained with Adam on Microsoft COCO.

On caption retrieval, R@1 went from 46.6 for the authors' baseline to 48.5 with layer normalization. Mean rank fell from 5.2 to 5.1, and lower mean rank is better, so this also favours the normalized model.

The validation curves show a per-iteration speedup on all retrieval metrics. The model converges to its best validation point in 60% of the time the baseline takes.

Attentive reader against recurrent batch normalization

This test compares layer normalization with recurrent batch normalization on the CNN corpus, using a unidirectional attentive reader. Passages are limited to 4 sentences, and layer normalization is applied only within the LSTM.

Validation curves show layer normalization training faster and reaching a lower validation error than the LSTM baseline and both BN variants. These results are on the validation set only.

Cooijmans et al. set the BN gain to 0.1, but the authors tried both 1.0 and 0.1 for layer normalization. The 1.0 setting performed better, which the authors read as layer normalization being less sensitive to the initial scale than recurrent BN.

Skip-thought training speed and results

Skip-thought training usually takes several days, so the authors trained a 2400-dimensional encoder on BookCorpus with and without layer normalization. Per-iteration speed was a concern, but with CNMeM in use the two models showed no significant difference.

After 1M iterations, the layer normalized model scored higher than the authors' own baseline on every task, where scores are accuracies or correlations. On MR it reached 79.5, compared to 77.3 for the baseline, and its SICK MSE fell to 0.277 from 0.298, where lower is better. The row labelled Original is the result reported by Kiros et al., so it comes from a different run.

Training the layer normalized model for about a month, roughly 1.7M iterations, gave further gains on all but one task.

DRAW on binarized MNIST

DRAW uses an attention mechanism and a recurrent network to generate an image in pieces. The authors used 64 glimpses, 256 LSTM hidden units, Adam with a minibatch size of 128, and the fixed binarization of Larochelle and Murray.

After 200 epochs, the baseline reached 82.36 nats on the test data and the layer normalized model reached 82.09 nats.

Handwriting on long sequences

Handwriting generation tests longer sequences than the NLP tasks, with average handwriting lines of about 700 points. The data are 12179 handwriting line sequences from the IAM Online Handwriting Database, and the model has about 3.7M weights.

The model trains with mini-batches of size 8 and sequences of length 500. Layer normalization reaches a log likelihood comparable to the baseline but gets there much faster. The authors link this to the need for very stable hidden dynamics when batches are small and sequences are long.

Feed-forward networks against batch normalization

For permutation invariant MNIST, the authors used a 784-1000-1000-10 model and applied layer normalization to the hidden layers but not the softmax layer. They argue that rescaling is unwanted at the logits, because the logit scale sets prediction confidence.

For the smaller batch size, the batch normalization variance was computed with the unbiased estimator.

The authors report that layer normalization is robust to batch size and converges faster than batch normalization applied to all layers.

Limitations

In preliminary convolutional network experiments, layer normalization beat the unnormalized baseline, but batch normalization outperformed the other methods. The authors think further research is needed before layer normalization works well in ConvNets.

Most experiments focus on recurrent networks, and the attentive reader results are validation-only. The retrieval comparison with the structure-preserving model is not direct, because the evaluation conditions differ.

The geometry argument is worked out for generalized linear models, and it reaches deep networks only through a block-diagonal approximation. The skip-thought speed result also depends on CNMeM being used.

Paper info

Authors
Jimmy Lei Ba, Jamie Ryan Kiros, Geoffrey E. Hinton
Venue
arXiv · Preprint
First published
2016-7-21
Added
2026-10-18
Updated
2016-7-21
Version
v1
arXiv
1607.06450
Category
stat.ML · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Jimmy Lei Ba, Jamie Ryan Kiros, Geoffrey E. Hinton (2016). Layer Normalization. arXiv:1607.06450v1. https://arxiv.org/abs/1607.06450v1

BibTeX
@misc{ba2016layer,
  title = {{Layer Normalization}},
  author = {Jimmy Lei Ba and Jamie Ryan Kiros and Geoffrey E. Hinton},
  year = {2016},
  eprint = {1607.06450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.06450v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up