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

自适应二元-三元Quantization

Adaptive Binary-Ternary Quantization

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Ryan Razani, Grégoire Morin, Vahid Partovi Nia, Eyyüb Sari

摘要:

神经网络模型需要大量的资源。很难在资源有限的设备上部署这种深度网络,如智能可穿戴设备,手机,无人机和自动驾驶汽车。诸如二进制和三进制量化之类的低位量化是减轻这种资源需求的常用方法。三进制量化提供了一个更灵活的模型,并在精度方面优于二进制量化,但内存占用加倍,并增加了计算成本。与这些方法相反,混合量化模型允许在精度和内存占用之间进行权衡。在这样的模型中,量化深度通常是手动选择的,或者使用单独的优化例程进行调整。后者需要多次训练量化的网络。在这里,我们提出了一种二进制和三进制量化的自适应组合,即智能量化(SQ),其中量化深度直接通过正则化函数进行修改,因此模型只训练一次。我们的实验结果表明,所提出的方法成功地适应量化深度,同时保持模型精度高MNIST和CIFAR 10基准测试。

英文摘要:

Neural network models are resource hungry. It is difficult to deploy such deep networks on devices with limited resources, like smart wearables, cellphones, drones, and autonomous vehicles. Low bit quantization such as binary and ternary quantization is a common approach to alleviate this resource requirements. Ternary quantization provides a more flexible model and outperforms binary quantization in terms of accuracy, however doubles the memory footprint and increases the computational cost. Contrary to these approaches, mixed quantized models allow a trade-off between accuracy and memory footprint. In such models, quantization depth is often chosen manually, or is tuned using a separate optimization routine. The latter requires training a quantized network multiple times. Here, we propose an adaptive combination of binary and ternary quantization, namely Smart Quantization (SQ), in which the quantization depth is modified directly via a regularization function, so that the model is trained only once. Our experimental results show that the proposed method adapts quantization depth successfully while keeping the model accuracy high on MNIST and CIFAR10 benchmarks.

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

↑