arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.09769cs.LG
收藏

L1-Norm批量归一化用于深度神经网络的高效训练

L1-Norm Batch Normalization for Efficient Training of Deep Neural Networks

Tsinghua University(清华大学);University of California, Santa Barbara(加州大学圣塔芭芭拉分校)

Shuang Wu, Guoqi Li, Lei Deng, Liu Liu, Yuan Xie, Luping Shi

摘要:

批量归一化(BN)已被证明在加速和改进深度神经网络(DNN)的训练方面非常有效。然而,BN带来额外的计算,消耗更多的内存,并且通常会大幅减慢训练过程,这会减少训练工作量。此外,BN中的非线性平方和根运算也阻碍了低位宽量化技术,这引起了深度学习硬件社区的广泛关注。在这项工作中,我们提出了一个L1范数BN(L1 BN),在训练过程中的前向和后向传播都只有线性操作。L1 BN被证明是近似等于原来的L2-范数BN(L2 BN)乘以一个缩放因子。在各种卷积神经网络(CNN)和生成对抗网络(GANs)上的实验表明,与L2 BN相比,L1 BN保持了几乎相同的精度和收敛速度,但具有更高的计算效率。在FPGA平台上,L1 BN中的正负号运算和绝对运算与原来的平方运算和开方运算相比,分别获得了1.5 $\times$的加速比和50%的功耗节省.这种硬件友好的归一化方法不仅在速度上超过了L2 BN,而且简化了ASIC加速器的硬件设计,具有更高的能量效率。最后但并非最不重要的是,L1 BN承诺完全量化的DNN训练,这对未来的自适应终端设备至关重要。

英文摘要:

Batch Normalization (BN) has been proven to be quite effective at accelerating and improving the training of deep neural networks (DNNs). However, BN brings additional computation, consumes more memory and generally slows down the training process by a large margin, which aggravates the training effort. Furthermore, the nonlinear square and root operations in BN also impede the low bit-width quantization techniques, which draws much attention in deep learning hardware community. In this work, we propose an L1-norm BN (L1BN) with only linear operations in both the forward and the backward propagations during training. L1BN is shown to be approximately equivalent to the original L2-norm BN (L2BN) by multiplying a scaling factor. Experiments on various convolutional neural networks (CNNs) and generative adversarial networks (GANs) reveal that L1BN maintains almost the same accuracies and convergence rates compared to L2BN but with higher computational efficiency. On FPGA platform, the proposed signum and absolute operations in L1BN can achieve 1.5$\times$ speedup and save 50\% power consumption, compared with the original costly square and root operations, respectively. This hardware-friendly normalization method not only surpasses L2BN in speed, but also simplify the hardware design of ASIC accelerators with higher energy efficiency. Last but not the least, L1BN promises a fully quantized training of DNNs, which is crucial to future adaptive terminal devices.

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

↑