arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.07981cs.CVcs.AI
收藏

SiMaN:符号-幅度网络二值化

SiMaN: Sign-to-Magnitude Network Binarization

Xiamen University(厦门大学);Tencent Youtu Lab(腾讯优图实验室);Zhongguancun Lab(中关村实验室);National Tsing Hua University(台湾清华大学);Terminus Group(特斯联集团)

Mingbao Lin, Rongrong Ji, Zihan Xu, Baochang Zhang, Fei Chao, Chia-Wen Lin, Ling Shao

摘要:

二进制神经网络(BNN)由于其高效的存储和计算能力而吸引了广泛的研究兴趣。然而,BNN的一个重大挑战在于处理离散约束,同时确保比特熵最大化,这通常使其权重优化非常困难。现有的方法使用符号函数来放松学习,该函数简单地将正权重编码为+1,否则为-1。或者,我们制定一个角度对齐目标,将权重二值化约束为{0,+1},以解决挑战。在本文中,我们证明了我们的权重二值化通过将高量级权重编码为+1s和0来提供分析解决方案。因此,高品质的离散解决方案是建立在一个计算效率的方式没有符号函数。我们证明了二值化网络的学习权重大致遵循不允许熵最大化的拉普拉斯分布,并进一步证明了它可以通过在网络训练期间简单地去除$\ell_2$正则化来有效地解决。我们的方法被称为符号到幅度网络二值化(SiMaN),在CIFAR-10和ImageNet上进行了评估,证明了其优于基于符号的最新技术。我们的源代码、实验设置、训练日志和二进制模型可在https://github.com/lmbxmu/SiMaN上获得。

英文摘要:

Binary neural networks (BNNs) have attracted broad research interest due to their efficient storage and computational ability. Nevertheless, a significant challenge of BNNs lies in handling discrete constraints while ensuring bit entropy maximization, which typically makes their weight optimization very difficult. Existing methods relax the learning using the sign function, which simply encodes positive weights into +1s, and -1s otherwise. Alternatively, we formulate an angle alignment objective to constrain the weight binarization to {0,+1} to solve the challenge. In this paper, we show that our weight binarization provides an analytical solution by encoding high-magnitude weights into +1s, and 0s otherwise. Therefore, a high-quality discrete solution is established in a computationally efficient manner without the sign function. We prove that the learned weights of binarized networks roughly follow a Laplacian distribution that does not allow entropy maximization, and further demonstrate that it can be effectively solved by simply removing the $\ell_2$ regularization during network training. Our method, dubbed sign-to-magnitude network binarization (SiMaN), is evaluated on CIFAR-10 and ImageNet, demonstrating its superiority over the sign-based state-of-the-arts. Our source code, experimental settings, training logs and binary models are available at https://github.com/lmbxmu/SiMaN.

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

↑