Root Mean Square Layer Normalization

By Biao Zhang, Rico Sennrich. 2019

1,797 citations recorded by the source corpus.

Layer normalization (LayerNorm) has been successfully applied to various deep neural networks to help stabilize training and boost model convergence because of its capability in handling re-centering and re-scaling of both inputs and weight matrix. However, the computational overhead introduced by LayerNorm makes these improvements expensive and significantly slows the underlying network, e.g. RNN in particular. In this paper, we hypothesize that re-centering invariance in LayerNorm is dispensable and propose root mean square layer normalization, or RMSNorm. RMSNorm regularizes the summed inputs to a neuron in one layer according to root mean square (RMS), giving the model re-scaling invariance property and implicit learning rate adaptation ability. RMSNorm is computationally simpler and thus more efficient than LayerNorm. We also present partial RMSNorm, or pRMSNorm where the RMS is estimated from p% of the summed inputs without breaking the above properties. Extensive experiments on several tasks using diverse network architectures show that RMSNorm achieves comparable performance against LayerNorm but reduces the running time by 7%~64% on different models. Source code is available at https://github.com/bzhangGo/rmsnorm.

Subfields: Artificial Intelligence, Neurology, Model Architectures, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Quoc V. Le
  3. Jianfeng Gao
  4. Luke S. Zettlemoyer
  5. Percy Liang
  6. Yejin Choi
  7. Graham Neubig
  8. Hannaneh Hajishirzi

In Neurology

  1. Yu Qiao
  2. Ling Shao
  3. Peng Gao
  4. Jiaming Han
  5. Rohan Anil
  6. Lewei Lu
  7. Oriol Vinyals
  8. Zhang Tao

In Model Architectures

  1. Quoc V. Le
  2. Yoshua Bengio
  3. Barret Zoph
  4. Ruslan Salakhutdinov
  5. Zhangyang Wang
  6. Jianfeng Gao
  7. Ping Luo
  8. Yonatan Belinkov

In Optimization & Training

  1. Quoc V. Le
  2. Barret Zoph
  3. Hanxiao Liu
  4. Irwan Bello
  5. Neil Houlsby
  6. David R. So
  7. Frank Hutter
  8. Karen Simonyan

Citations in the corpus