基于属性秩保持的可推广混合精度Quantization
Generalizable Mixed-Precision Quantization via Attribution Rank Preservation
摘要:
在本文中,我们提出了一个可推广的混合精度量化(GMPQ)的有效推理方法。传统的方法需要数据集的一致性来进行位宽搜索和模型部署以保证策略的最优性,这导致在现实应用中具有挑战性的大规模数据集上的搜索成本很高。相反,我们的GMPQ搜索的混合量化政策,可以推广到大规模的数据集,只有少量的数据,使搜索成本显着降低,而性能下降。具体来说,我们观察到,正确定位网络属性是跨不同数据分布进行准确可视化分析的一般能力。因此,尽管追求更高的模型精度和复杂性,我们保持属性之间的排名一致性的量化模型和他们的全精度同行通过有效的容量感知属性模仿可推广的混合精度量化策略搜索。大量的实验表明,我们的方法获得了竞争力的准确性和复杂性的权衡相比,最先进的混合精度网络,显着降低搜索成本。该代码可在https://github.com/ZiweiWangTHU/GMPQ.git上获得。
英文摘要:
In this paper, we propose a generalizable mixed-precision quantization (GMPQ) method for efficient inference. Conventional methods require the consistency of datasets for bitwidth search and model deployment to guarantee the policy optimality, leading to heavy search cost on challenging largescale datasets in realistic applications. On the contrary, our GMPQ searches the mixed-quantization policy that can be generalized to largescale datasets with only a small amount of data, so that the search cost is significantly reduced without performance degradation. Specifically, we observe that locating network attribution correctly is general ability for accurate visual analysis across different data distribution. Therefore, despite of pursuing higher model accuracy and complexity, we preserve attribution rank consistency between the quantized models and their full-precision counterparts via efficient capacity-aware attribution imitation for generalizable mixed-precision quantization strategy search. Extensive experiments show that our method obtains competitive accuracy-complexity trade-off compared with the state-of-the-art mixed-precision networks in significantly reduced search cost. The code is available at https://github.com/ZiweiWangTHU/GMPQ.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。