1-Bit FQT: Pushing the Limit of Fully Quantized Training to 1-bit
Chang Gao, Jianfei Chen, Kang Zhao, Jiaqi Wang, Liping Jing
TL;DR
This work pushes fully quantized training toward the 1-bit limit by developing a theory of FQT under Adam and SGD, showing gradient variance critically governs convergence and that Adam better tolerates low-bitwidth. It introduces Activation Gradient Pruning (AGP) to reduce gradient-variance by selectively retaining high-range gradient groups, and Sample Channel joint Quantization (SCQ) to tailor quantization for weight and activation gradients to hardware constraints. The 1-bit FQT algorithm combines sign-based forward propagation with unbiased, per-group gradient quantization and a hardware-friendly backpropagation path, achieving practical acceleration via AGP and SCQ. Empirically, the method delivers meaningful speedups (up to 5.13×) and competitive transfer-learning accuracy across CV and NLP tasks, while noting limitations in training-from-scratch scenarios and broader applicability to architectures beyond CNNs.
Abstract
Fully quantized training (FQT) accelerates the training of deep neural networks by quantizing the activations, weights, and gradients into lower precision. To explore the ultimate limit of FQT (the lowest achievable precision), we make a first attempt to 1-bit FQT. We provide a theoretical analysis of FQT based on Adam and SGD, revealing that the gradient variance influences the convergence of FQT. Building on these theoretical results, we introduce an Activation Gradient Pruning (AGP) strategy. The strategy leverages the heterogeneity of gradients by pruning less informative gradients and enhancing the numerical precision of remaining gradients to mitigate gradient variance. Additionally, we propose Sample Channel joint Quantization (SCQ), which utilizes different quantization strategies in the computation of weight gradients and activation gradients to ensure that the method is friendly to low-bitwidth hardware. Finally, we present a framework to deploy our algorithm. For fine-tuning VGGNet-16 and ResNet-18 on multiple datasets, our algorithm achieves an average accuracy improvement of approximately 6%, compared to per-sample quantization. Moreover, our training speedup can reach a maximum of 5.13x compared to full precision training.
