arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.10554cs.CVcs.AI
收藏

EMQ:面向自动化混合精度量化的免训练代理指标演化方法

EMQ: Evolving Training-free Proxies for Automated Mixed Precision Quantization

National University of Defense Technology(国防科技大学);HKUST(香港科技大学)

Peijie Dong, Lujun Li, Zimian Wei, Xin Niu, Zhiliang Tian, Hengyue Pan

AI总结:

针对现有免训练混合精度量化代理指标与量化精度相关性弱的问题,提出基于演化算法的代理指标自动搜索框架EMQ,通过多样性选择与兼容性筛选高效生成优质代理,在ImageNet上以更低成本超越现有最优方法。

摘要:

混合精度量化(Mixed-Precision Quantization,MQ)能够为模型实现具有竞争力的精度-复杂度权衡。传统的基于训练的搜索方法需要耗时的候选模型训练,以搜索MQ中优化的逐层位宽配置。近年来,一些免训练方法提出了多种MQ代理指标,显著提升了搜索效率。然而,这些代理指标与量化精度之间的相关性仍未得到充分厘清。为填补这一空白,我们首先构建了MQ-Bench-101基准,其包含不同的位宽配置与对应的量化结果。随后我们观察到,现有免训练代理指标在MQ-Bench-101上表现出较弱的相关性。为高效寻找更优的代理指标,我们通过演化算法开发了一套面向MQ的代理指标自动搜索框架。具体而言,我们设计了包含现有代理指标的精细搜索空间,并执行演化搜索以发现相关性最佳的MQ代理指标。我们提出了多样性引导选择策略与兼容性筛选协议,以避免过早收敛并提升搜索效率。通过这种方式,我们的混合精度量化演化代理指标(Evolving proxies for Mixed-precision Quantization,EMQ)框架无需大量调参与专业知识即可自动生成代理指标。在ImageNet数据集上针对多个ResNet与MobileNet系列模型开展的大量实验表明,我们的EMQ方法以显著降低的成本取得了优于当前最优混合精度方法的性能。代码将会公开发布。

英文摘要:

Mixed-Precision Quantization~(MQ) can achieve a competitive accuracy-complexity trade-off for models. Conventional training-based search methods require time-consuming candidate training to search optimized per-layer bit-width configurations in MQ. Recently, some training-free approaches have presented various MQ proxies and significantly improve search efficiency. However, the correlation between these proxies and quantization accuracy is poorly understood. To address the gap, we first build the MQ-Bench-101, which involves different bit configurations and quantization results. Then, we observe that the existing training-free proxies perform weak correlations on the MQ-Bench-101. To efficiently seek superior proxies, we develop an automatic search of proxies framework for MQ via evolving algorithms. In particular, we devise an elaborate search space involving the existing proxies and perform an evolution search to discover the best correlated MQ proxy. We proposed a diversity-prompting selection strategy and compatibility screening protocol to avoid premature convergence and improve search efficiency. In this way, our Evolving proxies for Mixed-precision Quantization~(EMQ) framework allows the auto-generation of proxies without heavy tuning and expert knowledge. Extensive experiments on ImageNet with various ResNet and MobileNet families demonstrate that our EMQ obtains superior performance than state-of-the-art mixed-precision methods at a significantly reduced cost. The code will be released.

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

↑