1-Bit FQT: Pushing the Limit of Fully Quantized Training to 1-bit

Chang Gao, Jianfei Chen, Kang Zhao, Jiaqi Wang, Liping Jing
8/26/2024
cs.LGcs.CV

No official code found. Best implementation: Gaochang-bjtu/1-bit-FQT (11 stars, MIT, last commit 2024-08-26).

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.

View on arXivView PDF

Code Implementations(1)

MIT
111C, C++Aug 26, 20242 years agoMIT

Similar Papers

Cite this paper

@article{gao2024bit,
  title  = {1-Bit FQT: Pushing the Limit of Fully Quantized Training to 1-bit},
  author = {Chang Gao and Jianfei Chen and Kang Zhao and Jiaqi Wang and Liping Jing},
  year   = {2024},
  eprint = {2408.14267},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.14267v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.14267.svg)](https://codeofpaper.com/paper/2408.14267)

Discussion