arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.07013cs.LGcs.CLstat.ML
收藏

理解和改进层归一化

Understanding and Improving Layer Normalization

Peking University(北京大学)

Jingjing Xu, Xu Sun, Zhiyuan Zhang, Guangxiang Zhao, Junyang Lin

摘要:

层归一化(LayerNorm)是一种对中间层的分布进行归一化的技术。它可以实现更平滑的梯度,更快的训练和更好的泛化精度。然而,目前还不清楚有效性来自何处。在本文中,我们的主要贡献是进一步理解LayerNorm。许多先前的研究认为LayerNorm的成功来自于前向归一化。与他们不同的是,我们发现均值和方差的导数比通过重新居中和重新缩放后向梯度的前向归一化更重要。此外,我们发现LayerNorm的参数,包括偏置和增益,增加了过拟合的风险,并且在大多数情况下不起作用。实验表明,没有偏差和增益的简单版本的LayerNorm(LayerNorm-simple)在四个数据集上的性能优于LayerNorm。它在En-Vi机器翻译上取得了最先进的性能。为了解决过拟合问题,我们提出了一种新的归一化方法,自适应归一化(AdaNorm),通过用一个新的变换函数代替偏置和增益。实验表明,AdaNorm在八个数据集中的七个上表现出比LayerNorm更好的结果。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑