SinReQ:用于低位宽深度量化训练的广义正弦正则化
SinReQ: Generalized Sinusoidal Regularization for Low-Bitwidth Deep Quantized Training
摘要:
神经网络的深度量化(低于8位)在降低其计算和存储成本方面提供了重要的承诺。虽然很诱人,但没有特殊的训练和优化技术,深度量化会导致显著的准确性损失。为了进一步减轻这种损失,我们提出了一种新的正弦正则化,称为SinReQ 1,用于深度量化训练。SinReQ向底层训练算法的原始目标函数添加周期项。SinReQ利用正弦函数中的周期性、可微性和所需的凸性轮廓,自动将权重推向本质上更接近量化水平的值。由于这种技术不需要对训练过程进行侵入性更改,SinReQ可以和谐地增强量化训练算法。SinReQ提供了通用性和灵活性,因为它不限于特定的位宽或跨层的位宽的统一分配。我们使用AlexNet,CIFAR-10,ResNet-18,ResNet-20,SVHN和VGG-11 DNN进行实验,其中3到5位用于量化,并显示SinReQ在增强多个量化训练算法DoReFa [32]和WRPN [24]方面的多功能性。所有位配置的平均值显示,SinReQ缩小了这两种技术之间的精度差距,全精度分别提高了32.4%和27.5%。DoReFa和WRPN的绝对准确性分别提高了2.8%和2.1%。
英文摘要:
Deep quantization of neural networks (below eight bits) offers significant promise in reducing their compute and storage cost. Albeit alluring, without special techniques for training and optimization, deep quantization results in significant accuracy loss. To further mitigate this loss, we propose a novel sinusoidal regularization, called SinReQ1, for deep quantized training. SinReQ adds a periodic term to the original objective function of the underlying training algorithm. SinReQ exploits the periodicity, differentiability, and the desired convexity profile in sinusoidal functions to automatically propel weights towards values that are inherently closer to quantization levels. Since, this technique does not require invasive changes to the training procedure, SinReQ can harmoniously enhance quantized training algorithms. SinReQ offers generality and flexibility as it is not limited to a certain bitwidth or a uniform assignment of bitwidths across layers. We carry out experimentation using the AlexNet, CIFAR-10, ResNet-18, ResNet-20, SVHN, and VGG-11 DNNs with three to five bits for quantization and show the versatility of SinReQ in enhancing multiple quantized training algorithms, DoReFa [32] and WRPN [24]. Averaging across all the bit configurations shows that SinReQ closes the accuracy gap between these two techniques and the full-precision runs by 32.4% and 27.5%, respectively. That is improving the absolute accuracy of DoReFa and WRPN by 2.8% and 2.1%, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。