Proceedings

To Fold or Not to Fold: a Necessary and Sufficient Condition on Batch-Normalization Layers Folding

Video #1 Video #2 Download BibTeX Cite

Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Main Track. Pages 1601-1607.

https://doi.org/10.24963/ijcai.2022/223

Abstract

Batch-Normalization (BN) layers have become fundamental components in the evermore complex deep neural network architectures. Such models require acceleration processes for deployment on edge devices. However, BN layers add computation bottlenecks due to the sequential operation processing: thus, a key, yet often overlooked component of the acceleration process is BN layers folding. In this paper, we demonstrate that the current BN folding approaches are suboptimal in terms of how many layers can be removed. We therefore provide a necessary and sufficient condition for BN folding and a corresponding optimal algorithm. The proposed approach systematically outperforms existing baselines and allows to dramatically reduce the inference time of deep neural networks.

  1. [Chen and others, 2017] Liang-Chieh Chen et al. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. TPAMI, 2017.
  2. [Cordts and others, 2016] Marius Cordts et al. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016.
  3. [Deng et al., 2009] J. Deng, W. Dong, et al. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009.
  4. [Finkelstein et al., 2019] Alexander Finkelstein, Uri Almog, and Mark Grobman. Fighting quantization bias with bias. ECV workshop CVPR, 2019.
  5. [Frankle and Carbin, 2018] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. ICLR, 2018.
  6. [He et al., 2016] Kaiming He, Xiangyu Zhang, et al. Deep residual learning for image recognition. In CVPR, 2016.
  7. [He et al., 2017] Kaiming He, Georgia Gkioxari, et al. Mask r-cnn. In ICCV, 2017.
  8. [Ioffe and Szegedy, 2015] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep net- work training by reducing internal covariate shift. ICML, 2015.
  9. [Jacob and others, 2018] Benoit Jacob et al. Quantization and training of neural networks for efficient integer- arithmetic-only inference. In CVPR, 2018.
  10. [Krishnamoorthi, 2018] Raghuraman Krishnamoorthi. Quantizing deep convolutional networks for efficient inference: A whitepaper. arXiv, 2018.
  11. [Krizhevsky et al., 2009] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny im- ages. Master's thesis, Department of Computer Science, University of Toronto, 2009.
  12. [Krizhevsky et al., 2012] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NeurIPS, 25, 2012.
  13. [LeCun and others, 1989] Yann LeCun et al. Backpropaga- tion applied to handwritten zip code recognition. Neural computation, 1(4), 1989.
  14. [Lin and others, 2014] Tsung-Yi Lin et al. Microsoft coco: Common objects in context. In ECCV. Springer, 2014.
  15. [Lin and others, 2017] Tsung-Yi Lin et al. Feature pyramid networks for object detection. In CVPR, 2017.
  16. [Lin and others, 2020] Mingbao Lin et al. Hrank: Filter pruning using high-rank feature map. In CVPR, 2020.
  17. [Liu and others, 2017] Zhuang Liu et al. Learning efficient convolutional networks through network slimming. In ICCV, 2017.
  18. [Luo and others, 2019] Ping Luo et al. Switchable nor- malization for learning-to-normalize deep representation. TPAMI, 2019.
  19. [Martin and Mahoney, 2019] Charles H Martin and Michael W Mahoney. Traditional and heavy-tailed self regularization in neural network models. ICML, 2019.
  20. [Meller et al., 2019] Eldad Meller, Alexander Finkelstein, Uri Almog, and Mark Grobman. Same, same but differ- ent: Recovering neural network quantization error through weight factorization. In ICML, 2019.
  21. [Nagel et al., 2019] Markus Nagel, Mart van Baalen, et al. Data-free quantization through weight equalization and bias correction. In ICCV, 2019.
  22. [Ren and others, 2015] Shaoqing Ren et al. Faster r-cnn: To- wards real-time object detection with region proposal net- works. NeurIPS, 28, 2015.
  23. [Renda et al., 2020] Alex Renda, Jonathan Frankle, and Michael Carbin. Comparing rewinding and fine-tuning in neural network pruning. ICLR, 2020.
  24. [Ronneberger et al., 2015] Olaf Ronneberger, Philipp Fis- cher, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI. Springer, 2015.
  25. [Sandler et al., 2018] Mark Sandler, Andrew Howard, et al. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018.
  26. [Simonyan and Zisserman, 2014] Karen Simonyan and An- drew Zisserman. Very deep convolutional networks for large-scale image recognition. BMVC, 2014.
  27. [Srinivas and Babu, 2015] Suraj Srinivas and R Venkatesh Babu. Data-free parameter pruning for deep neural net- works. BMVC, 2015.
  28. [Szegedy and others, 2016] Christian Szegedy et al. Re- thinking the inception architecture for computer vision. In CVPR, 2016.
  29. [Tan and Le, 2019] Mingxing Tan and Quoc V Le. Efficient- net: Rethinking model scaling for convolutional neural networks. ICML, 2019.
  30. [Tan et al., 2020] Mingxing Tan, Ruoming Pang, and Quoc V Le. Efficientdet: Scalable and efficient object de- tection. In CVPR, 2020.
  31. [Wu and He, 2018] Yuxin Wu and Kaiming He. Group nor- malization. In ECCV, 2018.
  32. [Ye and others, 2018] Jianbo Ye et al. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. ICLR, 2018.
  33. [Yvinec et al., 2021] Edouard Yvinec, Arnaud Dapogny, Matthieu Cord, and Kevin Bailly. Red: Looking for re- dundancies for data-free structured compression of deep neural networks. NeurIPS, 2021.
  34. [Zhao and others, 2017] Hengshuang Zhao et al. Pyramid scene parsing network. In CVPR, 2017.
  35. [Zhao and others, 2019] Ritchie Zhao et al. Improving neu- ral network quantization without retraining using outlier channel splitting. In ICML, 2019.
  36. [Zhou and others, 2019] Xingyi Zhou et al. Objects as points. ICCV, 2019.

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

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