Skip to main navigation Skip to search Skip to main content

GQ-Train: Gradient Quantization-aware CNN Training with adaptive thresholding and hardware-friendly stochastic rounding unit

  • Seoul National University of Science and Technology (SNUST)

Research output: Contribution to journal › Article › peer-review

Abstract

With the increasing demand for personalized models and the growing emphasis on privacy preservation, efficient training of convolutional neural networks (CNNs) in on-device environments has become a critical challenge. In particular, low-bit quantization during the backward propagation (BP) process is essential due to the substantial computational and memory access demands. However, conventional quantization techniques struggle with the high variability of gradient distributions, leading to significant performance degradation in gradient quantization. To address this issue, we propose a novel hardware-efficient INT8 training framework that is robust against gradient quantization errors. Specifically, we introduce an adaptive multi-scale gradient quantization (AMGQ) method that leverages the inherent characteristics of gradient distributions—typically concentrated around zero yet spanning a broad range—to facilitate effective low-bit training. By selectively processing a subset of the gradients, our approach effectively differentiates between small- and large-magnitude gradient regions, thereby reducing computational overhead while achieving average performance improvements of 0.27% and 0.36% on the CIFAR-10 and ImageNet datasets, respectively, compared to the baseline (i.e., FP32). Furthermore, to mitigate the substantial computational and memory overhead associated with stochastic rounding (SR) in low-bit training, we introduce a flexible linear feedback shift register (LFSR)-based stochastic rounding unit (FlexSRU). FlexSRU employs an LFSR-based approach to efficiently generate random numbers while maximizing randomness through a hierarchical seed generator. Simultaneously, it significantly reduces hardware complexity by reusing random numbers at both the batch and channel levels. Additionally, it extends the period of conventional LFSRs using only bitwise inversion and dynamically adjusts the feedback polynomial to enhance pattern diversity, thereby improving numerical stability. By overcoming the limitations of existing LFSR-based random number generators, our approach enables efficient and precise SR with minimal hardware overhead, making it a promising solution for low-bit CNN training in resource-constrained environments. Consequently, the proposed framework enables stable and hardware-friendly INT8 training across a range of network architectures (e.g., ResNet, MobileNetV2, and VGG16) with minimal accuracy degradation.

Original languageEnglish
Article number134893
JournalNeurocomputing
Volume705
DOIs
StatePublished - 7 Dec 2026

Keywords

  • Convolutional neural networks
  • Gradient quantization
  • Low-bit training
  • On-device AI
  • Stochastic rounding

Cite this