arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.02295cs.LG
收藏

具有混合精度和自适应分辨率的可微动态Quantization

Differentiable Dynamic Quantization with Mixed Precision and Adaptive Resolution

The Chinese University of Hong Kong(香港中文大学);SenseBrain, Ltd(SenseBrain有限公司);Shanghai AI Lab(上海人工智能实验室);The University of Hong Kong(香港大学)

Zhang Zhaoyang, Shao Wenqi, Gu Jinwei, Wang Xiaogang, Luo Ping

摘要:

由于许多繁琐的超参数,如精度(位宽),动态范围(最小和最大离散值)和步长(离散值之间的间隔),模型量化具有挑战性。与仔细调整这些值的现有技术不同,我们提出了一种完全可微的方法来学习所有这些值,称为可微动态量化(DDQ),它有几个好处。(1)DDQ能够解决像MobileNets这样具有挑战性的轻量级架构,其中不同的层喜欢不同的量化参数。(2)DDQ是硬件友好的,可以很容易地实现使用低精度矩阵向量乘法,使它能够在许多硬件,如ARM。(3)广泛的实验表明,DDQ优于现有技术在许多网络和基准测试,特别是当模型已经是高效和紧凑的。例如,在一个实施例中,DDQ是第一种在ImageNet上为MobileNetV2实现无损4位量化的方法。

英文摘要:

Model quantization is challenging due to many tedious hyper-parameters such as precision (bitwidth), dynamic range (minimum and maximum discrete values) and stepsize (interval between discrete values). Unlike prior arts that carefully tune these values, we present a fully differentiable approach to learn all of them, named Differentiable Dynamic Quantization (DDQ), which has several benefits. (1) DDQ is able to quantize challenging lightweight architectures like MobileNets, where different layers prefer different quantization parameters. (2) DDQ is hardware-friendly and can be easily implemented using low-precision matrix-vector multiplication, making it capable in many hardware such as ARM. (3) Extensive experiments show that DDQ outperforms prior arts on many networks and benchmarks, especially when models are already efficient and compact. e.g., DDQ is the first approach that achieves lossless 4-bit quantization for MobileNetV2 on ImageNet.

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

↑