papers / layernorm2016
Next task →
Research Papers/Backpropagation and neural networks/Layer Normalization
Backpropagation and neural networks · #4 · seminal

Layer Normalization

Jimmy Lei Ba, Jamie Ryan Kiros, Geoffrey E. Hinton · 2016 · arXiv

1. Research problem

Batch normalization cannot be applied cleanly to recurrent networks or very small batches because it normalizes across examples rather than within a single example.

2. Motivation

The authors wanted a normalization scheme whose statistics depend only on one sample, making it usable in RNNs and online prediction.

3. Previous approaches

Batch normalization normalized across the batch dimension; RNNs relied on careful initialization, gradient clipping, and small learning rates.

4. Core contribution

Introduced layer normalization, which normalizes the summed inputs of all units within a layer for each individual sample, with learnable gain and bias.

5. Mathematical formulation

For a layer's hidden vector h, compute mu and sigma over its components, set h_hat = (h - mu)/sqrt(sigma^2 + eps), and output gamma*h_hat + beta.

6. Methodology

Derivation of gradients through the normalization, application at each time step in RNNs, and comparison against batch normalization in several tasks.

7. Architecture

Normalization layer applied per example across hidden units; used in fully connected and recurrent layers.

8. Experimental setup

Language modeling, question answering, and sentiment classification with RNNs.

9. Datasets

Penn Treebank, Squad-style and sentiment datasets used in the experiments.

10. Results

More stable recurrent training and faster convergence than unnormalized baselines, becoming the standard normalization for transformers.

11. Limitations

Normalizing across all features can discard useful scale information in some vision settings; less effective than batch normalization for large-batch CNNs.

12. Critical analysis

Simple and robust rather than theoretically deep; its later central role in transformers was not the paper's original focus.

13. Implementation tasks

  • 1.Implement layer normalization and compare its gradients with batch normalization on a toy network.
  • 2.Train an RNN language model with and without layer normalization on a small corpus.
  • 3.Verify that inference output is independent of other samples in the batch.

14. Follow-up work

  • 1.Batch Normalization (Ioffe and Szegedy, 2015)
  • 2.Attention Is All You Need (Vaswani et al., 2017)

15. Open research questions

  • 1.Why does layer normalization work so well in transformers?
  • 2.Which features should be grouped together when normalizing a representation?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.