BAMSProd:将自适应优化方法推广到深度二进制模型的一步
BAMSProd: A Step towards Generalizing the Adaptive Optimization Methods to Deep Binary Model
摘要:
最近的方法已经显著地降低了二进制神经网络(BNN)的性能退化,但是保证BNN的有效和高效的训练是一个未解决的问题。其主要原因是由直通估计器(STE)产生的估计梯度与实导数的梯度不匹配。在本文中,我们提供了一个显式凸优化示例,其中使用传统自适应优化方法训练BNN仍然面临不收敛的风险,并确定约束梯度范围对于优化深度二进制模型以避免高度次优解至关重要。为了解决上述问题,我们提出了一种BAMSProd算法,其关键观察是优化深度二进制模型的收敛特性与量化误差密切相关。简单地说,它通过误差测量采用自适应范围约束来平滑梯度过渡,同时遵循AMSGrad的指数移动策略来避免优化过程中的误差积累。实验验证了理论收敛性分析的推论,并进一步证明即使在高度非凸的优化问题中,我们的优化方法也可以比特定的二进制优化器加快约1:2倍的收敛速度,并将BNN的性能提高到约3:7%的显着水平。
英文摘要:
Recent methods have significantly reduced the performance degradation of Binary Neural Networks (BNNs), but guaranteeing the effective and efficient training of BNNs is an unsolved problem. The main reason is that the estimated gradients produced by the Straight-Through-Estimator (STE) mismatches with the gradients of the real derivatives. In this paper, we provide an explicit convex optimization example where training the BNNs with the traditionally adaptive optimization methods still faces the risk of non-convergence, and identify that constraining the range of gradients is critical for optimizing the deep binary model to avoid highly suboptimal solutions. For solving above issues, we propose a BAMSProd algorithm with a key observation that the convergence property of optimizing deep binary model is strongly related to the quantization errors. In brief, it employs an adaptive range constraint via an errors measurement for smoothing the gradients transition while follows the exponential moving strategy from AMSGrad to avoid errors accumulation during the optimization. The experiments verify the corollary of theoretical convergence analysis, and further demonstrate that our optimization method can speed up the convergence about 1:2x and boost the performance of BNNs to a significant level than the specific binary optimizer about 3:7%, even in a highly non-convex optimization problem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。