Papers › Layer Normalization

Layer Normalization

21 Jul 2016arXiv:1607.06450archive 2025-07-28

Jimmy Lei Ba, Jamie Ryan Kiros, Geoffrey E. Hinton

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1607.06450")

Code

Syntology Ran 5 of 17 code samples harvested from 10 repositories linked to this paper; 12 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: community (archive-listed): 17 samples from 10 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

34 repositories listed; official and paper-mentioned ones first.

ElektrischesSchaf/LayerNorm_GRU mentioned on GitHubpytorch report
JeffreyJosanne/nematus_tf mentioned on GitHubtf report
JonasRSV/DDPG mentioned on GitHubtf report
JonasRSV/DQN mentioned on GitHubtf report
JonasRSV/DQNTensorflow mentioned on GitHubtf report
JonasRSV/PGTensorflow mentioned on GitHubtf report
MycChiu/fast-LayerNorm-TF mentioned on GitHubtfMIT report
Waino/hnmt mentioned on GitHub report
Xinsen-Zhang/transformer mentioned on GitHubpaddle report
bhaddow/dev-nematus mentioned on GitHubtf report
bzhangGo/rmsnorm mentioned on GitHubpytorch report
cyh1112/GraphNormalization mentioned on GitHubpytorch report
daehwannam/pytorch-rnn-util mentioned on GitHubpytorchMIT report
dhesenkamp/attentive-lstm mentioned on GitHubtfMIT report
iejMac/ScriptWriter mentioned on GitHubpytorch report
jiamings/fast-weights mentioned on GitHubtf report
kienduynguyen/Layer-Normalization mentioned on GitHubpytorch report
lmnt-com/haste mentioned on GitHubtfApache-2.0 report
wri/restoration-mapper mentioned on GitHubtf report
wri/sentinel-tree-cover mentioned on GitHubtfGPL-3.0 report
zhangyaoyuan/GAN-Simplification mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 5 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
12unverified

Licence: 8 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 10 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

GraphNorm cyh1112/GraphNormalization/norm/graph_norm.py community (archive-listed) ran · metamorphic tier: deterministic licence not identified · pointer only · 7d881e4088f29595 · report
LayerNorm kienduynguyen/Layer-Normalization/LayerNorm.py community (archive-listed) ran no licence file found · pointer only · 74c1444feed033d0 · report
LayerNorm2D HarmanDotpy/Normalizations-in-Deep-Learning/Normalisations.py community (archive-listed) ran fingerprinted MIT (permissive) · 94ce18ebe841264e · report
LayerNormLayer JeffreyJosanne/nematus_tf/nematus/layers.py community (archive-listed) ran BSD-3-Clause (permissive) · ea323f4fc8005e6d · report
layer_norm kienduynguyen/Layer-Normalization/LayerNorm.py community (archive-listed) ran no licence file found · pointer only · def0b163983628e2 · report
LayerNormGRUCell ElektrischesSchaf/LayerNorm_GRU/GRU_layernorm_cell.py community (archive-listed) unverified MIT (permissive) · 4455b0c0adbcbe75 · report
LayerNormLayer bhaddow/dev-nematus/nematus/layers.py community (archive-listed) unverified BSD-3-Clause (permissive) · c12ea25352a4dd86 · report
create_lstm_cell_init_state daehwannam/pytorch-rnn-util/rnnlib/common.py community (archive-listed) unverified MIT (permissive) · b29f84a895c28c9c · report
forward_rnn daehwannam/pytorch-rnn-util/rnnlib/seq.py community (archive-listed) unverified MIT (permissive) · 626f734fb412461b · report
get_indicator daehwannam/pytorch-rnn-util/rnnlib/common.py community (archive-listed) unverified MIT (permissive) · f1b57d3c5218cd84 · report
group_norm wri/restoration-mapper/src/layers/extra_layers.py community (archive-listed) unverified GPL-3.0 (copyleft) · pointer only · 29bb6248ac270983 · report
layer_norm JRC1995/Machine-Translation-Transformers/Machine Translation.py community (archive-listed) unverified MIT (permissive) · 0050dfbf8ad7677a · report
layer_norm zhangyaoyuan/GAN-Simplification/tensor2tensor/common_layers.py community (archive-listed) unverified no licence file found · pointer only · caa1927febb58775 · report
layer_norm_compute zhangyaoyuan/GAN-Simplification/tensor2tensor/common_layers.py community (archive-listed) unverified no licence file found · pointer only · f61aa475517589c3 · report
layer_norm_compute_grad zhangyaoyuan/GAN-Simplification/tensor2tensor/common_layers.py community (archive-listed) unverified no licence file found · pointer only · 56c490283a6d5297 · report
layer_norm_compute_python zhangyaoyuan/GAN-Simplification/tensor2tensor/common_layers.py community (archive-listed) unverified no licence file found · pointer only · 80444e734e109863 · report
repeat_lstm_cell_state daehwannam/pytorch-rnn-util/rnnlib/common.py community (archive-listed) unverified MIT (permissive) · 14170af1a02b42f5 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: Layer Normalization

Batch NormalizationLayer Normalization

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections