CSQ:一种基于双层连续稀疏化的增长混合精度Quantization格式
CSQ: Growing Mixed-Precision Quantization Scheme with Bi-level Continuous Sparsification
摘要:
混合精度量化已被广泛应用于深度神经网络(DNN),因为与均匀量化相比,它可以显著提高效率-精度权衡。同时,确定每层的精确精度仍然具有挑战性。以前的比特级正则化和基于修剪的动态精度调整尝试在训练期间遭受噪声梯度和不稳定的收敛。在这项工作中,我们提出了连续稀疏化量化(CSQ),一个比特级的训练方法,以寻找混合精度的量化方案,提高了稳定性。CSQ在确定每层的量化精度时,对量化权重的比特值和比特选择进行两级渐进连续稀疏化,从而稳定比特级混合精度训练过程。连续稀疏化方案实现了完全可微的训练而无需梯度近似,同时最终实现了精确的量化模型。总模型大小的正则化使得每一层的精度能够动态增长和修剪,以实现所需大小的混合精度量化方案。大量的实验表明,CSQ在多模型和多数据集上实现了比以前方法更好的效率-准确性权衡。
英文摘要:
Mixed-precision quantization has been widely applied on deep neural networks (DNNs) as it leads to significantly better efficiency-accuracy tradeoffs compared to uniform quantization. Meanwhile, determining the exact precision of each layer remains challenging. Previous attempts on bit-level regularization and pruning-based dynamic precision adjustment during training suffer from noisy gradients and unstable convergence. In this work, we propose Continuous Sparsification Quantization (CSQ), a bit-level training method to search for mixed-precision quantization schemes with improved stability. CSQ stabilizes the bit-level mixed-precision training process with a bi-level gradual continuous sparsification on both the bit values of the quantized weights and the bit selection in determining the quantization precision of each layer. The continuous sparsification scheme enables fully-differentiable training without gradient approximation while achieving an exact quantized model in the end.A budget-aware regularization of total model size enables the dynamic growth and pruning of each layer's precision towards a mixed-precision quantization scheme of the desired size. Extensive experiments show CSQ achieves better efficiency-accuracy tradeoff than previous methods on multiple models and datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。