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

HomeAdam:Adam和AdamW算法有时会回家以获得更好的可证明泛化

HomeAdam: Adam and AdamW Algorithms Sometimes Go Home to Obtain Better Provable Generalization

College of Computer Science and Technology(计算机科学与技术学院);Nanjing University of Aeronautics and Astronautics(南京航空航天大学);MIIT Key Laboratory of Pattern Analysis and Machine Intelligence(模式分析与机器智能重点实验室)

Feihu Huang, Guanyi Zhang, Songcan Chen

AI总结:

本文提出 HomeAdam(W) 算法,通过有时返回动量 SGD 提高泛化能力,证明其泛化误差优于 Adam(W)-srf 并具有更快的收敛速度。

摘要:

Adam和AdamW是机器学习中训练深度学习模型的默认优化器类别。这些自适应算法收敛速度更快,但泛化能力更差 compared to SGD。事实上,它们证明的泛化误差 $O(\frac{1}{\sqrt{N}})$ 也比 SGD 的 $O(\frac{1}{N})$ 更大,其中 $N$ 表示训练样本数量。最近,尽管已经提出了一些 Adam 的变种以提高其泛化能力,但它们的改进泛化能力在理论上仍未被探索。为填补这一空白,本文通过算法稳定性重新研究了 Adam 和 AdamW 的泛化能力,并首次证明了没有平方根(即 Adam(W)-srf)的 Adam 和 AdamW 具有泛化误差 $O(\frac{\hatρ^{-2T}}{N})$,其中 $T$ 表示迭代次数,$\hatρ>0$ 表示第二阶动量的最小元素加上一个小正数。为提高泛化能力,我们提出了一类高效的聪明 Adam(即 HomeAdam(W))算法,通过有时返回基于动量的 SGD。此外,我们证明了我们的 HomeAdam(W) 的泛化误差 $O(\frac{1}{N})$ 比 Adam(W)-srf 的 $O(\frac{\hatρ^{-2T}}{N})$ 更小,因为 $\hatρ$ 通常非常小。特别是,它也比现有的 Adam(W) 的 $O(\frac{1}{\sqrt{N}})$ 更小。同时,我们证明我们的 HomeAdam(W) 的收敛速度为 $O(\frac{1}{T^{1/4}})$,比 Adam(W)-srf 的 $O(\frac{\breveρ^{-1}}{T^{1/4}})$ 更快,其中 $\breveρ\leq\hatρ$ 也非常小。广泛的数值实验展示了我们 HomeAdam(W) 算法的效率。

英文摘要:

Adam and AdamW are a class of default optimizers for training deep learning models in machine learning. These adaptive algorithms converge faster but generalize worse compared to SGD. In fact, their proved generalization error $O(\frac{1}{\sqrt{N}})$ also is larger than $O(\frac{1}{N})$ of SGD, where $N$ denotes training sample size. Recently, although some variants of Adam have been proposed to improve its generalization, their improved generalizations are still unexplored in theory. To fill this gap, in the paper, we restudy generalization of Adam and AdamW via algorithmic stability, and first prove that Adam and AdamW without square-root (i.e., Adam(W)-srf) have a generalization error $O(\frac{\hatρ^{-2T}}{N})$, where $T$ denotes iteration number and $\hatρ>0$ denotes the smallest element of second-order momentum plus a small positive number. To improve generalization, we propose a class of efficient clever Adam (i.e., HomeAdam(W)) algorithms via sometimes returning momentum-based SGD. Moreover, we prove that our HomeAdam(W) have a smaller generalization error $O(\frac{1}{N})$ than $O(\frac{\hatρ^{-2T}}{N})$ of Adam(W)-srf, since $\hatρ$ is generally very small. In particular, it is also smaller than the existing $O(\frac{1}{\sqrt{N}})$ of Adam(W). Meanwhile, we prove our HomeAdam(W) have a faster convergence rate of $O(\frac{1}{T^{1/4}})$ than $O(\frac{\breveρ^{-1}}{T^{1/4}})$ of the Adam(W)-srf, where $\breveρ\leq\hatρ$ also is very small. Extensive numerical experiments demonstrate efficiency of our HomeAdam(W) algorithms.

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

↑