A Study of BFLOAT16 for Deep Learning Training

By Dhiraj D. Kalamkar, Dheevatsa Mudigere, Naveen Mellempudi, Dipankar Das, K. Banerjee, Sasikanth Avancha, Dharma Teja Vooturi, Nataraj Jammalamadaka, Jianyu Huang, Hector Yuen and 9 more. 2019

492 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computational Mathematics, Computer Vision and Pattern Recognition, Efficiency & Compression, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Yejin Choi
  4. Noah A. Smith
  5. Percy Liang
  6. Graham Neubig
  7. Jianfeng Gao
  8. Yonatan Belinkov

In Computational Mathematics

  1. Yonatan Belinkov
  2. Shaden Smith
  3. Sheng Shen
  4. Colin Raffel
  5. Tim Dettmers

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Mohit Bansal
  3. Dacheng Tao
  4. Trevor Darrell
  5. Andrew Zisserman
  6. Xiaogang Wang
  7. Jitendra Malik
  8. Ming-Hsuan Yang

In Efficiency & Compression

  1. Alexander M. Rush
  2. Tim Dettmers
  3. Minjia Zhang
  4. Dan Alistarh
  5. Elias Frantar
  6. Samyam Rajbhandari
  7. Mohammad Shoeybi
  8. Victor Sanh

In Optimization & Training

  1. Samyam Rajbhandari
  2. Olatunji Ruwase
  3. Jeff Rasley
  4. Minjia Zhang
  5. Mohammad Shoeybi
  6. Anna Rogers
  7. Tim Dettmers
  8. Timo Schick

Citations in the corpus