arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.09632cs.LGmath.OC
收藏

Adam可以在不修改更新规则的情况下收敛

Adam Can Converge Without Any Modification On Update Rules

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));University of Michigan(密歇根大学);Shenzhen Research Institute of Big Data(深圳大数据研究院)

Yushun Zhang, Congliang Chen, Naichen Shi, Ruoyu Sun, Zhi-Quan Luo

摘要:

自从Reddi et al. 2018指出Adam的发散问题以来,已经设计了许多新的变体来获得收敛。然而,香草亚当仍然非常受欢迎,并且在实践中效果良好。为什么理论和实践之间存在差距?我们指出理论和实践的设置之间存在不匹配:Reddi等人2018在选择Adam的超参数之后选择了这个问题,即,$(β_1, β_2)$ ;而实际应用程序通常先修复问题,然后再调优$(β_1, β_2)$。由于这一观察,我们推测,只有当我们改变选择问题和超参数的顺序时,经验收敛才能在理论上得到证明。在这项工作中,我们证实了这一猜想。证明了当$β_2$较大且$β_1 < \sqrt{β_2}<1$,Adam收敛于临界点的邻域.邻域的大小与随机梯度的方差有关。在一个额外的条件下(强增长条件),亚当收敛到临界点。值得一提的是,我们的结果覆盖了广泛的超参数:随着$β_2$的增加,我们的收敛结果可以覆盖任何$β_1 \in [0,1)$,包括$β_1=0.9$,这是深度学习库中的默认设置。据我们所知,这是第一个表明Adam可以在不修改其更新规则的情况下收敛的结果。此外,我们的分析不需要有界梯度或有界二阶动量的假设。当$β_2$很小时,我们进一步指出了$(β_1,β_2)$的一个大区域,亚当可以发散到无穷大。我们的发散结果考虑了与收敛结果相同的设置,表明当增加$β_2$时从发散到收敛的相变。这些积极和消极的结果可以提供如何调整亚当超参数的建议。

英文摘要:

Ever since Reddi et al. 2018 pointed out the divergence issue of Adam, many new variants have been designed to obtain convergence. However, vanilla Adam remains exceptionally popular and it works well in practice. Why is there a gap between theory and practice? We point out there is a mismatch between the settings of theory and practice: Reddi et al. 2018 pick the problem after picking the hyperparameters of Adam, i.e., $(β_1, β_2)$; while practical applications often fix the problem first and then tune $(β_1, β_2)$. Due to this observation, we conjecture that the empirical convergence can be theoretically justified, only if we change the order of picking the problem and hyperparameter. In this work, we confirm this conjecture. We prove that, when $β_2$ is large and $β_1 < \sqrt{β_2}<1$, Adam converges to the neighborhood of critical points. The size of the neighborhood is propositional to the variance of stochastic gradients. Under an extra condition (strong growth condition), Adam converges to critical points. It is worth mentioning that our results cover a wide range of hyperparameters: as $β_2$ increases, our convergence result can cover any $β_1 \in [0,1)$ including $β_1=0.9$, which is the default setting in deep learning libraries. To our knowledge, this is the first result showing that Adam can converge without any modification on its update rules. Further, our analysis does not require assumptions of bounded gradients or bounded 2nd-order momentum. When $β_2$ is small, we further point out a large region of $(β_1,β_2)$ where Adam can diverge to infinity. Our divergence result considers the same setting as our convergence result, indicating a phase transition from divergence to convergence when increasing $β_2$. These positive and negative results can provide suggestions on how to tune Adam hyperparameters.

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

↑