arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.11236cs.CV
收藏

用全精度辅助模块训练量化神经网络

Training Quantized Neural Networks with a Full-precision Auxiliary Module

The University of Adelaide(阿德莱德大学);South China University of Technology(华南理工大学)

Bohan Zhuang, Lingqiao Liu, Mingkui Tan, Chunhua Shen, Ian Reid

摘要:

在本文中,我们试图解决训练低精度网络的一个挑战:由于不可微的量化函数,通过低精度网络传播梯度的难度是众所周知的。我们提出了一种解决方案,通过训练低精度网络与全精度辅助模块。具体来说,在训练过程中,我们通过使用全精度辅助模块来增强原始低精度网络来构建混合精度网络。然后对增广混合精度网络和低精度网络进行联合优化。该策略创建了额外的全精度路由来更新低精度模型的参数,从而使梯度更容易反向传播。在推理时,我们丢弃了辅助模块,而没有向低精度网络引入任何计算复杂性。我们评估了所提出的方法对图像分类和目标检测在各种量化方法,并表现出一致的性能提高。特别是,我们通过使用4位检测器实现了接近全精度模型的无损性能,这具有很大的实用价值。

英文摘要:

In this paper, we seek to tackle a challenge in training low-precision networks: the notorious difficulty in propagating gradient through a low-precision network due to the non-differentiable quantization function. We propose a solution by training the low-precision network with a fullprecision auxiliary module. Specifically, during training, we construct a mix-precision network by augmenting the original low-precision network with the full precision auxiliary module. Then the augmented mix-precision network and the low-precision network are jointly optimized. This strategy creates additional full-precision routes to update the parameters of the low-precision model, thus making the gradient back-propagates more easily. At the inference time, we discard the auxiliary module without introducing any computational complexity to the low-precision network. We evaluate the proposed method on image classification and object detection over various quantization approaches and show consistent performance increase. In particular, we achieve near lossless performance to the full-precision model by using a 4-bit detector, which is of great practical value.

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

↑