Mixed Precision Training With 8-bit Floating Point

By Naveen Mellempudi, Sudarshan M. Srinivasan, Dipankar Das, Bharat Kaul. 2019

80 citations recorded by the source corpus.

Reduced precision computation for deep neural networks is one of the key areas addressing the widening compute gap driven by an exponential growth in model size. In recent years, deep learning training has largely migrated to 16-bit precision, with significant gains in performance and energy efficiency. However, attempts to train DNNs at 8-bit precision have met with significant challenges because of the higher precision and dynamic range requirements of back-propagation. In this paper, we propose a method to train deep neural networks using 8-bit floating point representation for weights, activations, errors, and gradients. In addition to reducing compute precision, we also reduced the precision requirements for the master copy of weights from 32-bit to 16-bit. We demonstrate state-of-the-art accuracy across multiple data sets (imagenet-1K, WMT16) and a broader set of workloads (Resnet-18/34/50, GNMT, Transformer) than previously reported. We propose an enhanced loss scaling method to augment the reduced subnormal range of 8-bit floating point for improved error propagation. We also examine the impact of quantization noise on generalization and propose a stochastic rounding technique to address gradient noise. As a result of applying all these techniques, we report slightly higher validation accuracy compared to full precision baseline.

Subfields: Computational Mechanics, Computer Vision and Pattern Recognition, Control and Systems Engineering, 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 Computational Mechanics

  1. Luke S. Zettlemoyer
  2. Michael Lewis
  3. Sam Shleifer
  4. Tim Dettmers
  5. Hanlin Tang
  6. Sheng Li
  7. Tal Ben-Nun
  8. Torsten Hoefler

In Computer Vision and Pattern Recognition

  1. Luke S. Zettlemoyer
  2. Michael Lewis
  3. Tim Dettmers
  4. Léopold Cambier
  5. David A. Patterson
  6. N. Jouppi
  7. Ting Gong
  8. Mehran Nekuii

In Control and Systems Engineering

  1. Luke S. Zettlemoyer
  2. Tim Dettmers

In Efficiency & Compression

  1. Luke S. Zettlemoyer
  2. Tim Dettmers
  3. Michael Lewis
  4. Sam Shleifer
  5. N. Jouppi
  6. Hanlin Tang
  7. Cliff Young
  8. Sidak Pal Singh

In Optimization & Training

  1. Luke S. Zettlemoyer
  2. Tim Dettmers
  3. Michael Lewis
  4. Sam Shleifer
  5. David A. Patterson
  6. Doe Hyun Yoon
  7. N. Jouppi
  8. George Kurian

Citations in the corpus