对角预条件器是二阶优化器的计算上可行的近似,在加速深度学习模型训练方面显示出巨大潜力。两种主要方法分别基于 Adam 和 Gauss-Newton (GN) 方法:前者利用当前梯度的统计信息,是神经网络的事实标准优化器;后者使用 Gauss-Newton 矩阵的对角元素,支撑了诸如 Sophia 等近期的一些对角优化器。在本工作中,我们通过两个关键因素的视角来比较这两种对角预条件方法:预条件器中基的选择,以及小批量处理带来的梯度噪声的影响。为了获得深入见解,我们在二次目标和逻辑回归上,于所有四个象限中分析这些优化器。我们表明,无论基如何选择,都存在一些实例,其中 Adam 在全批量设置下优于 GN$^{-1}$ 和 GN$^{-1/2}$。相反,在随机(小批量)机制下,对于线性回归,在高斯数据假设下,Adam 的表现类似于 GN$^{-1/2}$。这些理论结果得到了在凸和非凸目标上的实证研究的支持。
英文摘要:
Preconditioned methods are central to deep learning optimization. Predominant approaches include computationally light diagonal preconditioners such as Adam, which rely on gradient statistics, and second-order methods such as Gauss-Newton (GN), which capture richer curvature information. Seeking the best of both worlds, we disentangle the preconditioner design space into several factors, separating the choice of diagonal scaling (Adam-style versus GN-style) from 1) the basis choices under which the diagonal scaling operates, and 2) the gradient noises from mini-batching. Our theoretical results show that GN's optimality for linear regression no longer holds under a poorly chosen basis under both population and stochastic updates, or a move from linear regression to a non-convex variant of logistic regression. In these settings, Adam-style methods offer genuine advantages over curvature-inspired preconditioning, rather than serving merely as a tractable proxy. Empirical results on synthetic problems and CIFAR-10 support these findings.
University of Luxembourg(卢森堡大学);University of Basel(巴塞尔大学);MPI for Intelligent Systems(马克斯·普朗克智能系统研究所);ELLIS Tübingen(ELLIS蒂宾根);Tübingen AI Center(蒂宾根人工智能中心)
Why Adam Can Beat SGD: Second-Moment Normalization Yields Sharper Tails
Department of Electrical and Computer Engineering, The Ohio State University(俄亥俄州立大学电气与计算机工程系);School of Electrical, Computer and Energy Engineering, Arizona State University(亚利桑那州立大学电气、计算机与能源工程学院)
On the Convergence of Adam under Non-uniform Smoothness: Separability from SGDM and Beyond
University of Science and Technology of China(中国科学技术大学);Microsoft Research(微软研究院);Peking University(北京大学);Chinese Academy of Science(中国科学院);CUHK (Shenzhen)(香港中文大学(深圳))
Non-convergence to global minimizers for Adam and stochastic gradient descent optimization and constructions of local minimizers in the training of artificial neural networks
Non-convergence to the optimal risk for Adam and stochastic gradient descent optimization in the training of deep neural networks
The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳));Vietnam Academy of Science and Technology(越南科学技术研究院);Shenzhen Research Institute of Big Data(深圳大数据研究院)
Provable Adaptivity of Adam under Non-uniform Smoothness
University of Science and Technology of China(中国科学技术大学);Microsoft Research Asia(微软亚洲研究院);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Peking University(北京大学);Chinese Academy of Mathematics and Systems Science(中国科学院数学与系统科学研究院);Microsoft(微软);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
A New Adaptive Gradient Method with Gradient Decomposition
Center for Data Science(数据科学中心);Peking University(北京大学);Key Lab. of Machine Perception (MOE)(机器感知教育部重点实验室);School of EECS, Peking University(北京大学电子工程与计算机科学学院);Peng Cheng Laboratory(鹏城实验室)
Muon Learns More Robust and Transferable Features than Adam
Yale University(耶鲁大学);National University of Singapore(新加坡国立大学);University of Chinese Academy of Sciences(中国科学院大学);Academy of Mathematics and Systems Science, CAS(中国科学院数学与系统科学研究院)
本文通过鲁棒性和可迁移性视角,证明 Muon 优化器相比 Adam 和 SGD 能学习到更鲁棒、更可迁移的特征,并通过理论分析支持了经验发现。
Mohamed bin Zayed University of Artificial Intelligence(莫萨德·本·泽德人工智能大学);University at Buffalo(布法罗大学);King Abdullah University of Science and Technology(卡布斯国王科学与技术大学)
Non-convergence of Adam and other adaptive stochastic gradient descent optimization methods for non-vanishing learning rates
University of Münster(明斯特大学);The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院)
Ada2MS: A Hybrid Optimization Algorithm Based on Exponential Mixing of Elementwise and Global Second-Moment Estimates
School of Information Management and Mathematics, Jiangxi University of Finance and Economics(江西财经大学信息管理与数学学院);School of Mathematics and Computer Science, Nanchang University(南昌大学数学与计算机科学学院);Institute of Metaverse, Nanchang University(南昌大学元宇宙研究院);Jiangxi Provincial Key Laboratory of Virtual Reality(江西省虚拟现实重点实验室)
Non-convergence to global minimizers in data driven supervised deep learning: Adam and stochastic gradient descent optimization provably fail to converge to global minimizers in the training of deep neural networks with ReLU activation
School of Data Science, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)数据科学学院);Vietnam Academy of Science and Technology(越南科学技术研究院);Shenzhen Research Institute of Big Data, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)深圳大数据研究院)
L $_2$正则化和权重衰减正则化对于标准的随机梯度下降是等价的(当通过学习率重新缩放时),但是正如我们所证明的,这是自适应梯度算法的\emph{not}情况,例如Adam。虽然这些算法的常见实现采用L $_2$正则化(通常称之为“权重衰减”,由于我们暴露的不等价性,可能会产生误导),但我们提出了一个简单的修改,以通过\emph{decoupling}从w.r.t.损失函数。我们提供的经验证据表明,我们提出的修改(i)从标准SGD和Adam的学习率设置中获得了权重衰减因子的最佳选择,(ii)大大提高了Adam的泛化性能,使其能够在图像分类数据集上与具有动量的SGD竞争(在此之前,后者通常优于前者)。我们提出的解耦权重衰减已经被许多研究人员采用,社区已经在TensorFlow和PyTorch中实现了它;我们实验的完整源代码可以在https://github.com/loshchil/AdamW-and-SGDW上获得
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(模式分析与机器智能重点实验室)
ELLIS Institute Tübingen(图宾根埃利斯研究所);MPI-IS Tübingen(图宾根马克斯·普朗克研究所);AI Center, Germany(德国人工智能中心);CCM, Flatiron Institute, Simons Foundation(CCM,Flatiron研究所,Simons基金会);New York, US(美国纽约)