ReCU:恢复二进制神经网络中的死权重
ReCU: Reviving the Dead Weights in Binary Neural Networks
摘要:
二进制神经网络(BNN)由于其优越的计算量和存储量的减少而受到越来越多的关注。大多数现有的工作集中在通过最小化全精度权重和它们的二进制化之间的间隙来减少量化误差,或者设计梯度近似来减轻梯度失配,同时保持“死权重”不变。这导致训练BNN时收敛缓慢。在本文中,我们第一次,探索的影响,“死权重”,指的是一组权重,几乎没有更新的过程中的BNN,然后引入整流钳位单元(ReCU)恢复“死权重”更新。我们证明了通过ReCU恢复“死权重”可以导致更小的量化误差。此外,我们还考虑到信息熵的权重,然后从数学上分析为什么权重标准化可以有利于BNN。我们证明了最小化量化误差和最大化信息熵之间的内在矛盾,然后提出了一种自适应指数调度器来识别“死权重”的范围。通过考虑“死权重”,与最近的方法相比,我们的方法不仅提供了更快的BNN训练,而且在CIFAR-10和ImageNet上具有最先进的性能。代码可以在https://github.com/z-hXu/ReCU上获得。
英文摘要:
Binary neural networks (BNNs) have received increasing attention due to their superior reductions of computation and memory. Most existing works focus on either lessening the quantization error by minimizing the gap between the full-precision weights and their binarization or designing a gradient approximation to mitigate the gradient mismatch, while leaving the "dead weights" untouched. This leads to slow convergence when training BNNs. In this paper, for the first time, we explore the influence of "dead weights" which refer to a group of weights that are barely updated during the training of BNNs, and then introduce rectified clamp unit (ReCU) to revive the "dead weights" for updating. We prove that reviving the "dead weights" by ReCU can result in a smaller quantization error. Besides, we also take into account the information entropy of the weights, and then mathematically analyze why the weight standardization can benefit BNNs. We demonstrate the inherent contradiction between minimizing the quantization error and maximizing the information entropy, and then propose an adaptive exponential scheduler to identify the range of the "dead weights". By considering the "dead weights", our method offers not only faster BNN training, but also state-of-the-art performance on CIFAR-10 and ImageNet, compared with recent methods. Code can be available at https://github.com/z-hXu/ReCU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。