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

Distributed Low Precision Training Without Mixed Precision

Zehua Cheng, Weiyang Wang, Yan Pan, Thomas LukasiewiczarXiv 2019

Abstract

Low precision training is one of the most popular strategies for deploying deep models on limited hardware resources. Fixed-point implementation of deep convolutional networks (DCNs) has the potential to alleviate complexities and facilitate deployment on embedded hardware. However, most low-precision training solutions are based on a mixed-precision strategy. In this paper, we present an ablation study on different low-precision training strategies and propose a solution for the IEEE FP16 format throughout the training process. We tested ResNet-50 on a 128-GPU cluster using the ImageNet-full dataset. Our findings demonstrate that it is not essential to use the FP32 format to train deep models. We also observed that communication cost reduction, model compression, and large-scale distributed training are three coupled problems.

Introduction

Training deep neural networks is computationally expensive and memory-intensive. To accelerate this process, researchers typically employ "mixed-precision" training: performing most calculations in 16-bit (FP16) while maintaining a "master copy" of the model weights in 32-bit (FP32) to ensure numerical stability and prevent small gradient updates from vanishing.

However, keeping an FP32 master copy is a partial solution that still consumes significant memory and increases data-transfer bottlenecks in distributed training. The primary hurdle for pure low-precision training is the narrow dynamic range of FP16, which often leads to numerical overflow or underflow during sensitive operations like Batch Normalization. As illustrated in Figure 1, the reduced bit allocation for exponents and mantissas in FP16 significantly constrains the representable range compared to FP32.

Comparison of bit layouts for FP12, FP16, and FP32 precisions, highlighting the reduced dynamic range of lower-bit formats.

Methods

The authors propose a "Full Low-Precision Training Strategy" with two key technical adjustments to handle FP16's limitations:

  1. Swapping BatchNorm Positions: The authors identified that the $\gamma$ (gamma) parameter in traditional Batch Normalization (BN) is "exponent-risky," often leading to arithmetic overflow when scaling unstable terms. They propose swapping the position of the residual connection and the gamma parameter in the BN layer following the last convolution in a residual block to reduce precision requirements during branch merging.
  2. Managing Underflow with Scaling: Instead of using complex algorithms like Layer-wise Adaptive Rate Scaling (LARS), which can be unstable at very large batch sizes, the authors found a simpler heuristic. They multiply the output by a factor of 0.25 immediately after every BatchNorm in a Residual Block. This keeps values within a range that prevents both mantissa and exponent underflow.
  3. Pure FP16 Pipeline: Unlike standard frameworks, this method uses FP16 for storage, arithmetic, activations, and gradients throughout the entire process, with no FP32 master copy.

Key Results

The pure FP16 strategy was compared against a standard FP32 baseline using ResNet-50 on the ImageNet-1k dataset. The results, summarized in Figure 2, demonstrate the effectiveness of the approach.

Experimental results comparing Top-1 accuracy across different precisions, batch sizes, and optimization techniques.
  • Accuracy: On 64 GPUs (batch size 2048), the pure FP16 model achieved 75.3% Top-1 accuracy, compared to the FP32 baseline of 75.6%. This marginal drop of 0.3% is significant given the removal of all high-precision buffers.
  • Scalability: The method maintained stable performance up to 128 GPUs (batch size 4096) with 74.5% accuracy.
  • Hardware Efficiency: FP16 operations are physically smaller and more energy-efficient. According to the study, an FP16 addition takes ~0.4 pJ of energy compared to 0.9 pJ for FP32, and occupies roughly 1/3 of the silicon area. Furthermore, by using pure FP16, the authors effectively halved the bandwidth required for weight synchronization in distributed training.

Discussion and Future Work

The study confirms that the 32-bit master copy of weights—previously thought essential for convergence—can be discarded if the numerical flow is managed correctly. However, a small accuracy gap remains, and the method faces convergence challenges at batch sizes exceeding 8,192. Future research will focus on closing this gap and validating these strategies on other architectures like Transformers or GANs.

Summary updated

BibTeX
@misc{cheng2019distributed,
  author = {Zehua Cheng and Weiyang Wang and Yan Pan and Thomas Lukasiewicz},
  title = {{Distributed Low Precision Training Without Mixed Precision}},
  year = {2019},
  eprint = {1911.07384},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07384},
}
Figure