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

弹性二元神经网络

Resilient Binary Neural Network

Beihang University(北京航空航天大学);Shanghai AI Laboratory(上海人工智能实验室);Peking University(北京大学);Zhongguancun Laboratory(中关村实验室)

Sheng Xu, Yanjing Li, Teli Ma, Mingbao Lin, Hao Dong, Baochang Zhang, Peng Gao, Jinhu Lv

摘要:

二进制神经网络(BNN)因其在减少存储负担和加快推理速度方面的巨大能力而受到越来越多的关注。然而,与实值网络相比,由于其固有的频繁权重振荡,训练过程中的性能下降严重。本文提出了一种弹性二进制神经网络(ReBNN)来抑制频繁的振荡,从而更好地训练BNN。我们发现权重振荡主要源于非参数比例因子。为了解决这个问题,我们建议参数化缩放因子,并引入加权重建损失来构建自适应训练目标。我们首次证明了权值振荡是由附加在重构损失上的平衡参数控制的,这为在反向传播中参数化权值振荡提供了理论基础。在此基础上,我们通过基于其最大幅度计算平衡参数来学习ReBNN,这可以通过弹性训练过程有效地减轻权重振荡。在各种网络模型上进行了广泛的实验,例如用于计算机视觉的ResNet和Faster-RCNN,以及用于自然语言处理的BERT。结果证明了我们的ReBNN相对于现有技术的压倒性性能。例如,我们的ReBNN在ImageNet数据集上使用ResNet-18主干实现了66.9%的Top-1准确率,大大超过了现有的最先进技术。我们的代码在https://github.com/SteveTsui/ReBNN上开源。

英文摘要:

Binary neural networks (BNNs) have received ever-increasing popularity for their great capability of reducing storage burden as well as quickening inference time. However, there is a severe performance drop compared with real-valued networks, due to its intrinsic frequent weight oscillation during training. In this paper, we introduce a Resilient Binary Neural Network (ReBNN) to mitigate the frequent oscillation for better BNNs' training. We identify that the weight oscillation mainly stems from the non-parametric scaling factor. To address this issue, we propose to parameterize the scaling factor and introduce a weighted reconstruction loss to build an adaptive training objective. For the first time, we show that the weight oscillation is controlled by the balanced parameter attached to the reconstruction loss, which provides a theoretical foundation to parameterize it in back propagation. Based on this, we learn our ReBNN by calculating the balanced parameter based on its maximum magnitude, which can effectively mitigate the weight oscillation with a resilient training process. Extensive experiments are conducted upon various network models, such as ResNet and Faster-RCNN for computer vision, as well as BERT for natural language processing. The results demonstrate the overwhelming performance of our ReBNN over prior arts. For example, our ReBNN achieves 66.9% Top-1 accuracy with ResNet-18 backbone on the ImageNet dataset, surpassing existing state-of-the-arts by a significant margin. Our code is open-sourced at https://github.com/SteveTsui/ReBNN.

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

↑