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

均方根层归一化

Root Mean Square Layer Normalization

University of Edinburgh(爱丁堡大学);University of Zurich(苏黎世大学)

Biao Zhang, Rico Sennrich

摘要:

层归一化(LayerNorm)已成功应用于各种深度神经网络,以帮助稳定训练和提高模型收敛性,因为它能够处理输入和权重矩阵的重新居中和重新缩放。然而,LayerNorm引入的计算开销使得这些改进变得昂贵,并显着减慢了底层网络,特别是RNN。在本文中,我们假设在LayerNorm中的重定中心不变性是不确定的,并提出均方根层归一化,或RMSNorm。RMSNorm根据均方根(RMS)对一层神经元的总输入进行正则化,赋予模型重标度不变性和隐式学习率自适应能力。RMSNorm在计算上更简单,因此比LayerNorm更有效。我们还提出了部分RMSNorm或pRMSNorm,其中RMS是从求和输入的p%估计的,而不破坏上述属性。在不同网络结构下的多个任务上的实验表明,RMSNorm在不同模型下的运行时间比LayerNorm减少了7%~64%,但性能与LayerNorm相当。源代码可在https://github.com/bzhangGo/rmsnorm上获得。

英文摘要:

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.

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

↑