Skip to main content
QUICK REVIEW

[Paper Review] Quantization Error as a Metric for Dynamic Precision Scaling in Neural Net Training

Ian Taras, Dylan Malone Stuart|arXiv (Cornell University)|Jan 25, 2018
Model Reduction and Neural NetworksPhysics and Astronomy5 citations
TL;DR

This paper proposes a dynamic precision scaling (DPS) algorithm that uses quantization error as a feedback metric to adaptively adjust the fractional bit-width of fixed-point representations during neural network training. By combining stochastic rounding with dynamic bit-width adjustment based on real-time quantization error and overflow rates, the method achieves 98.8% test accuracy on MNIST using only 16-bit average weight precision and 14-bit activation precision—comparable to full 32-bit floating-point training while significantly reducing computational cost.

ABSTRACT

Recent work has explored reduced numerical precision for parameters, activations, and gradients during neural network training as a way to reduce the computational cost of training (Na & Mukhopadhyay, 2016) (Courbariaux et al., 2014). We present a novel dynamic precision scaling (DPS) scheme. Using stochastic fixed-point rounding, a quantization-error based scaling scheme, and dynamic bit-widths during training, we achieve 98.8% test accuracy on the MNIST dataset using an average bit-width of just 16 bits for weights and 14 bits for activations, compared to the standard 32-bit floating point values used in deep learning frameworks.

Motivation & Objective

  • To reduce the computational cost of deep learning training by minimizing numerical precision without sacrificing model accuracy.
  • To address the challenge of maintaining training stability and convergence when using reduced precision for weights, activations, and gradients.
  • To develop a dynamic precision scaling strategy that adapts bit-widths during training based on real-time error metrics.
  • To evaluate whether quantization error can serve as a reliable heuristic for adjusting fractional bit-widths in fixed-point representations.

Proposed method

  • The method uses stochastic fixed-point rounding to ensure unbiased quantization of floating-point values into variable-precision fixed-point formats.
  • It dynamically adjusts both integer length (IL) and fractional length (FL) on a per-iteration basis during training.
  • The algorithm increases IL when overflow rate exceeds a threshold (R > R_max), and increases FL when average quantization error exceeds a threshold (E > E_max).
  • Quantization error is computed as a percentage: E_% = |x_out - x_in| / |x_in| × 100, used as a feedback signal for FL adjustment.
  • The system employs a dynamic bit-width representation where IL and FL are independently modifiable, avoiding the trade-off inherent in fixed total bit-width schemes.
  • Experiments are conducted using custom Caffe layers to emulate dynamic fixed-point quantization during both forward and backward passes.

Experimental results

Research questions

  • RQ1Can quantization error serve as a reliable metric for dynamically adjusting fractional bit-width during neural network training?
  • RQ2Does dynamic precision scaling based on quantization error and overflow rates maintain model accuracy while reducing bit-width?
  • RQ3Can reduced precision training with dynamic bit-width adjustment achieve convergence and high accuracy on standard benchmarks like MNIST?
  • RQ4How does the proposed DPS method compare to fixed-precision baselines and prior dynamic scaling approaches in terms of accuracy and bit-width efficiency?

Key findings

  • The proposed DPS algorithm achieves 98.8% test accuracy on the MNIST dataset using an average of 16 bits for weights and 14 bits for activations, matching the performance of full 32-bit floating-point training.
  • The method successfully maintains training stability and convergence, unlike a fixed 13-bit precision baseline, which fails to converge.
  • The average bit-width for weights and activations is significantly reduced—16 bits and 14 bits respectively—compared to standard 32-bit precision.
  • Gradient bit-width remains high (near 32 bits), as it requires the most precision for convergence, indicating that precision requirements vary across network components.
  • Training loss under DPS is slightly higher than the full-precision baseline, suggesting that reduced precision may act as a regularizing effect, though this requires further validation on larger models.

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.