[Paper Review] Training Deep Neural Networks Using Posit Number System
This paper proposes a novel training methodology for deep neural networks using the posit number system, enabling 16-bit posit training with no accuracy loss on ImageNet. It introduces a warm-up strategy and layer-wise scaling to stabilize training, and designs an energy-efficient posit MAC hardware unit that reduces power by up to 83% and area by 76% compared to FP32.
With the increasing size of Deep Neural Network (DNN) models, the high memory space requirements and computational complexity have become an obstacle for efficient DNN implementations. To ease this problem, using reduced-precision representations for DNN training and inference has attracted many interests from researchers. This paper first proposes a methodology for training DNNs with the posit arithmetic, a type- 3 universal number (Unum) format that is similar to the floating point(FP) but has reduced precision. A warm-up training strategy and layer-wise scaling factors are adopted to stabilize training and fit the dynamic range of DNN parameters. With the proposed training methodology, we demonstrate the first successful training of DNN models on ImageNet image classification task in 16 bits posit with no accuracy loss. Then, an efficient hardware architecture for the posit multiply-and-accumulate operation is also proposed, which can achieve significant improvement in energy efficiency than traditional floating-point implementations. The proposed design is helpful for future low-power DNN training accelerators.
Motivation & Objective
- To enable low-precision training of deep neural networks using the posit number system, which offers better precision-dynamic range trade-offs than traditional floating-point formats.
- To address the instability and precision challenges in early training stages when using reduced-precision posit formats.
- To design a hardware-optimized posit multiply-and-accumulate (MAC) unit for efficient DNN accelerator implementations.
- To demonstrate that posit arithmetic can achieve full model accuracy with significantly reduced computational and memory costs.
Proposed method
- A warm-up training phase using FP32 is applied initially to stabilize model weights before switching to 16-bit or 8-bit posit arithmetic.
- Layer-wise scaling factors are derived from the log-domain data distribution to match the dynamic range and precision characteristics of the posit format.
- A quantitative criterion is used to select the optimal exponent bits (es) for each layer to balance dynamic range and precision.
- An optimized hardware architecture for posit MAC is proposed, featuring a latency-reduced decoder and encoder using duplicated left-shifters to eliminate critical-path adders.
- The posit MAC unit is implemented in Verilog HDL and synthesized in TSMC 28nm, with performance and area comparisons against FP32 MAC units.
- The design integrates a posit-to-FP decoder, an FP MAC unit, and an FP-to-posit encoder, with optimizations to reduce delay and power consumption.
Experimental results
Research questions
- RQ1Can deep neural networks be successfully trained using 16-bit posit arithmetic without accuracy degradation?
- RQ2How can the high sensitivity of early training stages be mitigated when using low-precision posit formats?
- RQ3What scaling strategy ensures optimal alignment between the data distribution of DNN layers and the precision characteristics of the posit number system?
- RQ4How can the hardware overhead of posit arithmetic be minimized for efficient DNN accelerator integration?
- RQ5What performance and energy efficiency gains can be achieved by replacing FP32 MAC units with optimized posit MAC units?
Key findings
- The proposed method enables successful training of ResNet-18 on ImageNet using 16-bit posit arithmetic with no accuracy loss compared to FP32.
- The warm-up strategy with FP32 followed by 16-bit posit training ensures model convergence and stability.
- Layer-wise scaling factors based on log-domain data distribution significantly improve training stability and accuracy.
- The optimized posit MAC hardware reduces power consumption by 22% to 83% and area by 6% to 76% compared to FP32 MAC units.
- The decoder and encoder architectures achieve 15%-30% and 25%-35% speedup, respectively, reducing their impact on total MAC delay.
- The posit MAC design demonstrates strong potential for low-power DNN training accelerators, with up to 4× reduction in data communication overhead.
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.