[Paper Review] 8-bit Numerical Formats for Deep Neural Networks
This paper proposes 8-bit floating-point numerical formats—specifically 1.4.3 (4-bit exponent, 3-bit mantissa) for activations and weights, and 1.5.2 (5-bit exponent, 2-bit mantissa) for gradients—for efficient training of deep neural networks. It demonstrates that with optimal exponent bias selection, these formats enable full-precision accuracy in image classification and machine translation tasks while reducing power consumption by up to 16× compared to float-32 and 4× compared to float-16.
Given the current trend of increasing size and complexity of machine learning architectures, it has become of critical importance to identify new approaches to improve the computational efficiency of model training. In this context, we address the advantages of floating-point over fixed-point representation, and present an in-depth study on the use of 8-bit floating-point number formats for activations, weights, and gradients for both training and inference. We explore the effect of different bit-widths for exponents and significands and different exponent biases. The experimental results demonstrate that a suitable choice of these low-precision formats enables faster training and reduced power consumption without any degradation in accuracy for a range of deep learning models for image classification and language processing.
Motivation & Objective
- Address the growing energy and computational cost of training large deep learning models by exploring low-precision numerical formats.
- Investigate the trade-offs between fixed-point and floating-point representations in low-precision training.
- Identify optimal 8-bit floating-point formats for activations, weights, and gradients that maintain model accuracy during training.
- Systematically evaluate the impact of exponent bias and bit-width allocation on training stability and generalization.
- Provide guidelines for mixed-precision training using 8-bit floating-point formats to maximize efficiency without accuracy loss.
Proposed method
- Design and evaluate multiple 8-bit floating-point formats with varying exponent and significand bit-widths (e.g., 1.4.3, 1.5.2).
- Apply different exponent biases to optimize dynamic range coverage for activations, weights, and gradients.
- Use adaptive loss scaling to stabilize training when using low-precision gradients.
- Train models using mixed-precision computation, keeping critical operations like gradients in low-precision formats.
- Compare performance across image classification (e.g., ResNet, MobileNet) and NLP (e.g., Transformer) models using BLEU and top-1 accuracy.
- Conduct ablation studies on exponent bias and format choice to determine robust configurations for generalization.
Experimental results
Research questions
- RQ1Can 8-bit floating-point formats with limited exponent and significand bits maintain full-precision model accuracy during training?
- RQ2How does the choice of exponent bias affect the training stability and generalization performance of low-precision DNNs?
- RQ3What is the optimal bit allocation between exponent and significand for activations, weights, and gradients in 8-bit floating-point formats?
- RQ4How do 8-bit floating-point formats compare to 8-bit fixed-point and higher-precision formats in terms of energy efficiency and accuracy?
- RQ5Can adaptive loss scaling eliminate the need for manual gradient scaling in 8-bit floating-point training?
Key findings
- The 1.4.3 format (4-bit exponent, 3-bit significand) achieves full-precision accuracy in ResNet-50 and MobileNet models with minimal accuracy degradation.
- The 1.5.2 format (5-bit exponent, 2-bit significand) enables stable training of Transformer models with BLEU scores of 26.96 ± 0.09, matching the float-32 baseline.
- Using an exponent bias of 15 for gradients (1.5.2 format) maintains training stability and avoids performance degradation.
- The 1.5.2 format for gradients outperforms the 1.4.3 format, indicating that higher exponent precision is critical for gradient representation.
- With optimal format and bias selection, 8-bit floating-point training achieves up to 16× higher energy efficiency than float-32 and 4× higher than float-16.
- Adaptive loss scaling enables stable training without manual scaling, confirming the robustness of the proposed 8-bit formats.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.