arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1910.12385cs.LGstat.ML
收藏

混合精度训练的自适应损失缩放

Adaptive Loss Scaling for Mixed Precision Training

Imperial College London(帝国理工学院);Preferred Networks, Inc.(Preferred Networks公司)

Ruizhe Zhao, Brian Vogel, Tanvir Ahmed

摘要:

混合精度训练(MPT)正在成为一种实用的技术,通过利用现有GPU中对IEEE半精度浮点的快速硬件支持来提高训练深度神经网络的速度和能量效率。MPT通常与一种称为损失缩放的技术结合使用,该技术通过在反向传播开始之前放大损失值来最大限度地减少数值下溢对训练的影响。不幸的是,现有的方法使这个损失尺度值成为一个超参数,需要根据模型进行调整,并且单个尺度不能适应不同训练阶段的不同层。我们引入了一种基于损失缩放的训练方法,称为自适应损失缩放,通过消除调整模型特定损失尺度超参数的需要,使MPT更容易使用,更实用。我们通过引入逐层损失尺度值来实现这一点,这些值在训练过程中自动计算,以比现有方法更有效地处理下溢。我们在各种网络和任务上的实验结果表明,与现有的最先进的MPT和单精度浮点相比,我们的方法可以缩短收敛时间并提高精度

英文摘要:

Mixed precision training (MPT) is becoming a practical technique to improve the speed and energy efficiency of training deep neural networks by leveraging the fast hardware support for IEEE half-precision floating point that is available in existing GPUs. MPT is typically used in combination with a technique called loss scaling, that works by scaling up the loss value up before the start of backpropagation in order to minimize the impact of numerical underflow on training. Unfortunately, existing methods make this loss scale value a hyperparameter that needs to be tuned per-model, and a single scale cannot be adapted to different layers at different training stages. We introduce a loss scaling-based training method called adaptive loss scaling that makes MPT easier and more practical to use, by removing the need to tune a model-specific loss scale hyperparameter. We achieve this by introducing layer-wise loss scale values which are automatically computed during training to deal with underflow more effectively than existing methods. We present experimental results on a variety of networks and tasks that show our approach can shorten the time to convergence and improve accuracy compared to the existing state-of-the-art MPT and single-precision floating point

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

↑