arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.05877cs.LGstat.ML
收藏

Quantization和训练神经网络进行有效的整数算术推理

Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

Google Inc.(谷歌公司)

Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, Dmitry Kalenichenko

摘要:

智能移动设备的日益普及和基于深度学习的模型的令人生畏的计算成本要求高效且准确的设备上推理方案。我们提出了一种量化方案,允许使用仅整数算术进行推理,这可以比常见的仅整数硬件上的浮点推理更有效地实现。我们还共同设计了一个训练过程,以保持量化后的端到端模型精度。因此,所提出的量化方案改善了准确性和设备上延迟之间的权衡。这些改进甚至在MobileNets上也是显著的,MobileNets是一个以运行时效率而闻名的模型家族,并且在流行CPU上的ImageNet分类和COCO检测中得到了证明。

英文摘要:

The rising popularity of intelligent mobile devices and the daunting computational cost of deep learning-based models call for efficient and accurate on-device inference schemes. We propose a quantization scheme that allows inference to be carried out using integer-only arithmetic, which can be implemented more efficiently than floating point inference on commonly available integer-only hardware. We also co-design a training procedure to preserve end-to-end model accuracy post quantization. As a result, the proposed quantization scheme improves the tradeoff between accuracy and on-device latency. The improvements are significant even on MobileNets, a model family known for run-time efficiency, and are demonstrated in ImageNet classification and COCO detection on popular CPUs.

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

↑