Towards Lower Bit Multiplication for Convolutional Neural Network Training

Kai Zhong, Tianchen Zhao, Xuefei Ning, Shulin Zeng, Kaiyuan Guo, Yu Wang, Huazhong Yang

Abstract

In this work, we propose a low-bit training framework for convolutional neural networks, which is built around a novel multi-level scaling (MLS) tensor format. Our framework focuses on reducing the energy consumption of convolution operations by quantizing all the convolution operands to low bit-width format. Specifically, we propose the MLS tensor format, in which the element-wise bit-width can be largely reduced. Then, we describe the dynamic quantization and the low-bit tensor convolution arithmetic to leverage the MLS tensor format efficiently. Experiments show that our framework achieves a superior trade-off between the accuracy and the bit-width than previous low-bit training frameworks. For training a variety of models on CIFAR-10, using 1-bit mantissa and 2-bit exponent is adequate to keep the accuracy loss within $1\%$. And on larger datasets like ImageNet, using 4-bit mantissa and 2-bit exponent is adequate to keep the accuracy loss within $1\%$. Through the energy consumption simulation of the computing units, we can estimate that training a variety of models with our framework could achieve $8.3\sim10.2\times$ and $1.9\sim2.3\times$ higher energy efficiency than training with full-precision and 8-bit floating-point arithmetic, respectively.

Introduction

Training deep Convolutional Neural Networks (CNNs) is an environmental and financial heavyweight, consuming hundreds of ExaFLOPs and requiring power-hungry GPUs. While quantization—reducing the precision of numbers—has been a massive success for inference, applying it to the training phase is notoriously difficult. The primary obstacles include the Dynamic Range Wall, where standard integer formats fail to handle the massive swings in value ranges during training; the Accumulation Wall, where floating-point formats require complex, power-hungry hardware for multiply-and-accumulate (MAC) operations; and the Hardware Wall, as most custom low-bit formats lack native support on off-the-shelf hardware.

The Multi-Level Scaling (MLS) Format

The core innovation of this framework is the Multi-Level Scaling (MLS) tensor format. Instead of using a standard floating-point number for every single value, the scaling is broken into three hierarchical levels to maintain dynamic range while minimizing bit-width:

  • Tensor-wise scaling: A single high-precision floating-point factor for the entire tensor.
  • Group-wise scaling: Tensors are split into groups (e.g., by channel), each with its own hardware-friendly scaling factor restricted to powers of two or simple sums of shifts.
  • Element-wise exponent: Each individual number receives a tiny 2-bit exponent to provide local dynamic range.
The Multi-Level Scaling (MLS) tensor format hierarchy showing tensor, group, and element-wise scaling.

By combining these levels, values can be represented with a very small mantissa—as low as 1 bit for CIFAR-10 or 4 bits for ImageNet. This hierarchical approach ensures that smaller, important gradients are not "swamped" by larger outliers, a common issue in uniform quantization.

Hardware-Algorithm Co-design

To leverage the MLS format, a custom hardware unit using an "adder-tree" architecture was designed. Because the element-wise exponents are kept small, the hardware can perform accumulations using 32-bit integers rather than floating-point units. This shift is critical because integer accumulators are significantly more energy-efficient than their floating-point counterparts. The format is specifically designed to be "shifted" rather than "multiplied" in silicon, which is a computationally cheaper operation.

Experimental Results

The framework was evaluated on standard computer vision benchmarks including CIFAR-10 (ResNet-20, VGG-16, GoogleNet) and ImageNet (ResNet-18, ResNet-34, VGG-16, GoogleNet).

Comparison of normalized energy consumption and accuracy loss across different precision formats.

As shown in the results, the MLS framework achieves a superior trade-off between energy and accuracy. For ImageNet, using a 4-bit mantissa and 2-bit exponent resulted in less than 1% accuracy loss compared to full 32-bit floating-point (FP32) training. Simulation results indicate that this framework is 8.3× to 10.2× more energy-efficient than FP32 training and 1.9× to 2.3× more efficient than state-of-the-art 8-bit floating-point (FP8) methods.

Conclusion and Future Work

While the MLS framework offers significant energy gains, it currently requires custom hardware (RTL design) to realize these benefits, as standard GPUs cannot natively exploit shift-based scaling. Additionally, following common practice, the first and last layers were kept at higher precision; achieving "pure" low-bit training for the entire network remains an open challenge. Future research will also explore the compatibility of ultra-low-bit training with adaptive optimizers like Adam or LAMB.

Summary updated

Abstract

In this work, we propose a low-bit training framework for convolutional neural networks, which is built around a novel multi-level scaling (MLS) tensor format. Our framework focuses on reducing the energy consumption of convolution operations by quantizing all the convolution operands to low bit-width format. Specifically, we propose the MLS tensor format, in which the element-wise bit-width can be largely reduced. Then, we describe the dynamic quantization and the low-bit tensor convolution arithmetic to leverage the MLS tensor format efficiently. Experiments show that our framework achieves a superior trade-off between the accuracy and the bit-width than previous low-bit training frameworks. For training a variety of models on CIFAR-10, using 1-bit mantissa and 2-bit exponent is adequate to keep the accuracy loss within $1\%$. And on larger datasets like ImageNet, using 4-bit mantissa and 2-bit exponent is adequate to keep the accuracy loss within $1\%$. Through the energy consumption simulation of the computing units, we can estimate that training a variety of models with our framework could achieve $8.3\sim10.2\times$ and $1.9\sim2.3\times$ higher energy efficiency than training with full-precision and 8-bit floating-point arithmetic, respectively.
BibTeX
@article{zhong2022towards,
  author = {Kai Zhong and Tianchen Zhao and Xuefei Ning and Shulin Zeng and Kaiyuan Guo and Yu Wang and Huazhong Yang},
  title = {{Towards Lower Bit Multiplication for Convolutional Neural Network Training}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2022},
  url = {https://openreview.net/forum?id=ADOhXBRHyYY},
}
Figure