arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.00953cs.CVcs.AIcs.LG
收藏

基于半波高斯Quantization的低精度深度学习

Deep Learning with Low Precision by Half-wave Gaussian Quantization

UC San Diego(加州大学圣地亚哥分校);Microsoft Research Redmond(微软雷德蒙德研究院);Megvii Inc.(旷视科技)

Zhaowei Cai, Xiaodong He, Jian Sun, Nuno Vasconcelos

摘要:

研究了深度神经网络的激活量化问题。流行的二进制量化方法的检查表明,这包括近似一个经典的非线性,双曲正切,由两个函数:一个分段常数符号函数,用于前馈网络计算,和一个分段线性硬双曲正切函数,用于网络学习过程中的反向传播步骤。然后考虑了在最近的深度学习文献中广泛使用的近似ReLU非线性的问题。提出了一种半波高斯量化器(HWGQ)的前向近似和高效的实现,利用统计的网络激活和批量归一化操作中常用的文献。为了克服梯度失配的问题,由于使用不同的前向和后向近似,几个分段向后逼近器,然后研究。所得到的量化网络(表示为HWGQ-Net)的实现被证明比以前可用的低精度网络(具有1位二进制权重和2位量化激活)实现更接近全精度网络(如AlexNet,ResNet,GoogLeNet和VGG-Net)的性能。

英文摘要:

The problem of quantizing the activations of a deep neural network is considered. An examination of the popular binary quantization approach shows that this consists of approximating a classical non-linearity, the hyperbolic tangent, by two functions: a piecewise constant sign function, which is used in feedforward network computations, and a piecewise linear hard tanh function, used in the backpropagation step during network learning. The problem of approximating the ReLU non-linearity, widely used in the recent deep learning literature, is then considered. An half-wave Gaussian quantizer (HWGQ) is proposed for forward approximation and shown to have efficient implementation, by exploiting the statistics of of network activations and batch normalization operations commonly used in the literature. To overcome the problem of gradient mismatch, due to the use of different forward and backward approximations, several piece-wise backward approximators are then investigated. The implementation of the resulting quantized network, denoted as HWGQ-Net, is shown to achieve much closer performance to full precision networks, such as AlexNet, ResNet, GoogLeNet and VGG-Net, than previously available low-precision networks, with 1-bit binary weights and 2-bit quantized activations.

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

↑