arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.08010cs.LGeess.IV
收藏

用于寻找最优量化策略的可微搜索

Differentiable Search for Finding Optimal Quantization Strategy

ByteDance Inc.(字节跳动公司);Xi’an Jiaotong University(西安交通大学)

Lianqiang Li, Chenqian Yan, Yefei Chen

AI总结:

针对现有量化算法采用统一策略量化所有层的次优问题,提出可微量化策略搜索方法DQSS,为每层分配最优量化策略,在图像分类、超分辨率任务上性能优于现有最优方法。

摘要:

为加速并压缩深度神经网络(DNN),学界已提出众多网络量化算法。尽管现有最优算法中的任意一种量化策略都可能在部分网络架构上优于其他策略,但很难证明该策略始终更优,甚至无法判定它对网络中所有层而言都是最佳选择。换言之,现有量化算法均为次优方案,因为它们忽略了不同层的特性差异,采用统一量化策略对所有层进行量化。\n为解决这一问题,本文提出可微量化策略搜索(DQSS)方法,通过结合不同量化算法的优势,为每一层分配最优量化策略。具体而言,我们将DQSS建模为一个可微神经架构搜索问题,并采用高效卷积操作,通过基于梯度的优化从全局视角高效探索混合量化策略。\n我们将DQSS应用于训练后量化,使其性能可与全精度模型相媲美。同时我们也将DQSS用于量化感知训练,以进一步验证其有效性。为规避将DQSS应用于量化感知训练时高昂的优化成本,我们在单次前向-反向传播中同时更新超参数与网络参数;此外我们还调整了优化流程,以避免潜在的欠拟合问题。\n在高层计算机视觉任务(即图像分类)和底层计算机视觉任务(即图像超分辨率)上、采用多种网络架构开展的综合实验表明,DQSS的性能可超越现有最优方法。

英文摘要:

To accelerate and compress deep neural networks (DNNs), many network quantization algorithms have been proposed. Although the quantization strategy of any algorithm from the state-of-the-arts may outperform others in some network architectures, it is hard to prove the strategy is always better than others, and even cannot judge that the strategy is always the best choice for all layers in a network. In other words, existing quantization algorithms are suboptimal as they ignore the different characteristics of different layers and quantize all layers by a uniform quantization strategy. To solve the issue, in this paper, we propose a differentiable quantization strategy search (DQSS) to assign optimal quantization strategy for individual layer by taking advantages of the benefits of different quantization algorithms. Specifically, we formulate DQSS as a differentiable neural architecture search problem and adopt an efficient convolution to efficiently explore the mixed quantization strategies from a global perspective by gradient-based optimization. We conduct DQSS for post-training quantization to enable their performance to be comparable with that in full precision models. We also employ DQSS in quantization-aware training for further validating the effectiveness of DQSS. To circumvent the expensive optimization cost when employing DQSS in quantization-aware training, we update the hyper-parameters and the network parameters in a single forward-backward pass. Besides, we adjust the optimization process to avoid the potential under-fitting problem. Comprehensive experiments on high level computer vision task, i.e., image classification, and low level computer vision task, i.e., image super-resolution, with various network architectures show that DQSS could outperform the state-of-the-arts.

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

↑