Lune

CVPR2021顶会

Network Quantization With Element-Wise Gradient Scaling

Junghyup Lee, Dohyung Kim, Bumsub Ham

摘要

Network quantization aims at reducing bit-widths of weights and/or activations, particularly important for implementing deep neural networks with limited hardware resources. Most methods use the straight-through estimator (STE) to train quantized networks, which avoids a zero-gradient problem by replacing a derivative of a discretizer (i.e., a round function) with that of an identity function. Although quantized networks exploiting the STE have shown decent performance, the STE is sub-optimal in that it simply propagates the same gradient without considering discretization errors between inputs and outputs of the discretizer. In this paper, we propose an element-wise gradient scaling (EWGS), a simple yet effective alternative to the STE, training a quantized network better than the STE in terms of stability and accuracy. Given a gradient of the discretizer output, EWGS adaptively scales up or down each gradient element, and uses the scaled gradient as the one for the discretizer input to train quantized networks via backpropagation. The scaling is performed depending on both the sign of each gradient element and an error between the continuous input and discrete output of the discretizer. We adjust a scaling factor adaptively using Hessian information of a network. We show extensive experimental results on the image classification datasets, including CIFAR-10 and ImageNet, with diverse network architectures under a wide range of bit-width settings, demonstrating the effectiveness of our method.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • BitsFusion: 1.99 bits Weight Quantization of Diffusion Model 引用了 Learned Step Size quantization
  • AffineQuant: Affine Transformation Quantization for Large Language Models 引用了 Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks
  • Overcoming Oscillations in Quantization-Aware Training 引用了 Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks
  • Overcoming Oscillations in Quantization-Aware Training 引用了 Learned Step Size quantization
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization 引用了 Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization 引用了 Training Quantized Neural Networks With a Full-Precision Auxiliary Module
  • IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network Quantization 引用了 Learned Step Size quantization
  • Q-VLM: Post-training Quantization for Large Vision-Language Models 引用了 Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks
  • Q-VLM: Post-training Quantization for Large Vision-Language Models 引用了 Learned Step Size quantization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper33

  1. Overcoming Oscillations in Quantization-Aware TrainingMarkus Nagel, Marios Fournarakis, Yelysei Bondarenko, Tijmen BlankevoortICML 2022 · 163 次引用
  2. IntraQ: Learning Synthetic Images with Intra-Class Heterogeneity for Zero-Shot Network QuantizationYunshan Zhong, Mingbao Lin, Gongrui Nan, Jianzhuang Liu 等CVPR 2022 · 79 次引用
  3. Q-VLM: Post-training Quantization for Large Vision-Language ModelsChangyuan Wang, Ziwei Wang, Xiuwei Xu, Yansong Tang 等NeurIPS 2024 · 57 次引用
  4. AffineQuant: Affine Transformation Quantization for Large Language ModelsYuexiao Ma, Huixia Li, Xiawu Zheng, Feng Ling 等ICLR 2024 · 56 次引用
  5. BitsFusion: 1.99 bits Weight Quantization of Diffusion ModelYang Sui, Yanyu Li, Anil Kag, Yerlan Idelbayev 等NeurIPS 2024 · 48 次引用

它引用的 Paper6

  1. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy 等ICLR 2020 · 1,037 次引用
  2. HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用
  3. Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural NetworksRuihao Gong, Xianglong Liu, Shenghu Jiang, Tianxiang Li 等ICCV 2019 · 540 次引用
  4. HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural NetworksZhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami 等NeurIPS 2020 · 434 次引用
  5. Training Quantized Neural Networks With a Full-Precision Auxiliary ModuleBohan Zhuang, Lingqiao Liu, Mingkui Tan, Chunhua Shen 等CVPR 2020

相关 Paper

  1. Distance-aware QuantizationDohyung Kim, Junghyup Lee, Bumsub HamICCV 2021 · 42 次引用
  2. Mixed Precision DNNs: All you need is a good parametrizationStefan Uhlich, Lukas Mauch, Fabien Cardinaux, Kazuki Yoshiyama 等ICLR 2020 · 159 次引用
  3. Nonuniform-to-Uniform Quantization: Towards Accurate Quantization via Generalized Straight-Through EstimationZechun Liu, Kwang-Ting Cheng, Dong Huang, Eric P. Xing 等CVPR 2022 · 108 次引用
  4. A Statistical Framework for Low-bitwidth Training of Deep Neural NetworksJianfei Chen, Yu Gai, Zhewei Yao, Michael W. Mahoney 等NeurIPS 2020 · 75 次引用
  5. Cluster-Promoting Quantization with Bit-Drop for Minimizing Network Quantization LossJung Hyun Lee, Jihun Yun, Sung Ju Hwang, Eunho YangICCV 2021 · 17 次引用
黄昏的海面,两侧是细线勾勒的悬崖