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

迭代训练:通过层二值化寻找二值权重深度神经网络

Iterative Training: Finding Binary Weight Deep Neural Networks with Layer Binarization

Rakuten Mobile, Inc.(乐天移动公司)

Cheng-Chou Lan

摘要:

在低延迟或移动应用中,需要更低的计算复杂度、更低的存储器占用和更好的能量效率。许多先前的工作通过去除冗余参数来解决这一需求。参数量化用较低精度的定点运算取代浮点运算,进一步降低了复杂度。量化权重神经网络的典型训练从完全量化的权重开始。量化产生随机噪声。作为补偿这种噪声的一种方法,在训练过程中,我们建议在保持其他权重浮点精度的同时,增加一些权重。深度神经网络有很多层。为了得到一个完全量化的权重网络,我们从一个量化层开始,然后覆盖越来越多的层。我们表明,层量化的顺序影响精度。对于深度神经网络来说,订单数量很大。提出了一种灵敏度预训练来指导层量化顺序。最近在权重二值化方面的工作用加法代替了权重输入矩阵乘法。我们将所提出的迭代训练应用于权重二值化。我们的实验涵盖了MNIST、CIFAR-10和ImageNet数据集上的全连接和卷积网络。我们的经验表明,从部分二进制权重而不是从完全二进制权重开始,训练达到完全二进制权重网络,对于更大更深的网络具有更好的准确性。按前向顺序进行的层二值化导致更好的精度。引导层二值化可以进一步改善这一点。这些改进是以延长培训时间为代价的。

英文摘要:

In low-latency or mobile applications, lower computation complexity, lower memory footprint and better energy efficiency are desired. Many prior works address this need by removing redundant parameters. Parameter quantization replaces floating-point arithmetic with lower precision fixed-point arithmetic, further reducing complexity. Typical training of quantized weight neural networks starts from fully quantized weights. Quantization creates random noise. As a way to compensate for this noise, during training, we propose to quantize some weights while keeping others in floating-point precision. A deep neural network has many layers. To arrive at a fully quantized weight network, we start from one quantized layer and then quantize more and more layers. We show that the order of layer quantization affects accuracies. Order count is large for deep neural networks. A sensitivity pre-training is proposed to guide the layer quantization order. Recent work in weight binarization replaces weight-input matrix multiplication with additions. We apply the proposed iterative training to weight binarization. Our experiments cover fully connected and convolutional networks on MNIST, CIFAR-10 and ImageNet datasets. We show empirically that, starting from partial binary weights instead of from fully binary ones, training reaches fully binary weight networks with better accuracies for larger and deeper networks. Layer binarization in the forward order results in better accuracies. Guided layer binarization can further improve that. The improvements come at a cost of longer training time.

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

↑