[Paper Review] Low-Precision Floating-Point Schemes for Neural Network Training
This paper proposes low-precision floating-point and fixed-point arithmetic schemes to accelerate neural network training with reduced energy and memory usage. It introduces a 12-bit floating-point format with stochastic rounding, a locally scaled floating-point variant that improves accuracy by 2.42% over baseline 32-bit training, and a Power-of-Two neural network that replaces multiplications with bit shifts, reducing training time and resource consumption with minimal accuracy loss.
The use of low-precision fixed-point arithmetic along with stochastic rounding has been proposed as a promising alternative to the commonly used 32-bit floating point arithmetic to enhance training neural networks training in terms of performance and energy efficiency. In the first part of this paper, the behaviour of the 12-bit fixed-point arithmetic when training a convolutional neural network with the CIFAR-10 dataset is analysed, showing that such arithmetic is not the most appropriate for the training phase. After that, the paper presents and evaluates, under the same conditions, alternative low-precision arithmetics, starting with the 12-bit floating-point arithmetic. These two representations are then leveraged using local scaling in order to increase accuracy and get closer to the baseline 32-bit floating-point arithmetic. Finally, the paper introduces a simplified model in which both the outputs and the gradients of the neural networks are constrained to power-of-two values, just using 7 bits for their representation. The evaluation demonstrates a minimal loss in accuracy for the proposed Power-of-Two neural network, avoiding the use of multiplications and divisions and thereby, significantly reducing the training time as well as the energy consumption and memory requirements during the training and inference phases.
Motivation & Objective
- To evaluate the limitations of low-precision fixed-point arithmetic with stochastic rounding for training deep neural networks.
- To explore alternative low-precision numerical representations that maintain model accuracy while improving efficiency.
- To design a simplified neural network model using power-of-two values to eliminate costly multiplications and divisions.
- To demonstrate that locally scaled floating-point arithmetic can enhance accuracy beyond the 32-bit baseline with only 12 bits.
- To enable energy-efficient, high-throughput training by leveraging hardware-friendly operations in low-precision formats.
Proposed method
- Simulates 12-bit fixed-point and 12-bit floating-point arithmetic using double-precision Caffe framework, with values constrained to 12 bits.
- Applies stochastic rounding to handle overflow and underflow, preserving expected value through probabilistic rounding to nearest representable values.
- Introduces context float, a locally scaled floating-point format that dynamically adjusts the exponent range per layer or parameter group.
- Proposes the Power-of-Two neural network, where outputs and gradients are restricted to powers of two, enabling bit-shift operations instead of multiplications.
- Uses a 7-bit representation for power-of-two values, drastically reducing computational complexity during training.
- Evaluates all schemes on a ResNet-like architecture trained on CIFAR-10, comparing accuracy, training time, and resource usage.
Experimental results
Research questions
- RQ1Can 12-bit fixed-point arithmetic with stochastic rounding maintain model accuracy during training on CIFAR-10?
- RQ2Does a 12-bit floating-point format with stochastic rounding outperform fixed-point in terms of accuracy and stability?
- RQ3Can local scaling in floating-point or fixed-point formats improve accuracy beyond the 32-bit baseline with only 12 bits?
- RQ4Can constraining network outputs and gradients to power-of-two values eliminate expensive multiplications and divisions during training?
- RQ5What is the trade-off between precision loss and performance gains when using simplified numerical representations in training?
Key findings
- 12-bit fixed-point arithmetic with stochastic rounding leads to significant accuracy degradation during training on CIFAR-10, making it unsuitable for the training phase.
- The proposed 12-bit floating-point format with stochastic rounding achieves near-baseline accuracy, with minimal degradation compared to 32-bit floating-point training.
- The locally scaled floating-point (context float) approach improves accuracy by 2.42% over the 32-bit baseline, demonstrating the benefit of dynamic range adaptation.
- The Power-of-Two neural network representation reduces training time and energy consumption by replacing multiplications and divisions with bit shifts.
- The Power-of-Two model achieves minimal accuracy loss (negligible degradation) while using only 7 bits for key parameters, significantly reducing memory and computational overhead.
- The combination of low-precision arithmetic and hardware-friendly operations enables efficient training on resource-constrained platforms without sacrificing model performance.
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.