估计器遇均衡视角:一种用于二值神经网络训练的修正直通估计器
Estimator Meets Equilibrium Perspective: A Rectified Straight Through Estimator for Binary Neural Networks Training
AI总结:
针对二值神经网络训练中STE估计器的不一致问题,提出将训练视为估计误差与梯度稳定性均衡的新视角,设计基于幂函数的ReSTE估计器,在CIFAR-10和ImageNet上实现无辅助模块的SOTA性能。
摘要:
神经网络二值化是神经网络压缩中的主流范式。开创性工作BinaryConnect使用直通估计器(Straight Through Estimator,STE)来模拟符号函数的梯度,但这也引发了关键的不一致性问题。以往大多数方法设计了不同的估计器来替代STE以缓解该问题。然而,这些方法忽略了一个事实:在降低估计误差时,梯度稳定性会随之下降。这些高度发散的梯度会损害模型训练,并增加梯度消失和梯度爆炸的风险。为了充分考虑梯度稳定性,我们提出了二值神经网络(BNNs)训练的新视角,将其视为估计误差与梯度稳定性之间的均衡。基于这一视角,我们首先设计了两个指标来定量展示这种均衡现象。此外,为了更好地平衡估计误差与梯度稳定性,我们对原始直通估计器进行了改进,提出了一种基于幂函数的估计器——修正直通估计器(Rectified Straight Through Estimator,简称ReSTE)。与其他估计器相比,ReSTE具备合理性,能够灵活平衡估计误差与梯度稳定性。在CIFAR-10和ImageNet数据集上开展的大量实验表明,ReSTE性能优异,在无需任何辅助模块或损失函数的情况下,性能超越了当前最优方法。
英文摘要:
Binarization of neural networks is a dominant paradigm in neural networks compression. The pioneering work BinaryConnect uses Straight Through Estimator (STE) to mimic the gradients of the sign function, but it also causes the crucial inconsistency problem. Most of the previous methods design different estimators instead of STE to mitigate it. However, they ignore the fact that when reducing the estimating error, the gradient stability will decrease concomitantly. These highly divergent gradients will harm the model training and increase the risk of gradient vanishing and gradient exploding. To fully take the gradient stability into consideration, we present a new perspective to the BNNs training, regarding it as the equilibrium between the estimating error and the gradient stability. In this view, we firstly design two indicators to quantitatively demonstrate the equilibrium phenomenon. In addition, in order to balance the estimating error and the gradient stability well, we revise the original straight through estimator and propose a power function based estimator, Rectified Straight Through Estimator (ReSTE for short). Comparing to other estimators, ReSTE is rational and capable of flexibly balancing the estimating error with the gradient stability. Extensive experiments on CIFAR-10 and ImageNet datasets show that ReSTE has excellent performance and surpasses the state-of-the-art methods without any auxiliary modules or losses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。