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

旋转二元神经网络

Rotated Binary Neural Network

Xiamen University(厦门大学);Peng Cheng Lab(鹏程实验室);Beihang University(北京航空航天大学);Pinterest(品趣志);Tencent Youtu Lab(腾讯优图实验室);National Tsing Hua University(国立清华大学)

Mingbao Lin, Rongrong Ji, Zihan Xu, Baochang Zhang, Yan Wang, Yongjian Wu, Feiyue Huang, Chia-Wen Lin

摘要:

二进制神经网络(BNN)在降低深度神经网络复杂度方面显示出其优势。然而,它遭受严重的性能下降。其中一个主要障碍是全精度权重向量与其二进制向量之间的大量化误差。以前的工作集中在补偿规范的差距,而离开的角度偏差几乎没有触及。在本文中,我们首次探讨了角度偏差对量化误差的影响,然后介绍了一种旋转二进制神经网络(RBNN),它考虑了全精度权重向量和其二进制化版本之间的角度对齐。在每个训练时期开始时,我们建议将全精度权重向量旋转到其二进制向量以减少角度偏差。为了避免学习一个大的旋转矩阵的高复杂性,我们进一步引入了一个双旋转公式,学习两个较小的旋转矩阵。在训练阶段,我们设计了一个可调的旋转权重向量进行二值化,以避免潜在的局部最优。我们的旋转导致大约50%的权重翻转,从而最大化信息增益。最后,我们提出了一个训练感知的符号函数的近似梯度向后。在CIFAR-10和ImageNet上的实验证明了RBNN优于许多现有技术的优越性。我们的源代码、实验设置、训练日志和二进制模型可在https://github.com/lmbxmu/RBNN上获得。

英文摘要:

Binary Neural Network (BNN) shows its predominance in reducing the complexity of deep neural networks. However, it suffers severe performance degradation. One of the major impediments is the large quantization error between the full-precision weight vector and its binary vector. Previous works focus on compensating for the norm gap while leaving the angular bias hardly touched. In this paper, for the first time, we explore the influence of angular bias on the quantization error and then introduce a Rotated Binary Neural Network (RBNN), which considers the angle alignment between the full-precision weight vector and its binarized version. At the beginning of each training epoch, we propose to rotate the full-precision weight vector to its binary vector to reduce the angular bias. To avoid the high complexity of learning a large rotation matrix, we further introduce a bi-rotation formulation that learns two smaller rotation matrices. In the training stage, we devise an adjustable rotated weight vector for binarization to escape the potential local optimum. Our rotation leads to around 50% weight flips which maximize the information gain. Finally, we propose a training-aware approximation of the sign function for the gradient backward. Experiments on CIFAR-10 and ImageNet demonstrate the superiorities of RBNN over many state-of-the-arts. Our source code, experimental settings, training logs and binary models are available at https://github.com/lmbxmu/RBNN.

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

↑