CSMPQ:基于类可分性的混合精度Quantization
CSMPQ:Class Separability Based Mixed-Precision Quantization
摘要:
混合精度量化因其能够减少计算量和加快推理速度而受到越来越多的关注。现有的方法通常集中在不同的网络层的敏感性,这需要一个耗时的搜索或训练过程。为此,提出了一种新的混合精度量化方法,称为CSMPQ。具体地说,TF-IDF度量,被广泛用于自然语言处理(NLP),以衡量类可分性逐层特征映射。此外,一个线性规划问题的设计,以获得最佳的比特配置为每一层。在没有任何迭代过程的情况下,所提出的CSMPQ实现了比最先进的量化方法更好的压缩折衷。具体而言,CSMPQ在ResNet-18上实现了73.03 $\%$ Top-1 acc,而QAT只有59 G BOP,在MobileNetV 2上实现了71.30 $\%$ top-1 acc,而PTQ只有1.5 Mb。
英文摘要:
Mixed-precision quantization has received increasing attention for its capability of reducing the computational burden and speeding up the inference time. Existing methods usually focus on the sensitivity of different network layers, which requires a time-consuming search or training process. To this end, a novel mixed-precision quantization method, termed CSMPQ, is proposed. Specifically, the TF-IDF metric that is widely used in natural language processing (NLP) is introduced to measure the class separability of layer-wise feature maps. Furthermore, a linear programming problem is designed to derive the optimal bit configuration for each layer. Without any iterative process, the proposed CSMPQ achieves better compression trade-offs than the state-of-the-art quantization methods. Specifically, CSMPQ achieves 73.03$\%$ Top-1 acc on ResNet-18 with only 59G BOPs for QAT, and 71.30$\%$ top-1 acc with only 1.5Mb on MobileNetV2 for PTQ.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。