MaxVA:通过最大化观测到的重复变量方差快速自适应步长
MaxVA: Fast Adaptation of Step Sizes by Maximizing Observed Variance of Gradients
摘要:
自适应梯度方法如RMSProp和Adam使用平方梯度的指数移动估计来计算自适应步长,在面对噪声目标时实现比SGD更好的收敛性。然而,由于不稳定或极端的自适应学习率,Adam可能具有不期望的收敛行为。已经提出了AMSGrad和AdaBound等方法来稳定Adam在训练后期的自适应学习率,但在训练Transformers \cite{transformer}等实际任务中,它们并没有超过Adam。在本文中,我们提出了一个自适应学习率原则,其中亚当的梯度平方的运行平均值被替换为加权平均值,权重选择为最大化每个坐标的估计方差。这导致对局部梯度方差的更快适应,这导致比Adam更理想的经验收敛行为。我们证明了所提出的算法收敛非凸随机优化问题在温和的假设下,并证明了我们的自适应平均方法在机器翻译,自然语言理解和大批量预训练的BERT的改进功效。该代码可在https://github.com/zhuchen03/MaxVA上获得。
英文摘要:
Adaptive gradient methods such as RMSProp and Adam use exponential moving estimate of the squared gradient to compute adaptive step sizes, achieving better convergence than SGD in face of noisy objectives. However, Adam can have undesirable convergence behaviors due to unstable or extreme adaptive learning rates. Methods such as AMSGrad and AdaBound have been proposed to stabilize the adaptive learning rates of Adam in the later stage of training, but they do not outperform Adam in some practical tasks such as training Transformers \cite{transformer}. In this paper, we propose an adaptive learning rate principle, in which the running mean of squared gradient in Adam is replaced by a weighted mean, with weights chosen to maximize the estimated variance of each coordinate. This results in a faster adaptation to the local gradient variance, which leads to more desirable empirical convergence behaviors than Adam. We prove the proposed algorithm converges under mild assumptions for nonconvex stochastic optimization problems, and demonstrate the improved efficacy of our adaptive averaging approach on machine translation, natural language understanding and large-batch pretraining of BERT. The code is available at https://github.com/zhuchen03/MaxVA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。