arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.06160cs.NEcs.LG
收藏

DoReFa-Net:用低比特率训练低比特率卷积神经网络

DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients

Megvii Inc.(旷视科技有限公司)

Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, Yuheng Zou

摘要:

我们提出了DoReFa-Net,这是一种使用低位宽参数梯度来训练具有低位宽权重和激活的卷积神经网络的方法。特别地,在反向传递期间,参数梯度在被传播到卷积层之前被随机量化为低位宽数。由于前向/后向过程中的卷积现在可以分别对低位宽权重和激活/梯度进行操作,DoReFa-Net可以使用位卷积内核来加速训练和推理。此外,由于位卷积可以在CPU,FPGA,ASIC和GPU上有效地实现,DoReFa-Net为在这些硬件上加速低位宽神经网络的训练开辟了道路。我们在SVHN和ImageNet数据集上的实验证明,DoReFa-Net可以达到与32位同行相当的预测精度。例如,从AlexNet派生的DoReFa-Net具有1位权重,2位激活,可以使用6位梯度从头开始训练,以在ImageNet验证集上获得46.1\%的top-1准确度。DoReFa-Net AlexNet模型公开发布。

英文摘要:

We propose DoReFa-Net, a method to train convolutional neural networks that have low bitwidth weights and activations using low bitwidth parameter gradients. In particular, during backward pass, parameter gradients are stochastically quantized to low bitwidth numbers before being propagated to convolutional layers. As convolutions during forward/backward passes can now operate on low bitwidth weights and activations/gradients respectively, DoReFa-Net can use bit convolution kernels to accelerate both training and inference. Moreover, as bit convolutions can be efficiently implemented on CPU, FPGA, ASIC and GPU, DoReFa-Net opens the way to accelerate training of low bitwidth neural network on these hardware. Our experiments on SVHN and ImageNet datasets prove that DoReFa-Net can achieve comparable prediction accuracy as 32-bit counterparts. For example, a DoReFa-Net derived from AlexNet that has 1-bit weights, 2-bit activations, can be trained from scratch using 6-bit gradients to get 46.1\% top-1 accuracy on ImageNet validation set. The DoReFa-Net AlexNet model is released publicly.

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

↑