NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fixed-Point Back-Propagation Training

Xishan Zhang, Shaoli Liu, Rui Zhang, Chang Liu, Di Huang, Shiyi Zhou, Jiaming Guo, Qi Guo, Zidong Du, Tian Zhi, Yunji Chen

Introduction

Deep neural network training has traditionally relied on high-precision floating-point arithmetic (typically float32) to maintain numerical stability and ensure convergence. While low-precision integer quantization is widely used to accelerate inference on edge devices, applying it to the training process has remained a significant challenge. This paper introduces a novel approach that enables training entirely using low bit-width fixed-point math (int8 and int16), achieving substantial hardware speedups with negligible impact on model accuracy.

The Challenge of Quantized Training

Training is inherently more sensitive to numerical precision than inference. Forcing gradients into low-bit fixed-point formats often introduces rounding errors that compound over thousands of iterations, leading to unstable convergence or significant accuracy degradation. The primary obstacle is the dynamic nature of data distributions during training; as a model learns, the range and variance of activations and gradients shift unpredictably across different layers and training phases. A static, "one-size-fits-all" quantization scheme cannot adapt to these shifting distributions, often resulting in information loss where small but critical gradient values are rounded to zero.

Adaptive Fixed-Point Training

To address these challenges, the authors propose Adaptive Fixed-Point Training. This method treats quantization as a dynamic process, adjusting precision layer-by-layer in real-time. The framework relies on two core components:

  1. Quantization Error Measurement (QEM): Instead of monitoring absolute error, QEM tracks the shift in the mean of the data distribution before and after quantization. A significant shift in the mean indicates that the current quantization resolution is too coarse for the data's variance, serving as an early warning for potential accuracy loss.
  2. Quantization Parameter Adjustment (QPA): When the error measured by QEM exceeds a predefined threshold, the system automatically adjusts the quantization parameters. This may involve increasing the bit-width (e.g., from int8 to int16) or shifting the fixed-point "resolution" (the position of the decimal point) to better encompass the current data range.
The Adaptive Fixed-Point Training pipeline, integrating QEM and QPA modules to dynamically adjust quantization during forward and backward passes.

These adjustments are performed more frequently during the volatile early stages of training and less often as the model stabilizes, ensuring that the computational overhead of the adaptation logic remains minimal.

Key Insights and Empirical Observations

Variance and Layer Sensitivity

A critical discovery of this research is that different layer types exhibit vastly different sensitivities to quantization. Fully connected (FC) layers typically have much higher variance in their activation gradients compared to convolutional layers. As a result, while convolutional layers often train successfully in int8, FC layers frequently require int16 or higher to maintain the statistical integrity of the gradients and ensure convergence.

Comparison of gradient distributions and training loss. (a-c) show how int8 fails to capture the distribution (53% zeros and mean shift), while int16 matches float32. (d) illustrates the resulting failure of int8 training to converge.

The Importance of the "Warm-up" Phase

Data distributions are most volatile during the first 10,000 iterations of training. The adaptive approach naturally manages this "burn-in" period by utilizing higher precision or more frequent scaling adjustments when the model is most sensitive, gradually relaxing these requirements as training progresses.

Experimental Results

The researchers evaluated the proposed method across a wide array of benchmarks, including ImageNet classification (ResNet, MobileNet v2), object detection (SSD), and machine translation (Transformer).

  • Accuracy Parity: Across all models, the average accuracy loss compared to a float32 baseline was a mere 0.02%. In several instances, the fixed-point models achieved parity or slightly outperformed the baseline.
  • Hardware Acceleration: On an Intel Xeon Gold CPU utilizing AVX2 instructions, the method delivered a 2.52x speedup for AlexNet training.
  • Quantization Efficiency: The adaptive system proved highly efficient; on average, 87.43% of activation gradients were compressed to int16, while 12.56% utilized int8. Only 0.07% of gradients required higher precision (int24), demonstrating that float32 is largely unnecessary for the bulk of the training process.

Conclusion and Future Directions

This work demonstrates that full fixed-point training is not only viable but highly efficient when paired with an adaptive quantization strategy. By ensuring that quantization preserves the statistical distribution of tensors rather than just their absolute values, the authors achieve a robust training process. While the most immediate gains are seen on CPUs, this research paves the way for specialized, low-power AI training hardware that can eliminate expensive floating-point units entirely, enabling more efficient large-scale model development.

Summary updated

BibTeX
@inproceedings{zhang2020fixed,
  author = {Xishan Zhang and Shaoli Liu and Rui Zhang and Chang Liu and Di Huang and Shiyi Zhou and Jiaming Guo and Qi Guo and Zidong Du and Tian Zhi and Yunji Chen},
  title = {{Fixed-Point Back-Propagation Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00240},
}
Figure