arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.03759cs.LGcs.CV
收藏

MQBench:迈向可复制和可部署的模型Quantization基准

MQBench: Towards Reproducible and Deployable Model Quantization Benchmark

SenseTime Research(商汤科技研究院)

Yuhang Li, Mingzhu Shen, Jian Ma, Yan Ren, Mingxin Zhao, Qi Zhang, Ruihao Gong, Fengwei Yu, Junjie Yan

摘要:

模型量化已经成为加速深度学习推理的不可或缺的技术。虽然研究人员继续推动量化算法的前沿,但现有的量化工作通常是不可复制和不可部署的。这是因为研究人员没有选择一致的训练管道,忽略了硬件部署的要求。在这项工作中,我们提出了模型量化基准(MQBench),第一次尝试评估,分析和基准模型量化算法的可重复性和可部署性。我们选择多种不同的平台进行实际部署,包括CPU、GPU、ASIC、DSP,并在统一的训练管道下评估广泛的最先进的量化算法。MQBench充当连接算法和硬件的桥梁。我们进行了全面的分析,并发现了相当多的直观或反直观的见解。通过调整训练设置,我们发现现有的算法在传统的学术轨道上具有相同的性能。而对于硬件可部署的量化,有一个巨大的精度差距,仍然没有解决。令人惊讶的是,没有现有的算法在MQBench中赢得每一个挑战,我们希望这项工作可以启发未来的研究方向。

英文摘要:

Model quantization has emerged as an indispensable technique to accelerate deep learning inference. While researchers continue to push the frontier of quantization algorithms, existing quantization work is often unreproducible and undeployable. This is because researchers do not choose consistent training pipelines and ignore the requirements for hardware deployments. In this work, we propose Model Quantization Benchmark (MQBench), a first attempt to evaluate, analyze, and benchmark the reproducibility and deployability for model quantization algorithms. We choose multiple different platforms for real-world deployments, including CPU, GPU, ASIC, DSP, and evaluate extensive state-of-the-art quantization algorithms under a unified training pipeline. MQBench acts like a bridge to connect the algorithm and the hardware. We conduct a comprehensive analysis and find considerable intuitive or counter-intuitive insights. By aligning the training settings, we find existing algorithms have about the same performance on the conventional academic track. While for the hardware-deployable quantization, there is a huge accuracy gap which remains unsettled. Surprisingly, no existing algorithm wins every challenge in MQBench, and we hope this work could inspire future research directions.

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

↑