Proceedings

Direct Quantization for Training Highly Accurate Low Bit-width Deep Neural Networks

Video Download BibTeX Cite

Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. Main track. Pages 2111-2118.

https://doi.org/10.24963/ijcai.2020/292

Abstract

This paper proposes two novel techniques to train deep convolutional neural networks with low bit-width weights and activations. First, to obtain low bit-width weights, most existing methods obtain the quantized weights by performing quantization on the full-precision network weights. However, this approach would result in some mismatch: the gradient descent updates full-precision weights, but it does not update the quantized weights. To address this issue, we propose a novel method that enables direct updating of quantized weights with learnable quantization levels to minimize the cost function using gradient descent. Second, to obtain low bit-width activations, existing works consider all channels equally. However, the activation quantizers could be biased toward a few channels with high-variance. To address this issue, we propose a method to take into account the quantization errors of individual channels. With this approach, we can learn activation quantizers that minimize the quantization errors in the majority of channels. Experimental results demonstrate that our proposed method achieves state-of-the-art performance on the image classification task, using AlexNet, ResNet and MobileNetV2 architectures on CIFAR-100 and ImageNet datasets.

  1. [Aojun et al., 2017] Zhou Aojun, Yao Anbang, Guo Yiwen, Xu Lin, and Chen Yurong. Incremental Network Quan- tization: Towards Lossless CNNs with Low-Precision Weights. In ICLR, 2017.
  2. [Cai et al., 2017] Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep Learning with Low Precision by Half-wave Gaussian Quantization. In CVPR, pages 5918- 5926, 2017.
  3. [Courbariaux et al., 2015] Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. BinaryConnect: Training Deep Neural Networks with binary weights during propa- gations. In NIPS, pages 3123-3131. 2015.
  4. [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li- Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, pages 248-255, 2009.
  5. [Gong et al., 2019] Ruihao Gong, Xianglong Liu, Shenghu Jiang, Tianxiang Li, Peng Hu, Jiazhen Lin, Fengwei Yu, and Junjie Yan. Differentiable soft quantization: Bridging full-precision and low-bit neural networks. In ICCV, pages 4852-4861, 2019.
  6. [Gu et al., 2019] Jiaxin Gu, Junhe Zhao, Xiaolong Jiang, Baochang Zhang, Liu Jianzhuang, Guodong Guo, and Rongrong Ji. Bayesian Optimized 1-bit CNNs. In ICCV, pages 4909-4917, 2019.
  7. [Gupta et al., 2015] Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep Learn- ing with Limited Numerical Precision. In ICML, page 1737-1746, 2015.
  8. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In CVPR, pages 770-778, 2016.
  9. [Hinton, 2012] Geoffreye Hinton. Neural networks for ma- chine learning. Coursera, video lectures, 2012.
  10. [Hou and Kwok, 2018] Lu Hou and James T. Kwok. Loss- aware weight quantization of deep networks. In ICLR, 2018.
  11. [Hubara et al., 2017] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations. JMLR, 18(1):6869-6898, 2017.
  12. [Ioffe and Szegedy, 2015] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep net- work training by reducing internal covariate shift. In ICML, page 448-456, 2015.
  13. [Jung et al., 2019] Sangil Jung, Changyong Son, Seohyung Lee, Jinwoo Son, Jae-Joon Han, Youngjun Kwak, Sung Ju Hwang, and Changkyu Choi. Learning to quantize deep networks by optimizing quantization intervals with task loss. In CVPR, pages 4350-4359, 2019.
  14. [Krizhevsky et al., 2012] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1097- 1105, 2012.
  15. [Krizhevsky, 2009] Alex Krizhevsky. Learning multiple lay- ers of features from tiny images. Technical report, Univer- sity of Toronto, 2009.
  16. [Li and Liu, 2017] Fengfu Li and Bin Liu. Ternary weight networks. In ICLR, 2017.
  17. [Li et al., 2017] Zefan Li, Bingbing Ni, Wenjun Zhang, Xi- aokang Yang, and Wen Gao. Performance Guaranteed Network Acceleration via High-Order Residual Quantiza- tion. In ICCV, pages 2584-2592, 2017.
  18. [Lin et al., 2016] Darryl D. Lin, Sachin S. Talathi, and V. Sreekanth Annapureddy. Fixed Point Quantization of Deep Convolutional Networks. In ICML, page 2849-2858, 2016.
  19. [Liu et al., 2018] Zechun Liu, Baoyuan Wu, Wenhan Luo, Xin Yang, Wei Liu, and Kwang-Ting Cheng. Bi-Real Net: Enhancing the Performance of 1-bit CNNs with Improved Representational Capability and Advanced Training Algo- rithm. In ECCV, pages 747-763, 2018.
  20. [Liu et al., 2019] Chunlei Liu, Wenrui Ding, Xin Xia, Yuan Hu, Baochang Zhang, Jianzhuang Liu, Bohan Zhuang, and Guodong Guo. Rectified Binary Convolutional Networks for Enhancing the Performance of 1-bit DCNNs. In IJCAI, pages 854-860, 2019. IJCAI
  21. [Miyashita et al., 2016] Daisuke Miyashita, Edward H. Lee, and Boris Murmann. Convolutional Neural Net- works using Logarithmic Data Representation. CoRR, abs/1603.01025, 2016.
  22. [Park et al., 2017] Eunhyeok Park, Junwhan Ahn, and Sungjoo Yoo. Weighted-entropy-based quantization for deep neural networks. In CVPR, pages 5456-5464, 2017.
  23. [Rastegari et al., 2016] Mohammad Rastegari, Vicente Or- donez, Joseph Redmon, and Ali Farhadi. XNOR-Net: Im- ageNet Classification Using Binary Convolutional Neural Networks. In ECCV, pages 525-542, 2016.
  24. [Sandler et al., 2018] Mark Sandler, Andrew Howard, Men- glong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. MobileNetV2: Inverted Residuals and Linear Bottlenecks. In CVPR, pages 4510-4520, 2018.
  25. [Tang et al., 2017] Wei Tang, Gang Hua, and Liang Wang. How to Train a Compact Binary Neural Network with High Accuracy? In AAAI, pages 2625-2631, 2017.
  26. [Wan et al., 2018] Diwen Wan, Fumin Shen, Li Liu, Fan Zhu, Jie Qin, Ling Shao, and Heng Tao Shen. TBN: Con- volutional Neural Network with Ternary Inputs and Binary Weights. In ECCV, pages 322-339, 2018.
  27. [Zhang et al., 2018] Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networks. In ECCV, pages 373-390, 2018.
  28. [Zhou et al., 2016] Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients. CoRR, abs/1606.06160, 2016.
  29. [Zhou et al., 2018] Yiren Zhou, Seyed-Mohsen Moosavi- Dezfooli, Ngai-Man Cheung, and Pascal Frossard. Adap- tive quantization for deep neural network. In AAAI, pages 4596-4604, 2018.
  30. [Zhu et al., 2017] Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained Ternary Quantization. In ICLR, 2017.
  31. [Zhuang et al., 2018] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian D. Reid. Towards Effective Low-Bitwidth Convolutional Neural Networks. In CVPR, pages 7920-7928, 2018.
  32. [Zhuang et al., 2019] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian D. Reid. Structured Binary Neural Networks for Accurate Image Classifi- cation and Semantic Segmentation. In CVPR, pages 413-422, 2019.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards