arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2005.13297cs.CVcs.LG
收藏

溢出感知Quantization加速神经网络推理

Accelerating Neural Network Inference by Overflow Aware Quantization

Alibaba Group(阿里巴巴集团)

Hongwei Xie, Shuo Zhang, Huanghao Ding, Yafei Song, Baitao Shao, Conggang Hu, Ling Cai, Mingyang Li

摘要:

深度神经网络固有的繁重计算阻碍了其广泛应用。一种广泛使用的加速模型推理的方法是量化,通过使用定点值替换网络的输入操作数。然后,大部分的计算成本集中在整数矩阵乘法累加。事实上,高位累加器会导致部分计算浪费,而低位累加器通常会发生数值溢出。为了解决这个问题,我们提出了一种溢出感知量化方法,通过设计可训练的自适应定点表示,以优化每个输入张量的位数,同时在计算过程中禁止数值溢出。利用该方法,我们能够充分利用计算能力,以最大限度地减少量化损失,并获得优化的推理性能。为了验证我们的方法的有效性,我们分别在ImageNet,Pascal VOC和COCO数据集上进行图像分类,目标检测和语义分割任务。实验结果表明,该方法可以实现与国家的最先进的量化方法相当的性能,同时加快约2倍的推理过程。

英文摘要:

The inherent heavy computation of deep neural networks prevents their widespread applications. A widely used method for accelerating model inference is quantization, by replacing the input operands of a network using fixed-point values. Then the majority of computation costs focus on the integer matrix multiplication accumulation. In fact, high-bit accumulator leads to partially wasted computation and low-bit one typically suffers from numerical overflow. To address this problem, we propose an overflow aware quantization method by designing trainable adaptive fixed-point representation, to optimize the number of bits for each input tensor while prohibiting numeric overflow during the computation. With the proposed method, we are able to fully utilize the computing power to minimize the quantization loss and obtain optimized inference performance. To verify the effectiveness of our method, we conduct image classification, object detection, and semantic segmentation tasks on ImageNet, Pascal VOC, and COCO datasets, respectively. Experimental results demonstrate that the proposed method can achieve comparable performance with state-of-the-art quantization methods while accelerating the inference process by about 2 times.

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

↑