arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.07114cs.LGcs.NAmath.NAmath.OCstat.ML
收藏

迈向量化Adam的预处理效应

Towards Quantifying the Preconditioning Effect of Adam

UT Austin(德克萨斯大学奥斯汀分校);Google DeepMind(谷歌DeepMind)

Rudrajit Das, Naman Agarwal, Sujay Sanghavi, Inderjit S. Dhillon

AI总结:

本文分析了Adam在二次函数上的预处理效应,发现其能减轻对Hessian条件数的依赖但引入维度相关量,并在特定维度条件下优于GD,但在非对角Hessian下可能更差。

摘要:

目前,刻画Adam预处理效应并展示其如何缓解病态条件诅咒(一个困扰梯度下降(GD)的问题)的结果明显匮乏。在本研究中,我们对Adam在二次函数上的预处理效应进行了详细分析,并量化了Adam能在多大程度上减轻对Hessian矩阵条件数的依赖。我们的关键发现是,Adam受条件数影响较小,但代价是承受一个与维度相关的量。具体而言,对于一个具有对角Hessian矩阵、条件数为$κ$的$d$维二次函数,我们证明了控制无动量Adam迭代复杂度的有效类条件数量为$\mathcal{O}(\min(d, κ))$。对于对角占优的Hessian矩阵,我们得到了相应量的$\mathcal{O}(\min(d \sqrt{d κ}, κ))$界限。因此,当$d < \mathcal{O}(κ^p)$时,Adam可以优于GD(其依赖度为$\mathcal{O}(κ)$),其中对于对角Hessian矩阵$p = 1$,对于对角占优Hessian矩阵$p = 1/3$。在负面方面,我们的结果表明,对于充分非对角的Hessian矩阵,即使$d \ll \mathcal{O}(κ^{1/3})$,Adam也可能比GD更差;我们用实验证据证实了这一点。最后,我们将分析扩展到满足逐坐标Lipschitz平滑性和Polyak-Łojasiewicz条件修改版本的函数。

英文摘要:

There is a notable dearth of results characterizing the preconditioning effect of Adam and showing how it may alleviate the curse of ill-conditioning -- an issue plaguing gradient descent (GD). In this work, we perform a detailed analysis of Adam's preconditioning effect for quadratic functions and quantify to what extent Adam can mitigate the dependence on the condition number of the Hessian. Our key finding is that Adam can suffer less from the condition number but at the expense of suffering a dimension-dependent quantity. Specifically, for a $d$-dimensional quadratic with a diagonal Hessian having condition number $κ$, we show that the effective condition number-like quantity controlling the iteration complexity of Adam without momentum is $\mathcal{O}(\min(d, κ))$. For a diagonally dominant Hessian, we obtain a bound of $\mathcal{O}(\min(d \sqrt{d κ}, κ))$ for the corresponding quantity. Thus, when $d < \mathcal{O}(κ^p)$ where $p = 1$ for a diagonal Hessian and $p = 1/3$ for a diagonally dominant Hessian, Adam can outperform GD (which has an $\mathcal{O}(κ)$ dependence). On the negative side, our results suggest that Adam can be worse than GD for a sufficiently non-diagonal Hessian even if $d \ll \mathcal{O}(κ^{1/3})$; we corroborate this with empirical evidence. Finally, we extend our analysis to functions satisfying per-coordinate Lipschitz smoothness and a modified version of the Polyak-Łojasiewicz condition.

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

↑