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

用于深度神经网络的自适应Quantization

Adaptive Quantization for Deep Neural Network

Singapore University of Technology and Design(新加坡科技设计大学);École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院)

Yiren Zhou, Seyed-Mohsen Moosavi-Dezfooli, Ngai-Man Cheung, Pascal Frossard

摘要:

近年来,深度神经网络(DNN)在各种应用中得到了快速发展,同时架构也越来越复杂。这些DNN的性能增益通常伴随着高计算成本和大内存消耗,这对于移动平台来说可能是负担不起的。深度模型量化可以用于减少DNN的计算和内存成本,并在移动设备上部署复杂的DNN。在这项工作中,我们提出了一个深度模型量化的优化框架。首先,我们提出了一种测量方法来估计各个层中的参数量化误差对整体模型预测精度的影响。然后,我们提出了一个优化过程,基于此测量为每一层找到最佳量化位宽。本文首次从理论上分析了各层参数量化误差与模型精度的关系。我们的新量化算法优于以前的量化优化方法,并实现了20-40%的压缩率相比,在相同的模型预测精度的等位宽量化。

英文摘要:

In recent years Deep Neural Networks (DNNs) have been rapidly developed in various applications, together with increasingly complex architectures. The performance gain of these DNNs generally comes with high computational costs and large memory consumption, which may not be affordable for mobile platforms. Deep model quantization can be used for reducing the computation and memory costs of DNNs, and deploying complex DNNs on mobile equipment. In this work, we propose an optimization framework for deep model quantization. First, we propose a measurement to estimate the effect of parameter quantization errors in individual layers on the overall model prediction accuracy. Then, we propose an optimization process based on this measurement for finding optimal quantization bit-width for each layer. This is the first work that theoretically analyse the relationship between parameter quantization errors of individual layers and model accuracy. Our new quantization algorithm outperforms previous quantization optimization methods, and achieves 20-40% higher compression rate compared to equal bit-width quantization at the same model prediction accuracy.

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

↑