层归一化

Layer Normalization

巴磊 Jimmy Lei Ba · U. Toronto · 2016-07-21 · arXiv:1607.06450 ↗ · 被引 12782

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

训练最先进的深度神经网络计算成本高昂。减少训练时间的一种方法是归一化神经元的活动。最近引入的批归一化技术利用小批量训练样本中神经元求和输入的分布来计算均值和方差,进而对每个训练样本的求和输入进行归一化,这显著减少了前馈神经网络的训练时间。然而,批归一化的效果依赖于小批量大小,并且如何将其应用于循环神经网络尚不明确。本文通过从单个训练样本中一层所有神经元的求和输入计算用于归一化的均值和方差,将批归一化转化为层归一化。与批归一化类似,我们为每个神经元赋予自适应的偏置和增益,在归一化之后、非线性激活之前应用。与批归一化不同,层归一化在训练和测试时执行完全相同的计算。通过在每个时间步分别计算归一化统计量,层归一化也易于应用于循环神经网络。层归一化在稳定循环网络的隐藏状态动态方面非常有效。实验表明,与先前发表的技术相比,层归一化可以显著减少训练时间。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 19)

阅读逐段中英对照全文 →