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

用实数到二进制卷积训练二进制神经网络

Training Binary Neural Networks with Real-to-Binary Convolutions

Samsung AI Research Center(三星人工智能研究中心);The University of Nottingham(诺丁汉大学)

Brais Martinez, Jing Yang, Adrian Bulat, Georgios Tzimiropoulos

摘要:

本文展示了如何将二进制网络训练到全精度网络的几个百分点($\sim 3-5 \%$)之内。我们首先展示了如何建立一个强大的基线,它已经达到了最先进的精度,结合最近提出的进步和仔细调整优化过程。其次,我们表明,通过尝试最大限度地减少二进制输出和相应的实值卷积之间的差异,可以获得额外的显着的精度增益。我们以两种互补的方式实现了这一想法:(1)在训练期间,通过匹配在二进制卷积和实值卷积的输出处计算的空间注意力图,使用损失函数,以及(2)以数据驱动的方式,通过使用在二进制化过程之前的推理期间可用的实值激活,用于在二进制卷积之后立即重新缩放激活。最后,我们表明,当将我们所有的改进放在一起时,提出的模型在ImageNet上比当前最先进的模型高出5%以上的前1准确度,并将与实值对应模型的差距缩小到不到3%和5%使用ResNet-18架构时,CIFAR-100和ImageNet上的前1准确度分别为。代码可在https://github.com/brais-martinez/real2binary获得。

英文摘要:

This paper shows how to train binary networks to within a few percent points ($\sim 3-5 \%$) of the full precision counterpart. We first show how to build a strong baseline, which already achieves state-of-the-art accuracy, by combining recently proposed advances and carefully adjusting the optimization procedure. Secondly, we show that by attempting to minimize the discrepancy between the output of the binary and the corresponding real-valued convolution, additional significant accuracy gains can be obtained. We materialize this idea in two complementary ways: (1) with a loss function, during training, by matching the spatial attention maps computed at the output of the binary and real-valued convolutions, and (2) in a data-driven manner, by using the real-valued activations, available during inference prior to the binarization process, for re-scaling the activations right after the binary convolution. Finally, we show that, when putting all of our improvements together, the proposed model beats the current state of the art by more than 5% top-1 accuracy on ImageNet and reduces the gap to its real-valued counterpart to less than 3% and 5% top-1 accuracy on CIFAR-100 and ImageNet respectively when using a ResNet-18 architecture. Code available at https://github.com/brais-martinez/real2binary.

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

↑