arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1903.01061cs.LGstat.ML
收藏

无直通估计的低精度神经网络学习(STE)

Learning low-precision neural networks without Straight-Through Estimator(STE)

Arm Machine Learning Research Lab(Arm机器学习研究实验室)

Zhi-Gang Liu, Matthew Mattina

摘要:

直通估计(STE)被广泛用于通过量化函数反向传播梯度,但STE技术缺乏完整的理论理解。我们提出了一种称为阿尔法混合(AB)的替代方法,该方法使用随机梯度下降(SGD)将神经网络量化为低精度。我们的方法(AB)通过将损失函数中的量化权重替换为量化权重w_q和具有不可训练标量系数$α$和$1-α$的对应全精度权重w的仿射组合来避免STE近似。在训练过程中,$α$从0逐渐增加到1;权重的梯度更新通过仿射组合的全精度项$(1-α)w$进行;模型从全精度逐渐转换为低精度。为了评估该方法,CIFAR 10数据集上的1位BinaryNet和ImageNet数据集上的8位,4位MobileNet v1,ResNet_50 v1/2使用alpha混合方法进行了训练,评估表明,与基于STE的量化结果相比,AB分别将top-1精度提高了0.9%,0.82%和2.93%。

英文摘要:

The Straight-Through Estimator (STE) is widely used for back-propagating gradients through the quantization function, but the STE technique lacks a complete theoretical understanding. We propose an alternative methodology called alpha-blending (AB), which quantizes neural networks to low-precision using stochastic gradient descent (SGD). Our method (AB) avoids STE approximation by replacing the quantized weight in the loss function by an affine combination of the quantized weight w_q and the corresponding full-precision weight w with non-trainable scalar coefficient $α$ and $1-α$. During training, $α$ is gradually increased from 0 to 1; the gradient updates to the weights are through the full-precision term, $(1-α)w$, of the affine combination; the model is converted from full-precision to low-precision progressively. To evaluate the method, a 1-bit BinaryNet on CIFAR10 dataset and 8-bits, 4-bits MobileNet v1, ResNet_50 v1/2 on ImageNet dataset are trained using the alpha-blending approach, and the evaluation indicates that AB improves top-1 accuracy by 0.9%, 0.82% and 2.93% respectively compared to the results of STE based quantization.

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

↑