跳到主要导航 跳到搜索 跳到主要内容

Extremely Low-bit Convolution Optimization for Quantized Neural Network on Modern Computer Architectures

  • Beihang University
  • SenseTime Group Limited

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

With the continuous demand for higher accuracy of deep neural networks, the model size has increased significantly. Quantization is one of the most widely used model compression methods, which can effectively reduce the model size without severe accuracy loss. Modern processors such as ARM CPU and NVIDIA GPU have already provided the support of low-bit arithmetic instructions. However, there lack efficient and practical optimizations for convolution computation towards extremely low-bit on ARM CPU (e.g., 2 ∼8-bit) and NVIDIA GPU (e.g., 4-bit and 8-bit). This paper explores the performance optimization methods of extremely low-bit convolution on diverse architectures. On ARM CPU, we propose two instruction schemes for 2 ∼3-bit and 4 ∼8-bit convolution with corresponding register allocation methods. In addition, we re-design the GEMM computation with data padding and packing optimizations. We also implement winograd algorithm for convolution with some specific bit width (e.g., 4 ∼6-bit) to achieve higher performance. On NVIDIA GPU, we propose a data partition mechanism and multi-level memory access optimizations, to better adapt the computation to GPU thread and memory hierarchy. We also propose quantization fusion to eliminate unnecessary data access. The experiment results demonstrate our implementations achieve better performance of extremely low-bit convolution compared to the state-of-the-art frameworks and libraries such as ncnn and cuDNN. To the best of our knowledge, this is the first work that provides efficient implementations of extremely low-bit convolutions covering 2 ∼8-bit on ARM CPU and 4-bit/8-bit on NVIDIA GPU.

源语言英语
主期刊名Proceedings of the 49th International Conference on Parallel Processing, ICPP 2020
出版商Association for Computing Machinery
ISBN(电子版)9781450388160
DOI
出版状态已出版 - 17 8月 2020
活动49th International Conference on Parallel Processing, ICPP 2020 - Virtual, Online, 加拿大
期限: 17 8月 202020 8月 2020

出版系列

姓名ACM International Conference Proceeding Series

会议

会议49th International Conference on Parallel Processing, ICPP 2020
国家/地区加拿大
Virtual, Online
时期17/08/2020/08/20

学术指纹

探究 'Extremely Low-bit Convolution Optimization for Quantized Neural Network on Modern Computer Architectures' 的科研主题。它们共同构成独一无二的学术指纹。

引用此