arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.12322cs.LGstat.ML
收藏

用于深度学习训练的BFLOAT16研究

A Study of BFLOAT16 for Deep Learning Training

Intel Labs(英特尔研究院);Facebook(脸书)
Dhiraj Kalamkar, Dheevatsa Mudigere, Naveen Mellempudi, Dipankar Das, Kunal Banerjee, Sasikanth Avancha, Dharma Teja Vooturi, Nataraj Jammalamadaka, Jianyu Huan… 展开作者

Dhiraj Kalamkar, Dheevatsa Mudigere, Naveen Mellempudi, Dipankar Das, Kunal Banerjee, Sasikanth Avancha, Dharma Teja Vooturi, Nataraj Jammalamadaka, Jianyu Huang, Hector Yuen, Jiyan Yang, Jongsoo Park, Alexander Heinecke, Evangelos Georganas, Sudarshan Srinivasan, Abhisek Kundu, Misha Smelyanskiy, Bharat Kaul, Pradeep Dubey

摘要:

本文介绍了第一项全面的实证研究,展示了脑浮点(BFLOAT 16)半精度格式在图像分类、语音识别、语言建模、生成网络和工业推荐系统中用于深度学习训练的有效性。BFLOAT 16对于深度学习训练很有吸引力,原因有二:它可以表示的值的范围与IEEE 754浮点格式(FP 32)相同,并且与FP 32之间的转换很简单。保持与FP 32相同的范围对于确保收敛不需要超参数调整很重要;例如,符合IEEE 754标准的半精度浮点(FP 16)需要进行超参数调整。本文讨论了混合精度训练中张量的流程和各种关键操作,并深入研究了操作的细节,例如将FP 32张量转换为BFLOAT 16的舍入模式。我们已经实现了一种方法来模拟Tensorflow,Caffe 2,IntelCaffe和Neon中的BFLOAT 16操作。我们的研究结果表明,使用BFLOAT 16张量的深度学习训练在相同的迭代次数下实现了与FP 32张量相同的跨域最先进(SOTA)结果,并且没有改变超参数。

英文摘要:

This paper presents the first comprehensive empirical study demonstrating the efficacy of the Brain Floating Point (BFLOAT16) half-precision format for Deep Learning training across image classification, speech recognition, language modeling, generative networks and industrial recommendation systems. BFLOAT16 is attractive for Deep Learning training for two reasons: the range of values it can represent is the same as that of IEEE 754 floating-point format (FP32) and conversion to/from FP32 is simple. Maintaining the same range as FP32 is important to ensure that no hyper-parameter tuning is required for convergence; e.g., IEEE 754 compliant half-precision floating point (FP16) requires hyper-parameter tuning. In this paper, we discuss the flow of tensors and various key operations in mixed precision training, and delve into details of operations, such as the rounding modes for converting FP32 tensors to BFLOAT16. We have implemented a method to emulate BFLOAT16 operations in Tensorflow, Caffe2, IntelCaffe, and Neon for our experiments. Our results show that deep learning training using BFLOAT16 tensors achieves the same state-of-the-art (SOTA) results across domains as FP32 tensors in the same number of iterations and with no changes to hyper-parameters.

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

↑