arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2005.11878cs.LGmath.OCmath.STstat.MLstat.TH
收藏

用于训练深度神经网络的分数阶矩保持初始化方案

Fractional moment-preserving initialization schemes for training deep neural networks

Rutgers Business School(罗格斯商学院)

Mert Gurbuzbalaban, Yuanhan Hu

摘要:

在深度神经网络(DNN)中初始化的传统方法是随机采样网络权重以保持预激活的方差。另一方面,一些研究表明,在训练过程中,随机梯度的分布可能是重尾的,特别是对于小批量。在这种情况下,权重和因此的预激活可以用重尾分布来建模,该重尾分布具有无穷大的方差,但是具有有限的(非整数)分数阶矩$s$和$s<2$。基于这一事实,我们开发了全连接前馈网络的初始化方案,该方案可以证明在一类激活(包括ReLU,Leaky ReLU,Randomized Leaky ReLU和线性激活)的层上保留任何给定的阶矩$s \in (0, 2]$。这些广义方案在极限$s \to 2$中恢复了传统的初始化方案,并作为初始化原理理论的一部分。对于所有这些计划,我们表明,网络输出承认一个有限的几乎必然的限制层数的增长,并在某些设置的限制是重尾。这进一步揭示了DNN中信号传播过程中重尾的起源。我们证明,网络输出的范数的对数,如果适当缩放,将收敛到高斯分布,具有显式的均值和方差,我们可以根据所使用的激活,s的值选择和网络宽度计算。我们还证明了我们的初始化方案避免小的网络输出值更频繁地比传统的方法。此外,所提出的初始化策略在训练过程中没有额外的成本。我们通过数值实验表明,我们的初始化可以提高训练和测试性能。

英文摘要:

A traditional approach to initialization in deep neural networks (DNNs) is to sample the network weights randomly for preserving the variance of pre-activations. On the other hand, several studies show that during the training process, the distribution of stochastic gradients can be heavy-tailed especially for small batch sizes. In this case, weights and therefore pre-activations can be modeled with a heavy-tailed distribution that has an infinite variance but has a finite (non-integer) fractional moment of order $s$ with $s<2$. Motivated by this fact, we develop initialization schemes for fully connected feed-forward networks that can provably preserve any given moment of order $s \in (0, 2]$ over the layers for a class of activations including ReLU, Leaky ReLU, Randomized Leaky ReLU, and linear activations. These generalized schemes recover traditional initialization schemes in the limit $s \to 2$ and serve as part of a principled theory for initialization. For all these schemes, we show that the network output admits a finite almost sure limit as the number of layers grows, and the limit is heavy-tailed in some settings. This sheds further light into the origins of heavy tail during signal propagation in DNNs. We prove that the logarithm of the norm of the network outputs, if properly scaled, will converge to a Gaussian distribution with an explicit mean and variance we can compute depending on the activation used, the value of s chosen and the network width. We also prove that our initialization scheme avoids small network output values more frequently compared to traditional approaches. Furthermore, the proposed initialization strategy does not have an extra cost during the training procedure. We show through numerical experiments that our initialization can improve the training and test performance.

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

↑