Skip to main content
QUICK REVIEW

[Paper Review] Is Integer Arithmetic Enough for Deep Learning Training?

Alireza Ghaffari, Marzieh S. Tahaei|arXiv (Cornell University)|Jul 18, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

This paper proposes a hardware-friendly, fully integer training method that replaces floating-point arithmetic with integer-only computation across all stages of deep learning training—forward pass, back-propagation, and stochastic gradient descent (SGD). By using a linear fixed-point mapping with a non-linear inverse mapping based on dynamic exponent scaling, the method achieves training accuracy nearly identical to floating-point baselines without hyperparameter tuning, gradient clipping, or distribution-dependent adjustments, demonstrating near-zero accuracy loss across classification, detection, and segmentation tasks.

ABSTRACT

The ever-increasing computational complexity of deep learning models makes their training and deployment difficult on various cloud and edge platforms. Replacing floating-point arithmetic with low-bit integer arithmetic is a promising approach to save energy, memory footprint, and latency of deep learning models. As such, quantization has attracted the attention of researchers in recent years. However, using integer numbers to form a fully functional integer training pipeline including forward pass, back-propagation, and stochastic gradient descent is not studied in detail. Our empirical and mathematical results reveal that integer arithmetic seems to be enough to train deep learning models. Unlike recent proposals, instead of quantization, we directly switch the number representation of computations. Our novel training method forms a fully integer training pipeline that does not change the trajectory of the loss and accuracy compared to floating-point, nor does it need any special hyper-parameter tuning, distribution adjustment, or gradient clipping. Our experimental results show that our proposed method is effective in a wide variety of tasks such as classification (including vision transformers), object detection, and semantic segmentation.

Motivation & Objective

  • To address the growing computational and energy costs of training large deep learning models on edge and cloud platforms.
  • To investigate whether integer arithmetic alone can fully replace floating-point arithmetic in end-to-end deep learning training.
  • To develop a method that maintains training convergence and accuracy without requiring gradient clipping, hyperparameter tuning, or distribution-specific adjustments.
  • To enable integer computation for all key components, including batch normalization and stochastic gradient descent, in a hardware-friendly manner.
  • To theoretically and empirically validate that integer training preserves the convergence trajectory of floating-point training.

Proposed method

  • The method uses a linear fixed-point mapping of floating-point tensors based on the maximum exponent in the tensor, enabling dynamic scaling without retraining.
  • It applies a non-linear inverse mapping to convert fixed-point values back to floating-point, ensuring minimal quantization error and unbiased gradient estimation.
  • Stochastic rounding is used during quantization to maintain gradient fidelity and prevent bias accumulation over training.
  • All operations—linear layers, convolutions, batch normalization, layer normalization, and SGD (including momentum and weight decay)—are performed exclusively in integer arithmetic.
  • The scale is computed dynamically per tensor and remains stable throughout training, eliminating the need for manual adjustment.
  • The approach is distribution-agnostic, meaning it does not depend on the statistical properties of weights, gradients, or input data.

Experimental results

Research questions

  • RQ1Can a fully integer training pipeline be designed that maintains convergence and accuracy comparable to floating-point training without hyperparameter tuning or gradient clipping?
  • RQ2How does the proposed fixed-point mapping affect the optimality gap of stochastic gradient descent compared to its floating-point counterpart?
  • RQ3Can integer arithmetic be used to compute gradients for batch normalization and stochastic gradient descent with negligible accuracy loss?
  • RQ4What is the impact of reducing bit-width below 8 bits (e.g., int5, int4) on training stability and model accuracy?
  • RQ5Does the proposed method preserve the training trajectory and final model performance across diverse deep learning tasks such as vision transformers, object detection, and semantic segmentation?

Key findings

  • The proposed integer training method achieves a top-1 accuracy of 69.25% on ImageNet with ResNet18, compared to 69.75% for the floating-point baseline, showing negligible accuracy drop.
  • For vision transformers fine-tuned on CIFAR10, the method achieved 98.80% top-1 accuracy versus 99.10% for the floating-point baseline, demonstrating strong performance on attention-based models.
  • In object detection using Faster R-CNN on COCO, the mAP was 37.40% with integer training versus 37.80% with floating-point, indicating minimal performance degradation.
  • Semantic segmentation with DeepLab-V1 achieved 74.73% mIOU on VOC with integer training, compared to 75.00% with floating-point, confirming consistency across dense prediction tasks.
  • The method successfully performs integer-only back-propagation through batch normalization and full SGD, which to the best of the authors' knowledge is the first such implementation with minimal accuracy loss.
  • Training with int5 caused a significant accuracy drop (to 88.5% on CIFAR10) and int4 led to divergence, indicating that 8-bit integer arithmetic is the practical lower bound for stable training.

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.