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(模式分析与机器智能重点实验室)
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.
On the $O(\frac{\sqrt{d}}{K^{1/4}})$ Convergence Rate of AdamW Measured by $\ell_1$ Norm
Institute of Robotics and Automatic Information Systems, College of Artificial Intelligence, Nankai University, Tianjin, China(机器人与自动信息系统研究所,人工智能学院,南开大学,天津,中国);National Key Lab of General AI, School of Intelligence Science and Technology, Peking University, Beijing, China(通用人工智能国家重点实验室,智能科学与技术学院,北京大学,北京,中国)
FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models
School of Computer Science and Technology, Tianjin University(天津大学计算机科学与技术学院);Medical College, Tianjin University(天津大学医学院);School of Artificial Intelligence, Xidian University(西安电子科技大学人工智能学院);State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院通用人工智能国家重点实验室);Pazhou Laboratory (Huangpu), Guangzhou, Guangdong, China(广州黄埔 Pazhou 实验室)
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(江西省虚拟现实重点实验室)
AdamS: Momentum Itself Can Be A Normalizer for LLM Pretraining and Post-training
Wangxuan Institute of Computer Technology, Peking University(北京大学王宣计算机技术研究所);University of Science and Technology of China(中国科学技术大学);State Key Laboratory of General Artificial Intelligence(通用人工智能国家重点实验室)
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上获得
Superpositional Gradient Descent: Harnessing Quantum Principles for Model Training
Mustafa Hakan G\"uven c er Science High School Ankara, T\"urkiye;\. I stanbul Erkek High School \. I stanbul, T\"urkiye;T\"UB\. I TAK Science High School Kocaeli, T\"urkiye
DNT: a Deeply Normalized Transformer that can be trained by Momentum SGD
Intellifusion Inc.(Intellifusion公司);Tsinghua University(清华大学);Johns Hopkins University(约翰霍普金斯大学);Beijing University of Posts and Telecommunications(北京邮电大学);Peking University(北京大学)
本文提出深度归一化 Transformer(DNT),通过在网络关键位置加入归一化来调节 Jacobian 矩阵并集中梯度分布,使普通 mSGDW 也能有效训练,且在 ViT 与 GPT 上表现更优。
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen International Center for Industrial and Applied Mathematics(深圳国际工业与应用数学中心);Shenzhen Research Institute of Big Data(深圳大数据研究院);Duke University(杜克大学);Anthropic(Anthropic公司);Stanford University(斯坦福大学)
Booth School of Business University of Chicago(芝加哥大学商学院);Department of Systems Engineering and Operations Research(系统工程与运筹学系);George Mason University(乔治·梅森大学)