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

高效快速的混合精度Quantization顺序单路径搜索算法

Effective and Fast: A Novel Sequential Single Path Search for Mixed-Precision Quantization

Key Laboratory of Intelligent Perception and Image Understanding of Ministry of Education(教育部智能感知与图像理解重点实验室);School of Artificial Intelligence, Xidian University(西安电子科技大学人工智能学院)

Qigong Sun, Licheng Jiao, Yan Ren, Xiufang Li, Fanhua Shang, Fang Liu

摘要:

由于模型量化有助于减少模型大小和计算延迟,因此它已成功应用于移动电话,嵌入式设备和智能芯片的许多应用中。混合精度量化模型可以根据不同层的敏感度匹配不同的量化比特精度,以获得更好的性能。然而,根据一些约束(例如,硬件资源、能耗、模型大小和计算延迟)。针对这一问题,本文提出了一种新的混合精度量化的顺序单路径搜索(SSPS)方法,该方法在损失函数中引入给定的约束条件来指导搜索过程.一个单一的路径搜索单元被用来组合一个完全可微的超网,它可以通过基于梯度的算法进行优化。此外,我们根据选择函数顺序地确定候选精度,以指数形式减小搜索空间,加快搜索过程的收敛速度。实验表明,该方法可以有效地搜索不同体系结构的混合精度模型(例如,ResNet-20、18、34、50和MobileNet-V2)和数据集(例如,CIFAR-10,ImageNet和COCO)在给定的约束下,我们的实验结果验证了SSPS显着优于他们的统一同行。

英文摘要:

Since model quantization helps to reduce the model size and computation latency, it has been successfully applied in many applications of mobile phones, embedded devices and smart chips. The mixed-precision quantization model can match different quantization bit-precisions according to the sensitivity of different layers to achieve great performance. However, it is a difficult problem to quickly determine the quantization bit-precision of each layer in deep neural networks according to some constraints (e.g., hardware resources, energy consumption, model size and computation latency). To address this issue, we propose a novel sequential single path search (SSPS) method for mixed-precision quantization,in which the given constraints are introduced into its loss function to guide searching process. A single path search cell is used to combine a fully differentiable supernet, which can be optimized by gradient-based algorithms. Moreover, we sequentially determine the candidate precisions according to the selection certainties to exponentially reduce the search space and speed up the convergence of searching process. Experiments show that our method can efficiently search the mixed-precision models for different architectures (e.g., ResNet-20, 18, 34, 50 and MobileNet-V2) and datasets (e.g., CIFAR-10, ImageNet and COCO) under given constraints, and our experimental results verify that SSPS significantly outperforms their uniform counterparts.

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

↑