Understanding and Improving Layer Normalization

By Jingjing Xu, Xu Sun, Zhiyuan Zhang, Guangxiang Zhao, Junyang Lin. 2019

543 citations recorded by the source corpus.

Layer normalization (LayerNorm) is a technique to normalize the distributions of intermediate layers. It enables smoother gradients, faster training, and better generalization accuracy. However, it is still unclear where the effectiveness stems from. In this paper, our main contribution is to take a step further in understanding LayerNorm. Many of previous studies believe that the success of LayerNorm comes from forward normalization. Unlike them, we find that the derivatives of the mean and variance are more important than forward normalization by re-centering and re-scaling backward gradients. Furthermore, we find that the parameters of LayerNorm, including the bias and gain, increase the risk of over-fitting and do not work in most cases. Experiments show that a simple version of LayerNorm (LayerNorm-simple) without the bias and gain outperforms LayerNorm on four datasets. It obtains the state-of-the-art performance on En-Vi machine translation. To address the over-fitting problem, we propose a new normalization method, Adaptive Normalization (AdaNorm), by replacing the bias and gain with a new transformation function. Experiments show that AdaNorm demonstrates better results than LayerNorm on seven out of eight datasets.

Subfields: 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 Model Architectures

  1. Lei He
  2. Sheng Zhao
  3. Yanqing Liu
  4. Yu Wu
  5. Shujie Liu
  6. Jinyu Li
  7. Xipeng Qiu
  8. Furu Wei

In Optimization & Training

  1. Michael W. Mahoney
  2. A. Gholami
  3. Kurt Keutzer
  4. Zi-Mei Yao
  5. Zhuo Chen
  6. Sheng Shen
  7. Xu Sun
  8. Ling Shao

Citations in the corpus