Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning Training on the Edge with Low-Precision Posits

Hamed F. Langroudi, Zachariah Carmichael|arXiv (Cornell University)|Jul 30, 2019
Image Processing and 3D ReconstructionComputer Science30 references9 citations
TL;DR

This paper proposes training deep neural networks (DNNs) on edge devices using low-precision posits, demonstrating that 16-bit posits outperform 16-bit floating point in both MNIST and Fashion-MNIST classification tasks. The method leverages the tapered-precision nature of posits to improve accuracy and energy efficiency in DNN training with minimal hardware complexity, achieving 96.535% accuracy on MNIST and 87.400% on Fashion-MNIST with 16-bit posits—surpassing 16-bit floating point by over 5% in both cases.

ABSTRACT

Recently, the posit numerical format has shown promise for DNN data representation and compute with ultra-low precision ([5..8]-bit). However, majority of studies focus only on DNN inference. In this work, we propose DNN training using posits and compare with the floating point training. We evaluate on both MNIST and Fashion MNIST corpuses, where 16-bit posits outperform 16-bit floating point for end-to-end DNN training.

Motivation & Objective

  • To address the challenge of training deep neural networks on resource-constrained edge devices with limited memory, bandwidth, and energy.
  • To evaluate the efficacy of the posit numerical format—particularly at low precision—for end-to-end DNN training, not just inference.
  • To compare 16-bit and 32-bit posits with their floating-point counterparts in terms of accuracy and efficiency on small-scale image classification tasks.
  • To demonstrate that posits can achieve superior performance with simpler rounding and lower hardware cost than existing low-precision methods.
  • To explore the feasibility of using 16-bit posits for all DNN parameters without exhaustive parameter analysis or loss scaling.

Proposed method

  • The authors implement a software-emulated framework in Keras and TensorFlow to support 16-bit and 32-bit posit arithmetic for DNN training.
  • They use a standard three-hidden-layer feedforward neural network architecture for evaluation on MNIST and Fashion-MNIST datasets.
  • The posit format is applied to weights, activations, and gradients using a round-to-nearest rounding strategy, avoiding complex stochastic rounding or loss scaling.
  • The framework supports both 16-bit and 32-bit precision for both posit and floating-point formats, enabling direct comparison.
  • The training process uses standard backpropagation with Adam optimizer, where beta1 and beta2 are set to standard values.
  • The posit numerical format is implemented via bit-level manipulation, with regime and exponent fields dynamically encoded based on input magnitude.

Experimental results

Research questions

  • RQ1Can low-precision posits (16-bit) achieve comparable or better accuracy than 16-bit floating point in end-to-end DNN training on edge devices?
  • RQ2Does the tapered-precision characteristic of posits improve DNN training accuracy and energy efficiency compared to fixed-precision formats?
  • RQ3Can 16-bit posits replace 32-bit floating point in DNN training without requiring loss scaling or complex accumulation precision?
  • RQ4How does the posit format perform relative to other low-precision methods like BFP, mixed-precision, or fixed-point in terms of accuracy and hardware efficiency?
  • RQ5Is the round-to-nearest rounding strategy sufficient for 16-bit posit training, or is stochastic rounding necessary?

Key findings

  • 16-bit posits achieved 96.535% test accuracy on MNIST, outperforming 16-bit floating point, which reached 90.646%.
  • On Fashion-MNIST, 16-bit posits achieved 87.400% accuracy, surpassing 16-bit floating point’s 81.725%.
  • 32-bit posits achieved 98.131% accuracy on MNIST, slightly exceeding 32-bit floating point’s 98.087%.
  • 32-bit posits on Fashion-MNIST achieved 89.263% accuracy, compared to 89.105% for 32-bit floating point.
  • The performance gain of posits over floating point is consistent across both datasets and both precision levels, indicating robustness.
  • The results suggest that posits can achieve high accuracy with minimal hardware complexity, using only round-to-nearest rounding and no loss scaling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.