arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1902.06822cs.LGcs.CVstat.ML
收藏

用于有效推理的神经网络的低比特Quantization

Low-bit Quantization of Neural Networks for Efficient Inference

Huawei Technologies Co.(华为技术有限公司)

Yoni Choukroun, Eli Kravchik, Fan Yang, Pavel Kisilev

摘要:

最近的机器学习方法使用越来越大的深度神经网络来实现各种任务中的最新结果。性能的提高是以计算和存储需求的大幅增加为代价的。这使得在有限资源硬件上的实时实现成为一项具有挑战性的任务。解决这一挑战的一种流行方法是通过神经网络量化来执行低位精度计算。然而,积极的量化通常在精度方面带来严重的损失,并且通常需要重新训练网络,或者诉诸更高的比特精度量化。在本文中,我们将线性量化任务形式化为权重和激活的最小均方误差(MMSE)问题,允许低比特精度推理,而无需进行完整的网络再训练。我们的方法的主要贡献是在网络的每一层的约束MSE问题的优化,网络参数的硬件感知分区,以及使用多个低精度量化张量的近似层。所提出的方法允许4位整数(INT 4)量化,用于在有限的硬件资源上部署预训练模型。在各种网络架构上的多个实验表明,所提出的方法产生最先进的结果,任务的准确性损失最小。

英文摘要:

Recent machine learning methods use increasingly large deep neural networks to achieve state of the art results in various tasks. The gains in performance come at the cost of a substantial increase in computation and storage requirements. This makes real-time implementations on limited resources hardware a challenging task. One popular approach to address this challenge is to perform low-bit precision computations via neural network quantization. However, aggressive quantization generally entails a severe penalty in terms of accuracy, and often requires retraining of the network, or resorting to higher bit precision quantization. In this paper, we formalize the linear quantization task as a Minimum Mean Squared Error (MMSE) problem for both weights and activations, allowing low-bit precision inference without the need for full network retraining. The main contributions of our approach are the optimizations of the constrained MSE problem at each layer of the network, the hardware aware partitioning of the network parameters, and the use of multiple low precision quantized tensors for poorly approximated layers. The proposed approach allows 4 bits integer (INT4) quantization for deployment of pretrained models on limited hardware resources. Multiple experiments on various network architectures show that the suggested method yields state of the art results with minimal loss of tasks accuracy.

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

↑