Lune

AAAI2021顶会

Distribution Adaptive INT8 Quantization for Training CNNs

Kang Zhao, Sida Huang, Pan Pan, Yinghan Li, Yingya Zhang, Zhenyu Gu, Yinghui Xu

摘要

Researches have demonstrated that low bit-width (e.g., INT8) quantization can be employed to accelerate the inference process. It makes the gradient quantization very promising since the backward propagation requires approximately twice more computation than forward one. Due to the variability and uncertainty of gradient distribution, a lot of methods have been proposed to attain training stability. However, most of them ignore the channel-wise gradient distributions and the impact of gradients with different magnitudes, resulting in the degradation of final accuracy. In this paper, we propose a novel INT8 quantization training framework for convolutional neural network to address the above issues. Specifically, we adopt Gradient Vectorized Quantization to quantize the gradient, based on the observation that layer-wise gradients contain multiple distributions along the channel dimension. Then, Magnitude-aware Clipping Strategy is introduced by taking the magnitudes of gradients into consideration when minimizing the quantization error, and we present a theoretical derivation to solve the quantization parameters of different distributions. Experimental results on broad range of computer vision tasks, such as image classification, object detection and video classification, demonstrate that the proposed Distribution Adaptive INT8 Quantization training method has achieved almost lossless training accuracy for different backbones, including ResNet, MobileNetV2, InceptionV3, VGG and AlexNet, which is superior to the state-of-the-art techniques. Moreover, we further implement the INT8 kernel that can accelerate the training iteration more than 200% under the latest Turing architecture, i.e., our method excels on both training accuracy and speed.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Bitwidth Heterogeneous Federated Learning with Progressive Weight Dequantization 引用了 Fixed-Point Back-Propagation Training
  • Bitwidth Heterogeneous Federated Learning with Progressive Weight Dequantization 引用了 Towards Unified INT8 Training for Convolutional Neural Network
  • Stable and low-precision training for large-scale vision-language models 引用了 Towards Unified INT8 Training for Convolutional Neural Network
  • F8Net: Fixed-Point 8-bit Only Multiplication for Network Quantization 引用了 Fixed-Point Back-Propagation Training
  • F8Net: Fixed-Point 8-bit Only Multiplication for Network Quantization 引用了 Towards Unified INT8 Training for Convolutional Neural Network
  • Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow and Per-Block Quantization 引用了 Stable and low-precision training for large-scale vision-language models
  • Is Integer Arithmetic Enough for Deep Learning Training? 引用了 Fixed-Point Back-Propagation Training
  • Is Integer Arithmetic Enough for Deep Learning Training? 引用了 F8Net: Fixed-Point 8-bit Only Multiplication for Network Quantization
  • Is Integer Arithmetic Enough for Deep Learning Training? 引用了 Towards Unified INT8 Training for Convolutional Neural Network
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Stable and low-precision training for large-scale vision-language modelsMitchell Wortsman, Tim Dettmers, Luke Zettlemoyer, Ari Morcos 等NeurIPS 2023 · 101 次引用
  2. F8Net: Fixed-Point 8-bit Only Multiplication for Network QuantizationQing Jin, Jian Ren, Richard Zhuang, Sumant Hanumante 等ICLR 2022 · 57 次引用
  3. Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow and Per-Block QuantizationHaocheng Xi, Yuxiang Chen, Kang Zhao, Kai Jun Teh 等ICML 2024 · 35 次引用
  4. Bitwidth Heterogeneous Federated Learning with Progressive Weight DequantizationJaehong Yoon, Geon Park, Wonyong Jeong, Sung Ju HwangICML 2022 · 27 次引用
  5. Is Integer Arithmetic Enough for Deep Learning Training?Alireza Ghaffari, Marzieh S. Tahaei, Mohammadreza Tayaranian, Masoud Asgharian 等NeurIPS 2022 · 22 次引用

它引用的 Paper2

  1. Fixed-Point Back-Propagation TrainingXishan Zhang, Shaoli Liu, Rui Zhang, Chang Liu 等CVPR 2020
  2. Towards Unified INT8 Training for Convolutional Neural NetworkFeng Zhu, Ruihao Gong, Fengwei Yu, Xianglong Liu 等CVPR 2020

相关 Paper

  1. A Statistical Framework for Low-bitwidth Training of Deep Neural NetworksJianfei Chen, Yu Gai, Zhewei Yao, Michael W. Mahoney 等NeurIPS 2020 · 75 次引用
  2. AMPA: Adaptive Mixed Precision Allocation for Low-Bit Integer TrainingLi Ding, Wen Fei, Yuyang Huang, Shuangrui Ding 等ICML 2024 · 5 次引用
  3. Towards Accurate Low Bit-Width Quantization with Multiple Phase AdaptationsZhaoyi Yan, Yemin Shi, Yaowei Wang, Mingkui Tan 等AAAI 2020 · 2 次引用
  4. Multi-Precision Policy Enforced Training (MuPPET) : A Precision-Switching Strategy for Quantised Fixed-Point Training of CNNsAditya Rajagopal, Diederik Adriaan Vink, Stylianos I. Venieris, Christos-Savvas BouganisICML 2020 · 17 次引用
  5. Towards Accurate Post-training Network Quantization via Bit-Split and StitchingPeisong Wang, Qiang Chen, Xiangyu He, Jian ChengICML 2020 · 159 次引用
黄昏的海面,两侧是细线勾勒的悬崖