arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.09886cs.CV
收藏

基于{-1,+1}编码分解和加速的量化神经网络

Quantized Neural Networks via {-1, +1} Encoding Decomposition and Acceleration

Xidian University(西安电子科技大学);Peking University(北京大学)

Qigong Sun, Xiufang Li, Fanhua Shang, Hongying Liu, Kang Yang, Licheng Jiao, Zhouchen Lin

摘要:

深度神经网络(DNN)的训练总是需要密集的计算和数据存储资源。因此,DNN不能有效地应用于移动电话和嵌入式设备,这严重限制了它们在工业应用中的适用性。为了解决这个问题,我们提出了一种新的编码方案,使用{-1,+1}将量化的神经网络(QNN)分解为多分支二进制网络,这可以通过逐位操作(即,XNOR和比特计数)以实现模型压缩、计算加速和资源节省。使用该方法,用户可以根据自己的要求和硬件资源,任意实现不同的编码精度。该机制在数据存储和计算方面非常适合FPGA和ASIC使用,为智能芯片提供了一种可行的思路。我们验证了我们的方法在大规模图像分类(例如,ImageNet)、目标检测和语义分割任务。特别是,我们的方法与低比特编码仍然可以实现几乎相同的性能,其高比特的同行。

英文摘要:

The training of deep neural networks (DNNs) always requires intensive resources for both computation and data storage. Thus, DNNs cannot be efficiently applied to mobile phones and embedded devices, which severely limits their applicability in industrial applications. To address this issue, we propose a novel encoding scheme using {-1, +1} to decompose quantized neural networks (QNNs) into multi-branch binary networks, which can be efficiently implemented by bitwise operations (i.e., xnor and bitcount) to achieve model compression, computational acceleration, and resource saving. By using our method, users can achieve different encoding precisions arbitrarily according to their requirements and hardware resources. The proposed mechanism is highly suitable for the use of FPGA and ASIC in terms of data storage and computation, which provides a feasible idea for smart chips. We validate the effectiveness of our method on large-scale image classification (e.g., ImageNet), object detection, and semantic segmentation tasks. In particular, our method with low-bit encoding can still achieve almost the same performance as its high-bit counterparts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑