Instance-Aware Dynamic Neural Network Quantization
Zhenhua Liu, Yunhe Wang, Kai Han, Siwei Ma, Wen Gao
摘要
Quantization is an effective way to reduce the memory and computational costs of deep neural networks in which the full-precision weights and activations are represented using low-bit values. The bit-width for each layer in most of existing quantization methods is static, i.e., the same for all samples in the given dataset. However, natural images are of huge diversity with abundant content and using such a universal quantization configuration for all samples is not an optimal strategy. In this paper, we present to conduct the low-bit quantization for each image individually, and develop a dynamic quantization scheme for exploring their optimal bit-widths. To this end, a lightweight bit-controller is established and trained jointly with the given neural network to be quantized. During inference, the quantization configuration for an arbitrary image will be determined by the bit-widths generated by the controller, e.g., an image with simple texture will be allocated with lower bits and computational complexity and vice versa. Experimental results conducted on benchmarks demonstrate the effectiveness of the proposed dynamic quantization method for achieving state-of-art performance in terms of accuracy and computational complexity. The code will be available at https://github.com/huawei-noah/Efficient-Computing and https://gitee.com/mindspore/models/tree/master/research/cv/DynamicQuant.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- DQT: Dynamic Quantization Training via Dequantization-Free Nested Integer Arithmetic 引用了 Learned Step Size quantization
- DQT: Dynamic Quantization Training via Dequantization-Free Nested Integer Arithmetic 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Text Embedding Knows How to Quantize Text-Guided Diffusion Models 引用了 Temporal Dynamic Quantization for Diffusion Models
- Text Embedding Knows How to Quantize Text-Guided Diffusion Models 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Temporal Dynamic Quantization for Diffusion Models 引用了 Learned Step Size quantization
- Thinking in Granularity: Dynamic Quantization for Image Super-Resolution by Intriguing Multi-Granularity Clues 引用了 Learned Step Size quantization
- Thinking in Granularity: Dynamic Quantization for Image Super-Resolution by Intriguing Multi-Granularity Clues 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
- Mixed Precision DNNs: All you need is a good parametrization 引用了 Learned Step Size quantization
引用它的顶会 Paper11
- Temporal Dynamic Quantization for Diffusion ModelsJunhyuk So, Jungwon Lee, Daehyun Ahn, Hyungjun Kim 等NeurIPS 2023 · 109 次引用
- Weak Distribution Detectors Lead to Stronger Generalizability of Vision-Language Prompt TuningKun Ding, Haojian Zhang, Qiang Yu, Ying Wang 等AAAI 2024 · 8 次引用
- Thinking in Granularity: Dynamic Quantization for Image Super-Resolution by Intriguing Multi-Granularity CluesMingshen Wang, Zhao Zhang, Feng Li, Ke Xu 等AAAI 2025 · 4 次引用
- DQT: Dynamic Quantization Training via Dequantization-Free Nested Integer ArithmeticHazem Hesham Yousef Shalby, Fabrizio Pittorino, Francesca Palermo, Diana Trojaniello 等AAAI 2026 · 2 次引用
- Text Embedding Knows How to Quantize Text-Guided Diffusion ModelsHongjae Lee, Myungjun Son, Dongjea Kang, Seung-Won JungICCV 2025 · 2 次引用
它引用的 Paper11
- Once-for-All: Train One Network and Specialize it for Efficient DeploymentHan Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang 等ICLR 2020 · 1,522 次引用
- Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy 等ICLR 2020 · 1,037 次引用
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural NetworksZhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami 等NeurIPS 2020 · 434 次引用
- Mixed Precision DNNs: All you need is a good parametrizationStefan Uhlich, Lukas Mauch, Fabien Cardinaux, Kazuki Yoshiyama 等ICLR 2020 · 159 次引用
相关 Paper
- Dynamic Network Quantization for Efficient Video InferenceXimeng Sun, Rameswar Panda, Chun-Fu (Richard) Chen, Aude Oliva 等ICCV 2021 · 56 次引用
- Arbitrary Bit-width Network: A Joint Layer-Wise Quantization and Adaptive Inference ApproachChen Tang, Haoyu Zhai, Kai Ouyang, Zhi Wang 等ACM MM 2022 · 15 次引用
- BSQ: Exploring Bit-Level Sparsity for Mixed-Precision Neural Network QuantizationHuanrui Yang, Lin Duan, Yiran Chen, Hai LiICLR 2021 · 83 次引用
- Distribution-Aware Adaptive Multi-Bit QuantizationSijie Zhao, Tao Yue, Xuemei HuCVPR 2021
- Differentiable Dynamic Quantization with Mixed Precision and Adaptive ResolutionZhaoyang Zhang, Wenqi Shao, Jinwei Gu, Xiaogang Wang 等ICML 2021 · 36 次引用
