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

Adam和训练策略如何帮助BNN优化?

How Do Adam and Training Strategies Help BNNs Optimization?

Hong Kong University of Science and Technology(香港科技大学);Carnegie Mellon University(卡内基梅隆大学);Plumerai

Zechun Liu, Zhiqiang Shen, Shichao Li, Koen Helwegen, Dong Huang, Kwang-Ting Cheng

摘要:

性能最好的二进制神经网络(BNN)通常使用Adam优化及其多步训练变体来实现。然而,据我们所知,很少有研究探讨Adam优于其他优化器(如SGD)的根本原因,或者提供支持特定训练策略的分析解释。为了解决这个问题,在本文中,我们首先研究了训练过程中BNN中梯度和权重的轨迹。我们证明了Adam中二阶动量的正则化效应对于恢复BNN中由于激活饱和而死亡的权重至关重要。我们发现,亚当,通过其自适应学习率的战略,是更好地装备,以处理粗糙的损失面的BNN,并达到了更好的最优与更高的泛化能力。此外,我们还考察了二进制网络中实值权值的有趣作用,并揭示了权重衰减对BNN优化的稳定性和滞后性的影响。通过大量的实验和分析,我们得出了一个简单的训练方案,该方案建立在现有的基于Adam的优化基础上,使用与最先进的ReActNet相同的架构,在ImageNet数据集上实现了70.5%的top-1准确率,同时实现了1.1%的更高准确率。代码和型号可在https://github.com/liuzechun/AdamBNN上获得。

英文摘要:

The best performing Binary Neural Networks (BNNs) are usually attained using Adam optimization and its multi-step training variants. However, to the best of our knowledge, few studies explore the fundamental reasons why Adam is superior to other optimizers like SGD for BNN optimization or provide analytical explanations that support specific training strategies. To address this, in this paper we first investigate the trajectories of gradients and weights in BNNs during the training process. We show the regularization effect of second-order momentum in Adam is crucial to revitalize the weights that are dead due to the activation saturation in BNNs. We find that Adam, through its adaptive learning rate strategy, is better equipped to handle the rugged loss surface of BNNs and reaches a better optimum with higher generalization ability. Furthermore, we inspect the intriguing role of the real-valued weights in binary networks, and reveal the effect of weight decay on the stability and sluggishness of BNN optimization. Through extensive experiments and analysis, we derive a simple training scheme, building on existing Adam-based optimization, which achieves 70.5% top-1 accuracy on the ImageNet dataset using the same architecture as the state-of-the-art ReActNet while achieving 1.1% higher accuracy. Code and models are available at https://github.com/liuzechun/AdamBNN.

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

↑